X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fvfork.c;h=eb4ff622b44f5ba6100b64f8ccf1d5880b670c52;hb=e495212d229d58eb4d70c94d7f828a04c386c3b2;hp=86c45919f660f5a6ba106f3035a5908819eac38b;hpb=5b64ad42d36e6d487e1f7287d37fbc243a178e72;p=binutils-gdb.git diff --git a/libiberty/vfork.c b/libiberty/vfork.c index 86c45919f66..eb4ff622b44 100644 --- a/libiberty/vfork.c +++ b/libiberty/vfork.c @@ -1,8 +1,22 @@ /* Emulate vfork using just plain fork, for systems without a real vfork. This function is in the public domain. */ +/* + +@deftypefn Supplemental int vfork (void) + +Emulates @code{vfork} by calling @code{fork} and returning its value. + +@end deftypefn + +*/ + +#include "ansidecl.h" + +extern int fork (void); + int -vfork () +vfork (void) { return (fork ()); }