Files
libc/src/sys/syscall_io.c
T
2020-07-16 22:49:00 +03:00

9 lines
238 B
C

#include <_libc/syscalls.h>
#include <ygg/syscall.h>
#include <unistd.h>
#include <errno.h>
int open(const char *pathname, int flags, mode_t mode) {
return SET_ERRNO(int, __syscall3(SYSCALL_NR_OPEN, (long) pathname, flags, mode));
}