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

⟦2baa58b50⟧

    Length: 3160 (0xc58)
    Names: »ftok.3«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat3/ftok.3« 
        └─⟦this⟧ »./usr/man/cat3/ftok.3« 

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 4c 69 62 72 61 72 79 20 46 75 6e 63 74   ┆ u_ a_ l           Library Funct┆
0x040…060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 74 6f 6b 28 33 29 0a 0a 0a 0a   ┆ions                 ftok(3)    ┆
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 66 74 6f 6b 20 2d 20 73 68 61 72 65 64 2d 6d 65 6d 6f 72 79 2f 73 65 6d 61 70 68 6f 72 65   ┆  ftok - shared-memory/semaphore┆
0x0a0…0c0 20 49 50 43 20 70 61 63 6b 61 67 65 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08   ┆ IPC package  S S S SY Y Y YN N ┆
0x0c0…0e0 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 20 20 20 20 23 08   ┆N NT T T TA A A AX X X X      # ┆
0x0e0…100 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 08 6c 08   ┆# # #i i i in n n nc c c cl l l ┆
0x100…120 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 3c 73 08   ┆lu u u ud d d de e e e < < < <s ┆
0x120…140 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08   ┆s s sy y y ys s s s/ / / /t t t ┆
0x140…160 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e   ┆ty y y yp p p pe e e es s s s. .┆
0x160…180 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 20 20 20 20 20 23 08 23 08 23 08 23 69   ┆ . .h h h h> > > >      # # # #i┆
0x180…1a0 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75   ┆ i i in n n nc c c cl l l lu u u┆
0x1a0…1c0 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79   ┆ ud d d de e e e < < < <s s s sy┆
0x1c0…1e0 08 79 08 79 08 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 69 08 69 08 69 08 69 70 08 70 08 70   ┆ y y ys s s s/ / / /i i i ip p p┆
0x1e0…200 08 70 63 08 63 08 63 08 63 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a   ┆ pc c c c. . . .h h h h> > > >  ┆
0x200…220 20 20 20 20 20 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08 79 08 79 08 79 5f 08 5f 08 5f 08   ┆     k k k ke e e ey y y y_ _ _ ┆
0x220…240 5f 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 6b 08   ┆_t t t t f f f ft t t to o o ok ┆
0x240…260 6b 08 6b 08 6b 28 08 28 08 28 08 28 70 08 70 08 70 08 70 61 08 61 08 61 08 61 74 08 74 08 74 08   ┆k k k( ( ( (p p p pa a a at t t ┆
0x260…280 74 68 08 68 08 68 08 68 2c 08 2c 08 2c 08 2c 20 69 08 69 08 69 08 69 64 08 64 08 64 08 64 29 08   ┆th h h h, , , , i i i id d d d) ┆
0x280…2a0 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 08 61   ┆) ) )      c c c ch h h ha a a a┆
0x2a0…2c0 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 08 74   ┆r r r r * * * *p p p pa a a at t┆
0x2c0…2e0 08 74 08 74 68 08 68 08 68 08 68 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 63 08 63 08 63 08 63 68   ┆ t th h h h; ; ; ;      c c c ch┆
0x2e0…300 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 69 08 69 08 69 08 69 64 08 64 08   ┆ h h ha a a ar r r r i i i id d ┆
0x300…320 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 45 53 08 53 08 53 08   ┆d d; ; ; ;  D D D DE E E ES S S ┆
0x320…340 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 50 54 08 54   ┆SC C C CR R R RI I I IP P P PT T┆
0x340…360 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 20 20 20 41   ┆ T TI I I IO O O ON N N N      A┆
0x360…380 6c 6c 20 73 68 61 72 65 64 2d 6d 65 6d 6f 72 79 2f 73 65 6d 61 70 68 6f 72 65 20 69 6e 74 65 72   ┆ll shared-memory/semaphore inter┆
0x380…3a0 70 72 6f 63 65 73 73 20 63 6f 6d 6d 75 6e 69 63 61 74 69 6f 6e 0a 20 20 20 20 20 66 61 63 69 6c   ┆process communication      facil┆
0x3a0…3c0 69 74 69 65 73 20 72 65 71 75 69 72 65 20 74 68 65 20 75 73 65 72 20 74 6f 20 73 75 70 70 6c 79   ┆ities require the user to supply┆
0x3c0…3e0 20 61 20 6b 65 79 20 74 6f 20 62 65 20 75 73 65 64 20 62 79 0a 20 20 20 20 20 74 68 65 20 5f 08   ┆ a key to be used by      the _ ┆
0x3e0…400 73 5f 08 65 5f 08 6d 5f 08 67 5f 08 65 5f 08 74 20 61 6e 64 20 5f 08 73 5f 08 68 5f 08 6d 5f 08   ┆s_ e_ m_ g_ e_ t and _ s_ h_ m_ ┆
0x400…420 67 5f 08 65 5f 08 74 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 20 74 6f 20 6f 62 74 61 69 6e 20 69   ┆g_ e_ t system calls to obtain i┆
0x420…440 6e 74 65 72 70 72 6f 63 65 73 73 0a 20 20 20 20 20 63 6f 6d 6d 75 6e 69 63 61 74 69 6f 6e 20 69   ┆nterprocess      communication i┆
0x440…460 64 65 6e 74 69 66 69 65 72 73 2e 20 20 4f 6e 65 20 73 75 67 67 65 73 74 65 64 20 6d 65 74 68 6f   ┆dentifiers.  One suggested metho┆
0x460…480 64 20 66 6f 72 20 66 6f 72 6d 69 6e 67 0a 20 20 20 20 20 61 20 6b 65 79 20 69 73 20 74 6f 20 75   ┆d for forming      a key is to u┆
0x480…4a0 73 65 20 74 68 65 20 5f 08 66 5f 08 74 5f 08 6f 5f 08 6b 20 73 75 62 72 6f 75 74 69 6e 65 20 64   ┆se the _ f_ t_ o_ k subroutine d┆
0x4a0…4c0 65 73 63 72 69 62 65 64 20 62 65 6c 6f 77 2e 0a 20 20 20 20 20 41 6e 6f 74 68 65 72 20 77 61 79   ┆escribed below.      Another way┆
0x4c0…4e0 20 74 6f 20 63 6f 6d 70 6f 73 65 20 6b 65 79 73 20 69 73 20 74 6f 20 69 6e 63 6c 75 64 65 20 74   ┆ to compose keys is to include t┆
0x4e0…500 68 65 20 70 72 6f 6a 65 63 74 20 49 44 20 69 6e 0a 20 20 20 20 20 74 68 65 20 6d 6f 73 74 20 73   ┆he project ID in      the most s┆
0x500…520 69 67 6e 69 66 69 63 61 6e 74 20 62 79 74 65 20 61 6e 64 20 74 6f 20 75 73 65 20 74 68 65 20 72   ┆ignificant byte and to use the r┆
0x520…540 65 6d 61 69 6e 69 6e 67 20 70 6f 72 74 69 6f 6e 0a 20 20 20 20 20 61 73 20 61 20 73 65 71 75 65   ┆emaining portion      as a seque┆
0x540…560 6e 63 65 20 6e 75 6d 62 65 72 2e 20 20 54 68 65 72 65 20 61 72 65 20 6d 61 6e 79 20 6f 74 68 65   ┆nce number.  There are many othe┆
0x560…580 72 20 77 61 79 73 20 74 6f 20 66 6f 72 6d 0a 20 20 20 20 20 6b 65 79 73 2c 20 62 75 74 20 69 74   ┆r ways to form      keys, but it┆
0x580…5a0 20 69 73 20 6e 65 63 65 73 73 61 72 79 20 66 6f 72 20 65 61 63 68 20 73 79 73 74 65 6d 20 74 6f   ┆ is necessary for each system to┆
0x5a0…5c0 20 64 65 66 69 6e 65 20 73 74 61 6e 2d 0a 20 20 20 20 20 64 61 72 64 73 20 66 6f 72 20 66 6f 72   ┆ define stan-      dards for for┆
0x5c0…5e0 6d 69 6e 67 20 74 68 65 6d 2e 20 20 49 66 20 6e 6f 20 73 74 61 6e 64 61 72 64 20 69 73 20 61 64   ┆ming them.  If no standard is ad┆
0x5e0…600 68 65 72 65 64 20 74 6f 2c 20 75 6e 72 65 2d 0a 20 20 20 20 20 6c 61 74 65 64 20 70 72 6f 63 65   ┆hered to, unre-      lated proce┆
0x600…620 73 73 65 73 20 63 61 6e 20 75 6e 69 6e 74 65 6e 74 69 6f 6e 61 6c 6c 79 20 69 6e 74 65 72 66 65   ┆sses can unintentionally interfe┆
0x620…640 72 65 20 77 69 74 68 20 65 61 63 68 0a 20 20 20 20 20 6f 74 68 65 72 27 73 20 6f 70 65 72 61 74   ┆re with each      other's operat┆
0x640…660 69 6f 6e 2e 20 20 54 68 65 72 65 66 6f 72 65 2c 20 69 74 20 69 73 20 73 74 72 6f 6e 67 6c 79 20   ┆ion.  Therefore, it is strongly ┆
0x660…680 73 75 67 67 65 73 74 65 64 20 74 68 61 74 0a 20 20 20 20 20 74 68 65 20 6d 6f 73 74 20 73 69 67   ┆suggested that      the most sig┆
0x680…6a0 6e 69 66 69 63 61 6e 74 20 62 79 74 65 20 6f 66 20 61 20 6b 65 79 20 72 65 66 65 72 20 74 6f 20   ┆nificant byte of a key refer to ┆
0x6a0…6c0 61 20 70 72 6f 6a 65 63 74 20 73 6f 0a 20 20 20 20 20 74 68 61 74 20 6b 65 79 73 20 64 6f 20 6e   ┆a project so      that keys do n┆
0x6c0…6e0 6f 74 20 63 6f 6e 66 6c 69 63 74 20 61 63 72 6f 73 73 20 61 20 67 69 76 65 6e 20 73 79 73 74 65   ┆ot conflict across a given syste┆
0x6e0…700 6d 2e 0a 0a 20 20 20 20 20 5f 08 66 5f 08 74 5f 08 6f 5f 08 6b 20 72 65 74 75 72 6e 73 20 61 20   ┆m.       _ f_ t_ o_ k returns a ┆
0x700…720 6b 65 79 20 62 61 73 65 64 20 6f 6e 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 61 6e 64 20 5f 08   ┆key based on _ p_ a_ t_ h and _ ┆
0x720…740 69 5f 08 64 20 74 68 61 74 20 69 73 20 75 73 61 62 6c 65 20 69 6e 0a 20 20 20 20 20 73 75 62 73   ┆i_ d that is usable in      subs┆
0x740…760 65 71 75 65 6e 74 20 5f 08 73 5f 08 65 5f 08 6d 5f 08 67 5f 08 65 5f 08 74 20 61 6e 64 20 5f 08   ┆equent _ s_ e_ m_ g_ e_ t and _ ┆
0x760…780 73 5f 08 68 5f 08 6d 5f 08 67 5f 08 65 5f 08 74 20 73 79 73 74 65 6d 20 63 61 6c 6c 73 2e 20 20   ┆s_ h_ m_ g_ e_ t system calls.  ┆
0x780…7a0 5f 08 50 5f 08 61 5f 08 74 5f 08 68 20 6d 75 73 74 20 62 65 20 74 68 65 0a 20 20 20 20 20 70 61   ┆_ P_ a_ t_ h must be the      pa┆
0x7a0…7c0 74 68 20 6e 61 6d 65 20 6f 66 20 61 6e 20 65 78 69 73 74 69 6e 67 20 66 69 6c 65 20 74 68 61 74   ┆th name of an existing file that┆
0x7c0…7e0 20 69 73 20 61 63 63 65 73 73 69 62 6c 65 20 74 6f 20 74 68 65 20 70 72 6f 2d 0a 20 20 20 20 20   ┆ is accessible to the pro-      ┆
0x7e0…800 63 65 73 73 2e 20 20 5f 08 49 5f 08 64 20 69 73 20 61 20 63 68 61 72 61 63 74 65 72 20 77 68 69   ┆cess.  _ I_ d is a character whi┆
0x800…820 63 68 20 75 6e 69 71 75 65 6c 79 20 69 64 65 6e 74 69 66 69 65 73 20 61 20 70 72 6f 2d 0a 20 20   ┆ch uniquely identifies a pro-   ┆
0x820…840 20 20 20 6a 65 63 74 2e 20 20 4e 6f 74 65 20 74 68 61 74 20 5f 08 66 5f 08 74 5f 08 6f 5f 08 6b   ┆   ject.  Note that _ f_ t_ o_ k┆
0x840…860 20 72 65 74 75 72 6e 73 20 74 68 65 20 73 61 6d 65 20 6b 65 79 20 66 6f 72 20 6c 69 6e 6b 65 64   ┆ returns the same key for linked┆
0x860…880 20 66 69 6c 65 73 0a 20 20 20 20 20 77 68 65 6e 20 63 61 6c 6c 65 64 20 77 69 74 68 20 74 68 65   ┆ files      when called with the┆
0x880…8a0 20 73 61 6d 65 20 5f 08 69 5f 08 64 20 61 6e 64 20 74 68 61 74 20 69 74 20 72 65 74 75 72 6e 73   ┆ same _ i_ d and that it returns┆
0x8a0…8c0 20 64 69 66 66 65 72 65 6e 74 0a 20 20 20 20 20 6b 65 79 73 20 77 68 65 6e 20 63 61 6c 6c 65 64   ┆ different      keys when called┆
0x8c0…8e0 20 77 69 74 68 20 74 68 65 20 73 61 6d 65 20 66 69 6c 65 20 6e 61 6d 65 20 62 75 74 20 64 69 66   ┆ with the same file name but dif┆
0x8e0…900 66 65 72 65 6e 74 20 5f 08 69 5f 08 64 5f 08 73 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08   ┆ferent _ i_ d_ s.  S S S SE E E ┆
0x900…920 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 4f 08   ┆EE E E E A A A AL L L LS S S SO ┆
0x920…940 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 20 66   ┆O O O      User Commands (1):  f┆
0x940…960 73 65 6d 69 64 73 2c 20 66 73 68 6d 69 64 73 2c 20 72 6d 73 68 6d 0a 20 20 20 20 20 53 79 73 74   ┆semids, fshmids, rmshm      Syst┆
0x960…980 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 69 6e 74 72 6f 2c 20 73 65 6d 67 65 74 2c 20 73 68   ┆em Calls (2):  intro, semget, sh┆
0x980…9a0 6d 67 65 74 0a 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47   ┆mget  D D D DI I I IA A A AG G G┆
0x9a0…9c0 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08   ┆ GN N N NO O O OS S S ST T T TI ┆
0x9c0…9e0 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 66 5f 08 74 5f   ┆I I IC C C CS S S S      _ f_ t_┆
0x9e0…a00 08 6f 5f 08 6b 20 72 65 74 75 72 6e 73 20 28 08 28 08 28 08 28 6b 08 6b 08 6b 08 6b 65 08 65 08   ┆ o_ k returns ( ( ( (k k k ke e ┆
0xa00…a20 65 08 65 79 08 79 08 79 08 79 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 29 08 29 08 29 08 29 20   ┆e ey y y y_ _ _ _t t t t) ) ) ) ┆
0xa20…a40 2d 08 2d 08 2d 08 2d 31 08 31 08 31 08 31 20 69 66 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 64   ┆- - - -1 1 1 1 if _ p_ a_ t_ h d┆
0xa40…a60 6f 65 73 20 6e 6f 74 20 65 78 69 73 74 20 6f 72 20 69 66 20 69 74 20 69 73 0a 20 20 20 20 20 6e   ┆oes not exist or if it is      n┆
0xa60…a80 6f 74 20 61 63 63 65 73 73 69 62 6c 65 20 74 6f 20 74 68 65 20 70 72 6f 63 65 73 73 2e 0a 0a 57   ┆ot accessible to the process.  W┆
0xa80…aa0 08 57 08 57 08 57 41 08 41 08 41 08 41 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 49 08 49 08 49   ┆ W W WA A A AR R R RN N N NI I I┆
0xaa0…ac0 08 49 4e 08 4e 08 4e 08 4e 47 08 47 08 47 08 47 0a 20 20 20 20 20 49 66 20 74 68 65 20 66 69 6c   ┆ IN N N NG G G G      If the fil┆
0xac0…ae0 65 20 77 68 6f 73 65 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 69 73 20 70 61 73 73 65 64 20 74   ┆e whose _ p_ a_ t_ h is passed t┆
0xae0…b00 6f 20 5f 08 66 5f 08 74 5f 08 6f 5f 08 6b 20 69 73 20 72 65 6d 6f 76 65 64 20 77 68 65 6e 0a 20   ┆o _ f_ t_ o_ k is removed when  ┆
0xb00…b20 20 20 20 20 6b 65 79 73 20 73 74 69 6c 6c 20 72 65 66 65 72 20 74 6f 20 74 68 65 20 66 69 6c 65   ┆    keys still refer to the file┆
0xb20…b40 2c 20 66 75 74 75 72 65 20 63 61 6c 6c 73 20 74 6f 20 5f 08 66 5f 08 74 5f 08 6f 5f 08 6b 20 77   ┆, future calls to _ f_ t_ o_ k w┆
0xb40…b60 69 74 68 20 74 68 65 0a 20 20 20 20 20 73 61 6d 65 20 5f 08 70 5f 08 61 5f 08 74 5f 08 68 20 61   ┆ith the      same _ p_ a_ t_ h a┆
0xb60…b80 6e 64 20 5f 08 69 5f 08 64 20 77 69 6c 6c 20 72 65 74 75 72 6e 20 61 6e 20 65 72 72 6f 72 2e 20   ┆nd _ i_ d will return an error. ┆
0xb80…ba0 20 49 66 20 74 68 65 20 73 61 6d 65 20 66 69 6c 65 20 69 73 0a 20 20 20 20 20 72 65 63 72 65 61   ┆ If the same file is      recrea┆
0xba0…bc0 74 65 64 2c 20 74 68 65 6e 20 5f 08 66 5f 08 74 5f 08 6f 5f 08 6b 20 69 73 20 6c 69 6b 65 6c 79   ┆ted, then _ f_ t_ o_ k is likely┆
0xbc0…be0 20 74 6f 20 72 65 74 75 72 6e 20 61 20 64 69 66 66 65 72 65 6e 74 20 6b 65 79 0a 20 20 20 20 20   ┆ to return a different key      ┆
0xbe0…c00 74 68 61 6e 20 69 74 20 64 69 64 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 74 69 6d 65 20 69 74   ┆than it did the original time it┆
0xc00…c20 20 77 61 73 20 63 61 6c 6c 65 64 2e 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20   ┆ was called.  March 1989        ┆
0xc20…c40 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┆
0xc40…c58 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a                           ┆mer's Reference         ┆