binutils-gdb/libiberty/vfork.c

23 lines
346 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"
2005-03-28 10:09:01 +08:00
extern int fork (void);
2000-10-12 10:16:48 +08:00
1999-05-03 15:29:11 +08:00
int
2005-03-28 10:09:01 +08:00
vfork (void)
1999-05-03 15:29:11 +08:00
{
return (fork ());
}