Lines Matching defs:__sFILE
99 typedef struct __sFILE { struct
100 unsigned char *_p; /* current position in (some) buffer */
101 int _r; /* read space left for getc() */
102 int _w; /* write space left for putc() */
103 short _flags; /* flags, below; this FILE is free if 0 */
104 short _file; /* fileno, if Unix descriptor, else -1 */
105 struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */
106 int _lbfsize; /* 0 or -_bf._size, for inline putc */
109 void *_cookie; /* cookie passed to io functions */
110 int (*_close)(void *);
111 int (*_read)(void *, char *, int);
112 fpos_t (*_seek)(void *, fpos_t, int);
113 int (*_write)(void *, const char *, int);
116 struct __sbuf _ext;
118 unsigned char *_up; /* saved _p when _p is doing ungetc data */
119 int _ur; /* saved _r when _r is counting ungetc data */
122 unsigned char _ubuf[3]; /* guarantee an ungetc() buffer */
123 unsigned char _nbuf[1]; /* guarantee a getc() buffer */
126 struct __sbuf _lb; /* buffer for fgetln() */
129 int _blksize; /* stat.st_blksize (may be != _bf._size) */
130 fpos_t _offset; /* current lseek offset */