DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: s

⟦8486a0d0b⟧

    Length: 6171 (0x181b)
    Names: »setbuf.3s«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat3/setbuf.3s« 

Default Hex Dump

0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74   ┆ u_ a_ l           Library Funct┆
0x0040…0060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 62 75 66 28 33 73 29 0a 0a 0a 0a   ┆ions              setbuf(3s)    ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x0080…00a0 20 20 73 65 74 62 75 66 2c 20 73 65 74 76 62 75 66 2c 20 73 65 74 62 75 66 66 65 72 2c 20 73 65   ┆  setbuf, setvbuf, setbuffer, se┆
0x00a0…00c0 74 6c 69 6e 65 62 75 66 20 2d 20 61 73 73 69 67 6e 20 62 75 66 66 65 72 69 6e 67 20 74 6f 0a 20   ┆tlinebuf - assign buffering to  ┆
0x00c0…00e0 20 20 20 20 61 20 73 74 72 65 61 6d 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08   ┆    a stream  S S S SY Y Y YN N ┆
0x00e0…0100 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08   ┆N NT T T TA A A AX X X X      # ┆
0x0100…0120 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08   ┆# # #i i i in n n nc c c cl l l ┆
0x0120…0140 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08   ┆lu u u ud d d de e e e < < < <s ┆
0x0140…0160 73 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 69 08 69 08 69 08 69 6f 08 6f 08 6f 08   ┆s s st t t td d d di i i io o o ┆
0x0160…0180 6f 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 76 08 76   ┆o. . . .h h h h> > > >       v v┆
0x0180…01a0 08 76 08 76 6f 08 6f 08 6f 08 6f 69 08 69 08 69 08 69 64 08 64 08 64 08 64 20 73 08 73 08 73 08   ┆ v vo o o oi i i id d d d s s s ┆
0x01a0…01c0 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66   ┆se e e et t t tb b b bu u u uf f┆
0x01c0…01e0 08 66 08 66 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72   ┆ f f( ( ( (s s s st t t tr r r r┆
0x01e0…0200 65 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 2c 08 2c 08 2c 08 2c 20 62 08 62   ┆e e e ea a a am m m m, , , , b b┆
0x0200…0220 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 29 08 29 08 29 08 29 0a 20 20 20 20 20 46   ┆ b bu u u uf f f f) ) ) )      F┆
0x0220…0240 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a 08   ┆ F F FI I I IL L L LE E E E * * ┆
0x0240…0260 2a 08 2a 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61   ┆* *s s s st t t tr r r re e e ea┆
0x0260…0280 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08   ┆ a a am m m m; ; ; ;      c c c ┆
0x0280…02a0 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 62 08   ┆ch h h ha a a ar r r r * * * *b ┆
0x02a0…02c0 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20   ┆b b bu u u uf f f f; ; ; ;      ┆
0x02c0…02e0 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 76 08 76 08 76 08 76 62 08 62   ┆ s s s se e e et t t tv v v vb b┆
0x02e0…0300 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 28 08 28 08 28 08 28 73 08 73 08 73 08 73   ┆ b bu u u uf f f f( ( ( (s s s s┆
0x0300…0320 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08   ┆t t t tr r r re e e ea a a am m ┆
0x0320…0340 6d 08 6d 2c 08 2c 08 2c 08 2c 20 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66   ┆m m, , , , b b b bu u u uf f f f┆
0x0340…0360 2c 08 2c 08 2c 08 2c 20 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65   ┆, , , , t t t ty y y yp p p pe e┆
0x0360…0380 08 65 08 65 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 69 08 69 08 69 08 69 7a 08 7a 08 7a 08   ┆ e e, , , , s s s si i i iz z z ┆
0x0380…03a0 7a 65 08 65 08 65 08 65 29 08 29 08 29 08 29 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 46 08 46 08   ┆ze e e e) ) ) ); ; ; ;      F F ┆
0x03a0…03c0 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a 08 2a 08 2a   ┆F FI I I IL L L LE E E E * * * *┆
0x03c0…03e0 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08   ┆s s s st t t tr r r re e e ea a ┆
0x03e0…0400 61 08 61 6d 08 6d 08 6d 08 6d 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08   ┆a am m m m; ; ; ;      c c c ch ┆
0x0400…0420 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 62 08 62 08 62   ┆h h ha a a ar r r r * * * *b b b┆
0x0420…0440 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69   ┆ bu u u uf f f f; ; ; ;      i i┆
0x0440…0460 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 74 08 74 08 74 08 74 79 08 79 08 79 08   ┆ i in n n nt t t t t t t ty y y ┆
0x0460…0480 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 73 08 73 08   ┆yp p p pe e e e; ; ; ;      s s ┆
0x0480…04a0 73 08 73 69 08 69 08 69 08 69 7a 08 7a 08 7a 08 7a 65 08 65 08 65 08 65 5f 08 5f 08 5f 08 5f 74   ┆s si i i iz z z ze e e e_ _ _ _t┆
0x04a0…04c0 08 74 08 74 08 74 20 73 08 73 08 73 08 73 69 08 69 08 69 08 69 7a 08 7a 08 7a 08 7a 65 08 65 08   ┆ t t t s s s si i i iz z z ze e ┆
0x04c0…04e0 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74   ┆e e; ; ; ;       s s s se e e et┆
0x04e0…0500 08 74 08 74 08 74 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 66 08 66 08 66   ┆ t t tb b b bu u u uf f f ff f f┆
0x0500…0520 08 66 65 08 65 08 65 08 65 72 08 72 08 72 08 72 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08   ┆ fe e e er r r r( ( ( (s s s st ┆
0x0520…0540 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08 6d 08   ┆t t tr r r re e e ea a a am m m ┆
0x0540…0560 6d 2c 08 2c 08 2c 08 2c 20 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 2c 08   ┆m, , , , b b b bu u u uf f f f, ┆
0x0560…0580 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 69 08 69 08 69 08 69 7a 08 7a 08 7a 08 7a 65 08 65 08 65   ┆, , , s s s si i i iz z z ze e e┆
0x0580…05a0 08 65 29 08 29 08 29 08 29 0a 20 20 20 20 20 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c   ┆ e) ) ) )      F F F FI I I IL L┆
0x05a0…05c0 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 74 08 74 08 74 08   ┆ L LE E E E * * * *s s s st t t ┆
0x05c0…05e0 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 3b 08 3b   ┆tr r r re e e ea a a am m m m; ;┆
0x05e0…0600 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72   ┆ ; ;      c c c ch h h ha a a ar┆
0x0600…0620 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08   ┆ r r r * * * *b b b bu u u uf f ┆
0x0620…0640 66 08 66 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08   ┆f f; ; ; ;      i i i in n n nt ┆
0x0640…0660 74 08 74 08 74 20 73 08 73 08 73 08 73 69 08 69 08 69 08 69 7a 08 7a 08 7a 08 7a 65 08 65 08 65   ┆t t t s s s si i i iz z z ze e e┆
0x0660…0680 08 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08   ┆ e; ; ; ;       s s s se e e et ┆
0x0680…06a0 74 08 74 08 74 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08   ┆t t tl l l li i i in n n ne e e ┆
0x06a0…06c0 65 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 28 08 28 08 28 08 28 73 08 73   ┆eb b b bu u u uf f f f( ( ( (s s┆
0x06c0…06e0 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61   ┆ s st t t tr r r re e e ea a a a┆
0x06e0…0700 6d 08 6d 08 6d 08 6d 29 08 29 08 29 08 29 0a 20 20 20 20 20 46 08 46 08 46 08 46 49 08 49 08 49   ┆m m m m) ) ) )      F F F FI I I┆
0x0700…0720 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 74   ┆ IL L L LE E E E * * * *s s s st┆
0x0720…0740 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08 6d   ┆ t t tr r r re e e ea a a am m m┆
0x0740…0760 08 6d 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53   ┆ m; ; ; ;  D D D DE E E ES S S S┆
0x0760…0780 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08   ┆C C C CR R R RI I I IP P P PT T ┆
0x0780…07a0 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08   ┆T TI I I IO O O ON N N N      _ ┆
0x07a0…07c0 73 5f 08 65 5f 08 74 5f 08 62 5f 08 75 5f 08 66 20 6d 61 79 20 62 65 20 75 73 65 64 20 61 66 74   ┆s_ e_ t_ b_ u_ f may be used aft┆
0x07c0…07e0 65 72 20 61 20 5f 08 73 5f 08 74 5f 08 72 5f 08 65 5f 08 61 5f 08 6d 20 68 61 73 20 62 65 65 6e   ┆er a _ s_ t_ r_ e_ a_ m has been┆
0x07e0…0800 20 6f 70 65 6e 65 64 20 62 75 74 20 62 65 66 6f 72 65 0a 20 20 20 20 20 69 74 20 69 73 20 72 65   ┆ opened but before      it is re┆
0x0800…0820 61 64 20 6f 72 20 77 72 69 74 74 65 6e 2e 20 20 49 74 20 63 61 75 73 65 73 20 74 68 65 20 61 72   ┆ad or written.  It causes the ar┆
0x0820…0840 72 61 79 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 0a 20 20 20 20 20 5f 08 62 5f 08 75 5f 08 66   ┆ray pointed to by      _ b_ u_ f┆
0x0840…0860 20 74 6f 20 62 65 20 75 73 65 64 20 69 6e 73 74 65 61 64 20 6f 66 20 61 6e 20 61 75 74 6f 6d 61   ┆ to be used instead of an automa┆
0x0860…0880 74 69 63 61 6c 6c 79 20 61 6c 6c 6f 63 61 74 65 64 20 62 75 66 66 65 72 2e 0a 20 20 20 20 20 49   ┆tically allocated buffer.      I┆
0x0880…08a0 66 20 5f 08 62 5f 08 75 5f 08 66 20 69 73 20 74 68 65 20 4e 55 4c 4c 20 70 6f 69 6e 74 65 72 20   ┆f _ b_ u_ f is the NULL pointer ┆
0x08a0…08c0 69 6e 70 75 74 2f 6f 75 74 70 75 74 20 77 69 6c 6c 20 62 65 20 63 6f 6d 70 6c 65 74 65 6c 79 0a   ┆input/output will be completely ┆
0x08c0…08e0 20 20 20 20 20 75 6e 62 75 66 66 65 72 65 64 2e 0a 0a 20 20 20 20 20 57 68 69 6c 65 20 74 68 65   ┆     unbuffered.       While the┆
0x08e0…0900 72 65 20 69 73 20 6e 6f 20 6c 69 6d 69 74 69 74 61 74 69 6f 6e 20 6f 6e 20 74 68 65 20 73 69 7a   ┆re is no limititation on the siz┆
0x0900…0920 65 20 6f 66 20 74 68 65 20 62 75 66 66 65 72 2c 0a 20 20 20 20 20 74 68 65 20 63 6f 6e 73 74 61   ┆e of the buffer,      the consta┆
0x0920…0940 6e 74 20 42 55 46 53 49 5a 2c 20 64 65 66 69 6e 65 64 20 69 6e 20 74 68 65 20 3c 08 3c 08 3c 08   ┆nt BUFSIZ, defined in the < < < ┆
0x0940…0960 3c 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 69 08 69 08 69 08 69 6f 08 6f   ┆<s s s st t t td d d di i i io o┆
0x0960…0980 08 6f 08 6f 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 20 68 65 61 64 65 72   ┆ o o. . . .h h h h> > > > header┆
0x0980…09a0 20 66 69 6c 65 2c 0a 20 20 20 20 20 69 73 20 74 79 70 69 63 61 6c 6c 79 20 61 20 67 6f 6f 64 20   ┆ file,      is typically a good ┆
0x09a0…09c0 62 75 66 66 65 72 20 73 69 7a 65 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 62 75 66   ┆buffer size:            char buf┆
0x09c0…09e0 5b 42 55 46 53 49 5a 5d 3b 0a 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 5f 08 76 5f 08 62 5f   ┆[BUFSIZ];       _ s_ e_ t_ v_ b_┆
0x09e0…0a00 08 75 5f 08 66 20 6d 61 79 20 62 65 20 75 73 65 64 20 61 66 74 65 72 20 61 20 73 74 72 65 61 6d   ┆ u_ f may be used after a stream┆
0x0a00…0a20 20 68 61 73 20 62 65 65 6e 20 6f 70 65 6e 65 64 20 62 75 74 0a 20 20 20 20 20 62 65 66 6f 72 65   ┆ has been opened but      before┆
0x0a20…0a40 20 69 74 20 69 73 20 72 65 61 64 20 6f 72 20 77 72 69 74 74 65 6e 2e 20 20 5f 08 74 5f 08 79 5f   ┆ it is read or written.  _ t_ y_┆
0x0a40…0a60 08 70 5f 08 65 20 64 65 74 65 72 6d 69 6e 65 73 20 68 6f 77 20 5f 08 73 5f 08 74 5f 08 72 5f 08   ┆ p_ e determines how _ s_ t_ r_ ┆
0x0a60…0a80 65 5f 08 61 5f 08 6d 0a 20 20 20 20 20 77 69 6c 6c 20 62 65 20 62 75 66 66 65 72 65 64 2e 20 20   ┆e_ a_ m      will be buffered.  ┆
0x0a80…0aa0 4c 65 67 61 6c 20 76 61 6c 75 65 73 20 66 6f 72 20 5f 08 74 5f 08 79 5f 08 70 5f 08 65 20 28 64   ┆Legal values for _ t_ y_ p_ e (d┆
0x0aa0…0ac0 65 66 69 6e 65 64 20 69 6e 0a 20 20 20 20 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 74 08 74   ┆efined in      < < < <s s s st t┆
0x0ac0…0ae0 08 74 08 74 64 08 64 08 64 08 64 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 2e 08 2e 08 2e 08 2e   ┆ t td d d di i i io o o o. . . .┆
0x0ae0…0b00 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 29 20 61 72 65 3a 0a 0a 20 20 20 20 20 5f 49 4f 46 42   ┆h h h h> > > >) are:       _IOFB┆
0x0b00…0b20 46 20 20 20 20 63 61 75 73 65 73 20 69 6e 70 75 74 2f 6f 75 74 70 75 74 20 74 6f 20 62 65 20 66   ┆F    causes input/output to be f┆
0x0b20…0b40 75 6c 6c 79 20 62 75 66 66 65 72 65 64 2e 0a 0a 20 20 20 20 20 5f 49 4f 4c 42 46 20 20 20 20 63   ┆ully buffered.       _IOLBF    c┆
0x0b40…0b60 61 75 73 65 73 20 6f 75 74 70 75 74 20 74 6f 20 62 65 20 6c 69 6e 65 20 62 75 66 66 65 72 65 64   ┆auses output to be line buffered┆
0x0b60…0b80 3b 20 74 68 65 20 62 75 66 66 65 72 20 77 69 6c 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆; the buffer will               ┆
0x0b80…0ba0 20 62 65 20 66 6c 75 73 68 65 64 20 77 68 65 6e 20 61 20 6e 65 77 6c 69 6e 65 20 69 73 20 77 72   ┆ be flushed when a newline is wr┆
0x0ba0…0bc0 69 74 74 65 6e 2c 20 74 68 65 20 62 75 66 66 65 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆itten, the buffer               ┆
0x0bc0…0be0 20 69 73 20 66 75 6c 6c 2c 20 6f 72 20 69 6e 70 75 74 20 69 73 20 72 65 71 75 65 73 74 65 64 2e   ┆ is full, or input is requested.┆
0x0be0…0c00 0a 0a 20 20 20 20 20 5f 49 4f 4e 42 46 20 20 20 20 63 61 75 73 65 73 20 69 6e 70 75 74 2f 6f 75   ┆       _IONBF    causes input/ou┆
0x0c00…0c20 74 70 75 74 20 74 6f 20 62 65 20 63 6f 6d 70 6c 65 74 65 6c 79 20 75 6e 62 75 66 66 65 72 65 64   ┆tput to be completely unbuffered┆
0x0c20…0c40 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 62 5f 08 75 5f 08 66 20 69 73 20 6e 6f 74 20 74 68 65 20   ┆.       If _ b_ u_ f is not the ┆
0x0c40…0c60 4e 55 4c 4c 20 70 6f 69 6e 74 65 72 2c 20 74 68 65 20 61 72 72 61 79 20 69 74 20 70 6f 69 6e 74   ┆NULL pointer, the array it point┆
0x0c60…0c80 73 20 74 6f 20 77 69 6c 6c 0a 20 20 20 20 20 62 65 20 75 73 65 64 20 66 6f 72 20 62 75 66 66 65   ┆s to will      be used for buffe┆
0x0c80…0ca0 72 69 6e 67 2c 20 69 6e 73 74 65 61 64 20 6f 66 20 61 6e 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c   ┆ring, instead of an automaticall┆
0x0ca0…0cc0 79 20 61 6c 6c 6f 63 61 74 65 64 0a 20 20 20 20 20 62 75 66 66 65 72 2e 20 20 5f 08 73 5f 08 69   ┆y allocated      buffer.  _ s_ i┆
0x0cc0…0ce0 5f 08 7a 5f 08 65 20 73 70 65 63 69 66 69 65 73 20 74 68 65 20 73 69 7a 65 20 6f 66 20 74 68 65   ┆_ z_ e specifies the size of the┆
0x0ce0…0d00 20 62 75 66 66 65 72 20 74 6f 20 62 65 20 75 73 65 64 2e 0a 20 20 20 20 20 49 66 20 69 6e 70 75   ┆ buffer to be used.      If inpu┆
0x0d00…0d20 74 2f 6f 75 74 70 75 74 20 69 73 20 75 6e 62 75 66 66 65 72 65 64 2c 20 5f 08 62 5f 08 75 5f 08   ┆t/output is unbuffered, _ b_ u_ ┆
0x0d20…0d40 66 20 61 6e 64 20 5f 08 73 5f 08 69 5f 08 7a 5f 08 65 20 61 72 65 20 69 67 6e 6f 72 65 64 2e 0a   ┆f and _ s_ i_ z_ e are ignored. ┆
0x0d40…0d60 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 5f 08 62 5f 08 75 5f 08 66 5f 08 66 5f 08 65 5f 08   ┆      _ s_ e_ t_ b_ u_ f_ f_ e_ ┆
0x0d60…0d80 72 2c 20 61 6e 20 61 6c 74 65 72 6e 61 74 65 20 66 6f 72 6d 20 6f 66 20 5f 08 73 5f 08 65 5f 08   ┆r, an alternate form of _ s_ e_ ┆
0x0d80…0da0 74 5f 08 62 5f 08 75 5f 08 66 2c 20 69 73 20 75 73 65 64 20 61 66 74 65 72 20 61 0a 20 20 20 20   ┆t_ b_ u_ f, is used after a     ┆
0x0da0…0dc0 20 73 74 72 65 61 6d 20 68 61 73 20 62 65 65 6e 20 6f 70 65 6e 65 64 20 62 75 74 20 62 65 66 6f   ┆ stream has been opened but befo┆
0x0dc0…0de0 72 65 20 69 74 20 69 73 20 72 65 61 64 20 6f 72 20 77 72 69 74 74 65 6e 2e 0a 20 20 20 20 20 54   ┆re it is read or written.      T┆
0x0de0…0e00 68 65 20 63 68 61 72 61 63 74 65 72 20 61 72 72 61 79 20 5f 08 62 5f 08 75 5f 08 66 20 77 68 6f   ┆he character array _ b_ u_ f who┆
0x0e00…0e20 73 65 20 73 69 7a 65 20 69 73 20 64 65 74 65 72 6d 69 6e 65 64 20 62 79 20 74 68 65 20 5f 08 73   ┆se size is determined by the _ s┆
0x0e20…0e40 5f 08 69 5f 08 7a 5f 08 65 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 61 72 67 75 6d 65 6e 74 20 69 73   ┆_ i_ z_ e            argument is┆
0x0e40…0e60 20 75 73 65 64 20 69 6e 73 74 65 61 64 20 6f 66 20 61 6e 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c   ┆ used instead of an automaticall┆
0x0e60…0e80 79 20 61 6c 6c 6f 63 61 74 65 64 0a 20 20 20 20 20 62 75 66 66 65 72 2e 20 20 49 66 20 5f 08 62   ┆y allocated      buffer.  If _ b┆
0x0e80…0ea0 5f 08 75 5f 08 66 20 69 73 20 74 68 65 20 63 6f 6e 73 74 61 6e 74 20 70 6f 69 6e 74 65 72 20 4e   ┆_ u_ f is the constant pointer N┆
0x0ea0…0ec0 55 4c 4c 2c 20 69 6e 70 75 74 2f 6f 75 74 70 75 74 0a 20 20 20 20 20 77 69 6c 6c 20 62 65 20 63   ┆ULL, input/output      will be c┆
0x0ec0…0ee0 6f 6d 70 6c 65 74 65 6c 79 20 75 6e 62 75 66 66 65 72 65 64 2e 0a 0a 20 20 20 20 20 5f 08 73 5f   ┆ompletely unbuffered.       _ s_┆
0x0ee0…0f00 08 65 5f 08 74 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 5f 08 62 5f 08 75 5f 08 66 20 69 73 20 75 73   ┆ e_ t_ l_ i_ n_ e_ b_ u_ f is us┆
0x0f00…0f20 65 64 20 74 6f 20 63 68 61 6e 67 65 20 5f 08 73 5f 08 74 5f 08 64 5f 08 6f 5f 08 75 5f 08 74 20   ┆ed to change _ s_ t_ d_ o_ u_ t ┆
0x0f20…0f40 6f 72 20 5f 08 73 5f 08 74 5f 08 64 5f 08 65 5f 08 72 5f 08 72 20 66 72 6f 6d 20 62 6c 6f 63 6b   ┆or _ s_ t_ d_ e_ r_ r from block┆
0x0f40…0f60 0a 20 20 20 20 20 62 75 66 66 65 72 65 64 20 6f 72 20 75 6e 62 75 66 66 65 72 65 64 20 74 6f 20   ┆      buffered or unbuffered to ┆
0x0f60…0f80 6c 69 6e 65 20 62 75 66 66 65 72 65 64 2e 20 20 55 6e 6c 69 6b 65 20 5f 08 73 5f 08 65 5f 08 74   ┆line buffered.  Unlike _ s_ e_ t┆
0x0f80…0fa0 5f 08 62 5f 08 75 5f 08 66 20 61 6e 64 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 5f 08 62 5f   ┆_ b_ u_ f and      _ s_ e_ t_ b_┆
0x0fa0…0fc0 08 75 5f 08 66 5f 08 66 5f 08 65 5f 08 72 20 69 74 20 63 61 6e 20 62 65 20 75 73 65 64 20 61 74   ┆ u_ f_ f_ e_ r it can be used at┆
0x0fc0…0fe0 20 61 6e 79 20 74 69 6d 65 20 74 68 61 74 20 74 68 65 20 66 69 6c 65 20 64 65 73 63 72 69 70 2d   ┆ any time that the file descrip-┆
0x0fe0…1000 0a 20 20 20 20 20 74 6f 72 20 69 73 20 61 63 74 69 76 65 2e 0a 0a 20 20 20 20 20 41 20 66 69 6c   ┆      tor is active.       A fil┆
0x1000…1020 65 20 63 61 6e 20 62 65 20 63 68 61 6e 67 65 64 20 66 72 6f 6d 20 75 6e 62 75 66 66 65 72 65 64   ┆e can be changed from unbuffered┆
0x1020…1040 20 6f 72 20 6c 69 6e 65 20 62 75 66 66 65 72 65 64 20 74 6f 0a 20 20 20 20 20 62 6c 6f 63 6b 20   ┆ or line buffered to      block ┆
0x1040…1060 62 75 66 66 65 72 65 64 20 62 79 20 75 73 69 6e 67 20 5f 08 66 5f 08 72 5f 08 65 5f 08 6f 5f 08   ┆buffered by using _ f_ r_ e_ o_ ┆
0x1060…1080 70 5f 08 65 5f 08 6e 20 28 73 65 65 20 5f 08 66 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 28 33 53 29   ┆p_ e_ n (see _ f_ o_ p_ e_ n(3S)┆
0x1080…10a0 29 2e 20 20 41 20 66 69 6c 65 20 63 61 6e 0a 20 20 20 20 20 62 65 20 63 68 61 6e 67 65 64 20 66   ┆).  A file can      be changed f┆
0x10a0…10c0 72 6f 6d 20 62 6c 6f 63 6b 20 62 75 66 66 65 72 65 64 20 6f 72 20 6c 69 6e 65 20 62 75 66 66 65   ┆rom block buffered or line buffe┆
0x10c0…10e0 72 65 64 20 74 6f 20 75 6e 62 75 66 2d 0a 20 20 20 20 20 66 65 72 65 64 20 62 79 20 75 73 69 6e   ┆red to unbuf-      fered by usin┆
0x10e0…1100 67 20 5f 08 66 5f 08 72 5f 08 65 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 20 66 6f 6c 6c 6f 77 65 64   ┆g _ f_ r_ e_ o_ p_ e_ n followed┆
0x1100…1120 20 62 79 20 5f 08 73 5f 08 65 5f 08 74 5f 08 62 5f 08 75 5f 08 66 20 77 69 74 68 20 61 20 62 75   ┆ by _ s_ e_ t_ b_ u_ f with a bu┆
0x1120…1140 66 66 65 72 0a 20 20 20 20 20 61 72 67 75 6d 65 6e 74 20 6f 66 20 4e 55 4c 4c 20 2e 0a 0a 53 08   ┆ffer      argument of NULL .  S ┆
0x1140…1160 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c   ┆S S SE E E EE E E E A A A AL L L┆
0x1160…1180 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75   ┆ LS S S SO O O O      Library Fu┆
0x1180…11a0 6e 63 74 69 6f 6e 73 20 28 33 29 3a 20 20 66 6f 70 65 6e 2c 20 67 65 74 63 2c 20 70 75 74 63 2c   ┆nctions (3):  fopen, getc, putc,┆
0x11a0…11c0 20 6d 61 6c 6c 6f 63 2c 20 66 63 6c 6f 73 65 2c 0a 20 20 20 20 20 70 75 74 73 2c 20 70 72 69 6e   ┆ malloc, fclose,      puts, prin┆
0x11c0…11e0 74 66 2c 20 66 72 65 61 64 0a 0a 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54   ┆tf, fread  N N N NO O O OT T T T┆
0x11e0…1200 45 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 72 65 65 20 74 79 70 65 73 20   ┆E E E ES S S S      Three types ┆
0x1200…1220 6f 66 20 62 75 66 66 65 72 69 6e 67 20 61 72 65 20 61 76 61 69 6c 61 62 6c 65 3a 20 75 6e 62 75   ┆of buffering are available: unbu┆
0x1220…1240 66 66 65 72 65 64 2c 20 62 6c 6f 63 6b 0a 20 20 20 20 20 62 75 66 66 65 72 65 64 2c 20 61 6e 64   ┆ffered, block      buffered, and┆
0x1240…1260 20 6c 69 6e 65 20 62 75 66 66 65 72 65 64 2e 20 20 57 68 65 6e 20 61 6e 20 6f 75 74 70 75 74 20   ┆ line buffered.  When an output ┆
0x1260…1280 73 74 72 65 61 6d 20 69 73 0a 20 20 20 20 20 75 6e 62 75 66 66 65 72 65 64 2c 20 69 6e 66 6f 72   ┆stream is      unbuffered, infor┆
0x1280…12a0 6d 61 74 69 6f 6e 20 61 70 70 65 61 72 73 20 6f 6e 20 74 68 65 20 64 65 73 74 69 6e 61 74 69 6f   ┆mation appears on the destinatio┆
0x12a0…12c0 6e 20 66 69 6c 65 20 6f 72 0a 20 20 20 20 20 74 65 72 6d 69 6e 61 6c 20 61 73 20 73 6f 6f 6e 20   ┆n file or      terminal as soon ┆
0x12c0…12e0 61 73 20 77 72 69 74 74 65 6e 3b 20 77 68 65 6e 20 69 74 20 69 73 20 62 6c 6f 63 6b 20 62 75 66   ┆as written; when it is block buf┆
0x12e0…1300 66 65 72 65 64 20 6d 61 6e 79 0a 20 20 20 20 20 63 68 61 72 61 63 74 65 72 73 20 61 72 65 20 73   ┆fered many      characters are s┆
0x1300…1320 61 76 65 64 20 75 70 20 61 6e 64 20 77 72 69 74 74 65 6e 20 61 73 20 61 20 62 6c 6f 63 6b 3b 20   ┆aved up and written as a block; ┆
0x1320…1340 77 68 65 6e 20 69 74 20 69 73 0a 20 20 20 20 20 6c 69 6e 65 20 62 75 66 66 65 72 65 64 20 63 68   ┆when it is      line buffered ch┆
0x1340…1360 61 72 61 63 74 65 72 73 20 61 72 65 20 73 61 76 65 64 20 75 70 20 75 6e 74 69 6c 20 61 20 6e 65   ┆aracters are saved up until a ne┆
0x1360…1380 77 6c 69 6e 65 20 69 73 0a 20 20 20 20 20 65 6e 63 6f 75 6e 74 65 72 65 64 20 6f 72 20 69 6e 70   ┆wline is      encountered or inp┆
0x1380…13a0 75 74 20 69 73 20 72 65 61 64 20 66 72 6f 6d 20 73 74 64 69 6e 2e 20 20 5f 08 66 5f 08 66 5f 08   ┆ut is read from stdin.  _ f_ f_ ┆
0x13a0…13c0 6c 5f 08 75 5f 08 73 5f 08 68 20 6d 61 79 20 62 65 20 75 73 65 64 0a 20 20 20 20 20 74 6f 20 66   ┆l_ u_ s_ h may be used      to f┆
0x13c0…13e0 6f 72 63 65 20 74 68 65 20 62 6c 6f 63 6b 20 6f 75 74 20 65 61 72 6c 79 2e 20 20 4e 6f 72 6d 61   ┆orce the block out early.  Norma┆
0x13e0…1400 6c 6c 79 20 61 6c 6c 20 66 69 6c 65 73 20 61 72 65 20 62 6c 6f 63 6b 0a 20 20 20 20 20 62 75 66   ┆lly all files are block      buf┆
0x1400…1420 66 65 72 65 64 2e 20 20 41 20 62 75 66 66 65 72 20 69 73 20 6f 62 74 61 69 6e 65 64 20 66 72 6f   ┆fered.  A buffer is obtained fro┆
0x1420…1440 6d 20 5f 08 6d 5f 08 61 5f 08 6c 5f 08 6c 5f 08 6f 5f 08 63 20 75 70 6f 6e 20 74 68 65 20 66 69   ┆m _ m_ a_ l_ l_ o_ c upon the fi┆
0x1440…1460 72 73 74 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 63 20 6f 72 20 5f 08 70 5f 08 75 5f   ┆rst      _ g_ e_ t_ c or _ p_ u_┆
0x1460…1480 08 74 5f 08 63 20 6f 6e 20 74 68 65 20 66 69 6c 65 2e 20 20 49 66 20 74 68 65 20 73 74 61 6e 64   ┆ t_ c on the file.  If the stand┆
0x1480…14a0 61 72 64 20 73 74 72 65 61 6d 20 5f 08 73 5f 08 74 5f 08 64 5f 08 6f 5f 08 75 5f 08 74 0a 20 20   ┆ard stream _ s_ t_ d_ o_ u_ t   ┆
0x14a0…14c0 20 20 20 72 65 66 65 72 73 20 74 6f 20 61 20 74 65 72 6d 69 6e 61 6c 20 69 74 20 69 73 20 6c 69   ┆   refers to a terminal it is li┆
0x14c0…14e0 6e 65 20 62 75 66 66 65 72 65 64 2e 20 20 54 68 65 20 73 74 61 6e 64 61 72 64 0a 20 20 20 20 20   ┆ne buffered.  The standard      ┆
0x14e0…1500 73 74 72 65 61 6d 20 5f 08 73 5f 08 74 5f 08 64 5f 08 65 5f 08 72 5f 08 72 20 69 73 20 61 6c 77   ┆stream _ s_ t_ d_ e_ r_ r is alw┆
0x1500…1520 61 79 73 20 75 6e 62 75 66 66 65 72 65 64 2e 0a 0a 20 20 20 20 20 41 20 63 6f 6d 6d 6f 6e 20 73   ┆ays unbuffered.       A common s┆
0x1520…1540 6f 75 72 63 65 20 6f 66 20 65 72 72 6f 72 20 69 73 20 61 6c 6c 6f 63 61 74 69 6e 67 20 62 75 66   ┆ource of error is allocating buf┆
0x1540…1560 66 65 72 20 73 70 61 63 65 20 61 73 20 61 6e 0a 20 20 20 20 20 60 60 61 75 74 6f 6d 61 74 69 63   ┆fer space as an      ``automatic┆
0x1560…1580 27 27 20 76 61 72 69 61 62 6c 65 20 69 6e 20 61 20 63 6f 64 65 20 62 6c 6f 63 6b 2c 20 61 6e 64   ┆'' variable in a code block, and┆
0x1580…15a0 20 74 68 65 6e 20 66 61 69 6c 69 6e 67 20 74 6f 0a 20 20 20 20 20 63 6c 6f 73 65 20 74 68 65 20   ┆ then failing to      close the ┆
0x15a0…15c0 73 74 72 65 61 6d 20 69 6e 20 74 68 65 20 73 61 6d 65 20 62 6c 6f 63 6b 2e 0a 0a 20 20 20 20 20   ┆stream in the same block.       ┆
0x15c0…15e0 50 61 72 74 73 20 6f 66 20 5f 08 62 5f 08 75 5f 08 66 20 77 69 6c 6c 20 62 65 20 75 73 65 64 20   ┆Parts of _ b_ u_ f will be used ┆
0x15e0…1600 66 6f 72 20 69 6e 74 65 72 6e 61 6c 20 62 6f 6f 6b 6b 65 65 70 69 6e 67 20 6f 66 20 74 68 65 0a   ┆for internal bookkeeping of the ┆
0x1600…1620 20 20 20 20 20 73 74 72 65 61 6d 20 61 6e 64 2c 20 74 68 65 72 65 66 6f 72 65 2c 20 5f 08 62 5f   ┆     stream and, therefore, _ b_┆
0x1620…1640 08 75 5f 08 66 20 77 69 6c 6c 20 63 6f 6e 74 61 69 6e 20 6c 65 73 73 20 74 68 61 6e 20 5f 08 73   ┆ u_ f will contain less than _ s┆
0x1640…1660 5f 08 69 5f 08 7a 5f 08 65 20 62 79 74 65 73 0a 20 20 20 20 20 77 68 65 6e 20 66 75 6c 6c 2e 20   ┆_ i_ z_ e bytes      when full. ┆
0x1660…1680 20 49 74 20 69 73 20 72 65 63 6f 6d 6d 65 6e 64 65 64 20 74 68 61 74 20 74 68 65 20 61 75 74 6f   ┆ It is recommended that the auto┆
0x1680…16a0 6d 61 74 69 63 61 6c 6c 79 20 61 6c 6c 6f 2d 0a 20 20 20 20 20 63 61 74 65 64 20 62 75 66 66 65   ┆matically allo-      cated buffe┆
0x16a0…16c0 72 20 69 73 20 75 73 65 64 20 77 68 65 6e 20 75 73 69 6e 67 20 5f 08 73 5f 08 65 5f 08 74 5f 08   ┆r is used when using _ s_ e_ t_ ┆
0x16c0…16e0 76 5f 08 62 5f 08 75 5f 08 66 2e 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 73 5f 08 65 5f 08 74 5f   ┆v_ b_ u_ f.       The _ s_ e_ t_┆
0x16e0…1700 08 62 5f 08 75 5f 08 66 5f 08 66 5f 08 65 5f 08 72 20 61 6e 64 20 5f 08 73 5f 08 65 5f 08 74 5f   ┆ b_ u_ f_ f_ e_ r and _ s_ e_ t_┆
0x1700…1720 08 6c 5f 08 69 5f 08 6e 5f 08 65 5f 08 62 5f 08 75 5f 08 66 20 66 75 6e 63 74 69 6f 6e 73 20 61   ┆ l_ i_ n_ e_ b_ u_ f functions a┆
0x1720…1740 72 65 20 6e 6f 74 20 6d 65 6e 74 69 6f 6e 65 64 20 69 6e 0a 20 20 20 20 20 58 2f 4f 70 65 6e 2c   ┆re not mentioned in      X/Open,┆
0x1740…1760 20 61 6e 64 20 63 61 6e 20 6f 6e 6c 79 20 62 65 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20   ┆ and can only be expected to be ┆
0x1760…1780 66 6f 75 6e 64 20 6f 6e 20 42 53 44 20 76 65 72 73 69 6f 6e 73 0a 20 20 20 20 20 6f 66 20 55 4e   ┆found on BSD versions      of UN┆
0x1780…17a0 49 58 2c 20 61 6e 64 20 61 72 65 20 74 68 75 73 20 6e 6f 74 20 72 65 63 6f 6d 6d 65 6e 64 65 64   ┆IX, and are thus not recommended┆
0x17a0…17c0 20 66 6f 72 20 70 72 6f 67 72 61 6d 73 20 74 68 61 74 0a 20 20 20 20 20 73 68 6f 75 6c 64 20 62   ┆ for programs that      should b┆
0x17c0…17e0 65 20 70 6f 72 74 61 62 6c 65 2e 0a 0a 41 75 67 75 73 74 20 31 39 39 31 20 20 20 20 20 20 20 20   ┆e portable.  August 1991        ┆
0x17e0…1800 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d   ┆                     TX Programm┆
0x1800…181b 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                  ┆er's Reference             ┆