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

⟦85683285d⟧

    Length: 1812 (0x714)
    Names: »pidfromstring.3«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat3/pidfromstring.3« 
        └─⟦this⟧ »./usr/man/cat3/pidfromstring.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 70 69 64 66 72 6f 6d 73 74 72 69 6e 67 28 33 29 0a 0a 0a 0a   ┆ions        pidfromstring(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 70 69 64 66 72 6f 6d 73 74 72 69 6e 67 2c 20 70 69 64 74 6f 73 74 72 69 6e 67 20 2d 20 20   ┆  pidfromstring, pidtostring -  ┆
0x0a0…0c0 63 6f 6e 76 65 72 74 20 62 65 74 77 65 65 6e 20 54 58 20 50 49 44 20 61 6e 64 0a 20 20 20 20 20   ┆convert between TX PID and      ┆
0x0c0…0e0 73 74 72 69 6e 67 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   ┆string  S S S SY Y Y YN N N NT T┆
0x0e0…100 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 70 08 70 08 70 08 70 69   ┆ T TA A A AX X X X      p p p pi┆
0x100…120 08 69 08 69 08 69 64 08 64 08 64 08 64 66 08 66 08 66 08 66 72 08 72 08 72 08 72 6f 08 6f 08 6f   ┆ i i id d d df f f fr r r ro o o┆
0x120…140 08 6f 6d 08 6d 08 6d 08 6d 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 69 08   ┆ om m m ms s s st t t tr r r ri ┆
0x140…160 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 28 08 28 08 28 08 28 73 08 73 08 73 08   ┆i i in n n ng g g g( ( ( (s s s ┆
0x160…180 73 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   ┆s) ) ) )      c c c ch h h ha a ┆
0x180…1a0 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 3b 08 3b 08 3b 08 3b   ┆a ar r r r * * * *s s s s; ; ; ;┆
0x1a0…1c0 0a 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 08   ┆       c c c ch h h ha a a ar r ┆
0x1c0…1e0 72 08 72 20 2a 08 2a 08 2a 08 2a 70 08 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64   ┆r r * * * *p p p pi i i id d d d┆
0x1e0…200 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08   ┆t t t to o o os s s st t t tr r ┆
0x200…220 72 08 72 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 28 08 28 08 28 08 28 70   ┆r ri i i in n n ng g g g( ( ( (p┆
0x220…240 08 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 29 08 29 08 29 08 29 0a 20 20 20 20   ┆ p p pi i i id d d d) ) ) )     ┆
0x240…260 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 70 08 70 08 70 08 70 69 08   ┆ i i i in n n nt t t t p p p pi ┆
0x260…280 69 08 69 08 69 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   ┆i i id d d d; ; ; ;  D D D DE E ┆
0x280…2a0 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 50   ┆E ES S S SC C C CR R R RI I I IP┆
0x2a0…2c0 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 4e   ┆ P P PT T T TI I I IO O O ON N N┆
0x2c0…2e0 08 4e 0a 20 20 20 20 20 54 68 65 73 65 20 66 75 6e 63 74 69 6f 6e 73 20 74 61 6b 65 20 65 69 74   ┆ N      These functions take eit┆
0x2e0…300 68 65 72 20 74 68 65 20 73 74 72 69 6e 67 20 76 61 6c 75 65 20 28 5f 08 70 5f 08 69 5f 08 64 5f   ┆her the string value (_ p_ i_ d_┆
0x300…320 08 66 5f 08 72 5f 08 6f 5f 08 6d 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 29 0a 20   ┆ f_ r_ o_ m_ s_ t_ r_ i_ n_ g)  ┆
0x320…340 20 20 20 20 6f 72 20 74 68 65 20 50 49 44 20 28 5f 08 70 5f 08 69 5f 08 64 5f 08 74 5f 08 6f 5f   ┆    or the PID (_ p_ i_ d_ t_ o_┆
0x340…360 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 29 20 61 6e 64 20 63 6f 6e 76 65 72 74 73 20   ┆ s_ t_ r_ i_ n_ g) and converts ┆
0x360…380 74 6f 20 74 68 65 20 65 71 75 69 76 61 6c 65 6e 74 2e 0a 0a 20 20 20 20 20 5f 08 70 5f 08 69 5f   ┆to the equivalent.       _ p_ i_┆
0x380…3a0 08 64 5f 08 74 5f 08 6f 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 20 72 65 74 75 72   ┆ d_ t_ o_ s_ t_ r_ i_ n_ g retur┆
0x3a0…3c0 6e 73 20 61 20 70 6f 69 6e 74 65 72 20 74 6f 20 61 20 73 74 61 74 69 63 20 63 68 61 72 61 63 74   ┆ns a pointer to a static charact┆
0x3c0…3e0 65 72 20 61 72 72 61 79 0a 20 20 20 20 20 77 69 74 68 20 74 68 65 20 41 53 43 49 49 20 72 65 70   ┆er array      with the ASCII rep┆
0x3e0…400 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 50 49 44 20 69 6e 20 69 74 2e 20 20 54   ┆resentation of the PID in it.  T┆
0x400…420 68 65 20 66 6f 72 6d 20 69 73 0a 20 20 20 20 20 70 75 23 2e 6c 6f 63 61 6c 70 69 64 23 20 6f 72   ┆he form is      pu#.localpid# or┆
0x420…440 20 6c 6f 63 61 6c 70 69 64 23 2c 20 64 65 70 65 6e 64 69 6e 67 20 6f 6e 20 74 68 65 20 66 6f 72   ┆ localpid#, depending on the for┆
0x440…460 6d 20 6f 66 20 74 68 65 0a 20 20 20 20 20 50 49 44 2e 0a 0a 20 20 20 20 20 5f 08 70 5f 08 69 5f   ┆m of the      PID.       _ p_ i_┆
0x460…480 08 64 5f 08 66 5f 08 72 5f 08 6f 5f 08 6d 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67   ┆ d_ f_ r_ o_ m_ s_ t_ r_ i_ n_ g┆
0x480…4a0 20 70 61 72 73 65 73 20 74 68 65 20 73 74 72 69 6e 67 20 61 72 67 75 6d 65 6e 74 20 61 6e 64 20   ┆ parses the string argument and ┆
0x4a0…4c0 72 65 74 75 72 6e 73 20 61 20 50 49 44 2e 0a 20 20 20 20 20 20 20 20 20 20 22 30 22 20 20 3d 3e   ┆returns a PID.           "0"  =>┆
0x4c0…4e0 20 20 30 0a 20 20 20 20 20 20 20 20 20 20 6f 74 68 65 72 6e 75 6d 62 65 72 20 20 20 20 3d 3e 20   ┆  0           othernumber    => ┆
0x4e0…500 20 63 75 72 72 65 6e 74 70 75 2e 6e 75 6d 62 65 72 0a 20 20 20 20 20 20 20 20 20 20 6e 75 6d 62   ┆ currentpu.number           numb┆
0x500…520 65 72 2e 6e 75 6d 62 65 72 0a 0a 20 20 20 20 20 70 08 70 08 70 08 70 69 08 69 08 69 08 69 64 08   ┆er.number       p p p pi i i id ┆
0x520…540 64 08 64 08 64 20 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 61 20 76 61 6c 69 64 20 54 58 20   ┆d d d      Specifies a valid TX ┆
0x540…560 50 49 44 20 74 6f 20 63 6f 6e 76 65 72 74 20 74 6f 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20   ┆PID to convert to the           ┆
0x560…580 20 20 20 20 65 71 75 69 76 61 6c 65 6e 74 20 73 74 72 69 6e 67 2e 0a 0a 20 20 20 20 20 73 08 73   ┆    equivalent string.       s s┆
0x580…5a0 08 73 08 73 20 20 20 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 61 20 73 74 72 69 6e 67 20 74   ┆ s s        Specifies a string t┆
0x5a0…5c0 6f 20 63 6f 6e 76 65 72 74 20 74 6f 20 74 68 65 20 54 58 20 50 49 44 20 2e 0a 0a 20 20 20 20 20   ┆o convert to the TX PID .       ┆
0x5c0…5e0 4c 65 61 64 69 6e 67 20 61 6e 64 20 74 72 61 69 6c 69 6e 67 20 62 6c 61 6e 6b 73 20 61 72 65 20   ┆Leading and trailing blanks are ┆
0x5e0…600 61 6c 6c 6f 77 65 64 20 6f 6e 20 69 6e 70 75 74 20 28 5f 08 70 5f 08 69 5f 08 64 5f 08 66 5f 08   ┆allowed on input (_ p_ i_ d_ f_ ┆
0x600…620 72 5f 08 6f 5f 08 6d 5f 08 2d 0a 20 20 20 20 20 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f   ┆r_ o_ m_ -      _ s_ t_ r_ i_ n_┆
0x620…640 08 67 29 20 61 6e 64 20 6d 61 79 20 62 65 20 67 65 6e 65 72 61 74 65 64 20 6f 6e 20 6f 75 74 70   ┆ g) and may be generated on outp┆
0x640…660 75 74 20 28 5f 08 70 5f 08 69 5f 08 64 5f 08 74 5f 08 6f 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f   ┆ut (_ p_ i_ d_ t_ o_ s_ t_ r_ i_┆
0x660…680 08 6e 5f 08 67 29 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41   ┆ n_ g).  S S S SE E E EE E E E A┆
0x680…6a0 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 20 20 20 20   ┆ A A AL L L LS S S SO O O O     ┆
0x6a0…6c0 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 67 65 74 70 69 64 0a 0a 44 65 63 65   ┆ System Calls (2):  getpid  Dece┆
0x6c0…6e0 6d 62 65 72 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 20   ┆mber 1989                       ┆
0x6e0…700 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 0a 0a   ┆    TX Programmer's Reference   ┆
0x700…714 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                       ┆                    ┆