|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: d
Length: 6062 (0x17ae)
Names: »directory.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/directory.3«
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 64 69 72 65 63 74 6f 72 79 28 33 29 0a 0a 0a 0a ┆ions directory(3) ┆
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 6f 70 65 6e 64 69 72 2c 20 72 65 61 64 64 69 72 2c 20 74 65 6c 6c 64 69 72 2c 20 73 65 65 ┆ opendir, readdir, telldir, see┆
0x00a0…00c0 6b 64 69 72 2c 20 72 65 77 69 6e 64 64 69 72 2c 20 63 6c 6f 73 65 64 69 72 20 2d 0a 20 20 20 20 ┆kdir, rewinddir, closedir - ┆
0x00c0…00e0 20 64 69 72 65 63 74 6f 72 79 20 6f 70 65 72 61 74 69 6f 6e 73 0a 0a 53 08 53 08 53 08 53 59 08 ┆ directory operations S S S SY ┆
0x00e0…0100 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 ┆Y Y YN N N NT T T TA A A AX X X ┆
0x0100…0120 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 ┆X # # # #i i i in n n nc c ┆
0x0120…0140 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 ┆c cl l l lu u u ud d d de e e e ┆
0x0140…0160 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 ┆< < < <s s s sy y y ys s s s/ / ┆
0x0160…0180 2f 08 2f 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 73 ┆/ /t t t ty y y yp p p pe e e es┆
0x0180…01a0 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 ┆ s s s. . . .h h h h> > > > ┆
0x01a0…01c0 20 23 08 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 ┆ # # # #i i i in n n nc c c cl l┆
0x01c0…01e0 08 6c 08 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 ┆ l lu u u ud d d de e e e < < < ┆
0x01e0…0200 3c 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 65 08 65 08 65 08 65 6e 08 6e ┆<d d d di i i ir r r re e e en n┆
0x0200…0220 08 6e 08 6e 74 08 74 08 74 08 74 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e ┆ n nt t t t. . . .h h h h> > > >┆
0x0220…0240 0a 0a 20 20 20 20 20 44 08 44 08 44 08 44 49 08 49 08 49 08 49 52 08 52 08 52 08 52 20 2a 08 2a ┆ D D D DI I I IR R R R * *┆
0x0240…0260 08 2a 08 2a 6f 08 6f 08 6f 08 6f 70 08 70 08 70 08 70 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e ┆ * *o o o op p p pe e e en n n n┆
0x0260…0280 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 28 08 28 08 28 08 28 2a 08 2a 08 ┆d d d di i i ir r r r( ( ( (* * ┆
0x0280…02a0 2a 08 2a 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 6e ┆* *f f f fi i i il l l le e e en┆
0x02a0…02c0 08 6e 08 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 29 08 29 08 29 ┆ n n na a a am m m me e e e) ) )┆
0x02c0…02e0 08 29 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 08 72 ┆ ) c c c ch h h ha a a ar r┆
0x02e0…0300 08 72 08 72 20 2a 08 2a 08 2a 08 2a 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c 08 6c 08 ┆ r r * * * *f f f fi i i il l l ┆
0x0300…0320 6c 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 65 08 65 ┆le e e en n n na a a am m m me e┆
0x0320…0340 08 65 08 65 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 ┆ e e; ; ; ; s s s st t t t┆
0x0340…0360 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 08 63 08 63 08 63 74 08 74 08 74 08 74 20 64 08 64 ┆r r r ru u u uc c c ct t t t d d┆
0x0360…0380 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e ┆ d di i i ir r r re e e en n n n┆
0x0380…03a0 74 08 74 08 74 08 74 20 2a 08 2a 08 2a 08 2a 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 ┆t t t t * * * *r r r re e e ea a┆
0x03a0…03c0 08 61 08 61 64 08 64 08 64 08 64 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 ┆ a ad d d dd d d di i i ir r r r┆
0x03c0…03e0 28 08 28 08 28 08 28 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 70 08 70 08 ┆( ( ( (d d d di i i ir r r rp p ┆
0x03e0…0400 70 08 70 29 08 29 08 29 08 29 0a 20 20 20 20 20 44 08 44 08 44 08 44 49 08 49 08 49 08 49 52 08 ┆p p) ) ) ) D D D DI I I IR ┆
0x0400…0420 52 08 52 08 52 20 2a 08 2a 08 2a 08 2a 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 ┆R R R * * * *d d d di i i ir r r┆
0x0420…0440 08 72 70 08 70 08 70 08 70 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 6c 08 6c 08 6c 08 6c 6f 08 ┆ rp p p p; ; ; ; l l l lo ┆
0x0440…0460 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 74 08 74 08 74 08 74 65 08 65 08 65 ┆o o on n n ng g g g t t t te e e┆
0x0460…0480 08 65 6c 08 6c 08 6c 08 6c 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 ┆ el l l ll l l ld d d di i i ir ┆
0x0480…04a0 72 08 72 08 72 28 08 28 08 28 08 28 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 ┆r r r( ( ( (d d d di i i ir r r ┆
0x04a0…04c0 72 70 08 70 08 70 08 70 29 08 29 08 29 08 29 0a 20 20 20 20 20 44 08 44 08 44 08 44 49 08 49 08 ┆rp p p p) ) ) ) D D D DI I ┆
0x04c0…04e0 49 08 49 52 08 52 08 52 08 52 20 2a 08 2a 08 2a 08 2a 64 08 64 08 64 08 64 69 08 69 08 69 08 69 ┆I IR R R R * * * *d d d di i i i┆
0x04e0…0500 72 08 72 08 72 08 72 70 08 70 08 70 08 70 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 76 08 76 08 ┆r r r rp p p p; ; ; ; v v ┆
0x0500…0520 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 73 ┆v vo o o oi i i id d d d s s s s┆
0x0520…0540 65 08 65 08 65 08 65 65 08 65 08 65 08 65 6b 08 6b 08 6b 08 6b 64 08 64 08 64 08 64 69 08 69 08 ┆e e e ee e e ek k k kd d d di i ┆
0x0540…0560 69 08 69 72 08 72 08 72 08 72 28 08 28 08 28 08 28 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 ┆i ir r r r( ( ( (d d d di i i ir┆
0x0560…0580 08 72 08 72 08 72 70 08 70 08 70 08 70 2c 08 2c 08 2c 08 2c 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 ┆ r r rp p p p, , , , l l l lo o ┆
0x0580…05a0 6f 08 6f 63 08 63 08 63 08 63 29 08 29 08 29 08 29 0a 20 20 20 20 20 44 08 44 08 44 08 44 49 08 ┆o oc c c c) ) ) ) D D D DI ┆
0x05a0…05c0 49 08 49 08 49 52 08 52 08 52 08 52 20 2a 08 2a 08 2a 08 2a 64 08 64 08 64 08 64 69 08 69 08 69 ┆I I IR R R R * * * *d d d di i i┆
0x05c0…05e0 08 69 72 08 72 08 72 08 72 70 08 70 08 70 08 70 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 6c 08 6c ┆ ir r r rp p p p; ; ; ; l l┆
0x05e0…0600 08 6c 08 6c 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 6c 08 6c 08 6c 08 ┆ l lo o o on n n ng g g g l l l ┆
0x0600…0620 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 76 08 76 ┆lo o o oc c c c; ; ; ; v v┆
0x0620…0640 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 72 08 72 08 72 08 ┆ v vo o o oi i i id d d d r r r ┆
0x0640…0660 72 65 08 65 08 65 08 65 77 08 77 08 77 08 77 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 64 08 64 ┆re e e ew w w wi i i in n n nd d┆
0x0660…0680 08 64 08 64 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 28 08 28 08 28 08 28 ┆ d dd d d di i i ir r r r( ( ( (┆
0x0680…06a0 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 70 08 70 08 70 08 70 29 08 29 08 ┆d d d di i i ir r r rp p p p) ) ┆
0x06a0…06c0 29 08 29 0a 20 20 20 20 20 44 08 44 08 44 08 44 49 08 49 08 49 08 49 52 08 52 08 52 08 52 20 2a ┆) ) D D D DI I I IR R R R *┆
0x06c0…06e0 08 2a 08 2a 08 2a 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 70 08 70 08 70 ┆ * * *d d d di i i ir r r rp p p┆
0x06e0…0700 08 70 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 ┆ p; ; ; ; i i i in n n nt ┆
0x0700…0720 74 08 74 08 74 20 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 73 08 73 08 73 ┆t t t c c c cl l l lo o o os s s┆
0x0720…0740 08 73 65 08 65 08 65 08 65 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 28 08 ┆ se e e ed d d di i i ir r r r( ┆
0x0740…0760 28 08 28 08 28 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 70 08 70 08 70 08 ┆( ( (d d d di i i ir r r rp p p ┆
0x0760…0780 70 29 08 29 08 29 08 29 0a 20 20 20 20 20 44 08 44 08 44 08 44 49 08 49 08 49 08 49 52 08 52 08 ┆p) ) ) ) D D D DI I I IR R ┆
0x0780…07a0 52 08 52 20 2a 08 2a 08 2a 08 2a 64 08 64 08 64 08 64 69 08 69 08 69 08 69 72 08 72 08 72 08 72 ┆R R * * * *d d d di i i ir r r r┆
0x07a0…07c0 70 08 70 08 70 08 70 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 ┆p p p p; ; ; ; D D D DE E E ES ┆
0x07c0…07e0 53 08 53 08 53 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 ┆S S SC C C CR R R RI I I IP P P ┆
0x07e0…0800 50 54 08 54 08 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 ┆PT T T TI I I IO O O ON N N N ┆
0x0800…0820 20 20 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 5f 08 64 5f 08 69 5f 08 72 20 6f 70 65 6e 73 20 74 ┆ _ o_ p_ e_ n_ d_ i_ r opens t┆
0x0820…0840 68 65 20 64 69 72 65 63 74 6f 72 79 20 6e 61 6d 65 64 20 62 79 20 5f 08 66 5f 08 69 5f 08 6c 5f ┆he directory named by _ f_ i_ l_┆
0x0840…0860 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 61 6e 64 20 61 73 73 6f 63 69 61 74 65 73 0a 20 20 ┆ e_ n_ a_ m_ e and associates ┆
0x0860…0880 20 20 20 61 20 64 69 72 65 63 74 6f 72 79 20 73 74 72 65 61 6d 20 77 69 74 68 20 69 74 2e 20 20 ┆ a directory stream with it. ┆
0x0880…08a0 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 5f 08 64 5f 08 69 5f 08 72 20 72 65 74 75 72 6e 73 20 61 20 ┆_ o_ p_ e_ n_ d_ i_ r returns a ┆
0x08a0…08c0 70 6f 69 6e 74 65 72 20 74 6f 20 62 65 0a 20 20 20 20 20 75 73 65 64 20 74 6f 20 69 64 65 6e 74 ┆pointer to be used to ident┆
0x08c0…08e0 69 66 79 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 20 73 74 72 65 61 6d 20 69 6e 20 73 75 62 73 ┆ify the directory stream in subs┆
0x08e0…0900 65 71 75 65 6e 74 20 6f 70 65 72 61 2d 0a 20 20 20 20 20 74 69 6f 6e 73 2e 20 20 54 68 65 20 64 ┆equent opera- tions. The d┆
0x0900…0920 69 72 65 63 74 6f 72 79 20 73 74 72 65 61 6d 20 69 73 20 70 6f 73 69 74 69 6f 6e 65 64 20 61 74 ┆irectory stream is positioned at┆
0x0920…0940 20 74 68 65 20 66 69 72 73 74 0a 20 20 20 20 20 65 6e 74 72 79 2e 20 20 41 20 6e 75 6c 6c 20 70 ┆ the first entry. A null p┆
0x0940…0960 6f 69 6e 74 65 72 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 66 20 5f 08 66 5f 08 69 5f 08 6c 5f ┆ointer is returned if _ f_ i_ l_┆
0x0960…0980 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 63 61 6e 6e 6f 74 20 62 65 0a 20 20 20 20 20 61 63 ┆ e_ n_ a_ m_ e cannot be ac┆
0x0980…09a0 63 65 73 73 65 64 20 6f 72 20 69 73 20 6e 6f 74 20 61 20 64 69 72 65 63 74 6f 72 79 2c 20 6f 72 ┆cessed or is not a directory, or┆
0x09a0…09c0 20 69 66 20 69 74 20 63 61 6e 6e 6f 74 20 5f 08 6d 5f 08 61 5f 08 6c 5f 08 6c 5f 08 6f 5f 08 63 ┆ if it cannot _ m_ a_ l_ l_ o_ c┆
0x09c0…09e0 0a 20 20 20 20 20 65 6e 6f 75 67 68 20 6d 65 6d 6f 72 79 20 74 6f 20 68 6f 6c 64 20 61 20 44 08 ┆ enough memory to hold a D ┆
0x09e0…0a00 44 08 44 08 44 49 08 49 08 49 08 49 52 08 52 08 52 08 52 20 73 74 72 75 63 74 75 72 65 20 6f 72 ┆D D DI I I IR R R R structure or┆
0x0a00…0a20 20 61 20 62 75 66 66 65 72 20 66 6f 72 20 74 68 65 0a 20 20 20 20 20 64 69 72 65 63 74 6f 72 79 ┆ a buffer for the directory┆
0x0a20…0a40 20 65 6e 74 72 69 65 73 2e 0a 0a 20 20 20 20 20 5f 08 72 5f 08 65 5f 08 61 5f 08 64 5f 08 64 5f ┆ entries. _ r_ e_ a_ d_ d_┆
0x0a40…0a60 08 69 5f 08 72 20 72 65 74 75 72 6e 73 20 61 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 68 65 20 6e ┆ i_ r returns a pointer to the n┆
0x0a60…0a80 65 78 74 20 61 63 74 69 76 65 20 64 69 72 65 63 74 6f 72 79 20 65 6e 74 72 79 0a 20 20 20 20 20 ┆ext active directory entry ┆
0x0a80…0aa0 61 6e 64 20 70 6f 73 69 74 69 6f 6e 73 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 20 73 74 72 65 ┆and positions the directory stre┆
0x0aa0…0ac0 61 6d 20 61 74 20 74 68 65 20 6e 65 78 74 20 65 6e 74 72 79 2e 20 20 4e 6f 0a 20 20 20 20 20 69 ┆am at the next entry. No i┆
0x0ac0…0ae0 6e 61 63 74 69 76 65 20 65 6e 74 72 69 65 73 20 61 72 65 20 72 65 74 75 72 6e 65 64 2e 20 20 49 ┆nactive entries are returned. I┆
0x0ae0…0b00 74 20 72 65 74 75 72 6e 73 20 5f 08 4e 5f 08 55 5f 08 4c 5f 08 4c 20 75 70 6f 6e 20 72 65 61 63 ┆t returns _ N_ U_ L_ L upon reac┆
0x0b00…0b20 68 2d 0a 20 20 20 20 20 69 6e 67 20 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 64 69 72 65 63 ┆h- ing the end of the direc┆
0x0b20…0b40 74 6f 72 79 20 6f 72 20 75 70 6f 6e 20 64 65 74 65 63 74 69 6e 67 20 61 6e 20 69 6e 76 61 6c 69 ┆tory or upon detecting an invali┆
0x0b40…0b60 64 0a 20 20 20 20 20 6c 6f 63 61 74 69 6f 6e 20 69 6e 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 ┆d location in the directory┆
0x0b60…0b80 2e 20 20 5f 08 72 5f 08 65 5f 08 61 5f 08 64 5f 08 64 5f 08 69 5f 08 72 20 62 75 66 66 65 72 73 ┆. _ r_ e_ a_ d_ d_ i_ r buffers┆
0x0b80…0ba0 20 73 65 76 65 72 61 6c 20 64 69 72 65 63 2d 0a 20 20 20 20 20 74 6f 72 79 20 65 6e 74 72 69 65 ┆ several direc- tory entrie┆
0x0ba0…0bc0 73 20 70 65 72 20 61 63 74 75 61 6c 20 72 65 61 64 20 6f 70 65 72 61 74 69 6f 6e 3b 20 5f 08 72 ┆s per actual read operation; _ r┆
0x0bc0…0be0 5f 08 65 5f 08 61 5f 08 64 5f 08 64 5f 08 69 5f 08 72 20 6d 61 72 6b 73 20 66 6f 72 0a 20 20 20 ┆_ e_ a_ d_ d_ i_ r marks for ┆
0x0be0…0c00 20 20 75 70 64 61 74 65 20 74 68 65 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 5f 08 5f 08 5f ┆ update the s s s st t t t_ _ _┆
0x0c00…0c20 08 5f 61 08 61 08 61 08 61 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 ┆ _a a a at t t ti i i im m m me ┆
0x0c20…0c40 65 08 65 08 65 20 66 69 65 6c 64 20 6f 66 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 20 65 61 63 ┆e e e field of the directory eac┆
0x0c40…0c60 68 20 74 69 6d 65 20 74 68 65 0a 20 20 20 20 20 64 69 72 65 63 74 6f 72 79 20 69 73 20 61 63 74 ┆h time the directory is act┆
0x0c60…0c80 75 61 6c 6c 79 20 72 65 61 64 2e 0a 0a 20 20 20 20 20 5f 08 74 5f 08 65 5f 08 6c 5f 08 6c 5f 08 ┆ually read. _ t_ e_ l_ l_ ┆
0x0c80…0ca0 64 5f 08 69 5f 08 72 20 72 65 74 75 72 6e 73 20 74 68 65 20 63 75 72 72 65 6e 74 20 6c 6f 63 61 ┆d_ i_ r returns the current loca┆
0x0ca0…0cc0 74 69 6f 6e 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 0a 20 20 20 20 20 6e 61 ┆tion associated with the na┆
0x0cc0…0ce0 6d 65 64 20 64 69 72 65 63 74 6f 72 79 20 73 74 72 65 61 6d 2e 0a 0a 20 20 20 20 20 5f 08 73 5f ┆med directory stream. _ s_┆
0x0ce0…0d00 08 65 5f 08 65 5f 08 6b 5f 08 64 5f 08 69 5f 08 72 20 73 65 74 73 20 74 68 65 20 70 6f 73 69 74 ┆ e_ e_ k_ d_ i_ r sets the posit┆
0x0d00…0d20 69 6f 6e 20 6f 66 20 74 68 65 20 6e 65 78 74 20 5f 08 72 5f 08 65 5f 08 61 5f 08 64 5f 08 64 5f ┆ion of the next _ r_ e_ a_ d_ d_┆
0x0d20…0d40 08 69 5f 08 72 20 6f 70 65 72 61 74 69 6f 6e 20 6f 6e 0a 20 20 20 20 20 74 68 65 20 64 69 72 65 ┆ i_ r operation on the dire┆
0x0d40…0d60 63 74 6f 72 79 20 73 74 72 65 61 6d 2e 20 20 54 68 65 20 6e 65 77 20 70 6f 73 69 74 69 6f 6e 20 ┆ctory stream. The new position ┆
0x0d60…0d80 72 65 76 65 72 74 73 20 74 6f 20 74 68 65 20 70 6f 73 69 2d 0a 20 20 20 20 20 74 69 6f 6e 20 61 ┆reverts to the posi- tion a┆
0x0d80…0da0 73 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 20 73 74 72 ┆ssociated with the directory str┆
0x0da0…0dc0 65 61 6d 20 61 74 20 74 68 65 20 74 69 6d 65 20 74 68 65 0a 20 20 20 20 20 5f 08 74 5f 08 65 5f ┆eam at the time the _ t_ e_┆
0x0dc0…0de0 08 6c 5f 08 6c 5f 08 64 5f 08 69 5f 08 72 20 6f 70 65 72 61 74 69 6f 6e 20 74 68 61 74 20 70 72 ┆ l_ l_ d_ i_ r operation that pr┆
0x0de0…0e00 6f 76 69 64 65 73 20 5f 08 6c 5f 08 6f 5f 08 63 20 77 61 73 20 70 65 72 66 6f 72 6d 65 64 2e 0a ┆ovides _ l_ o_ c was performed. ┆
0x0e00…0e20 0a 20 20 20 20 20 5f 08 72 5f 08 65 5f 08 77 5f 08 69 5f 08 6e 5f 08 64 5f 08 64 5f 08 69 5f 08 ┆ _ r_ e_ w_ i_ n_ d_ d_ i_ ┆
0x0e20…0e40 72 20 72 65 73 65 74 73 20 74 68 65 20 70 6f 73 69 74 69 6f 6e 20 6f 66 20 74 68 65 20 6e 61 6d ┆r resets the position of the nam┆
0x0e40…0e60 65 64 20 64 69 72 65 63 74 6f 72 79 20 73 74 72 65 61 6d 0a 20 20 20 20 20 74 6f 20 74 68 65 20 ┆ed directory stream to the ┆
0x0e60…0e80 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 2e 20 20 49 74 20 ┆beginning of the directory. It ┆
0x0e80…0ea0 61 6c 73 6f 20 63 61 75 73 65 73 20 74 68 65 0a 20 20 20 20 20 64 69 72 65 63 74 6f 72 79 20 73 ┆also causes the directory s┆
0x0ea0…0ec0 74 72 65 61 6d 20 74 6f 20 72 65 66 65 72 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 74 ┆tream to refer to the current st┆
0x0ec0…0ee0 61 74 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 64 69 ┆ate of the corresponding di┆
0x0ee0…0f00 72 65 63 74 6f 72 79 2c 20 61 73 20 61 20 63 61 6c 6c 20 74 6f 20 5f 08 6f 5f 08 70 5f 08 65 5f ┆rectory, as a call to _ o_ p_ e_┆
0x0f00…0f20 08 6e 5f 08 64 5f 08 69 5f 08 72 20 77 6f 75 6c 64 2e 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 5f ┆ n_ d_ i_ r would. _┆
0x0f20…0f40 08 63 5f 08 6c 5f 08 6f 5f 08 73 5f 08 65 5f 08 64 5f 08 69 5f 08 72 20 63 6c 6f 73 65 73 20 74 ┆ c_ l_ o_ s_ e_ d_ i_ r closes t┆
0x0f40…0f60 68 65 20 6e 61 6d 65 64 20 64 69 72 65 63 74 6f 72 79 20 73 74 72 65 61 6d 20 61 6e 64 20 66 72 ┆he named directory stream and fr┆
0x0f60…0f80 65 65 73 20 74 68 65 20 44 08 44 08 44 08 44 49 08 49 08 49 08 49 52 08 52 08 52 08 52 0a 20 20 ┆ees the D D D DI I I IR R R R ┆
0x0f80…0fa0 20 20 20 73 74 72 75 63 74 75 72 65 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 ┆ structure. E E E ER R R RR R┆
0x0fa0…0fc0 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 20 54 ┆ R RO O O OR R R RS S S S T┆
0x0fc0…0fe0 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 72 72 6f 72 73 20 63 61 6e 20 6f 63 63 75 72 20 61 73 ┆he following errors can occur as┆
0x0fe0…1000 20 61 20 72 65 73 75 6c 74 20 6f 66 20 74 68 65 73 65 20 6f 70 65 72 61 2d 0a 20 20 20 20 20 74 ┆ a result of these opera- t┆
0x1000…1020 69 6f 6e 73 3a 0a 0a 20 20 20 20 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 5f 08 64 5f 08 69 5f 08 ┆ions: _ o_ p_ e_ n_ d_ i_ ┆
0x1020…1040 72 20 72 65 74 75 72 6e 73 20 5f 08 4e 5f 08 55 5f 08 4c 5f 08 4c 20 6f 6e 20 66 61 69 6c 75 72 ┆r returns _ N_ U_ L_ L on failur┆
0x1040…1060 65 20 61 6e 64 20 73 65 74 73 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 74 6f 20 6f 6e ┆e and sets _ e_ r_ r_ n_ o to on┆
0x1060…1080 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 76 61 6c 75 65 73 3a 0a ┆e of the following values: ┆
0x1080…10a0 0a 20 20 20 20 20 5b 45 4e 4f 54 44 49 52 5d 20 20 20 20 20 20 41 20 63 6f 6d 70 6f 6e 65 6e 74 ┆ [ENOTDIR] A component┆
0x10a0…10c0 20 6f 66 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 69 73 20 ┆ of _ f_ i_ l_ e_ n_ a_ m_ e is ┆
0x10c0…10e0 6e 6f 74 20 61 20 64 69 72 65 63 74 6f 72 79 2e 0a 0a 20 20 20 20 20 5b 45 41 43 43 45 53 5d 20 ┆not a directory. [EACCES] ┆
0x10e0…1100 20 20 20 20 20 20 41 20 63 6f 6d 70 6f 6e 65 6e 74 20 6f 66 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 ┆ A component of _ f_ i_ l_ ┆
0x1100…1120 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 64 65 6e 69 65 73 20 73 65 61 72 63 68 20 70 65 72 6d ┆e_ n_ a_ m_ e denies search perm┆
0x1120…1140 69 73 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 69 6f 6e 3b 20 6f 72 ┆is- sion; or┆
0x1140…1160 20 72 65 61 64 20 70 65 72 6d 69 73 73 69 6f 6e 20 69 73 20 64 65 6e 69 65 64 20 6f 6e 20 74 68 ┆ read permission is denied on th┆
0x1160…1180 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 70 65 63 69 66 69 65 64 20 ┆e specified ┆
0x1180…11a0 64 69 72 65 63 74 6f 72 79 2e 0a 0a 20 20 20 20 20 5b 45 4d 46 49 4c 45 5d 20 20 20 20 20 20 20 ┆directory. [EMFILE] ┆
0x11a0…11c0 54 68 65 20 6d 61 78 69 6d 75 6d 20 6e 75 6d 62 65 72 20 6f 66 20 66 69 6c 65 20 64 65 73 63 72 ┆The maximum number of file descr┆
0x11c0…11e0 69 70 74 6f 72 73 20 61 72 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 ┆iptors are c┆
0x11e0…1200 75 72 72 65 6e 74 6c 79 20 6f 70 65 6e 2e 0a 0a 20 20 20 20 20 5b 45 4e 46 49 4c 45 5d 20 20 20 ┆urrently open. [ENFILE] ┆
0x1200…1220 20 20 20 20 54 68 65 20 73 79 73 74 65 6d 20 66 69 6c 65 20 74 61 62 6c 65 20 69 73 20 66 75 6c ┆ The system file table is ful┆
0x1220…1240 6c 2e 0a 0a 20 20 20 20 20 5b 45 46 41 55 4c 54 5d 20 20 20 20 20 20 20 5f 08 66 5f 08 69 5f 08 ┆l. [EFAULT] _ f_ i_ ┆
0x1240…1260 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 70 6f 69 6e 74 73 20 6f 75 74 73 69 64 65 20 ┆l_ e_ n_ a_ m_ e points outside ┆
0x1260…1280 74 68 65 20 61 6c 6c 6f 63 61 74 65 64 20 61 64 64 72 65 73 73 0a 20 20 20 20 20 20 20 20 20 20 ┆the allocated address ┆
0x1280…12a0 20 20 20 20 20 20 20 20 20 20 73 70 61 63 65 2e 0a 0a 20 20 20 20 20 5b 45 4c 4f 4f 50 5d 20 20 ┆ space. [ELOOP] ┆
0x12a0…12c0 20 20 20 20 20 20 54 6f 6f 20 6d 61 6e 79 20 73 79 6d 62 6f 6c 69 63 20 6c 69 6e 6b 73 20 77 65 ┆ Too many symbolic links we┆
0x12c0…12e0 72 65 20 65 6e 63 6f 75 6e 74 65 72 65 64 20 69 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆re encountered in ┆
0x12e0…1300 20 20 20 20 20 20 74 72 61 6e 73 6c 61 74 69 6e 67 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 ┆ translating _ f_ i_ l_ e_ ┆
0x1300…1320 6e 5f 08 61 5f 08 6d 5f 08 65 2e 0a 0a 20 20 20 20 20 5b 45 4e 41 4d 45 54 4f 4f 4c 4f 4e 47 5d ┆n_ a_ m_ e. [ENAMETOOLONG]┆
0x1320…1340 20 54 68 65 20 6c 65 6e 67 74 68 20 6f 66 20 74 68 65 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f ┆ The length of the _ f_ i_ l_ e_┆
0x1340…1360 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 61 72 67 75 6d 65 6e 74 20 65 78 63 65 65 64 73 0a 20 20 20 ┆ n_ a_ m_ e argument exceeds ┆
0x1360…1380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 50 41 54 48 5f 4d 41 58 7d 2c 20 6f 72 20 ┆ {PATH_MAX}, or ┆
0x1380…13a0 74 68 65 20 6c 65 6e 67 74 68 20 6f 66 20 61 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f ┆the length of a _ f_ i_ l_ e_ n_┆
0x13a0…13c0 08 61 5f 08 6d 5f 08 65 20 63 6f 6d 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ a_ m_ e com- ┆
0x13c0…13e0 20 20 70 6f 6e 65 6e 74 20 65 78 63 65 65 64 73 20 7b 4e 41 4d 45 5f 4d 41 58 7d 2e 0a 0a 20 20 ┆ ponent exceeds {NAME_MAX}. ┆
0x13e0…1400 20 20 20 5b 45 4e 4f 45 4e 54 5d 20 20 20 20 20 20 20 41 20 63 6f 6d 70 6f 6e 65 6e 74 20 6f 66 ┆ [ENOENT] A component of┆
0x1400…1420 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 20 64 6f 65 73 20 6e ┆ _ f_ i_ l_ e_ n_ a_ m_ e does n┆
0x1420…1440 6f 74 20 65 78 69 73 74 20 6f 72 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ot exist or is ┆
0x1440…1460 20 20 20 61 20 6e 75 6c 6c 20 70 61 74 68 6e 61 6d 65 2e 0a 0a 20 20 20 20 20 5f 08 72 5f 08 65 ┆ a null pathname. _ r_ e┆
0x1460…1480 5f 08 61 5f 08 64 5f 08 64 5f 08 69 5f 08 72 20 72 65 74 75 72 6e 73 20 5f 08 4e 5f 08 55 5f 08 ┆_ a_ d_ d_ i_ r returns _ N_ U_ ┆
0x1480…14a0 4c 5f 08 4c 20 6f 6e 20 66 61 69 6c 75 72 65 20 61 6e 64 20 73 65 74 73 20 5f 08 65 5f 08 72 5f ┆L_ L on failure and sets _ e_ r_┆
0x14a0…14c0 08 72 5f 08 6e 5f 08 6f 20 74 6f 20 6f 6e 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 66 6f 6c 6c ┆ r_ n_ o to one of the foll┆
0x14c0…14e0 6f 77 69 6e 67 20 76 61 6c 75 65 73 3a 0a 0a 20 20 20 20 20 5b 45 4e 4f 45 4e 54 5d 20 20 20 20 ┆owing values: [ENOENT] ┆
0x14e0…1500 20 20 20 54 68 65 20 63 75 72 72 65 6e 74 20 66 69 6c 65 20 70 6f 69 6e 74 65 72 20 66 6f 72 20 ┆ The current file pointer for ┆
0x1500…1520 74 68 65 20 64 69 72 65 63 74 6f 72 79 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆the directory is ┆
0x1520…1540 20 20 20 20 20 6e 6f 74 20 6c 6f 63 61 74 65 64 20 61 74 20 61 20 76 61 6c 69 64 20 65 6e 74 72 ┆ not located at a valid entr┆
0x1540…1560 79 2e 0a 0a 20 20 20 20 20 5b 45 42 41 44 46 5d 20 20 20 20 20 20 20 20 54 68 65 20 66 69 6c 65 ┆y. [EBADF] The file┆
0x1560…1580 20 64 65 73 63 72 69 70 74 6f 72 20 64 65 74 65 72 6d 69 6e 65 64 20 62 79 20 74 68 65 20 5f 08 ┆ descriptor determined by the _ ┆
0x1580…15a0 44 5f 08 49 5f 08 52 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 65 ┆D_ I_ R stre┆
0x15a0…15c0 61 6d 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 20 76 61 6c 69 64 2e 20 20 54 68 69 73 20 72 65 73 ┆am is no longer valid. This res┆
0x15c0…15e0 75 6c 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 63 63 75 72 73 20 69 ┆ult occurs i┆
0x15e0…1600 66 20 74 68 65 20 5f 08 44 5f 08 49 5f 08 52 20 73 74 72 65 61 6d 20 68 61 73 20 62 65 65 6e 20 ┆f the _ D_ I_ R stream has been ┆
0x1600…1620 63 6c 6f 73 65 64 2e 0a 0a 20 20 20 20 20 5f 08 74 5f 08 65 5f 08 6c 5f 08 6c 5f 08 64 5f 08 69 ┆closed. _ t_ e_ l_ l_ d_ i┆
0x1620…1640 5f 08 72 2c 20 5f 08 73 5f 08 65 5f 08 65 5f 08 6b 5f 08 64 5f 08 69 5f 08 72 2c 20 61 6e 64 20 ┆_ r, _ s_ e_ e_ k_ d_ i_ r, and ┆
0x1640…1660 20 5f 08 63 5f 08 6c 5f 08 6f 5f 08 73 5f 08 65 5f 08 64 5f 08 69 5f 08 72 20 72 65 74 75 72 6e ┆ _ c_ l_ o_ s_ e_ d_ i_ r return┆
0x1660…1680 20 2d 31 20 6f 6e 20 66 61 69 6c 75 72 65 20 61 6e 64 20 73 65 74 0a 20 20 20 20 20 5f 08 65 5f ┆ -1 on failure and set _ e_┆
0x1680…16a0 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 74 6f 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 76 61 6c ┆ r_ r_ n_ o to the following val┆
0x16a0…16c0 75 65 3a 0a 0a 20 20 20 20 20 5b 45 42 41 44 46 5d 20 20 20 20 20 20 20 20 54 68 65 20 66 69 6c ┆ue: [EBADF] The fil┆
0x16c0…16e0 65 20 64 65 73 63 72 69 70 74 6f 72 20 64 65 74 65 72 6d 69 6e 65 64 20 62 79 20 74 68 65 20 5f ┆e descriptor determined by the _┆
0x16e0…1700 08 44 5f 08 49 5f 08 52 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 ┆ D_ I_ R str┆
0x1700…1720 65 61 6d 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 20 76 61 6c 69 64 2e 20 20 54 68 69 73 20 72 65 ┆eam is no longer valid. This re┆
0x1720…1740 73 75 6c 74 73 20 69 66 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 ┆sults if the┆
0x1740…1760 20 5f 08 44 5f 08 49 5f 08 52 20 73 74 72 65 61 6d 20 68 61 73 20 62 65 65 6e 20 63 6c 6f 73 65 ┆ _ D_ I_ R stream has been close┆
0x1760…1780 64 2e 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 ┆d. December 1990 ┆
0x1780…17a0 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┆
0x17a0…17ae 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆rence ┆