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 'newlib/libc/syscalls/sysunlink.c')
-rw-r--r--newlib/libc/syscalls/sysunlink.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/newlib/libc/syscalls/sysunlink.c b/newlib/libc/syscalls/sysunlink.c
new file mode 100644
index 000000000..a910f96c2
--- /dev/null
+++ b/newlib/libc/syscalls/sysunlink.c
@@ -0,0 +1,14 @@
+/* connector for unlink */
+
+#include <reent.h>
+
+int
+unlink (file)
+ char *file;
+{
+#ifdef REENTRANT_SYSCALLS_PROVIDED
+ return _unlink_r (_REENT, file);
+#else
+ return _unlink (file);
+#endif
+}