vfork.c 346 B

12345678910111213141516171819202122
  1. /* Emulate vfork using just plain fork, for systems without a real vfork.
  2. This function is in the public domain. */
  3. /*
  4. @deftypefn Supplemental int vfork (void)
  5. Emulates @code{vfork} by calling @code{fork} and returning its value.
  6. @end deftypefn
  7. */
  8. #include "ansidecl.h"
  9. extern int fork (void);
  10. int
  11. vfork (void)
  12. {
  13. return (fork ());
  14. }