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

⟦e968aa6a5⟧

    Length: 2842 (0xb1a)
    Names: »detach.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/detach.2« 
        └─⟦this⟧ »./usr/man/cat2/detach.2« 

Default Hex Dump

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 64 65 74 61 63 68 28 32 29 0a 0a 0a 0a   ┆s                  detach(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 65 74 61 63 68 20 2d 20 60 60 68 61 6c 66 2d 63 6c 6f 73 65 27 27 20 66 6f 72 20 54 58   ┆  detach - ``half-close'' for TX┆
0x0a0…0c0 20 49 50 43 20 64 65 73 63 72 69 70 74 6f 72 3b 20 75 73 65 64 20 77 69 74 68 0a 20 20 20 20 20   ┆ IPC descriptor; used with      ┆
0x0c0…0e0 5f 08 61 5f 08 74 5f 08 74 5f 08 61 5f 08 63 5f 08 68 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59   ┆_ a_ t_ t_ a_ c_ h  S S S SY Y Y┆
0x0e0…100 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 58 0a 20   ┆ YN N N NT T T TA A A AX X X X  ┆
0x100…120 20 20 20 20 64 08 64 08 64 08 64 65 08 65 08 65 08 65 74 08 74 08 74 08 74 61 08 61 08 61 08 61   ┆    d d d de e e et t t ta a a a┆
0x120…140 63 08 63 08 63 08 63 68 08 68 08 68 08 68 28 08 28 08 28 08 28 66 08 66 08 66 08 66 64 08 64 08   ┆c c c ch h h h( ( ( (f f f fd d ┆
0x140…160 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 08 6e 74 08   ┆d d) ) ) )      i i i in n n nt ┆
0x160…180 74 08 74 08 74 20 66 08 66 08 66 08 66 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20   ┆t t t f f f fd d d d; ; ; ;     ┆
0x180…1a0 20 20 61 08 61 08 61 08 61 74 08 74 08 74 08 74 74 08 74 08 74 08 74 61 08 61 08 61 08 61 63 08   ┆  a a a at t t tt t t ta a a ac ┆
0x1a0…1c0 63 08 63 08 63 68 08 68 08 68 08 68 28 08 28 08 28 08 28 66 08 66 08 66 08 66 64 08 64 08 64 08   ┆c c ch h h h( ( ( (f f f fd d d ┆
0x1c0…1e0 64 2c 08 2c 08 2c 08 2c 20 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 64 08 64 08 64 08 64 65 08   ┆d, , , , m m m mo o o od d d de ┆
0x1e0…200 65 08 65 08 65 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 08 6e   ┆e e e) ) ) )      i i i in n n n┆
0x200…220 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c 20 6d 08   ┆t t t t f f f fd d d d, , , , m ┆
0x220…240 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 64 08 64 08 64 08 64 65 08 65 08 65 08 65 3b 08 3b 08 3b 08   ┆m m mo o o od d d de e e e; ; ; ┆
0x240…260 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52   ┆;  D D D DE E E ES S S SC C C CR┆
0x260…280 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49   ┆ R R RI I I IP P P PT T T TI I I┆
0x280…2a0 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20 5f 08 64 5f 08 65   ┆ IO O O ON N N N      The _ d_ e┆
0x2a0…2c0 5f 08 74 5f 08 61 5f 08 63 5f 08 68 20 63 61 6c 6c 20 73 65 76 65 72 73 20 74 68 65 20 73 70 65   ┆_ t_ a_ c_ h call severs the spe┆
0x2c0…2e0 63 69 66 69 65 64 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 61 6e 64 20 6b 65 65 70 73 0a 20 20 20 20   ┆cified connection and keeps     ┆
0x2e0…300 20 74 68 65 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 20 72 65 6e 64 65 7a 76 6f 75 73   ┆ the reference to the rendezvous┆
0x300…320 20 49 2d 6e 6f 64 65 2e 20 20 54 68 65 20 5f 08 66 5f 08 64 20 69 6e 66 6f 72 6d 61 74 69 6f 6e   ┆ I-node.  The _ f_ d information┆
0x320…340 0a 20 20 20 20 20 69 73 20 75 73 65 64 20 74 6f 20 61 76 6f 69 64 20 74 68 65 20 66 69 6c 65 20   ┆      is used to avoid the file ┆
0x340…360 6c 6f 6f 6b 2d 75 70 20 6f 70 65 72 61 74 69 6f 6e 20 6f 6e 20 73 75 62 73 65 71 75 65 6e 74 0a   ┆look-up operation on subsequent ┆
0x360…380 20 20 20 20 20 60 60 71 75 69 63 6b 2d 6f 70 65 6e 73 27 27 20 28 76 69 61 20 74 68 65 20 5f 08   ┆     ``quick-opens'' (via the _ ┆
0x380…3a0 61 5f 08 74 5f 08 74 5f 08 61 5f 08 63 5f 08 68 20 63 61 6c 6c 29 2e 0a 0a 20 20 20 20 20 4e 08   ┆a_ t_ t_ a_ c_ h call).       N ┆
0x3a0…3c0 4e 08 4e 08 4e 6f 08 6f 08 6f 08 6f 74 08 74 08 74 08 74 65 08 65 08 65 08 65 73 08 73 08 73 08   ┆N N No o o ot t t te e e es s s ┆
0x3c0…3e0 73 0a 20 20 20 20 20 4f 6e 20 74 68 65 20 6c 61 73 74 20 49 50 43 20 66 69 6c 65 20 74 6f 20 62   ┆s      On the last IPC file to b┆
0x3e0…400 65 20 64 65 74 61 63 68 65 64 20 6f 6e 20 74 68 65 20 73 65 72 76 65 72 20 73 69 64 65 2c 0a 20   ┆e detached on the server side,  ┆
0x400…420 20 20 20 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 73 74 61 74 65 20 69 73 20 65 78 69 74 65 64 20   ┆    transaction state is exited ┆
0x420…440 61 6e 64 20 61 6c 6c 20 64 65 66 65 72 72 65 64 20 63 6c 6f 73 69 6e 67 73 20 61 72 65 0a 20 20   ┆and all deferred closings are   ┆
0x440…460 20 20 20 64 65 74 61 63 68 65 64 2e 0a 0a 20 20 20 20 20 49 66 20 74 68 65 20 74 72 61 6e 73 61   ┆   detached.       If the transa┆
0x460…480 63 74 69 6f 6e 20 77 61 73 20 63 6f 6d 6d 69 74 74 65 64 20 6f 72 20 61 62 6f 72 74 65 64 20 28   ┆ction was committed or aborted (┆
0x480…4a0 62 79 20 74 68 65 20 50 55 29 20 61 6e 64 0a 20 20 20 20 20 6e 6f 20 6f 74 68 65 72 20 73 65 72   ┆by the PU) and      no other ser┆
0x4a0…4c0 76 65 72 20 65 78 69 73 74 73 2c 20 74 68 65 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 65 6e 74 72   ┆ver exists, the transaction entr┆
0x4c0…4e0 79 20 69 73 20 64 65 6c 65 74 65 64 2e 0a 0a 20 20 20 20 20 43 08 43 08 43 08 43 61 08 61 08 61   ┆y is deleted.       C C C Ca a a┆
0x4e0…500 08 61 6c 08 6c 08 6c 08 6c 6c 08 6c 08 6c 08 6c 20 53 08 53 08 53 08 53 65 08 65 08 65 08 65 71   ┆ al l l ll l l l S S S Se e e eq┆
0x500…520 08 71 08 71 08 71 75 08 75 08 75 08 75 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 63 08 63 08 63   ┆ q q qu u u ue e e en n n nc c c┆
0x520…540 08 63 65 08 65 08 65 08 65 0a 20 20 20 20 20 54 68 65 20 75 73 75 61 6c 20 73 65 71 75 65 6e 63   ┆ ce e e e      The usual sequenc┆
0x540…560 65 73 20 61 72 65 20 67 69 76 65 6e 20 62 65 6c 6f 77 2e 20 20 54 68 65 20 73 65 63 6f 6e 64 20   ┆es are given below.  The second ┆
0x560…580 6d 65 74 68 6f 64 20 69 73 0a 20 20 20 20 20 70 72 65 66 65 72 61 62 6c 65 2e 0a 0a 20 20 20 20   ┆method is      preferable.      ┆
0x580…5a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 70 65 6e 20 20 20 20 20 20 20 20 20 20 20 20 66 64   ┆              open            fd┆
0x5a0…5c0 3d 6f 70 65 6e 20 28 2e 2e 2e 20 4f 5f 44 45 54 41 43 48 29 0a 20 20 20 20 20 20 20 20 20 20 20   ┆=open (... O_DETACH)            ┆
0x5c0…5e0 20 20 20 20 20 20 20 2e 2e 2e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 68 69 6c 65 20   ┆       ...                while ┆
0x5e0…600 28 72 75 6e 6e 69 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 74 61   ┆(running)                   deta┆
0x600…620 63 68 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ch             {                ┆
0x620…640 20 20 20 2e 2e 2e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 74 74 61 63   ┆   ...                     attac┆
0x640…660 68 28 66 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 74 74 61 63 68 20 20   ┆h(fd)                   attach  ┆
0x660…680 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 2e 2e 20 70 72 6f 63 65 73 73 0a 20 20 20 20   ┆                ... process     ┆
0x680…6a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e 2e 2e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆              ...               ┆
0x6a0…6c0 20 20 20 20 20 20 64 65 74 61 63 68 28 66 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆      detach(fd)                ┆
0x6c0…6e0 20 20 20 63 6c 6f 73 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20   ┆   close              }         ┆
0x6e0…700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6c 6f 73   ┆                            clos┆
0x700…720 65 28 66 64 29 0a 0a 20 20 20 20 20 54 68 65 20 5f 08 61 5f 08 74 5f 08 74 5f 08 61 5f 08 63 5f   ┆e(fd)       The _ a_ t_ t_ a_ c_┆
0x720…740 08 68 2c 20 5f 08 64 5f 08 65 5f 08 74 5f 08 61 5f 08 63 5f 08 68 20 73 65 71 75 65 6e 63 65 20   ┆ h, _ d_ e_ t_ a_ c_ h sequence ┆
0x740…760 61 72 65 20 72 65 70 65 61 74 61 62 6c 65 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54   ┆are repeatable.  R R R RE E E ET┆
0x760…780 08 54 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   ┆ T T TU U U UR R R RN N N N V V ┆
0x780…7a0 56 08 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   ┆V VA A A AL L L LU U U UE E E E ┆
0x7a0…7c0 20 20 20 20 20 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   ┆     The value -1 is returned if┆
0x7c0…7e0 20 61 6e 20 65 72 72 6f 72 20 6f 63 63 75 72 73 2e 20 20 54 68 65 20 65 78 74 65 72 6e 61 6c 0a   ┆ an error occurs.  The external ┆
0x7e0…800 20 20 20 20 20 76 61 72 69 61 62 6c 65 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 6e   ┆     variable _ e_ r_ r_ n_ o in┆
0x800…820 64 69 63 61 74 65 73 20 74 68 65 20 63 61 75 73 65 20 6f 66 20 74 68 65 20 65 72 72 6f 72 2e 0a   ┆dicates the cause of the error. ┆
0x820…840 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52   ┆ E E E ER R R RR R R RO O O OR R┆
0x840…860 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 5b 45 42 41 44 46 5d 20 20 20 20 20 20 20 20   ┆ R RS S S S      [EBADF]        ┆
0x860…880 5f 08 66 5f 08 64 20 69 73 20 6e 6f 74 20 61 20 76 61 6c 69 64 20 64 65 73 63 72 69 70 74 6f 72   ┆_ f_ d is not a valid descriptor┆
0x880…8a0 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 66 69 6c 65 20   ┆.       [EINVAL]       The file ┆
0x8a0…8c0 6d 75 73 74 20 62 65 20 6f 70 65 6e 65 64 20 28 65 78 61 63 74 6c 79 20 6f 6e 63 65 29 2e 0a 0a   ┆must be opened (exactly once).  ┆
0x8c0…8e0 20 20 20 20 20 5b 45 4d 46 49 4c 45 5d 20 20 20 20 20 20 20 54 68 69 73 20 66 69 6c 65 20 69 73   ┆     [EMFILE]       This file is┆
0x8e0…900 20 6f 70 65 6e 2c 20 61 6e 64 20 74 68 65 20 5f 08 61 5f 08 74 5f 08 74 5f 08 61 5f 08 63 5f 08   ┆ open, and the _ a_ t_ t_ a_ c_ ┆
0x900…920 68 20 77 61 73 20 67 69 76 65 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆h was given                     ┆
0x920…940 6f 75 74 73 69 64 65 20 74 68 65 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 72 61 6e 67 65 20 28 62   ┆outside the transaction range (b┆
0x940…960 75 74 20 74 68 65 20 5f 08 64 5f 08 65 5f 08 74 5f 08 61 5f 08 63 5f 08 68 0a 20 20 20 20 20 20   ┆ut the _ d_ e_ t_ a_ c_ h       ┆
0x960…980 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 61 73 20 69 6e 73 69 64 65 20 74 68 65 20 72 61 6e   ┆              was inside the ran┆
0x980…9a0 67 65 29 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 45 4e 54 5d 20 20 20 20 20 20 20 54 68 65 20 72 65   ┆ge).       [ENOENT]       The re┆
0x9a0…9c0 66 65 72 65 6e 63 65 20 69 73 20 74 6f 20 61 20 64 69 66 66 65 72 65 6e 74 20 69 2d 6e 6f 64 65   ┆ference is to a different i-node┆
0x9c0…9e0 2c 20 66 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 61 6d 70 6c   ┆, for                     exampl┆
0x9e0…a00 65 2c 20 61 66 74 65 72 20 50 55 20 74 61 6b 65 6f 76 65 72 2e 0a 0a 20 20 20 20 20 5b 45 4f 50   ┆e, after PU takeover.       [EOP┆
0xa00…a20 4e 4f 54 53 55 50 50 5d 20 20 20 54 68 69 73 20 63 61 6c 6c 20 69 73 20 6f 6e 6c 79 20 61 6c 6c   ┆NOTSUPP]   This call is only all┆
0xa20…a40 6f 77 65 64 20 77 69 74 68 20 54 58 20 6e 61 6d 65 64 2d 49 50 43 2e 0a 0a 0a 0a 0a 0a 0a 0a 0a   ┆owed with TX named-IPC.         ┆
0xa40…a60 53 08 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   ┆S S S SE E E EE E E E A A A AL L┆
0xa60…a80 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43   ┆ L LS S S SO O O O      System C┆
0xa80…aa0 61 6c 6c 73 20 28 32 29 3a 20 20 61 74 74 61 63 68 2c 20 6f 70 65 6e 2c 20 63 6c 6f 73 65 0a 0a   ┆alls (2):  attach, open, close  ┆
0xaa0…ac0 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆March 1989                      ┆
0xac0…ae0 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 72 65 6e 63   ┆        TX Programmer's Referenc┆
0xae0…b00 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a   ┆e                               ┆
0xb00…b1a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                     ┆                          ┆