2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / libiberty / vfork.c
blobeb4ff622b44f5ba6100b64f8ccf1d5880b670c52
1 /* Emulate vfork using just plain fork, for systems without a real vfork.
2 This function is in the public domain. */
4 /*
6 @deftypefn Supplemental int vfork (void)
8 Emulates @code{vfork} by calling @code{fork} and returning its value.
10 @end deftypefn
14 #include "ansidecl.h"
16 extern int fork (void);
18 int
19 vfork (void)
21 return (fork ());