1*98b9484cSchristos /* Emulate vfork using just plain fork, for systems without a real vfork. 2*98b9484cSchristos This function is in the public domain. */ 3*98b9484cSchristos 4*98b9484cSchristos /* 5*98b9484cSchristos 6*98b9484cSchristos @deftypefn Supplemental int vfork (void) 7*98b9484cSchristos 8*98b9484cSchristos Emulates @code{vfork} by calling @code{fork} and returning its value. 9*98b9484cSchristos 10*98b9484cSchristos @end deftypefn 11*98b9484cSchristos 12*98b9484cSchristos */ 13*98b9484cSchristos 14*98b9484cSchristos #include "ansidecl.h" 15*98b9484cSchristos 16*98b9484cSchristos extern int fork (void); 17*98b9484cSchristos 18*98b9484cSchristos int vfork(void)19*98b9484cSchristosvfork (void) 20*98b9484cSchristos { 21*98b9484cSchristos return (fork ()); 22*98b9484cSchristos } 23