aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.2.1-5666.3/libiberty/vfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.2.1-5666.3/libiberty/vfork.c')
-rw-r--r--gcc-4.2.1-5666.3/libiberty/vfork.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc-4.2.1-5666.3/libiberty/vfork.c b/gcc-4.2.1-5666.3/libiberty/vfork.c
new file mode 100644
index 000000000..eb4ff622b
--- /dev/null
+++ b/gcc-4.2.1-5666.3/libiberty/vfork.c
@@ -0,0 +1,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 ());
+}