aboutsummaryrefslogtreecommitdiff
path: root/libiberty/vfork.c
blob: 7df7a22626066bee874fee80ef350a882c6a0719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Emulate vfork using just plain fork, for systems without a real vfork.
   This function is in the public domain. */

/*

@deftypefn Supplemental int vfork ()

Emulates @code{vfork} by calling @code{fork} and returning its value.

@end deftypefn

*/

#include "ansidecl.h"

extern int fork PARAMS ((void));

int
vfork ()
{
  return (fork ());
}