old-cross-binutils/libiberty/vfork.c

23 lines
346 B
C
Raw Normal View History

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