|
|
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: 2489 (0x9b9)
Names: »dup.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat2/dup.2«
0x000…020 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_┆ 0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c ┆ u_ a_ l System Call┆ 0x040…060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 75 70 28 32 29 0a 0a 0a 0a ┆s dup(2) ┆ 0x060…080 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 ┆ 0x080…0a0 20 20 64 75 70 2c 20 64 75 70 32 20 2d 20 64 75 70 6c 69 63 61 74 65 20 61 20 64 65 73 63 72 69 ┆ dup, dup2 - duplicate a descri┆ 0x0a0…0c0 70 74 6f 72 0a 0a 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 ┆ptor S S S SY Y Y YN N N NT T T┆ 0x0c0…0e0 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 6e 08 6e 08 6e 08 6e 65 08 65 ┆ TA A A AX X X X n n n ne e┆ 0x0e0…100 08 65 08 65 77 08 77 08 77 08 77 64 08 64 08 64 08 64 20 3d 08 3d 08 3d 08 3d 20 64 08 64 08 64 ┆ e ew w w wd d d d = = = = d d d┆ 0x100…120 08 64 75 08 75 08 75 08 75 70 08 70 08 70 08 70 28 08 28 08 28 08 28 6f 08 6f 08 6f 08 6f 6c 08 ┆ du u u up p p p( ( ( (o o o ol ┆ 0x120…140 6c 08 6c 08 6c 64 08 64 08 64 08 64 64 08 64 08 64 08 64 29 08 29 08 29 08 29 0a 20 20 20 20 20 ┆l l ld d d dd d d d) ) ) ) ┆ 0x140…160 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 6e 08 6e 08 6e 08 6e 65 08 65 ┆i i i in n n nt t t t n n n ne e┆ 0x160…180 08 65 08 65 77 08 77 08 77 08 77 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 6f 08 6f 08 6f 08 ┆ e ew w w wd d d d, , , , o o o ┆ 0x180…1a0 6f 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 20 ┆ol l l ld d d dd d d d; ; ; ; ┆ 0x1a0…1c0 20 20 20 20 64 08 64 08 64 08 64 75 08 75 08 75 08 75 70 08 70 08 70 08 70 32 08 32 08 32 08 32 ┆ d d d du u u up p p p2 2 2 2┆ 0x1c0…1e0 28 08 28 08 28 08 28 6f 08 6f 08 6f 08 6f 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 64 08 64 08 ┆( ( ( (o o o ol l l ld d d dd d ┆ 0x1e0…200 64 08 64 2c 08 2c 08 2c 08 2c 20 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 77 08 77 08 77 08 77 ┆d d, , , , n n n ne e e ew w w w┆ 0x200…220 64 08 64 08 64 08 64 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e ┆d d d d) ) ) ) i i i in n n┆ 0x220…240 08 6e 74 08 74 08 74 08 74 20 6f 08 6f 08 6f 08 6f 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 64 ┆ nt t t t o o o ol l l ld d d dd┆ 0x240…260 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 77 08 77 08 ┆ d d d, , , , n n n ne e e ew w ┆ 0x260…280 77 08 77 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 ┆w wd d d d; ; ; ; D D D DE E E ┆ 0x280…2a0 45 53 08 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 ┆ES S S SC C C CR R R RI I I IP P┆ 0x2a0…2c0 08 50 08 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 ┆ P PT T T TI I I IO O O ON N N N┆ 0x2c0…2e0 0a 20 20 20 20 20 5f 08 64 5f 08 75 5f 08 70 20 64 75 70 6c 69 63 61 74 65 73 20 61 6e 20 65 78 ┆ _ d_ u_ p duplicates an ex┆ 0x2e0…300 69 73 74 69 6e 67 20 6f 62 6a 65 63 74 20 64 65 73 63 72 69 70 74 6f 72 2e 0a 0a 20 20 20 20 20 ┆isting object descriptor. ┆ 0x300…320 6f 08 6f 08 6f 08 6f 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 64 08 64 08 64 08 64 20 20 53 70 ┆o o o ol l l ld d d dd d d d Sp┆ 0x320…340 65 63 69 66 69 65 73 20 74 68 65 20 69 6e 64 65 78 20 69 6e 74 6f 20 74 68 65 20 70 65 72 2d 70 ┆ecifies the index into the per-p┆ 0x340…360 72 6f 63 65 73 73 20 64 65 73 63 72 69 70 74 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 74 61 62 ┆rocess descriptor tab┆ 0x360…380 6c 65 2e 20 20 5f 08 6f 5f 08 6c 5f 08 64 5f 08 64 20 69 73 20 61 20 73 6d 61 6c 6c 20 6e 6f 6e ┆le. _ o_ l_ d_ d is a small non┆ 0x380…3a0 2d 6e 65 67 61 74 69 76 65 20 69 6e 74 65 67 65 72 20 61 6e 64 20 6d 75 73 74 0a 20 20 20 20 20 ┆-negative integer and must ┆ 0x3a0…3c0 20 20 20 20 20 20 62 65 20 73 6d 61 6c 6c 65 72 20 74 68 61 6e 20 32 35 36 2e 0a 0a 20 20 20 20 ┆ be smaller than 256. ┆ 0x3c0…3e0 20 6e 08 6e 08 6e 08 6e 65 08 65 08 65 08 65 77 08 77 08 77 08 77 64 08 64 08 64 08 64 20 20 52 ┆ n n n ne e e ew w w wd d d d R┆ 0x3e0…400 65 74 75 72 6e 65 64 20 76 61 6c 75 65 20 69 73 20 74 68 65 20 6c 6f 77 65 73 74 20 6e 75 6d 62 ┆eturned value is the lowest numb┆ 0x400…420 65 72 65 64 20 64 65 73 63 72 69 70 74 6f 72 20 77 68 69 63 68 0a 20 20 20 20 20 20 20 20 20 20 ┆ered descriptor which ┆ 0x420…440 20 69 73 20 6e 6f 74 20 63 75 72 72 65 6e 74 6c 79 20 69 6e 20 75 73 65 20 62 79 20 74 68 65 20 ┆ is not currently in use by the ┆ 0x440…460 70 72 6f 63 65 73 73 2e 0a 0a 20 20 20 20 20 54 68 65 20 6f 62 6a 65 63 74 20 72 65 66 65 72 65 ┆process. The object refere┆ 0x460…480 6e 63 65 64 20 62 79 20 74 68 65 20 64 65 73 63 72 69 70 74 6f 72 20 64 6f 65 73 20 6e 6f 74 20 ┆nced by the descriptor does not ┆ 0x480…4a0 64 69 73 74 69 6e 67 75 69 73 68 0a 20 20 20 20 20 62 65 74 77 65 65 6e 20 72 65 66 65 72 65 6e ┆distinguish between referen┆ 0x4a0…4c0 63 65 73 20 75 73 69 6e 67 20 5f 08 6f 5f 08 6c 5f 08 64 5f 08 64 20 61 6e 64 20 5f 08 6e 5f 08 ┆ces using _ o_ l_ d_ d and _ n_ ┆ 0x4c0…4e0 65 5f 08 77 5f 08 64 20 69 6e 20 61 6e 79 20 77 61 79 2e 20 20 54 68 75 73 20 69 66 0a 20 20 20 ┆e_ w_ d in any way. Thus if ┆ 0x4e0…500 20 20 5f 08 6e 5f 08 65 5f 08 77 5f 08 64 20 61 6e 64 20 5f 08 6f 5f 08 6c 5f 08 64 5f 08 64 20 ┆ _ n_ e_ w_ d and _ o_ l_ d_ d ┆ 0x500…520 61 72 65 20 64 75 70 6c 69 63 61 74 65 20 72 65 66 65 72 65 6e 63 65 73 20 74 6f 20 61 6e 20 6f ┆are duplicate references to an o┆ 0x520…540 70 65 6e 20 66 69 6c 65 2c 20 74 68 65 0a 20 20 20 20 20 5f 08 72 5f 08 65 5f 08 61 5f 08 64 28 ┆pen file, the _ r_ e_ a_ d(┆ 0x540…560 32 29 2c 20 5f 08 77 5f 08 72 5f 08 69 5f 08 74 5f 08 65 28 32 29 20 61 6e 64 20 5f 08 6c 5f 08 ┆2), _ w_ r_ i_ t_ e(2) and _ l_ ┆ 0x560…580 73 5f 08 65 5f 08 65 5f 08 6b 28 32 29 20 63 61 6c 6c 73 20 61 6c 6c 20 6d 6f 76 65 20 61 20 73 ┆s_ e_ e_ k(2) calls all move a s┆ 0x580…5a0 69 6e 67 6c 65 0a 20 20 20 20 20 70 6f 69 6e 74 65 72 20 69 6e 74 6f 20 74 68 65 20 66 69 6c 65 ┆ingle pointer into the file┆ 0x5a0…5c0 2e 20 20 49 66 20 61 20 73 65 70 61 72 61 74 65 20 70 6f 69 6e 74 65 72 20 69 6e 74 6f 20 74 68 ┆. If a separate pointer into th┆ 0x5c0…5e0 65 20 66 69 6c 65 0a 20 20 20 20 20 69 73 20 64 65 73 69 72 65 64 2c 20 61 20 64 69 66 66 65 72 ┆e file is desired, a differ┆ 0x5e0…600 65 6e 74 20 6f 62 6a 65 63 74 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 20 66 69 6c 65 ┆ent object reference to the file┆ 0x600…620 20 6d 75 73 74 20 62 65 0a 20 20 20 20 20 6f 62 74 61 69 6e 65 64 20 62 79 20 69 73 73 75 69 6e ┆ must be obtained by issuin┆ 0x620…640 67 20 61 6e 20 61 64 64 69 74 69 6f 6e 61 6c 20 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 28 32 29 20 ┆g an additional _ o_ p_ e_ n(2) ┆ 0x640…660 63 61 6c 6c 2e 0a 0a 20 20 20 20 20 49 6e 20 74 68 65 20 73 65 63 6f 6e 64 20 66 6f 72 6d 20 6f ┆call. In the second form o┆ 0x660…680 66 20 74 68 65 20 63 61 6c 6c 2c 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 6e 5f 08 65 5f ┆f the call, the value of _ n_ e_┆ 0x680…6a0 08 77 5f 08 64 20 64 65 73 69 72 65 64 20 69 73 0a 20 20 20 20 20 73 70 65 63 69 66 69 65 64 2e ┆ w_ d desired is specified.┆ 0x6a0…6c0 20 20 49 66 20 74 68 69 73 20 64 65 73 63 72 69 70 74 6f 72 20 69 73 20 61 6c 72 65 61 64 79 20 ┆ If this descriptor is already ┆ 0x6c0…6e0 69 6e 20 75 73 65 2c 20 74 68 65 0a 20 20 20 20 20 64 65 73 63 72 69 70 74 6f 72 20 69 73 20 66 ┆in use, the descriptor is f┆ 0x6e0…700 69 72 73 74 20 64 65 61 6c 6c 6f 63 61 74 65 64 20 61 73 20 69 66 20 61 20 5f 08 63 5f 08 6c 5f ┆irst deallocated as if a _ c_ l_┆ 0x700…720 08 6f 5f 08 73 5f 08 65 28 32 29 20 63 61 6c 6c 20 68 61 64 0a 20 20 20 20 20 62 65 65 6e 20 64 ┆ o_ s_ e(2) call had been d┆ 0x720…740 6f 6e 65 20 66 69 72 73 74 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 ┆one first. R R R RE E E ET T T ┆ 0x740…760 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 56 41 08 ┆TU U U UR R R RN N N N V V V VA ┆ 0x760…780 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 20 20 20 ┆A A AL L L LU U U UE E E E ┆ 0x780…7a0 54 68 65 20 76 61 6c 75 65 20 2d 31 20 69 73 20 72 65 74 75 72 6e 65 64 20 69 66 20 61 6e 20 65 ┆The value -1 is returned if an e┆ 0x7a0…7c0 72 72 6f 72 20 6f 63 63 75 72 73 20 69 6e 20 65 69 74 68 65 72 20 63 61 6c 6c 2e 0a 20 20 20 20 ┆rror occurs in either call. ┆ 0x7c0…7e0 20 54 68 65 20 65 78 74 65 72 6e 61 6c 20 76 61 72 69 61 62 6c 65 20 5f 08 65 5f 08 72 5f 08 72 ┆ The external variable _ e_ r_ r┆ 0x7e0…800 5f 08 6e 5f 08 6f 20 69 6e 64 69 63 61 74 65 73 20 74 68 65 20 63 61 75 73 65 20 6f 66 20 74 68 ┆_ n_ o indicates the cause of th┆ 0x800…820 65 0a 20 20 20 20 20 65 72 72 6f 72 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 ┆e error. E E E ER R R RR R┆ 0x820…840 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 5f ┆ R RO O O OR R R RS S S S _┆ 0x840…860 08 64 5f 08 75 5f 08 70 20 61 6e 64 20 5f 08 64 5f 08 75 5f 08 70 5f 08 32 20 66 61 69 6c 20 69 ┆ d_ u_ p and _ d_ u_ p_ 2 fail i┆ 0x860…880 66 3a 0a 0a 20 20 20 20 20 5b 45 42 41 44 46 5d 20 20 20 20 20 20 20 20 5f 08 6f 5f 08 6c 5f 08 ┆f: [EBADF] _ o_ l_ ┆ 0x880…8a0 64 5f 08 64 20 6f 72 20 5f 08 6e 5f 08 65 5f 08 77 5f 08 64 20 69 73 20 6e 6f 74 20 61 20 76 61 ┆d_ d or _ n_ e_ w_ d is not a va┆ 0x8a0…8c0 6c 69 64 20 61 63 74 69 76 65 20 64 65 73 63 72 69 70 74 6f 72 0a 0a 20 20 20 20 20 5b 45 4d 46 ┆lid active descriptor [EMF┆ 0x8c0…8e0 49 4c 45 5d 20 20 20 20 20 20 20 54 6f 6f 20 6d 61 6e 79 20 64 65 73 63 72 69 70 74 6f 72 73 20 ┆ILE] Too many descriptors ┆ 0x8e0…900 61 72 65 20 61 63 74 69 76 65 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 ┆are active. S S S SE E E EE E E┆ 0x900…920 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a ┆ E A A A AL L L LS S S SO O O O ┆ 0x920…940 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 61 63 63 65 70 74 2c 20 ┆ System Calls (2): accept, ┆ 0x940…960 6f 70 65 6e 2c 20 63 6c 6f 73 65 2c 20 70 69 70 65 2c 20 73 6f 63 6b 65 74 2c 20 73 6f 63 6b 2d ┆open, close, pipe, socket, sock-┆ 0x960…980 0a 20 20 20 20 20 65 74 70 61 69 72 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 ┆ etpair March 1989 ┆ 0x980…9a0 20 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 ┆ TX Program┆ 0x9a0…9b9 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆mer's Reference ┆