summaryrefslogtreecommitdiffstats
path: root/libiberty/vfork.c
blob: 4aa5c21d42714793fab1de8a42180f66a7f03af9 (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 (void)

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 ());
}
OpenPOWER on IntegriCloud