summaryrefslogtreecommitdiffstats
path: root/x/binutils/libiberty/vfork.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2009-01-19 17:25:17 +0000
committerobrien <obrien@FreeBSD.org>2009-01-19 17:25:17 +0000
commit2b02dfaa48ad11ff3ee427ee1db57fb6017a8a5e (patch)
treeaf590d7b357b1c28ab81f0cde1b0ea76a098fb7e /x/binutils/libiberty/vfork.c
parentcd5f96a9efbe194cb6e0506e727cb6d287247d69 (diff)
downloadFreeBSD-src-2b02dfaa48ad11ff3ee427ee1db57fb6017a8a5e.zip
FreeBSD-src-2b02dfaa48ad11ff3ee427ee1db57fb6017a8a5e.tar.gz
Rename vendor/binutils/*/contrib to vendor/binutils/*/x
Binutils has a "contrib" subdirectory - thus flattening cannot happen without renaming the upper level contrib directory in a first pass. Also, don't record this move and remove any keyword expansion.
Diffstat (limited to 'x/binutils/libiberty/vfork.c')
-rw-r--r--x/binutils/libiberty/vfork.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/x/binutils/libiberty/vfork.c b/x/binutils/libiberty/vfork.c
new file mode 100644
index 0000000..4aa5c21
--- /dev/null
+++ b/x/binutils/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 PARAMS ((void));
+
+int
+vfork ()
+{
+ return (fork ());
+}
OpenPOWER on IntegriCloud