binutils-gdb/libiberty/vfork.c

23 lines
351 B
C
Raw Normal View History

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"
extern int fork PARAMS ((void));
1999-05-03 09:29:11 +02:00
int
vfork ()
{
return (fork ());
}