Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/riscv/sys_openat.c
2023-03-06 14:48:14 +01:00

8 lines
244 B
C

#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, 4, dirfd, name, flags, mode, 0, 0);
}