1999-05-03 09:29:11 +02:00
|
|
|
/* Emulate vfork using just plain fork, for systems without a real vfork.
|
|
|
|
This function is in the public domain. */
|
|
|
|
|
2001-09-26 20:45:50 +02:00
|
|
|
/*
|
|
|
|
|
2001-10-08 00:42:23 +02:00
|
|
|
@deftypefn Supplemental int vfork (void)
|
2001-09-26 20:45:50 +02:00
|
|
|
|
|
|
|
Emulates @code{vfork} by calling @code{fork} and returning its value.
|
|
|
|
|
|
|
|
@end deftypefn
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2000-10-12 04:16:48 +02:00
|
|
|
#include "ansidecl.h"
|
|
|
|
|
2005-03-28 04:09:01 +02:00
|
|
|
extern int fork (void);
|
2000-10-12 04:16:48 +02:00
|
|
|
|
1999-05-03 09:29:11 +02:00
|
|
|
int
|
2005-03-28 04:09:01 +02:00
|
|
|
vfork (void)
|
1999-05-03 09:29:11 +02:00
|
|
|
{
|
|
|
|
return (fork ());
|
|
|
|
}
|