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

⟦b3a68fe1c⟧

    Length: 3185 (0xc71)
    Names: »unlink.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat2/unlink.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 75 6e 6c 69 6e 6b 28 32 29 0a 0a 0a 0a   ┆s                  unlink(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 75 6e 6c 69 6e 6b 20 2d 20 72 65 6d 6f 76 65 20 64 69 72 65 63 74 6f 72 79 20 65 6e 74 72   ┆  unlink - remove directory entr┆
0x0a0…0c0 79 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 08 54 41   ┆y  S S S SY Y Y YN N N NT T T TA┆
0x0c0…0e0 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 75 08 75 08 75 08 75 6e 08 6e 08 6e 08   ┆ A A AX X X X      u u u un n n ┆
0x0e0…100 6e 6c 08 6c 08 6c 08 6c 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 6b 08 6b 08 6b 08 6b 28 08 28   ┆nl l l li i i in n n nk k k k( (┆
0x100…120 08 28 08 28 70 08 70 08 70 08 70 61 08 61 08 61 08 61 74 08 74 08 74 08 74 68 08 68 08 68 08 68   ┆ ( (p p p pa a a at t t th h h h┆
0x120…140 29 08 29 08 29 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   ┆) ) ) )      c c c ch h h ha a a┆
0x140…160 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 70 08 70 08 70 08 70 61 08 61 08 61 08 61 74   ┆ ar r r r * * * *p p p pa a a at┆
0x160…180 08 74 08 74 08 74 68 08 68 08 68 08 68 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45   ┆ t t th h h h; ; ; ;  D D D DE E┆
0x180…1a0 08 45 08 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   ┆ E ES S S SC C C CR R R RI I I I┆
0x1a0…1c0 50 08 50 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   ┆P P P PT T T TI I I IO O O ON N ┆
0x1c0…1e0 4e 08 4e 0a 20 20 20 20 20 5f 08 75 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 6b 20 72 65 6d 6f   ┆N N      _ u_ n_ l_ i_ n_ k remo┆
0x1e0…200 76 65 73 20 74 68 65 20 6c 69 6e 6b 20 6e 61 6d 65 64 20 62 79 20 74 68 65 20 70 61 74 68 6e 61   ┆ves the link named by the pathna┆
0x200…220 6d 65 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 0a 20 20 20 20 20 5f 08 70 5f 08 61 5f 08 74 5f   ┆me pointed to by      _ p_ a_ t_┆
0x220…240 08 68 20 61 6e 64 20 64 65 63 72 65 6d 65 6e 74 73 20 74 68 65 20 6c 69 6e 6b 20 63 6f 75 6e 74   ┆ h and decrements the link count┆
0x240…260 20 6f 66 20 74 68 65 20 66 69 6c 65 20 72 65 66 65 72 65 6e 63 65 64 20 62 79 0a 20 20 20 20 20   ┆ of the file referenced by      ┆
0x260…280 74 68 65 20 6c 69 6e 6b 2e 0a 0a 20 20 20 20 20 57 68 65 6e 20 74 68 65 20 66 69 6c 65 27 73 20   ┆the link.       When the file's ┆
0x280…2a0 6c 69 6e 6b 20 63 6f 75 6e 74 20 62 65 63 6f 6d 65 73 20 7a 65 72 6f 20 61 6e 64 20 6e 6f 20 70   ┆link count becomes zero and no p┆
0x2a0…2c0 72 6f 63 65 73 73 20 68 61 73 0a 20 20 20 20 20 74 68 65 20 66 69 6c 65 20 6f 70 65 6e 2c 20 74   ┆rocess has      the file open, t┆
0x2c0…2e0 68 65 20 73 70 61 63 65 20 6f 63 63 75 70 69 65 64 20 62 79 20 74 68 65 20 66 69 6c 65 20 77 69   ┆he space occupied by the file wi┆
0x2e0…300 6c 6c 20 62 65 20 66 72 65 65 64 0a 20 20 20 20 20 61 6e 64 20 74 68 65 20 66 69 6c 65 20 77 69   ┆ll be freed      and the file wi┆
0x300…320 6c 6c 20 6e 6f 20 6c 6f 6e 67 65 72 20 62 65 20 61 63 63 65 73 73 69 62 6c 65 2e 20 49 66 20 6f   ┆ll no longer be accessible. If o┆
0x320…340 6e 65 20 6f 72 20 6d 6f 72 65 0a 20 20 20 20 20 70 72 6f 63 65 73 73 65 73 20 68 61 76 65 20 74   ┆ne or more      processes have t┆
0x340…360 68 65 20 66 69 6c 65 20 6f 70 65 6e 20 77 68 65 6e 20 74 68 65 20 6c 61 73 74 20 6c 69 6e 6b 20   ┆he file open when the last link ┆
0x360…380 69 73 20 72 65 6d 6f 76 65 64 2c 0a 20 20 20 20 20 74 68 65 20 6c 69 6e 6b 20 77 69 6c 6c 20 62   ┆is removed,      the link will b┆
0x380…3a0 65 20 72 65 6d 6f 76 65 64 20 62 65 66 6f 72 65 20 5f 08 75 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e   ┆e removed before _ u_ n_ l_ i_ n┆
0x3a0…3c0 5f 08 6b 20 72 65 74 75 72 6e 73 2c 20 62 75 74 20 74 68 65 0a 20 20 20 20 20 72 65 6d 6f 76 61   ┆_ k returns, but the      remova┆
0x3c0…3e0 6c 20 6f 66 20 74 68 65 20 66 69 6c 65 20 63 6f 6e 74 65 6e 74 73 20 77 69 6c 6c 20 62 65 20 70   ┆l of the file contents will be p┆
0x3e0…400 6f 73 74 70 6f 6e 65 64 20 75 6e 74 69 6c 20 61 6c 6c 0a 20 20 20 20 20 72 65 66 65 72 65 6e 63   ┆ostponed until all      referenc┆
0x400…420 65 73 20 74 6f 20 74 68 65 20 66 69 6c 65 20 68 61 76 65 20 62 65 65 6e 20 63 6c 6f 73 65 64 2e   ┆es to the file have been closed.┆
0x420…440 0a 0a 20 20 20 20 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 73 68 6f 75 6c 64 20 6e 6f 74 20 70   ┆       _ p_ a_ t_ h should not p┆
0x440…460 6f 69 6e 74 20 74 6f 20 61 20 64 69 72 65 63 74 6f 72 79 2c 20 61 73 20 5f 08 75 5f 08 6e 5f 08   ┆oint to a directory, as _ u_ n_ ┆
0x460…480 6c 5f 08 69 5f 08 6e 5f 08 6b 20 63 61 6e 6e 6f 74 20 62 65 0a 20 20 20 20 20 75 73 65 64 20 6f   ┆l_ i_ n_ k cannot be      used o┆
0x480…4a0 6e 20 64 69 72 65 63 74 6f 72 69 65 73 2e 20 20 5f 08 72 5f 08 6d 5f 08 64 5f 08 69 5f 08 72 20   ┆n directories.  _ r_ m_ d_ i_ r ┆
0x4a0…4c0 73 68 6f 75 6c 64 20 62 65 20 75 73 65 64 20 74 6f 20 72 65 6d 6f 76 65 20 61 0a 20 20 20 20 20   ┆should be used to remove a      ┆
0x4c0…4e0 64 69 72 65 63 74 6f 72 79 2e 0a 0a 20 20 20 20 20 55 70 6f 6e 20 73 75 63 63 65 73 73 66 75 6c   ┆directory.       Upon successful┆
0x4e0…500 20 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 5f 08 75 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 6b 20   ┆ completion, _ u_ n_ l_ i_ n_ k ┆
0x500…520 77 69 6c 6c 20 6d 61 72 6b 20 66 6f 72 20 75 70 64 61 74 65 20 74 68 65 0a 20 20 20 20 20 5f 08   ┆will mark for update the      _ ┆
0x520…540 73 5f 08 74 5f 5f 08 63 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 61 6e 64 20 5f 08 73 5f 08 74 5f   ┆s_ t__ c_ t_ i_ m_ e and _ s_ t_┆
0x540…560 5f 08 6d 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 66 69 65 6c 64 73 20 6f 66 20 74 68 65 20 70 61   ┆_ m_ t_ i_ m_ e fields of the pa┆
0x560…580 72 65 6e 74 20 64 69 72 65 63 74 6f 72 79 2e 20 41 6c 73 6f 2c 0a 20 20 20 20 20 69 66 20 74 68   ┆rent directory. Also,      if th┆
0x580…5a0 65 20 66 69 6c 65 27 73 20 6c 69 6e 6b 20 63 6f 75 6e 74 20 69 73 20 6e 6f 74 20 7a 65 72 6f 2c   ┆e file's link count is not zero,┆
0x5a0…5c0 20 74 68 65 20 5f 08 73 5f 08 74 5f 5f 08 63 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 66 69 65 6c   ┆ the _ s_ t__ c_ t_ i_ m_ e fiel┆
0x5c0…5e0 64 20 6f 66 0a 20 20 20 20 20 74 68 65 20 66 69 6c 65 20 77 69 6c 6c 20 62 65 20 6d 61 72 6b 65   ┆d of      the file will be marke┆
0x5e0…600 64 20 66 6f 72 20 75 70 64 61 74 65 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54   ┆d for update.  R R R RE E E ET T┆
0x600…620 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 ┆
0x620…640 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   ┆
0x640…660 20 20 20 55 70 6f 6e 20 73 75 63 63 65 73 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 61   ┆   Upon successful completion, a┆
0x660…680 20 76 61 6c 75 65 20 6f 66 20 30 20 69 73 20 72 65 74 75 72 6e 65 64 2e 20 20 4f 74 68 2d 0a 20   ┆ value of 0 is returned.  Oth-  ┆
0x680…6a0 20 20 20 20 65 72 77 69 73 65 2c 20 61 20 76 61 6c 75 65 20 6f 66 20 2d 31 20 69 73 20 72 65 74   ┆    erwise, a value of -1 is ret┆
0x6a0…6c0 75 72 6e 65 64 20 61 6e 64 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 73 20 73 65 74   ┆urned and _ e_ r_ r_ n_ o is set┆
0x6c0…6e0 20 74 6f 20 69 6e 64 69 2d 0a 20 20 20 20 20 63 61 74 65 20 74 68 65 20 65 72 72 6f 72 2e 0a 0a   ┆ to indi-      cate the error.  ┆
0x6e0…700 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 08   ┆E E E ER R R RR R R RO O O OR R ┆
0x700…720 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 5f 08 75 5f 08 6e 5f 08 6c 5f 08 69   ┆R RS S S S      The _ u_ n_ l_ i┆
0x720…740 5f 08 6e 5f 08 6b 20 73 75 63 63 65 65 64 73 20 75 6e 6c 65 73 73 3a 0a 0a 20 20 20 20 20 5b 45   ┆_ n_ k succeeds unless:       [E┆
0x740…760 41 43 43 45 53 5d 20 20 20 20 20 20 20 45 69 74 68 65 72 20 73 65 61 72 63 68 20 70 65 72 6d 69   ┆ACCES]       Either search permi┆
0x760…780 73 73 69 6f 6e 20 69 73 20 64 65 6e 69 65 64 20 66 6f 72 20 61 20 63 6f 6d 2d 0a 20 20 20 20 20   ┆ssion is denied for a com-      ┆
0x780…7a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 6e 65 6e 74 20 6f 66 20 74 68 65 20 70 61 74   ┆               ponent of the pat┆
0x7a0…7c0 68 20 70 72 65 66 69 78 2c 20 6f 72 20 77 72 69 74 65 20 70 65 72 6d 69 73 2d 0a 20 20 20 20 20   ┆h prefix, or write permis-      ┆
0x7c0…7e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 69 6f 6e 20 69 73 20 64 65 6e 69 65 64 20 6f 6e   ┆               sion is denied on┆
0x7e0…800 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 20 63 6f 6e 74 61 69 6e 69 6e 67 0a 20 20 20 20 20 20   ┆ the directory containing       ┆
0x800…820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 6c 69 6e 6b 20 74 6f 20 62 65 20 72 65 6d   ┆              the link to be rem┆
0x820…840 6f 76 65 64 2e 0a 0a 20 20 20 20 20 5b 45 42 55 53 59 5d 20 20 20 20 20 20 20 20 54 68 65 20 65   ┆oved.       [EBUSY]        The e┆
0x840…860 6e 74 72 79 20 74 6f 20 62 65 20 75 6e 6c 69 6e 6b 65 64 20 69 73 20 74 68 65 20 6d 6f 75 6e 74   ┆ntry to be unlinked is the mount┆
0x860…880 20 70 6f 69 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 61   ┆ point                     for a┆
0x880…8a0 20 6d 6f 75 6e 74 65 64 20 66 69 6c 65 20 73 79 73 74 65 6d 2e 0a 0a 20 20 20 20 20 5b 45 46 41   ┆ mounted file system.       [EFA┆
0x8a0…8c0 55 4c 54 5d 20 20 20 20 20 20 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 70 6f 69 6e 74 73 20 6f   ┆ULT]       _ p_ a_ t_ h points o┆
0x8c0…8e0 75 74 73 69 64 65 20 74 68 65 20 70 72 6f 63 65 73 73 27 73 20 61 6c 6c 6f 63 61 74 65 64 0a 20   ┆utside the process's allocated  ┆
0x8e0…900 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 64 64 72 65 73 73 20 73 70 61 63 65   ┆                   address space┆
0x900…920 2e 0a 0a 20 20 20 20 20 5b 45 4c 4f 4f 50 5d 20 20 20 20 20 20 20 20 54 6f 6f 20 6d 61 6e 79 20   ┆.       [ELOOP]        Too many ┆
0x920…940 73 79 6d 62 6f 6c 69 63 20 6c 69 6e 6b 73 20 77 65 72 65 20 65 6e 63 6f 75 6e 74 65 72 65 64 20   ┆symbolic links were encountered ┆
0x940…960 69 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 6e 73 6c 61 74 69   ┆in                     translati┆
0x960…980 6e 67 20 74 68 65 20 70 61 74 68 6e 61 6d 65 2e 0a 0a 20 20 20 20 20 5b 45 4e 41 4d 45 54 4f 4f   ┆ng the pathname.       [ENAMETOO┆
0x980…9a0 4c 4f 4e 47 5d 20 54 68 65 20 6c 65 6e 67 74 68 20 6f 66 20 74 68 65 20 5f 08 70 5f 08 61 5f 08   ┆LONG] The length of the _ p_ a_ ┆
0x9a0…9c0 74 5f 08 68 20 73 74 72 69 6e 67 20 65 78 63 65 65 64 73 0a 20 20 20 20 20 20 20 20 20 20 20 20   ┆t_ h string exceeds             ┆
0x9c0…9e0 20 20 20 20 20 20 20 20 7b 50 41 54 48 5f 4d 41 58 7d 20 6f 72 20 61 20 70 61 74 68 6e 61 6d 65   ┆        {PATH_MAX} or a pathname┆
0x9e0…a00 20 63 6f 6d 70 6f 6e 65 6e 74 20 69 73 20 6c 6f 6e 67 65 72 0a 20 20 20 20 20 20 20 20 20 20 20   ┆ component is longer            ┆
0xa00…a20 20 20 20 20 20 20 20 20 20 74 68 61 6e 20 7b 4e 41 4d 45 5f 4d 41 58 7d 2e 0a 0a 20 20 20 20 20   ┆         than {NAME_MAX}.       ┆
0xa20…a40 5b 45 4e 4f 45 4e 54 5d 20 20 20 20 20 20 20 45 69 74 68 65 72 20 74 68 65 20 6e 61 6d 65 64 20   ┆[ENOENT]       Either the named ┆
0xa40…a60 66 69 6c 65 20 64 6f 65 73 20 6e 6f 74 20 65 78 69 73 74 2c 20 6f 72 20 5f 08 70 5f 08 61 5f 08   ┆file does not exist, or _ p_ a_ ┆
0xa60…a80 74 5f 08 68 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 73 20   ┆t_ h                     points ┆
0xa80…aa0 74 6f 20 61 6e 20 65 6d 70 74 79 20 73 74 72 69 6e 67 2e 0a 0a 20 20 20 20 20 5b 45 4e 4f 54 44   ┆to an empty string.       [ENOTD┆
0xaa0…ac0 49 52 5d 20 20 20 20 20 20 41 20 63 6f 6d 70 6f 6e 65 6e 74 20 6f 66 20 74 68 65 20 70 61 74 68   ┆IR]      A component of the path┆
0xac0…ae0 20 70 72 65 66 69 78 20 69 73 20 6e 6f 74 20 61 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 20 20 20 20   ┆ prefix is not a                ┆
0xae0…b00 20 20 20 20 20 20 20 20 20 20 20 64 69 72 65 63 74 6f 72 79 2e 0a 0a 20 20 20 20 20 5b 45 50 45   ┆           directory.       [EPE┆
0xb00…b20 52 4d 5d 20 20 20 20 20 20 20 20 54 68 65 20 66 69 6c 65 20 6e 61 6d 65 64 20 62 79 20 5f 08 70   ┆RM]        The file named by _ p┆
0xb20…b40 5f 08 61 5f 08 74 5f 08 68 20 69 73 20 61 20 64 69 72 65 63 74 6f 72 79 2e 0a 0a 20 20 20 20 20   ┆_ a_ t_ h is a directory.       ┆
0xb40…b60 5b 45 52 4f 46 53 5d 20 20 20 20 20 20 20 20 54 68 65 20 6e 61 6d 65 64 20 66 69 6c 65 20 72 65   ┆[EROFS]        The named file re┆
0xb60…b80 73 69 64 65 73 20 6f 6e 20 61 20 72 65 61 64 2d 6f 6e 6c 79 20 66 69 6c 65 0a 20 20 20 20 20 20   ┆sides on a read-only file       ┆
0xb80…ba0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 79 73 74 65 6d 2e 0a 0a 53 08 53 08 53 08 53 45 08   ┆              system.  S S S SE ┆
0xba0…bc0 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 08 4c 53 08 53 08 53   ┆E E EE E E E A A A AL L L LS S S┆
0xbc0…be0 08 53 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   ┆ SO O O O      System Calls (2):┆
0xbe0…c00 20 20 63 6c 6f 73 65 2c 20 6c 69 6e 6b 2c 20 72 65 6d 6f 76 65 2c 20 72 6d 64 69 72 0a 0a 44 65   ┆  close, link, remove, rmdir  De┆
0xc00…c20 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 20 20 20 20 20 20   ┆cember 1990                     ┆
0xc20…c40 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 65 0a   ┆      TX Programmer's Reference ┆
0xc40…c60 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 0a   ┆                                ┆
0xc60…c71 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                                ┆                 ┆