Lines Matching refs:SYSCALL
116 return internal_syscall(SYSCALL(mmap), (uptr)addr, length, prot, flags, fd, in internal_mmap()
121 return internal_syscall(SYSCALL(mmap2), addr, length, prot, flags, fd, in internal_mmap()
127 return internal_syscall(SYSCALL(munmap), (uptr)addr, length); in internal_munmap()
131 return internal_syscall(SYSCALL(mprotect), (uptr)addr, length, prot); in internal_mprotect()
135 return internal_syscall(SYSCALL(close), fd); in internal_close()
140 return internal_syscall(SYSCALL(openat), AT_FDCWD, (uptr)filename, flags); in internal_open()
142 return internal_syscall(SYSCALL(open), (uptr)filename, flags); in internal_open()
148 return internal_syscall(SYSCALL(openat), AT_FDCWD, (uptr)filename, flags, in internal_open()
151 return internal_syscall(SYSCALL(open), (uptr)filename, flags, mode); in internal_open()
157 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(read), fd, (uptr)buf, in internal_read()
164 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(write), fd, (uptr)buf, in internal_write()
171 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(ftruncate), fd, in internal_ftruncate()
218 return internal_syscall(SYSCALL(stat), path, buf); in internal_stat()
220 return internal_syscall(SYSCALL(newfstatat), AT_FDCWD, (uptr)path, in internal_stat()
226 int res = internal_syscall(SYSCALL(stat), path, &kbuf); in internal_stat()
230 return internal_syscall(SYSCALL(stat), (uptr)path, (uptr)buf); in internal_stat()
234 int res = internal_syscall(SYSCALL(stat64), path, &buf64); in internal_stat()
242 return internal_syscall(SYSCALL(lstat), path, buf); in internal_lstat()
244 return internal_syscall(SYSCALL(newfstatat), AT_FDCWD, (uptr)path, in internal_lstat()
247 return internal_syscall(SYSCALL(lstat), (uptr)path, (uptr)buf); in internal_lstat()
250 int res = internal_syscall(SYSCALL(lstat64), path, &buf64); in internal_lstat()
258 return internal_syscall(SYSCALL(fstat), fd, (uptr)buf); in internal_fstat()
261 int res = internal_syscall(SYSCALL(fstat64), fd, &buf64); in internal_fstat()
276 return internal_syscall(SYSCALL(dup3), oldfd, newfd, 0); in internal_dup2()
278 return internal_syscall(SYSCALL(dup2), oldfd, newfd); in internal_dup2()
284 return internal_syscall(SYSCALL(readlinkat), AT_FDCWD, in internal_readlink()
287 return internal_syscall(SYSCALL(readlink), (uptr)path, (uptr)buf, bufsize); in internal_readlink()
293 return internal_syscall(SYSCALL(unlinkat), AT_FDCWD, (uptr)path, 0); in internal_unlink()
295 return internal_syscall(SYSCALL(unlink), (uptr)path); in internal_unlink()
301 return internal_syscall(SYSCALL(renameat), AT_FDCWD, (uptr)oldpath, AT_FDCWD, in internal_rename()
304 return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath); in internal_rename()
309 return internal_syscall(SYSCALL(sched_yield)); in internal_sched_yield()
314 internal_syscall(SYSCALL(exit), exitcode); in internal__exit()
316 internal_syscall(SYSCALL(exit_group), exitcode); in internal__exit()
323 return internal_syscall(SYSCALL(execve), (uptr)filename, (uptr)argv, in internal_execve()
331 if (internal_syscall(SYSCALL(newfstatat), AT_FDCWD, filename, &st, 0)) in FileExists()
344 return internal_syscall(SYSCALL(gettid)); in GetTid()
355 internal_syscall(SYSCALL(gettimeofday), (uptr)&tv, 0); in NanoTime()
472 internal_syscall(SYSCALL(futex), (uptr)m, FUTEX_WAIT, MtxSleeping, 0, 0, 0); in Lock()
485 internal_syscall(SYSCALL(futex), (uptr)m, FUTEX_WAKE, 1, 0, 0, 0); in Unlock()
513 return internal_syscall(SYSCALL(ptrace), request, pid, (uptr)addr, in internal_ptrace()
518 return internal_syscall(SYSCALL(wait4), pid, (uptr)status, options, in internal_waitpid()
523 return internal_syscall(SYSCALL(getpid)); in internal_getpid()
527 return internal_syscall(SYSCALL(getppid)); in internal_getppid()
532 return internal_syscall(SYSCALL(getdents64), fd, (uptr)dirp, count); in internal_getdents()
534 return internal_syscall(SYSCALL(getdents), fd, (uptr)dirp, count); in internal_getdents()
539 return internal_syscall(SYSCALL(lseek), fd, offset, whence); in internal_lseek()
544 return internal_syscall(SYSCALL(prctl), option, arg2, arg3, arg4, arg5); in internal_prctl()
550 return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss); in internal_sigaltstack()
555 return internal_syscall(SYSCALL(clone), SIGCHLD, 0); in internal_fork()
557 return internal_syscall(SYSCALL(fork)); in internal_fork()
588 uptr result = internal_syscall(SYSCALL(rt_sigaction), (uptr)signum, in internal_sigaction_norestorer()
608 return internal_syscall(SYSCALL(sigprocmask), how, set, oldset); in internal_sigprocmask()
612 return internal_syscall(SYSCALL(rt_sigprocmask), (uptr)how, in internal_sigprocmask()
857 : "a"(SYSCALL(clone)), "i"(SYSCALL(exit)), in internal_clone()