xref: /netbsd-src/external/gpl3/gdb.old/dist/libiberty/vfork.c (revision bb16d22702ff57c46e117881dd16b08ca16721cc)
1*bb16d227Schristos /* Emulate vfork using just plain fork, for systems without a real vfork.
2*bb16d227Schristos    This function is in the public domain. */
3*bb16d227Schristos 
4*bb16d227Schristos /*
5*bb16d227Schristos 
6*bb16d227Schristos @deftypefn Supplemental int vfork (void)
7*bb16d227Schristos 
8*bb16d227Schristos Emulates @code{vfork} by calling @code{fork} and returning its value.
9*bb16d227Schristos 
10*bb16d227Schristos @end deftypefn
11*bb16d227Schristos 
12*bb16d227Schristos */
13*bb16d227Schristos 
14*bb16d227Schristos #include "ansidecl.h"
15*bb16d227Schristos 
16*bb16d227Schristos extern int fork (void);
17*bb16d227Schristos 
18*bb16d227Schristos int
vfork(void)19*bb16d227Schristos vfork (void)
20*bb16d227Schristos {
21*bb16d227Schristos   return (fork ());
22*bb16d227Schristos }
23