X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/32b9a6d76790c73d3d2d36d9081a2581cc65d184..28c176b668c841a3b7fb093faccf0efa39257603:/lunaix-os/usr/libc/src/posix/fcntl.c?ds=sidebyside diff --git a/lunaix-os/usr/libc/src/posix/fcntl.c b/lunaix-os/usr/libc/src/posix/fcntl.c new file mode 100644 index 0000000..28f1ff3 --- /dev/null +++ b/lunaix-os/usr/libc/src/posix/fcntl.c @@ -0,0 +1,14 @@ +#include +#include + +int +open(const char* path, int options) +{ + return do_lunaix_syscall(__SYSCALL_open, path, options); +} + +int +fstat(int fd, struct file_stat* stat) +{ + return do_lunaix_syscall(__SYSCALL_fstat, fd, stat); +} \ No newline at end of file