|
|
1.1 root 1: /*
2: * AT&T Bell Laboratories
3: * untrusted local <stdio.h>
4: * : : generated by mkhdr : :
5: */
6:
7: #ifndef __LCLSTDIO_H__
8: #define __LCLSTDIO_H__
9:
10: /* begin local <stdio.h> */
11: #define BUFSIZ 4096
12: #define _NFILE 120
13: # ifndef FILE
14: extern struct _iobuf {
15: int _cnt;
16: unsigned char *_ptr;
17: unsigned char *_base;
18: short _flag;
19: char _file;
20: } _iob[_NFILE];
21: # endif
22:
23: #define _IOREAD 01
24: #define _IOWRT 02
25: #define _IONBF 04
26: #define _IOMYBUF 010
27: #define _IOEOF 020
28: #define _IOERR 040
29: #define _IOSTRG 0100
30: #define _IOLBF 0200
31: #define _IORW 0400
32: #define NULL 0
33: #define FILE struct _iobuf
34: #define EOF (-1)
35:
36: #define stdin (&_iob[0])
37: #define stdout (&_iob[1])
38: #define stderr (&_iob[2])
39: #define getc(p) (--(p)->_cnt>=0? (int)*(p)->_ptr++:_filbuf(p))
40: #define getchar() getc(stdin)
41: #define putc(x,p) (--(p)->_cnt>=0? ((int)(*(p)->_ptr++=(x))):_flsbuf((x),p))
42: #define putchar(x) putc(x,stdout)
43: #define feof(p) (((p)->_flag&_IOEOF)!=0)
44: #define ferror(p) (((p)->_flag&_IOERR)!=0)
45: #define fileno(p) ((p)->_file)
46:
47: FILE *fopen();
48: FILE *fdopen();
49: FILE *freopen();
50: FILE *popen();
51: long ftell();
52: char *fgets();
53:
54: #ifndef L_tmpnam
55: #include <tmpnam.h>
56: #endif /*L_tmpnam */
57: /* end local <stdio.h> */
58:
59: #undef _lcl_stdio
60: #define _lcl_stdio 1
61:
62: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.