]>
Commit | Line | Data |
---|---|---|
6599da04 JM |
1 | /* Emulate vfork using just plain fork, for systems without a real vfork. |
2 | This function is in the public domain. */ | |
3 | ||
aaa5f039 DD |
4 | /* |
5 | ||
7f8fa05d | 6 | @deftypefn Supplemental int vfork (void) |
aaa5f039 DD |
7 | |
8 | Emulates @code{vfork} by calling @code{fork} and returning its value. | |
9 | ||
10 | @end deftypefn | |
11 | ||
12 | */ | |
13 | ||
838f8562 KG |
14 | #include "ansidecl.h" |
15 | ||
7a17ef5e | 16 | extern int fork (void); |
838f8562 | 17 | |
6599da04 | 18 | int |
7a17ef5e | 19 | vfork (void) |
6599da04 JM |
20 | { |
21 | return (fork ()); | |
22 | } |