|
|
1.1 root 1: stdio/Read_me 11/12/92
2: steve's notes on ANSI-compliant iBCS2-compatible stdio library
3:
4: To make the stdio library ANSI compliant and iBCS-2 compliant,
5: steve hacked old ANSI stdio sources (not the COHERENT stdio sources) 11/92.
6: To make the bits line up with Unix bits, split the flags into _ff1 and _ff2
7: and rearranged them accordingly. To make FILE the same size as under Unix,
8: split it into two parts, FILE as in Unix and _FILE2 with additional fields.
9: This makes some of the code obscure and requires some additional code.
10:
11:
12: The FILE _mode field contains the i/o mode:
13: _MODE_FBUF fully buffered
14: _MODE_LBUF line buffered
15: _MODE_NBUF unbuffered
16: _MODE_STR string (for sscanf() and sprintf())
17: _MODE_UNINIT uninitialized
18: A stream is uninitialized before the buffering mode is determined,
19: i.e. before the first read or write to the stream or the first setvbuf() call.
20:
21: The _gt field contains the appropriate getc() function, one of the following:
22: _fginit uninitialized
23: _fgetb buffered
24: _fgetc unbuffered
25: _fgete error (read on write-only stream)
26: _fgetstr string (for sscanf())
27: _fungotc get ungotten character
28:
29: The _pt field contains the appropriate putc() function, one of the following:
30: _fpinit uninitialized
31: _fputa append (used on first write after seek on append stream)
32: _fputb fully buffered
33: _fputc unbuffered
34: _fpute error (write on read-only stream)
35: _fputt line buffered
36: _funungetc undo ungetc
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.