vfork.c 346 B

1234567891011121314151617181920212223
  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. }