X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/ec4ff182252b6d7b3cb81f4fa783c5348a6c30fd..084eac3d5fa7deeab2296cf20653f4f7b3f75cd0:/lunaix-os/usr/libc/src/posix/lunaix.c diff --git a/lunaix-os/usr/libc/src/posix/lunaix.c b/lunaix-os/usr/libc/src/posix/lunaix.c index 452f02d..7558ef7 100644 --- a/lunaix-os/usr/libc/src/posix/lunaix.c +++ b/lunaix-os/usr/libc/src/posix/lunaix.c @@ -1,23 +1,23 @@ -#include +#include #include #include void yield() { - do_lunaix_syscall(__SYSCALL_yield); + do_lunaix_syscall(__NR__lxsys_yield); } pid_t wait(int* status) { - return do_lunaix_syscall(__SYSCALL_wait, status); + return do_lunaix_syscall(__NR__lxsys_wait, status); } pid_t waitpid(pid_t pid, int* status, int options) { - return do_lunaix_syscall(__SYSCALL_waitpid, pid, status, options); + return do_lunaix_syscall(__NR__lxsys_waitpid, pid, status, options); } void @@ -28,7 +28,7 @@ syslog(int level, const char* fmt, ...) va_start(ap, fmt); unsigned int size = vsnprintf(buf, 1024, fmt, ap); - do_lunaix_syscall(__SYSCALL_syslog, level, buf, size); + do_lunaix_syscall(__NR__lxsys_syslog, level, buf, size); va_end(ap); } @@ -36,5 +36,5 @@ syslog(int level, const char* fmt, ...) int realpathat(int fd, char* buf, size_t size) { - return do_lunaix_syscall(__SYSCALL_realpathat, fd, buf, size); + return do_lunaix_syscall(__NR__lxsys_realpathat, fd, buf, size); } \ No newline at end of file