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_openat.c')
-rw-r--r--libgloss/riscv/sys_openat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgloss/riscv/sys_openat.c b/libgloss/riscv/sys_openat.c
new file mode 100644
index 000000000..cf429b7b2
--- /dev/null
+++ b/libgloss/riscv/sys_openat.c
@@ -0,0 +1,8 @@
+#include <machine/syscall.h>
+#include "internal_syscall.h"
+
+/* Open file relative to given directory. */
+int _openat(int dirfd, const char *name, int flags, int mode)
+{
+ return syscall_errno (SYS_openat, dirfd, name, flags, mode, 0, 0);
+}