Rev 86 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#ifndef __TENDRA_STDIO_H
#define __TENDRA_STDIO_H
extern struct __sFILE;
typedef struct __sFILE FILE;
extern FILE *__stdinp;
extern FILE *__stdoutp;
extern FILE *__stderrp;
extern char *tmpnam(char *);
typedef unsigned long fpos_t;
#define L_tmpnam 1024 /* XXX must be == PATH_MAX */
#define stdin __stdinp
#define stdout __stdoutp
#define stderr __stderrp
extern FILE * stdout;
extern FILE * stdin;
extern FILE * stderr;
#define _IOFBF 0 /* setvbuf should set fully buffered */
#define _IOLBF 1 /* setvbuf should set line buffered */
#define _IONBF 2 /* setvbuf should set unbuffered */
#define BUFSIZ 1024 /* size of buffer used by setbuf */
#define EOF (-1)
/*
* FOPEN_MAX is a minimum maximum, and is the number of streams that
* stdio can provide without attempting to allocate further resources
* (which could fail). Do not use this for anything.
*/
/* must be == _POSIX_STREAM_MAX <limits.h> */
#ifndef FOPEN_MAX
#define FOPEN_MAX 20 /* must be <= OPEN_MAX <sys/syslimits.h> */
#endif
#define FILENAME_MAX 1024 /* must be <= PATH_MAX <sys/syslimits.h> */
#ifndef SEEK_SET
#define SEEK_SET 0 /* set file offset to offset */
#endif
#ifndef SEEK_CUR
#define SEEK_CUR 1 /* set file offset to current plus offset */
#endif
#ifndef SEEK_END
#define SEEK_END 2 /* set file offset to EOF plus offset */
#endif
#define TMP_MAX 308915776
#define L_cuserid 17 /* size for cuserid(3); MAXLOGNAME, legacy */
#define L_ctermid 1024 /* size for ctermid(3); PATH_MAX */
#define NASE 12
#endif