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: f

⟦8f012d451⟧

    Length: 5338 (0x14da)
    Names: »fseek.3s«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat3/fseek.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 20 66 73 65 65 6b 28 33 73 29 0a 0a 0a 0a   ┆ions               fseek(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 66 73 65 65 6b 2c 20 72 65 77 69 6e 64 2c 20 66 74 65 6c 6c 20 2d 20 72 65 70 6f 73 69 74   ┆  fseek, rewind, ftell - reposit┆
0x00a0…00c0 69 6f 6e 20 61 20 66 69 6c 65 20 70 6f 69 6e 74 65 72 20 69 6e 20 61 20 73 74 72 65 61 6d 0a 0a   ┆ion a file pointer in a stream  ┆
0x00c0…00e0 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08   ┆S S S SY Y Y YN N N NT T T TA A ┆
0x00e0…0100 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08   ┆A AX X X X      # # # #i i i in ┆
0x0100…0120 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08   ┆n n nc c c cl l l lu u u ud d d ┆
0x0120…0140 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08   ┆de e e e < < < <s s s st t t td ┆
0x0140…0160 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 68 08 68 08 68 08   ┆d d di i i io o o o. . . .h h h ┆
0x0160…0180 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74   ┆h> > > >       i i i in n n nt t┆
0x0180…01a0 08 74 08 74 20 66 08 66 08 66 08 66 73 08 73 08 73 08 73 65 08 65 08 65 08 65 65 08 65 08 65 08   ┆ t t f f f fs s s se e e ee e e ┆
0x01a0…01c0 65 6b 08 6b 08 6b 08 6b 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72   ┆ek k k k( ( ( (s s s st t t tr r┆
0x01c0…01e0 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 2c 08 2c 08 2c 08 2c   ┆ r re e e ea a a am m m m, , , ,┆
0x01e0…0200 20 6f 08 6f 08 6f 08 6f 66 08 66 08 66 08 66 66 08 66 08 66 08 66 73 08 73 08 73 08 73 65 08 65   ┆ o o o of f f ff f f fs s s se e┆
0x0200…0220 08 65 08 65 74 08 74 08 74 08 74 2c 08 2c 08 2c 08 2c 20 70 08 70 08 70 08 70 74 08 74 08 74 08   ┆ e et t t t, , , , p p p pt t t ┆
0x0220…0240 74 72 08 72 08 72 08 72 6e 08 6e 08 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65   ┆tr r r rn n n na a a am m m me e┆
0x0240…0260 08 65 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   ┆ e e) ) ) )      F F F FI I I IL┆
0x0260…0280 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 08 74 08   ┆ L L LE E E E * * * *s s s st t ┆
0x0280…02a0 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 6d 3b   ┆t tr r r re e e ea a a am m m m;┆
0x02a0…02c0 08 3b 08 3b 08 3b 0a 20 20 20 20 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08   ┆ ; ; ;      l l l lo o o on n n ┆
0x02c0…02e0 6e 67 08 67 08 67 08 67 20 6f 08 6f 08 6f 08 6f 66 08 66 08 66 08 66 66 08 66 08 66 08 66 73 08   ┆ng g g g o o o of f f ff f f fs ┆
0x02e0…0300 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20   ┆s s se e e et t t t; ; ; ;      ┆
0x0300…0320 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 70 08 70 08 70 08 70 74 08 74   ┆i i i in n n nt t t t p p p pt t┆
0x0320…0340 08 74 08 74 72 08 72 08 72 08 72 6e 08 6e 08 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d   ┆ t tr r r rn n n na a a am m m m┆
0x0340…0360 65 08 65 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 76 08 76 08 76 08 76 6f 08 6f 08   ┆e e e e; ; ; ;       v v v vo o ┆
0x0360…0380 6f 08 6f 69 08 69 08 69 08 69 64 08 64 08 64 08 64 20 72 08 72 08 72 08 72 65 08 65 08 65 08 65   ┆o oi i i id d d d r r r re e e e┆
0x0380…03a0 77 08 77 08 77 08 77 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 64 08 64 08 64 08 64 28 08 28 08   ┆w w w wi i i in n n nd d d d( ( ┆
0x03a0…03c0 28 08 28 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┆
0x03c0…03e0 08 61 08 61 08 61 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   ┆ a a am m m m) ) ) )      F F F ┆
0x03e0…0400 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 73 08   ┆FI I I IL L L LE E E E * * * *s ┆
0x0400…0420 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 61 08   ┆s s st t t tr r r re e e ea a a ┆
0x0420…0440 61 6d 08 6d 08 6d 08 6d 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 6c 08 6c 08 6c 08 6c 6f 08 6f   ┆am m m m; ; ; ;       l l l lo o┆
0x0440…0460 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 66 08 66 08 66 08 66 74 08 74 08 74 08   ┆ o on n n ng g g g f f f ft t t ┆
0x0460…0480 74 65 08 65 08 65 08 65 6c 08 6c 08 6c 08 6c 6c 08 6c 08 6c 08 6c 28 08 28 08 28 08 28 73 08 73   ┆te e e el l l ll l l l( ( ( (s s┆
0x0480…04a0 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┆
0x04a0…04c0 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┆
0x04c0…04e0 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┆
0x04e0…0500 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┆
0x0500…0520 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┆
0x0520…0540 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 ┆
0x0540…0560 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      _ ┆
0x0560…0580 66 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 73 65 74 73 20 74 68 65 20 70 6f 73 69 74 69 6f 6e 20   ┆f_ s_ e_ e_ k sets the position ┆
0x0580…05a0 6f 66 20 74 68 65 20 6e 65 78 74 20 69 6e 70 75 74 20 6f 72 20 6f 75 74 70 75 74 20 6f 70 65 72   ┆of the next input or output oper┆
0x05a0…05c0 61 2d 0a 20 20 20 20 20 74 69 6f 6e 20 6f 6e 20 74 68 65 20 5f 08 73 5f 08 74 5f 08 72 5f 08 65   ┆a-      tion on the _ s_ t_ r_ e┆
0x05c0…05e0 5f 08 61 5f 08 6d 2e 20 20 54 68 65 20 6e 65 77 20 70 6f 73 69 74 69 6f 6e 20 69 73 20 61 74 20   ┆_ a_ m.  The new position is at ┆
0x05e0…0600 74 68 65 20 73 69 67 6e 65 64 20 64 69 73 2d 0a 20 20 20 20 20 74 61 6e 63 65 20 5f 08 6f 5f 08   ┆the signed dis-      tance _ o_ ┆
0x0600…0620 66 5f 08 66 5f 08 73 5f 08 65 5f 08 74 20 62 79 74 65 73 20 66 72 6f 6d 20 74 68 65 20 62 65 67   ┆f_ f_ s_ e_ t bytes from the beg┆
0x0620…0640 69 6e 6e 69 6e 67 2c 20 66 72 6f 6d 20 74 68 65 20 63 75 72 72 65 6e 74 0a 20 20 20 20 20 70 6f   ┆inning, from the current      po┆
0x0640…0660 73 69 74 69 6f 6e 2c 20 6f 72 20 66 72 6f 6d 20 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 66   ┆sition, or from the end of the f┆
0x0660…0680 69 6c 65 2c 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 61 0a 20 20 20 20 20 5f 08 70 5f 08 74 5f   ┆ile, according to a      _ p_ t_┆
0x0680…06a0 08 72 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 76 61 6c 75 65 20 6f 66 20 53 45 45 4b 5f 53 45 54   ┆ r_ n_ a_ m_ e value of SEEK_SET┆
0x06a0…06c0 2c 20 53 45 45 4b 5f 43 55 52 2c 20 6f 72 20 53 45 45 4b 5f 45 4e 44 20 28 64 65 66 69 6e 65 64   ┆, SEEK_CUR, or SEEK_END (defined┆
0x06c0…06e0 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 08 74 08 74 64 08   ┆ in      < < < <s s s st t t td ┆
0x06e0…0700 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 68 08 68 08 68 08   ┆d d di i i io o o o. . . .h h h ┆
0x0700…0720 68 3e 08 3e 08 3e 08 3e 29 20 61 73 20 66 6f 6c 6c 6f 77 73 3a 0a 0a 20 20 20 20 20 53 45 45 4b   ┆h> > > >) as follows:       SEEK┆
0x0720…0740 5f 53 45 54 20 20 20 20 20 20 20 73 65 74 20 70 6f 73 69 74 69 6f 6e 20 65 71 75 61 6c 20 74 6f   ┆_SET       set position equal to┆
0x0740…0760 20 5f 08 6f 5f 08 66 5f 08 66 5f 08 73 5f 08 65 5f 08 74 20 62 79 74 65 73 2e 0a 0a 20 20 20 20   ┆ _ o_ f_ f_ s_ e_ t bytes.      ┆
0x0760…0780 20 53 45 45 4b 5f 43 55 52 20 20 20 20 20 20 20 73 65 74 20 70 6f 73 69 74 69 6f 6e 20 74 6f 20   ┆ SEEK_CUR       set position to ┆
0x0780…07a0 63 75 72 72 65 6e 74 20 6c 6f 63 61 74 69 6f 6e 20 70 6c 75 73 20 5f 08 6f 5f 08 66 5f 08 66 5f   ┆current location plus _ o_ f_ f_┆
0x07a0…07c0 08 73 5f 08 65 5f 08 74 2e 0a 0a 20 20 20 20 20 53 45 45 4b 5f 45 4e 44 20 20 20 20 20 20 20 73   ┆ s_ e_ t.       SEEK_END       s┆
0x07c0…07e0 65 74 20 70 6f 73 69 74 69 6f 6e 20 74 6f 20 45 08 45 08 45 08 45 4f 08 4f 08 4f 08 4f 46 08 46   ┆et position to E E E EO O O OF F┆
0x07e0…0800 08 46 08 46 20 70 6c 75 73 20 5f 08 6f 5f 08 66 5f 08 66 5f 08 73 5f 08 65 5f 08 74 2e 0a 0a 20   ┆ F F plus _ o_ f_ f_ s_ e_ t.   ┆
0x0800…0820 20 20 20 20 5f 08 66 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 61 6c 6c 6f 77 73 20 74 68 65 20 66   ┆    _ f_ s_ e_ e_ k allows the f┆
0x0820…0840 69 6c 65 20 70 6f 73 69 74 69 6f 6e 20 69 6e 64 69 63 61 74 6f 72 20 74 6f 20 62 65 20 73 65 74   ┆ile position indicator to be set┆
0x0840…0860 20 62 65 79 6f 6e 64 0a 20 20 20 20 20 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 65 78 69 73   ┆ beyond      the end of the exis┆
0x0860…0880 74 69 6e 67 20 64 61 74 61 20 69 6e 20 74 68 65 20 66 69 6c 65 2e 20 20 49 66 20 64 61 74 61 20   ┆ting data in the file.  If data ┆
0x0880…08a0 69 73 20 6c 61 74 65 72 0a 20 20 20 20 20 77 72 69 74 74 65 6e 20 61 74 20 74 68 69 73 20 70 6f   ┆is later      written at this po┆
0x08a0…08c0 69 6e 74 2c 20 73 75 62 73 65 71 75 65 6e 74 20 72 65 61 64 73 20 6f 66 20 64 61 74 61 20 69 6e   ┆int, subsequent reads of data in┆
0x08c0…08e0 20 74 68 65 20 67 61 70 0a 20 20 20 20 20 77 69 6c 6c 20 72 65 74 75 72 6e 20 7a 65 72 6f 20 75   ┆ the gap      will return zero u┆
0x08e0…0900 6e 74 69 6c 20 64 61 74 61 20 69 73 20 61 63 74 75 61 6c 6c 79 20 77 72 69 74 74 65 6e 20 69 6e   ┆ntil data is actually written in┆
0x0900…0920 74 6f 20 74 68 65 0a 20 20 20 20 20 67 61 70 2e 20 20 5f 08 66 5f 08 73 5f 08 65 5f 08 65 5f 08   ┆to the      gap.  _ f_ s_ e_ e_ ┆
0x0920…0940 6b 2c 20 62 79 20 69 74 73 65 6c 66 2c 20 64 6f 65 73 20 6e 6f 74 20 65 78 74 65 6e 64 20 74 68   ┆k, by itself, does not extend th┆
0x0940…0960 65 20 73 69 7a 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 5f   ┆e size of the      file.       _┆
0x0960…0980 08 72 5f 08 65 5f 08 77 5f 08 69 5f 08 6e 5f 08 64 28 5f 08 73 5f 08 74 5f 08 72 5f 08 65 5f 08   ┆ r_ e_ w_ i_ n_ d(_ s_ t_ r_ e_ ┆
0x0980…09a0 61 5f 08 6d 29 20 69 73 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 3a 0a 0a 20 20 20 20 20 20 20   ┆a_ m) is equivalent to:         ┆
0x09a0…09c0 20 20 20 28 76 6f 69 64 29 66 73 65 65 6b 20 28 73 74 72 65 61 6d 2c 20 30 4c 2c 20 53 45 45 4b   ┆   (void)fseek (stream, 0L, SEEK┆
0x09c0…09e0 5f 53 45 54 29 3b 0a 0a 20 20 20 20 20 65 78 63 65 70 74 20 74 68 61 74 20 5f 08 72 5f 08 65 5f   ┆_SET);       except that _ r_ e_┆
0x09e0…0a00 08 77 5f 08 69 5f 08 6e 5f 08 64 20 61 6c 73 6f 20 63 6c 65 61 72 73 20 74 68 65 20 65 72 72 6f   ┆ w_ i_ n_ d also clears the erro┆
0x0a00…0a20 72 20 69 6e 64 69 63 61 74 6f 72 20 6f 6e 0a 20 20 20 20 20 5f 08 73 5f 08 74 5f 08 72 5f 08 65   ┆r indicator on      _ s_ t_ r_ e┆
0x0a20…0a40 5f 08 61 5f 08 6d 2e 0a 0a 20 20 20 20 20 5f 08 66 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 61 6e   ┆_ a_ m.       _ f_ s_ e_ e_ k an┆
0x0a40…0a60 64 20 5f 08 72 5f 08 65 5f 08 77 5f 08 69 5f 08 6e 5f 08 64 20 63 6c 65 61 72 20 74 68 65 20 45   ┆d _ r_ e_ w_ i_ n_ d clear the E┆
0x0a60…0a80 08 45 08 45 08 45 4f 08 4f 08 4f 08 4f 46 08 46 08 46 08 46 20 69 6e 64 69 63 61 74 6f 72 20 61   ┆ E E EO O O OF F F F indicator a┆
0x0a80…0aa0 6e 64 20 75 6e 64 6f 20 61 6e 79 0a 20 20 20 20 20 65 66 66 65 63 74 73 20 6f 66 20 5f 08 75 5f   ┆nd undo any      effects of _ u_┆
0x0aa0…0ac0 08 6e 5f 08 67 5f 08 65 5f 08 74 5f 08 63 20 6f 6e 20 5f 08 73 5f 08 74 5f 08 72 5f 08 65 5f 08   ┆ n_ g_ e_ t_ c on _ s_ t_ r_ e_ ┆
0x0ac0…0ae0 61 5f 08 6d 2e 20 20 41 66 74 65 72 20 5f 08 66 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 6f 72 20   ┆a_ m.  After _ f_ s_ e_ e_ k or ┆
0x0ae0…0b00 5f 08 72 5f 08 65 5f 08 77 5f 08 69 5f 08 6e 5f 08 64 2c 20 74 68 65 0a 20 20 20 20 20 6e 65 78   ┆_ r_ e_ w_ i_ n_ d, the      nex┆
0x0b00…0b20 74 20 6f 70 65 72 61 74 69 6f 6e 20 6f 6e 20 61 20 66 69 6c 65 20 6f 70 65 6e 65 64 20 66 6f 72   ┆t operation on a file opened for┆
0x0b20…0b40 20 75 70 64 61 74 65 20 6d 61 79 20 62 65 20 65 69 74 68 65 72 0a 20 20 20 20 20 69 6e 70 75 74   ┆ update may be either      input┆
0x0b40…0b60 20 6f 72 20 6f 75 74 70 75 74 2e 0a 0a 20 20 20 20 20 49 66 20 5f 08 73 5f 08 74 5f 08 72 5f 08   ┆ or output.       If _ s_ t_ r_ ┆
0x0b60…0b80 65 5f 08 61 5f 08 6d 20 69 73 20 77 72 69 74 61 62 6c 65 20 61 6e 64 20 62 75 66 66 65 72 65 64   ┆e_ a_ m is writable and buffered┆
0x0b80…0ba0 20 64 61 74 61 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 20 77 72 69 74 74 65 6e 0a 20 20 20 20 20   ┆ data has not been written      ┆
0x0ba0…0bc0 74 6f 20 74 68 65 20 75 6e 64 65 72 6c 79 69 6e 67 20 66 69 6c 65 2c 20 5f 08 66 5f 08 73 5f 08   ┆to the underlying file, _ f_ s_ ┆
0x0bc0…0be0 65 5f 08 65 5f 08 6b 20 61 6e 64 20 5f 08 72 5f 08 65 5f 08 77 5f 08 69 5f 08 6e 5f 08 64 20 63   ┆e_ e_ k and _ r_ e_ w_ i_ n_ d c┆
0x0be0…0c00 61 75 73 65 20 74 68 65 20 75 6e 77 72 69 74 74 65 6e 0a 20 20 20 20 20 64 61 74 61 20 74 6f 20   ┆ause the unwritten      data to ┆
0x0c00…0c20 62 65 20 77 72 69 74 74 65 6e 20 74 6f 20 74 68 65 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 5f 08   ┆be written to the file.       _ ┆
0x0c20…0c40 66 5f 08 74 5f 08 65 5f 08 6c 5f 08 6c 20 72 65 74 75 72 6e 73 20 74 68 65 20 6f 66 66 73 65 74   ┆f_ t_ e_ l_ l returns the offset┆
0x0c40…0c60 20 6f 66 20 74 68 65 20 63 75 72 72 65 6e 74 20 62 79 74 65 20 72 65 6c 61 74 69 76 65 20 74 6f   ┆ of the current byte relative to┆
0x0c60…0c80 20 74 68 65 0a 20 20 20 20 20 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 74 68 65 20 66 69 6c 65 20   ┆ the      beginning of the file ┆
0x0c80…0ca0 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 6e 61 6d 65 64 20 5f 08 73 5f 08 74   ┆associated with the named _ s_ t┆
0x0ca0…0cc0 5f 08 72 5f 08 65 5f 08 61 5f 08 6d 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54   ┆_ r_ e_ a_ m.  R R R RE E E ET T┆
0x0cc0…0ce0 08 54 08 54 55 08 55 08 55 08 55 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08   ┆ T TU U U UR R R RN N N N V V V ┆
0x0ce0…0d00 56 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20   ┆VA A A AL L L LU U U UE E E E   ┆
0x0d00…0d20 20 20 20 5f 08 66 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 72 65 74 75 72 6e 73 20 2d 31 20 66 6f   ┆   _ f_ s_ e_ e_ k returns -1 fo┆
0x0d20…0d40 72 20 69 6d 70 72 6f 70 65 72 20 73 65 65 6b 73 2c 20 61 6e 64 20 73 65 74 73 20 5f 08 65 5f 08   ┆r improper seeks, and sets _ e_ ┆
0x0d40…0d60 72 5f 08 72 5f 08 6e 5f 08 6f 20 74 6f 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 69 6e 64 69 63 61 74   ┆r_ r_ n_ o to            indicat┆
0x0d60…0d80 65 20 74 68 65 20 65 72 72 6f 72 2c 20 6f 74 68 65 72 77 69 73 65 20 7a 65 72 6f 2e 20 20 41 6e   ┆e the error, otherwise zero.  An┆
0x0d80…0da0 20 69 6d 70 72 6f 70 65 72 20 73 65 65 6b 20 63 61 6e 0a 20 20 20 20 20 62 65 2c 20 66 6f 72 20   ┆ improper seek can      be, for ┆
0x0da0…0dc0 65 78 61 6d 70 6c 65 2c 20 61 6e 20 5f 08 66 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 64 6f 6e 65   ┆example, an _ f_ s_ e_ e_ k done┆
0x0dc0…0de0 20 6f 6e 20 61 20 66 69 6c 65 20 74 68 61 74 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 0a 20 20 20   ┆ on a file that has not been    ┆
0x0de0…0e00 20 20 6f 70 65 6e 65 64 20 76 69 61 20 5f 08 66 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 3b 20 69 6e   ┆  opened via _ f_ o_ p_ e_ n; in┆
0x0e00…0e20 20 70 61 72 74 69 63 75 6c 61 72 2c 20 5f 08 66 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 20 6d 61 79   ┆ particular, _ f_ s_ e_ e_ k may┆
0x0e20…0e40 20 6e 6f 74 20 62 65 20 75 73 65 64 20 6f 6e 20 61 0a 20 20 20 20 20 74 65 72 6d 69 6e 61 6c 20   ┆ not be used on a      terminal ┆
0x0e40…0e60 6f 72 20 6f 6e 20 61 20 66 69 6c 65 20 6f 70 65 6e 65 64 20 76 69 61 20 5f 08 70 5f 08 6f 5f 08   ┆or on a file opened via _ p_ o_ ┆
0x0e60…0e80 70 5f 08 65 5f 08 6e 2e 20 20 41 66 74 65 72 20 61 20 73 74 72 65 61 6d 20 69 73 0a 20 20 20 20   ┆p_ e_ n.  After a stream is     ┆
0x0e80…0ea0 20 63 6c 6f 73 65 64 2c 20 6e 6f 20 66 75 72 74 68 65 72 20 6f 70 65 72 61 74 69 6f 6e 73 20 61   ┆ closed, no further operations a┆
0x0ea0…0ec0 72 65 20 64 65 66 69 6e 65 64 20 6f 6e 20 74 68 61 74 20 73 74 72 65 61 6d 2e 0a 0a 20 20 20 20   ┆re defined on that stream.      ┆
0x0ec0…0ee0 20 5f 08 72 5f 08 65 5f 08 77 5f 08 69 5f 08 6e 5f 08 64 20 68 61 73 20 6e 6f 20 72 65 74 75 72   ┆ _ r_ e_ w_ i_ n_ d has no retur┆
0x0ee0…0f00 6e 20 76 61 6c 75 65 20 64 65 66 69 6e 65 64 20 28 62 65 63 61 75 73 65 20 69 74 20 72 65 74 75   ┆n value defined (because it retu┆
0x0f00…0f20 72 6e 73 20 6e 6f 0a 20 20 20 20 20 76 61 6c 75 65 20 61 74 20 61 6c 6c 29 2e 20 20 41 6e 20 61   ┆rns no      value at all).  An a┆
0x0f20…0f40 70 70 6c 69 63 61 74 69 6f 6e 20 77 69 73 68 69 6e 67 20 74 6f 20 63 68 65 63 6b 20 66 6f 72 20   ┆pplication wishing to check for ┆
0x0f40…0f60 61 6e 20 65 72 72 6f 72 0a 20 20 20 20 20 6d 75 73 74 20 63 6c 65 61 72 20 5f 08 65 5f 08 72 5f   ┆an error      must clear _ e_ r_┆
0x0f60…0f80 08 72 5f 08 6e 5f 08 6f 20 62 65 66 6f 72 65 20 74 68 65 20 63 61 6c 6c 2c 20 61 6e 64 20 74 68   ┆ r_ n_ o before the call, and th┆
0x0f80…0fa0 65 6e 20 61 66 74 65 72 20 74 68 65 20 63 61 6c 6c 0a 20 20 20 20 20 63 68 65 63 6b 20 69 66 20   ┆en after the call      check if ┆
0x0fa0…0fc0 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 73 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 74 6f 20   ┆_ e_ r_ r_ n_ o is non-zero, to ┆
0x0fc0…0fe0 73 65 65 20 69 66 20 61 6e 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64 2e 0a 0a 20 20 20 20 20   ┆see if an error occurred.       ┆
0x0fe0…1000 5f 08 66 5f 08 74 5f 08 65 5f 08 6c 5f 08 6c 20 72 65 74 75 72 6e 73 20 74 68 65 20 63 75 72 72   ┆_ f_ t_ e_ l_ l returns the curr┆
0x1000…1020 65 6e 74 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 66 69 6c 65 2d 70 6f 73 69 74 69 6f 6e 20 69   ┆ent value of the file-position i┆
0x1020…1040 6e 64 69 63 61 2d 0a 20 20 20 20 20 74 6f 72 20 66 6f 72 20 74 68 65 20 73 74 72 65 61 6d 20 6d   ┆ndica-      tor for the stream m┆
0x1040…1060 65 61 73 75 72 65 64 20 69 6e 20 62 79 74 65 73 20 66 72 6f 6d 20 74 68 65 20 62 65 67 69 6e 6e   ┆easured in bytes from the beginn┆
0x1060…1080 69 6e 67 20 6f 66 0a 20 20 20 20 20 74 68 65 20 66 69 6c 65 20 75 70 6f 6e 20 73 75 63 63 65 73   ┆ing of      the file upon succes┆
0x1080…10a0 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 3b 20 6f 74 68 65 72 77 69 73 65 20 5f 08 66 5f 08   ┆sful completion; otherwise _ f_ ┆
0x10a0…10c0 74 5f 08 65 5f 08 6c 5f 08 6c 20 72 65 74 75 72 6e 73 0a 20 20 20 20 20 2d 31 4c 20 61 6e 64 20   ┆t_ e_ l_ l returns      -1L and ┆
0x10c0…10e0 73 65 74 73 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 5f 08 74 5f 08 6f 20 5f 08 69 5f   ┆sets _ e_ r_ r_ n_ o _ t_ o _ i_┆
0x10e0…1100 08 6e 5f 08 64 5f 08 69 5f 08 63 5f 08 61 5f 08 74 5f 08 65 20 5f 08 74 5f 08 68 5f 08 65 20 5f   ┆ n_ d_ i_ c_ a_ t_ e _ t_ h_ e _┆
0x1100…1120 08 65 5f 08 72 5f 08 72 5f 08 6f 5f 08 72 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52   ┆ e_ r_ r_ o_ r.  E E E ER R R RR┆
0x1120…1140 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20   ┆ R R RO O O OR R R RS S S S     ┆
0x1140…1160 20 54 68 65 73 65 20 66 75 6e 63 74 69 6f 6e 73 20 77 69 6c 6c 20 66 61 69 6c 20 69 66 20 28 5b   ┆ These functions will fail if ([┆
0x1160…1180 45 49 4e 56 41 4c 5d 20 61 70 70 6c 69 65 73 20 74 6f 20 5f 08 66 5f 08 73 5f 08 65 5f 08 65 5f   ┆EINVAL] applies to _ f_ s_ e_ e_┆
0x1180…11a0 08 6b 0a 20 20 20 20 20 5f 08 6f 5f 08 6e 5f 08 6c 5f 08 79 29 3a 0a 0a 20 20 20 20 20 5b 45 42   ┆ k      _ o_ n_ l_ y):       [EB┆
0x11a0…11c0 41 44 46 5d 20 20 20 20 20 20 20 20 54 68 65 20 5f 08 73 5f 08 74 5f 08 72 5f 08 65 5f 08 61 5f   ┆ADF]        The _ s_ t_ r_ e_ a_┆
0x11c0…11e0 08 6d 20 68 61 64 20 64 61 74 61 20 74 6f 20 62 65 20 66 6c 75 73 68 65 64 20 62 75 74 20 74 68   ┆ m had data to be flushed but th┆
0x11e0…1200 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 6e 64 65 72 6c 79 69 6e 67   ┆e                     underlying┆
0x1200…1220 20 66 69 6c 65 20 69 73 20 6e 6f 74 20 6f 70 65 6e 20 66 6f 72 20 77 72 69 74 69 6e 67 2e 0a 0a   ┆ file is not open for writing.  ┆
0x1220…1240 20 20 20 20 20 5b 45 46 42 49 47 5d 20 20 20 20 20 20 20 20 41 6e 20 61 74 74 65 6d 70 74 20 77   ┆     [EFBIG]        An attempt w┆
0x1240…1260 61 73 20 6d 61 64 65 20 74 6f 20 77 72 69 74 65 20 61 20 66 69 6c 65 20 74 68 61 74 0a 20 20 20   ┆as made to write a file that    ┆
0x1260…1280 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 63 65 65 64 73 20 74 68 65 20 70 72 6f   ┆                 exceeds the pro┆
0x1280…12a0 63 65 73 73 27 73 20 66 69 6c 65 20 73 69 7a 65 20 6c 69 6d 69 74 20 6f 72 20 74 68 65 0a 20 20   ┆cess's file size limit or the   ┆
0x12a0…12c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 78 69 6d 75 6d 20 66 69 6c 65 20 73   ┆                  maximum file s┆
0x12c0…12e0 69 7a 65 2e 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41 4c 5d 20 20 20 20 20 20 20 54 68 65 20 5f 08   ┆ize.       [EINVAL]       The _ ┆
0x12e0…1300 70 5f 08 74 5f 08 72 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 61 72 67 75 6d 65 6e 74 20 69 73 20   ┆p_ t_ r_ n_ a_ m_ e argument is ┆
0x1300…1320 69 6e 76 61 6c 69 64 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 53 50 43 5d 20 20 20 20 20 20 20 54 68   ┆invalid.       [ENOSPC]       Th┆
0x1320…1340 65 72 65 20 77 61 73 20 6e 6f 20 66 72 65 65 20 73 70 61 63 65 20 72 65 6d 61 69 6e 69 6e 67 20   ┆ere was no free space remaining ┆
0x1340…1360 6f 6e 20 74 68 65 20 64 65 76 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆on the dev-                     ┆
0x1360…1380 69 63 65 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 66 69 6c 65 2e 0a 0a 20   ┆ice associated with the file.   ┆
0x1380…13a0 20 20 20 20 5b 45 53 50 49 50 45 5d 20 20 20 20 20 20 20 54 68 65 20 66 69 6c 65 20 64 65 73 63   ┆    [ESPIPE]       The file desc┆
0x13a0…13c0 72 69 70 74 6f 72 20 75 6e 64 65 72 6c 79 69 6e 67 20 5f 08 73 5f 08 74 5f 08 72 5f 08 65 5f 08   ┆riptor underlying _ s_ t_ r_ e_ ┆
0x13c0…13e0 61 5f 08 6d 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 73 6f   ┆a_ m is                     asso┆
0x13e0…1400 63 69 61 74 65 64 20 77 69 74 68 20 61 20 70 69 70 65 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08   ┆ciated with a pipe.  S S S SE E ┆
0x1400…1420 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53   ┆E EE E E E A A A AL L L LS S S S┆
0x1420…1440 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 73   ┆O O O O      System Calls (2): s┆
0x1440…1460 65 65 6b 2c 20 77 72 69 74 65 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e   ┆eek, write      Library Function┆
0x1460…1480 73 20 28 33 29 3a 20 66 6f 70 65 6e 2c 20 70 6f 70 65 6e 2c 20 73 74 64 69 6f 2c 20 75 6e 67 65   ┆s (3): fopen, popen, stdio, unge┆
0x1480…14a0 74 63 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 39 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆tc  December 1990               ┆
0x14a0…14c0 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65   ┆            TX Programmer's Refe┆
0x14c0…14da 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                     ┆rence                     ┆