summaryrefslogtreecommitdiff
path: root/libiberty/vfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/vfork.c')
-rw-r--r--libiberty/vfork.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libiberty/vfork.c b/libiberty/vfork.c
new file mode 100644
index 00000000000..86c45919f66
--- /dev/null
+++ b/libiberty/vfork.c
@@ -0,0 +1,8 @@
+/* Emulate vfork using just plain fork, for systems without a real vfork.
+ This function is in the public domain. */
+
+int
+vfork ()
+{
+ return (fork ());
+}