Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/libnosys/fork.c')
-rw-r--r--libgloss/libnosys/fork.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/libgloss/libnosys/fork.c b/libgloss/libnosys/fork.c
new file mode 100644
index 000000000..f5795cb49
--- /dev/null
+++ b/libgloss/libnosys/fork.c
@@ -0,0 +1,21 @@
+/*
+ * Stub version of fork.
+ */
+
+#include "config.h"
+#include <_ansi.h>
+#include <_syslist.h>
+#include <errno.h>
+#undef errno
+extern int errno;
+#include "warning.h"
+
+int
+_DEFUN (_fork, (),
+ _NOARGS)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
+stub_warning(_fork)