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/write.c')
-rw-r--r--libgloss/libnosys/write.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/libgloss/libnosys/write.c b/libgloss/libnosys/write.c
new file mode 100644
index 000000000..0136d74ce
--- /dev/null
+++ b/libgloss/libnosys/write.c
@@ -0,0 +1,24 @@
+/*
+ * Stub version of write.
+ */
+
+#include "config.h"
+#include <_ansi.h>
+#include <_syslist.h>
+#include <errno.h>
+#undef errno
+extern int errno;
+#include "warning.h"
+
+int
+_DEFUN (_write, (file, ptr, len),
+ int file _AND
+ char *ptr _AND
+ int len)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
+stub_warning(_write)
+