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

⟦77e8cb0db⟧

    Length: 1966 (0x7ae)
    Names: »setsid.3«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat3/setsid.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 73 65 74 73 69 64 28 33 29 0a 0a 0a 0a   ┆ions               setsid(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 73 65 74 73 69 64 20 2d 20 73 65 74 20 73 65 73 73 69 6f 6e 20 49 44 0a 0a 53 08 53 08 53   ┆  setsid - set session ID  S S S┆
0x0a0…0c0 08 53 59 08 59 08 59 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   ┆ SY Y Y YN N N NT T T TA A A AX ┆
0x0c0…0e0 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e   ┆X X X      # # # #i i i in n n n┆
0x0e0…100 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08   ┆c c c cl l l lu u u ud d d de e ┆
0x100…120 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 79 73 08 73 08 73 08 73   ┆e e < < < <s s s sy y y ys s s s┆
0x120…140 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 70 08 70 08 70 65 08 65 08   ┆/ / / /t t t ty y y yp p p pe e ┆
0x140…160 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a   ┆e es s s s. . . .h h h h> > > > ┆
0x160…180 0a 20 20 20 20 20 70 08 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 5f 08 5f 08 5f   ┆      p p p pi i i id d d d_ _ _┆
0x180…1a0 08 5f 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 73   ┆ _t t t t s s s se e e et t t ts┆
0x1a0…1c0 08 73 08 73 08 73 69 08 69 08 69 08 69 64 08 64 08 64 08 64 28 08 28 08 28 08 28 29 08 29 08 29   ┆ s s si i i id d d d( ( ( () ) )┆
0x1c0…1e0 08 29 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   ┆ )  D D D DE E E ES S S SC C C C┆
0x1e0…200 52 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   ┆R R R RI I I IP P P PT T T TI I ┆
0x200…220 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74   ┆I IO O O ON N N N      _ s_ e_ t┆
0x220…240 5f 08 73 5f 08 69 5f 08 64 20 63 72 65 61 74 65 73 20 61 20 6e 65 77 20 73 65 73 73 69 6f 6e 2c   ┆_ s_ i_ d creates a new session,┆
0x240…260 20 69 66 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 69 73 20 6e 6f 74 0a 20   ┆ if the calling process is not  ┆
0x260…280 20 20 20 20 61 20 70 72 6f 63 65 73 73 20 67 72 6f 75 70 20 6c 65 61 64 65 72 2e 20 55 70 6f 6e   ┆    a process group leader. Upon┆
0x280…2a0 20 72 65 74 75 72 6e 20 74 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65 73 73 20 77 69 6c 6c   ┆ return the calling process will┆
0x2a0…2c0 0a 20 20 20 20 20 62 65 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6c 65 61 64 65 72 20 6f 66 20 74   ┆      be the session leader of t┆
0x2c0…2e0 68 69 73 20 6e 65 77 20 73 65 73 73 69 6f 6e 2c 20 77 69 6c 6c 20 62 65 20 74 68 65 20 70 72 6f   ┆his new session, will be the pro┆
0x2e0…300 2d 0a 20 20 20 20 20 63 65 73 73 20 67 72 6f 75 70 20 6c 65 61 64 65 72 20 6f 66 20 61 20 6e 65   ┆-      cess group leader of a ne┆
0x300…320 77 20 70 72 6f 63 65 73 73 20 67 72 6f 75 70 2c 20 61 6e 64 20 77 69 6c 6c 20 68 61 76 65 20 6e   ┆w process group, and will have n┆
0x320…340 6f 0a 20 20 20 20 20 63 6f 6e 74 72 6f 6c 6c 69 6e 67 20 74 65 72 6d 69 6e 61 6c 2e 20 54 68 65   ┆o      controlling terminal. The┆
0x340…360 20 70 72 6f 63 65 73 73 20 67 72 6f 75 70 20 49 44 20 6f 66 20 74 68 65 20 63 61 6c 6c 69 6e 67   ┆ process group ID of the calling┆
0x360…380 0a 20 20 20 20 20 70 72 6f 63 65 73 73 20 77 69 6c 6c 20 62 65 20 73 65 74 20 65 71 75 61 6c 20   ┆      process will be set equal ┆
0x380…3a0 74 6f 20 74 68 65 20 70 72 6f 63 65 73 73 20 49 44 20 6f 66 20 74 68 65 20 63 61 6c 6c 69 6e 67   ┆to the process ID of the calling┆
0x3a0…3c0 0a 20 20 20 20 20 70 72 6f 63 65 73 73 2e 20 54 68 65 20 63 61 6c 6c 69 6e 67 20 70 72 6f 63 65   ┆      process. The calling proce┆
0x3c0…3e0 73 73 20 77 69 6c 6c 20 62 65 20 74 68 65 20 6f 6e 6c 79 20 70 72 6f 63 65 73 73 20 69 6e 20 74   ┆ss will be the only process in t┆
0x3e0…400 68 65 0a 20 20 20 20 20 6e 65 77 20 70 72 6f 63 65 73 73 20 67 72 6f 75 70 20 61 6e 64 20 74 68   ┆he      new process group and th┆
0x400…420 65 20 6f 6e 6c 79 20 70 72 6f 63 65 73 73 20 69 6e 20 74 68 65 20 6e 65 77 20 73 65 73 73 69 6f   ┆e only process in the new sessio┆
0x420…440 6e 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 54 55 08 55 08 55 08 55   ┆n.  R R R RE E E ET T T TU U U U┆
0x440…460 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c   ┆R R R RN N N N V V V VA A A AL L┆
0x460…480 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 55 70 6f 6e 20 73 75 63   ┆ L LU U U UE E E E      Upon suc┆
0x480…4a0 63 65 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 5f 08 73 5f 08 65 5f 08 74 5f 08 73 5f   ┆cesful completion, _ s_ e_ t_ s_┆
0x4a0…4c0 08 69 5f 08 64 20 72 65 74 75 72 6e 73 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 68 65 0a 20   ┆ i_ d returns the value of the  ┆
0x4c0…4e0 20 20 20 20 70 72 6f 63 65 73 73 20 67 72 6f 75 70 20 49 44 20 6f 66 20 74 68 65 20 63 61 6c 6c   ┆    process group ID of the call┆
0x4e0…500 69 6e 67 20 70 72 6f 63 65 73 73 2e 20 4f 74 68 65 72 77 69 73 65 2c 20 69 74 0a 20 20 20 20 20   ┆ing process. Otherwise, it      ┆
0x500…520 72 65 74 75 72 6e 73 20 28 70 08 70 08 70 08 70 69 08 69 08 69 08 69 64 08 64 08 64 08 64 5f 08   ┆returns (p p p pi i i id d d d_ ┆
0x520…540 5f 08 5f 08 5f 74 08 74 08 74 08 74 29 20 2d 31 20 61 6e 64 20 73 65 74 73 20 5f 08 65 5f 08 72   ┆_ _ _t t t t) -1 and sets _ e_ r┆
0x540…560 5f 08 72 5f 08 6e 5f 08 6f 20 74 6f 20 69 6e 64 69 63 74 65 20 74 68 65 20 65 72 72 6f 72 2e 0a   ┆_ r_ n_ o to indicte the error. ┆
0x560…580 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┆
0x580…5a0 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 5f 08 73 5f 08 69   ┆ R RS S S S      _ s_ e_ t_ s_ i┆
0x5a0…5c0 5f 08 64 20 77 69 6c 6c 20 66 61 69 6c 20 61 6e 64 20 72 65 74 75 72 6e 20 61 6e 20 65 72 72 6f   ┆_ d will fail and return an erro┆
0x5c0…5e0 72 20 69 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 69 73 0a 20 20 20 20 20 74 72 75 65 3a   ┆r if the following is      true:┆
0x5e0…600 0a 0a 20 20 20 20 20 5b 45 50 45 52 4d 5d 20 20 20 20 20 20 20 20 54 68 65 20 63 61 6c 6c 69 6e   ┆       [EPERM]        The callin┆
0x600…620 67 20 70 72 6f 63 65 73 73 20 69 73 20 61 6c 72 65 61 64 79 20 61 20 70 72 6f 63 65 73 73 0a 20   ┆g process is already a process  ┆
0x620…640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 6f 75 70 20 6c 65 61 64 65 72 2c   ┆                   group leader,┆
0x640…660 20 6f 72 20 74 68 65 72 65 20 61 72 65 20 70 72 6f 63 65 73 73 65 73 20 6f 74 68 65 72 0a 20 20   ┆ or there are processes other   ┆
0x660…680 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 61 6e 20 74 68 65 20 63 61 6c 6c 69   ┆                  than the calli┆
0x680…6a0 6e 67 20 70 72 6f 63 65 73 73 20 77 68 6f 73 65 20 70 72 6f 63 65 73 73 20 67 72 6f 75 70 0a 20   ┆ng process whose process group  ┆
0x6a0…6c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 44 20 69 73 20 65 71 75 61 6c 20 74   ┆                   ID is equal t┆
0x6c0…6e0 6f 20 74 68 65 20 70 72 6f 63 65 73 73 20 49 44 20 6f 66 20 74 68 65 20 63 61 6c 6c 69 6e 67 0a   ┆o the process ID of the calling ┆
0x6e0…700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 63 65 73 73 2e 0a 0a 53 08   ┆                    process.  S ┆
0x700…720 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 08 4c   ┆S S SE E E EE E E E A A A AL L L┆
0x720…740 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75   ┆ LS S S SO O O O      Library Fu┆
0x740…760 6e 63 74 69 6f 6e 73 20 28 33 29 3a 20 73 65 74 70 67 69 64 0a 0a 44 65 63 65 6d 62 65 72 20 31   ┆nctions (3): setpgid  December 1┆
0x760…780 39 39 30 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 54 58   ┆990                           TX┆
0x780…7a0 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 0a 0a 0a 0a 0a 0a   ┆ Programmer's Reference         ┆
0x7a0…7ae 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                                         ┆              ┆