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/riscv/sys_close.c')
-rw-r--r--libgloss/riscv/sys_close.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgloss/riscv/sys_close.c b/libgloss/riscv/sys_close.c
new file mode 100644
index 000000000..80b10c66a
--- /dev/null
+++ b/libgloss/riscv/sys_close.c
@@ -0,0 +1,9 @@
+#include <machine/syscall.h>
+#include "internal_syscall.h"
+
+/* Close a file. */
+int
+_close(int file)
+{
+ return syscall_errno (SYS_close, file, 0, 0, 0, 0, 0);
+}