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

⟦618b2f983⟧

    Length: 2416 (0x970)
    Names: »vfork.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/vfork.2« 
        └─⟦this⟧ »./usr/man/cat2/vfork.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 20 76 66 6f 72 6b 28 32 29 0a 0a 0a 0a   ┆s                   vfork(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 76 66 6f 72 6b 20 2d 20 73 70 61 77 6e 20 6e 65 77 20 70 72 6f 63 65 73 73 20 66 6f 72 20   ┆  vfork - spawn new process for ┆
0x0a0…0c0 76 69 72 74 75 61 6c 2d 6d 65 6d 6f 72 79 20 65 66 66 69 63 69 65 6e 63 79 0a 0a 53 08 53 08 53   ┆virtual-memory efficiency  S S S┆
0x0c0…0e0 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 ┆
0x0e0…100 58 08 58 08 58 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   ┆X X X      p p p pi i i id d d d┆
0x100…120 20 3d 08 3d 08 3d 08 3d 20 76 08 76 08 76 08 76 66 08 66 08 66 08 66 6f 08 6f 08 6f 08 6f 72 08   ┆ = = = = v v v vf f f fo o o or ┆
0x120…140 72 08 72 08 72 6b 08 6b 08 6b 08 6b 28 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 20 20 20 20 20   ┆r r rk k k k( ( ( () ) ) )      ┆
0x140…160 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 69   ┆i i i in n n nt t t t p p p pi i┆
0x160…180 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 45   ┆ i id d d d; ; ; ;  D D D DE E E┆
0x180…1a0 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 08   ┆ ES S S SC C C CR R R RI I I IP ┆
0x1a0…1c0 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 08   ┆P P PT T T TI I I IO O O ON N N ┆
0x1c0…1e0 4e 0a 20 20 20 20 20 54 68 65 20 5f 08 76 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 63 61 6c 6c 20   ┆N      The _ v_ f_ o_ r_ k call ┆
0x1e0…200 63 61 6e 20 63 72 65 61 74 65 20 6e 65 77 20 70 72 6f 63 65 73 73 65 73 20 77 69 74 68 6f 75 74   ┆can create new processes without┆
0x200…220 20 66 75 6c 6c 79 20 63 6f 70 79 2d 0a 20 20 20 20 20 69 6e 67 20 74 68 65 20 61 64 64 72 65 73   ┆ fully copy-      ing the addres┆
0x220…240 73 20 73 70 61 63 65 20 6f 66 20 74 68 65 20 6f 6c 64 20 70 72 6f 63 65 73 73 2e 20 20 54 68 69   ┆s space of the old process.  Thi┆
0x240…260 73 20 61 6c 6c 6f 77 73 20 79 6f 75 0a 20 20 20 20 20 74 6f 20 63 72 65 61 74 65 20 61 20 6e 65   ┆s allows you      to create a ne┆
0x260…280 77 20 73 79 73 74 65 6d 20 63 6f 6e 74 65 78 74 20 66 6f 72 20 61 6e 20 5f 08 65 5f 08 78 5f 08   ┆w system context for an _ e_ x_ ┆
0x280…2a0 65 5f 08 63 5f 08 76 5f 08 65 2e 0a 0a 20 20 20 20 20 49 6e 20 5f 08 76 5f 08 66 5f 08 6f 5f 08   ┆e_ c_ v_ e.       In _ v_ f_ o_ ┆
0x2a0…2c0 72 5f 08 6b 20 28 75 6e 6c 69 6b 65 20 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 29 2c 20 74 68 65 20   ┆r_ k (unlike _ f_ o_ r_ k), the ┆
0x2c0…2e0 63 68 69 6c 64 20 62 6f 72 72 6f 77 73 20 74 68 65 20 70 61 72 65 6e 74 27 73 0a 20 20 20 20 20   ┆child borrows the parent's      ┆
0x2e0…300 6d 65 6d 6f 72 79 20 61 6e 64 20 74 68 72 65 61 64 20 6f 66 20 63 6f 6e 74 72 6f 6c 20 75 6e 74   ┆memory and thread of control unt┆
0x300…320 69 6c 20 65 69 74 68 65 72 20 61 6e 20 5f 08 65 5f 08 78 5f 08 65 5f 08 63 5f 08 76 5f 08 65 20   ┆il either an _ e_ x_ e_ c_ v_ e ┆
0x320…340 63 61 6c 6c 20 6f 72 0a 20 20 20 20 20 61 6e 20 65 78 69 74 2e 20 20 28 54 68 65 20 65 78 69 74   ┆call or      an exit.  (The exit┆
0x340…360 20 69 73 20 65 69 74 68 65 72 20 62 79 20 74 68 65 20 5f 5f 08 65 5f 08 78 5f 08 69 5f 08 74 20   ┆ is either by the __ e_ x_ i_ t ┆
0x360…380 63 61 6c 6c 20 6f 72 20 61 62 6e 6f 72 2d 0a 20 20 20 20 20 6d 61 6c 2e 29 20 20 54 68 65 20 70   ┆call or abnor-      mal.)  The p┆
0x380…3a0 61 72 65 6e 74 20 70 72 6f 63 65 73 73 20 69 73 20 73 75 73 70 65 6e 64 65 64 20 77 68 69 6c 65   ┆arent process is suspended while┆
0x3a0…3c0 20 74 68 65 20 63 68 69 6c 64 20 62 6f 72 2d 0a 20 20 20 20 20 72 6f 77 73 20 69 74 73 20 72 65   ┆ the child bor-      rows its re┆
0x3c0…3e0 73 6f 75 72 63 65 73 2e 0a 0a 20 20 20 20 20 5f 08 76 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 72   ┆sources.       _ v_ f_ o_ r_ k r┆
0x3e0…400 65 74 75 72 6e 73 20 30 20 69 6e 20 74 68 65 20 63 68 69 6c 64 27 73 20 63 6f 6e 74 65 78 74 2e   ┆eturns 0 in the child's context.┆
0x400…420 20 20 4c 61 74 65 72 2c 20 74 68 65 20 63 61 6c 6c 0a 20 20 20 20 20 72 65 74 75 72 6e 73 20 74   ┆  Later, the call      returns t┆
0x420…440 68 65 20 70 69 64 20 6f 66 20 74 68 65 20 63 68 69 6c 64 20 69 6e 20 74 68 65 20 70 61 72 65 6e   ┆he pid of the child in the paren┆
0x440…460 74 27 73 20 63 6f 6e 74 65 78 74 2e 0a 0a 20 20 20 20 20 5f 08 76 5f 08 66 5f 08 6f 5f 08 72 5f   ┆t's context.       _ v_ f_ o_ r_┆
0x460…480 08 6b 20 63 61 6e 20 6e 6f 72 6d 61 6c 6c 79 20 62 65 20 75 73 65 64 20 74 68 65 20 73 61 6d 65   ┆ k can normally be used the same┆
0x480…4a0 20 61 73 20 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 2e 20 20 48 6f 77 65 76 65 72 2c 0a 20 20 20 20   ┆ as _ f_ o_ r_ k.  However,     ┆
0x4a0…4c0 20 72 65 74 75 72 6e 20 77 68 69 6c 65 20 72 75 6e 6e 69 6e 67 20 69 6e 20 74 68 65 20 63 68 69   ┆ return while running in the chi┆
0x4c0…4e0 6c 64 27 73 20 63 6f 6e 74 65 78 74 20 66 72 6f 6d 20 74 68 65 20 70 72 6f 2d 0a 20 20 20 20 20   ┆ld's context from the pro-      ┆
0x4e0…500 63 65 64 75 72 65 20 74 68 61 74 20 63 61 6c 6c 65 64 20 5f 08 76 5f 08 66 5f 08 6f 5f 08 72 5f   ┆cedure that called _ v_ f_ o_ r_┆
0x500…520 08 6b 20 69 73 20 6e 6f 74 20 70 6f 73 73 69 62 6c 65 2e 20 20 28 54 68 65 20 72 65 71 75 69 72   ┆ k is not possible.  (The requir┆
0x520…540 65 64 0a 20 20 20 20 20 73 74 61 63 6b 20 66 72 61 6d 65 20 66 6f 72 20 72 65 74 75 72 6e 20 66   ┆ed      stack frame for return f┆
0x540…560 72 6f 6d 20 5f 08 76 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 6e 6f 20 6c 6f 6e 67 65 72 20 65 78   ┆rom _ v_ f_ o_ r_ k no longer ex┆
0x560…580 69 73 74 73 2e 29 0a 0a 20 20 20 20 20 54 68 65 20 63 68 69 6c 64 20 70 72 6f 63 65 73 73 20 70   ┆ists.)       The child process p┆
0x580…5a0 72 6f 64 75 63 65 64 20 62 79 20 61 20 5f 08 76 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 63 61 6c   ┆roduced by a _ v_ f_ o_ r_ k cal┆
0x5a0…5c0 6c 20 69 6e 68 65 72 69 74 73 20 61 6c 6c 20 73 69 67 2d 0a 20 20 20 20 20 6e 61 6c 73 2c 20 74   ┆l inherits all sig-      nals, t┆
0x5c0…5e0 68 65 20 73 69 67 6e 61 6c 20 6d 61 73 6b 2c 20 61 6e 64 20 73 69 67 6e 61 6c 20 68 61 6e 64 6c   ┆he signal mask, and signal handl┆
0x5e0…600 65 72 73 20 66 72 6f 6d 20 74 68 65 20 70 61 72 65 6e 74 0a 20 20 20 20 20 70 72 6f 63 65 73 73   ┆ers from the parent      process┆
0x600…620 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 08 41 08 41 08 41   ┆.  S S S SE E E EE E E E A A A A┆
0x620…640 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 20 53 79 73 74 65   ┆L L L LS S S SO O O O      Syste┆
0x640…660 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 20 65 78 65 63 76 65 2c 20 5f 65 78 69 74 2c 20 66 6f 72   ┆m Calls (2):  execve, _exit, for┆
0x660…680 6b 2c 20 73 69 67 76 65 63 2c 20 77 61 69 74 0a 0a 44 08 44 08 44 08 44 49 08 49 08 49 08 49 41   ┆k, sigvec, wait  D D D DI I I IA┆
0x680…6a0 08 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 53 08 53 08 53   ┆ A A AG G G GN N N NO O O OS S S┆
0x6a0…6c0 08 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53 08 53 08 53 0a 20   ┆ ST T T TI I I IC C C CS S S S  ┆
0x6c0…6e0 20 20 20 20 53 61 6d 65 20 61 73 20 66 6f 72 20 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 2e 0a 0a 4c   ┆    Same as for _ f_ o_ r_ k.  L┆
0x6e0…700 08 4c 08 4c 08 4c 49 08 49 08 49 08 49 4d 08 4d 08 4d 08 4d 49 08 49 08 49 08 49 54 08 54 08 54   ┆ L L LI I I IM M M MI I I IT T T┆
0x700…720 08 54 41 08 41 08 41 08 41 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08   ┆ TA A A AT T T TI I I IO O O ON ┆
0x720…740 4e 08 4e 08 4e 53 08 53 08 53 08 53 0a 20 20 20 20 20 41 63 63 6f 72 64 69 6e 67 20 74 6f 20 34   ┆N N NS S S S      According to 4┆
0x740…760 2e 32 2f 34 2e 33 42 53 44 2c 20 74 68 69 73 20 73 79 73 74 65 6d 20 63 61 6c 6c 20 77 69 6c 6c   ┆.2/4.3BSD, this system call will┆
0x760…780 20 62 65 20 65 6c 69 6d 69 6e 61 74 65 64 0a 20 20 20 20 20 77 68 65 6e 20 70 72 6f 70 65 72 20   ┆ be eliminated      when proper ┆
0x780…7a0 73 79 73 74 65 6d 20 73 68 61 72 69 6e 67 20 6d 65 63 68 61 6e 69 73 6d 73 20 61 72 65 20 69 6d   ┆system sharing mechanisms are im┆
0x7a0…7c0 70 6c 65 6d 65 6e 74 65 64 2e 0a 20 20 20 20 20 55 73 65 72 73 20 73 68 6f 75 6c 64 20 6e 6f 74   ┆plemented.      Users should not┆
0x7c0…7e0 20 64 65 70 65 6e 64 20 6f 6e 20 74 68 65 20 6d 65 6d 6f 72 79 2d 73 68 61 72 69 6e 67 20 73 65   ┆ depend on the memory-sharing se┆
0x7e0…800 6d 61 6e 74 69 63 73 20 6f 66 0a 20 20 20 20 20 5f 08 76 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20   ┆mantics of      _ v_ f_ o_ r_ k ┆
0x800…820 61 73 20 69 74 20 77 69 6c 6c 20 62 65 20 73 79 6e 6f 6e 79 6d 6f 75 73 20 74 6f 20 5f 08 66 5f   ┆as it will be synonymous to _ f_┆
0x820…840 08 6f 5f 08 72 5f 08 6b 2e 0a 0a 20 20 20 20 20 54 6f 20 61 76 6f 69 64 20 61 20 70 6f 73 73 69   ┆ o_ r_ k.       To avoid a possi┆
0x840…860 62 6c 65 20 64 65 61 64 6c 6f 63 6b 20 73 69 74 75 61 74 69 6f 6e 2c 20 63 68 69 6c 64 20 70 72   ┆ble deadlock situation, child pr┆
0x860…880 6f 63 65 73 73 65 73 20 69 6e 0a 20 20 20 20 20 74 68 65 20 6d 69 64 64 6c 65 20 6f 66 20 61 20   ┆ocesses in      the middle of a ┆
0x880…8a0 5f 08 76 5f 08 66 5f 08 6f 5f 08 72 5f 08 6b 20 61 72 65 20 6e 65 76 65 72 20 73 65 6e 74 20 53   ┆_ v_ f_ o_ r_ k are never sent S┆
0x8a0…8c0 49 47 54 54 4f 55 20 6f 72 20 53 49 47 54 54 49 4e 20 73 69 67 2d 0a 20 20 20 20 20 6e 61 6c 73   ┆IGTTOU or SIGTTIN sig-      nals┆
0x8c0…8e0 2e 20 20 52 61 74 68 65 72 2c 20 6f 75 74 70 75 74 20 6f 72 20 5f 08 69 5f 08 6f 5f 08 63 5f 08   ┆.  Rather, output or _ i_ o_ c_ ┆
0x8e0…900 74 5f 08 6c 73 20 61 72 65 20 61 6c 6c 6f 77 65 64 2e 20 20 49 6e 70 75 74 20 61 74 74 65 6d 70   ┆t_ ls are allowed.  Input attemp┆
0x900…920 74 73 0a 20 20 20 20 20 72 65 73 75 6c 74 20 69 6e 20 61 6e 20 65 6e 64 2d 6f 66 2d 66 69 6c 65   ┆ts      result in an end-of-file┆
0x920…940 2e 0a 0a 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   ┆.  March 1989                   ┆
0x940…960 20 20 20 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   ┆           TX Programmer's Refer┆
0x960…970 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a                                                   ┆ence            ┆