binutils-gdb/libiberty/vfork.c

23 lines
351 B
C
Raw Normal View History

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