Lines Matching refs:SYSCALL
245 return internal_syscall(SYSCALL(mmap), (uptr)addr, length, prot, flags, fd, in internal_mmap()
250 return internal_syscall(SYSCALL(mmap2), addr, length, prot, flags, fd, in internal_mmap()
257 return internal_syscall(SYSCALL(munmap), (uptr)addr, length); in internal_munmap()
263 return internal_syscall(SYSCALL(mremap), (uptr)old_address, old_size, in internal_mremap()
269 return internal_syscall(SYSCALL(mprotect), (uptr)addr, length, prot); in internal_mprotect()
273 return internal_syscall(SYSCALL(madvise), addr, length, advice); in internal_madvise()
276 uptr internal_close(fd_t fd) { return internal_syscall(SYSCALL(close), fd); } in internal_close()
280 return internal_syscall(SYSCALL(openat), AT_FDCWD, (uptr)filename, flags); in internal_open()
282 return internal_syscall(SYSCALL(open), (uptr)filename, flags); in internal_open()
288 return internal_syscall(SYSCALL(openat), AT_FDCWD, (uptr)filename, flags, in internal_open()
291 return internal_syscall(SYSCALL(open), (uptr)filename, flags, mode); in internal_open()
298 (sptr)internal_syscall(SYSCALL(read), fd, (uptr)buf, count)); in internal_read()
305 (sptr)internal_syscall(SYSCALL(write), fd, (uptr)buf, count)); in internal_write()
312 (sptr)internal_syscall(SYSCALL(ftruncate), fd, (OFF_T)size)); in internal_ftruncate()
413 return internal_syscall(SYSCALL(fstatat), AT_FDCWD, (uptr)path, (uptr)buf, 0); in internal_stat()
417 int res = internal_syscall(SYSCALL(statx), AT_FDCWD, (uptr)path, in internal_stat()
424 return internal_syscall(SYSCALL(newfstatat), AT_FDCWD, (uptr)path, (uptr)buf, in internal_stat()
428 int res = internal_syscall(SYSCALL(fstatat64), AT_FDCWD, (uptr)path, in internal_stat()
434 int res = internal_syscall(SYSCALL(fstatat64), AT_FDCWD, (uptr)path, in internal_stat()
441 int res = internal_syscall(SYSCALL(stat64), path, &buf64); in internal_stat()
449 return internal_syscall(SYSCALL(fstatat), AT_FDCWD, (uptr)path, (uptr)buf, in internal_lstat()
454 int res = internal_syscall(SYSCALL(statx), AT_FDCWD, (uptr)path, in internal_lstat()
462 return internal_syscall(SYSCALL(newfstatat), AT_FDCWD, (uptr)path, (uptr)buf, in internal_lstat()
466 int res = internal_syscall(SYSCALL(fstatat64), AT_FDCWD, (uptr)path, in internal_lstat()
472 int res = internal_syscall(SYSCALL(fstatat64), AT_FDCWD, (uptr)path, in internal_lstat()
479 int res = internal_syscall(SYSCALL(lstat64), path, &buf64); in internal_lstat()
490 int res = internal_syscall(SYSCALL(fstat), fd, &kbuf); in internal_fstat()
496 int res = internal_syscall(SYSCALL(fstat64), fd, &kbuf); in internal_fstat()
501 int res = internal_syscall(SYSCALL(statx), fd, "", AT_EMPTY_PATH, in internal_fstat()
506 return internal_syscall(SYSCALL(fstat), fd, (uptr)buf); in internal_fstat()
510 int res = internal_syscall(SYSCALL(fstat64), fd, &buf64); in internal_fstat()
523 uptr internal_dup(int oldfd) { return internal_syscall(SYSCALL(dup), oldfd); } in internal_dup()
527 return internal_syscall(SYSCALL(dup3), oldfd, newfd, 0); in internal_dup2()
529 return internal_syscall(SYSCALL(dup2), oldfd, newfd); in internal_dup2()
535 return internal_syscall(SYSCALL(readlinkat), AT_FDCWD, (uptr)path, (uptr)buf, in internal_readlink()
538 return internal_syscall(SYSCALL(readlink), (uptr)path, (uptr)buf, bufsize); in internal_readlink()
544 return internal_syscall(SYSCALL(unlinkat), AT_FDCWD, (uptr)path, 0); in internal_unlink()
546 return internal_syscall(SYSCALL(unlink), (uptr)path); in internal_unlink()
552 return internal_syscall(SYSCALL(renameat2), AT_FDCWD, (uptr)oldpath, AT_FDCWD, in internal_rename()
555 return internal_syscall(SYSCALL(renameat), AT_FDCWD, (uptr)oldpath, AT_FDCWD, in internal_rename()
558 return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath); in internal_rename()
562 uptr internal_sched_yield() { return internal_syscall(SYSCALL(sched_yield)); } in internal_sched_yield()
568 internal_syscall(SYSCALL(nanosleep), &ts, &ts); in internal_usleep()
573 return internal_syscall(SYSCALL(execve), (uptr)filename, (uptr)argv, in internal_execve()
581 internal_syscall(SYSCALL(exit), exitcode); in internal__exit()
583 internal_syscall(SYSCALL(exit_group), exitcode); in internal__exit()
616 return internal_syscall(SYSCALL(gettid)); in GetTid()
622 return internal_syscall(SYSCALL(tgkill), pid, tid, sig); in TgKill()
624 return internal_syscall(SYSCALL(thr_kill2), pid, tid, sig); in TgKill()
638 internal_syscall(SYSCALL(gettimeofday), &tv, 0); in NanoTime()
643 return internal_syscall(SYSCALL(clock_gettime), clk_id, tp); in internal_clock_gettime()
785 internal_syscall(SYSCALL(futex), (uptr)p, FUTEX_WAIT_PRIVATE, cmp, 0, 0, 0); in FutexWait()
795 internal_syscall(SYSCALL(futex), (uptr)p, FUTEX_WAKE_PRIVATE, count, 0, 0, 0); in FutexWake()
827 return internal_syscall(SYSCALL(ptrace), request, pid, (uptr)addr, in internal_ptrace()
832 return internal_syscall(SYSCALL(wait4), pid, (uptr)status, options, in internal_waitpid()
836 uptr internal_getpid() { return internal_syscall(SYSCALL(getpid)); } in internal_getpid()
838 uptr internal_getppid() { return internal_syscall(SYSCALL(getppid)); } in internal_getppid()
850 return internal_syscall(SYSCALL(getdirentries), fd, (uptr)dirp, count, NULL); in internal_getdents()
852 return internal_syscall(SYSCALL(getdents64), fd, (uptr)dirp, count); in internal_getdents()
854 return internal_syscall(SYSCALL(getdents), fd, (uptr)dirp, count); in internal_getdents()
859 return internal_syscall(SYSCALL(lseek), fd, offset, whence); in internal_lseek()
864 return internal_syscall(SYSCALL(prctl), option, arg2, arg3, arg4, arg5); in internal_prctl()
876 return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss); in internal_sigaltstack()
884 return internal_syscall(SYSCALL(clone), 0, SIGCHLD); in internal_fork()
890 return internal_syscall(SYSCALL(clone), SIGCHLD, 0); in internal_fork()
893 return internal_syscall(SYSCALL(fork)); in internal_fork()
900 return internal_syscall(SYSCALL(__sysctl), name, namelen, oldp, in internal_sysctl()
913 return internal_syscall(SYSCALL(__sysctlbyname), sname, in internal_sysctlbyname()
962 uptr result = internal_syscall(SYSCALL(rt_sigaction), (uptr)signum, in internal_sigaction_norestorer()
984 return internal_syscall(SYSCALL(sigprocmask), how, set, oldset); in internal_sigprocmask()
988 return internal_syscall(SYSCALL(rt_sigprocmask), (uptr)how, (uptr)k_set, in internal_sigprocmask()
1023 return internal_syscall(SYSCALL(procctl), type, id, cmd, data); in internal_procctl()
1391 : "a"(SYSCALL(clone)), "i"(SYSCALL(exit)), "S"(child_stack), "D"(flags), in internal_clone()
1755 : "a"(SYSCALL(clone)), "i"(SYSCALL(exit)), "c"(child_stack), in internal_clone()
1829 return internal_syscall(SYSCALL(uname), buf); in internal_uname()
2620 uptr res = internal_syscall(SYSCALL(getrandom), buffer, length, in GetRandom()