File: vfork.c

package info (click to toggle)
binutils 2.45.50.20251125-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 381,164 kB
  • sloc: ansic: 1,513,144; asm: 826,869; cpp: 216,627; exp: 79,999; makefile: 73,149; sh: 25,556; yacc: 15,067; lisp: 13,640; perl: 13,404; lex: 1,714; ada: 1,681; python: 1,513; pascal: 1,446; cs: 879; java: 478; sed: 191; xml: 95; awk: 25
file content (22 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (108)
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 (void);

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