diff options
Diffstat (limited to 'contrib/gcclibs/libiberty/vfork.c')
-rw-r--r-- | contrib/gcclibs/libiberty/vfork.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/gcclibs/libiberty/vfork.c b/contrib/gcclibs/libiberty/vfork.c new file mode 100644 index 0000000..eb4ff62 --- /dev/null +++ b/contrib/gcclibs/libiberty/vfork.c @@ -0,0 +1,22 @@ +/* Emulate vfork using just plain fork, for systems without a real vfork. + This function is in the public domain. */ + +/* + +@deftypefn Supplemental int vfork (void) + +Emulates @code{vfork} by calling @code{fork} and returning its value. + +@end deftypefn + +*/ + +#include "ansidecl.h" + +extern int fork (void); + +int +vfork (void) +{ + return (fork ()); +} |