Home | History | Annotate | Download | only in sanitizer_common

Lines Matching refs:SYSCALL

45 #include <sys/syscall.h>
103 return internal_syscall(SYSCALL(mmap), (uptr)addr, length, prot, flags, fd,
106 return internal_syscall(SYSCALL(mmap2), addr, length, prot, flags, fd,
112 return internal_syscall(SYSCALL(munmap), (uptr)addr, length);
116 return internal_syscall(SYSCALL(close), fd);
121 return internal_syscall(SYSCALL(openat), AT_FDCWD, (uptr)filename, flags);
123 return internal_syscall(SYSCALL(open), (uptr)filename, flags);
129 return internal_syscall(SYSCALL(openat), AT_FDCWD, (uptr)filename, flags,
132 return internal_syscall(SYSCALL(open), (uptr)filename, flags, mode);
143 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(read), fd, (uptr)buf,
150 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(write), fd, (uptr)buf,
157 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(ftruncate), fd, size));
183 return internal_syscall(SYSCALL(stat), path, buf);
185 return internal_syscall(SYSCALL(newfstatat), AT_FDCWD, (uptr)path,
188 return internal_syscall(SYSCALL(stat), (uptr)path, (uptr)buf);
191 int res = internal_syscall(SYSCALL(stat64), path, &buf64);
199 return internal_syscall(SYSCALL(lstat), path, buf);
201 return internal_syscall(SYSCALL(newfstatat), AT_FDCWD, (uptr)path,
204 return internal_syscall(SYSCALL(lstat), (uptr)path, (uptr)buf);
207 int res = internal_syscall(SYSCALL(lstat64), path, &buf64);
215 return internal_syscall(SYSCALL(fstat), fd, (uptr)buf);
218 int res = internal_syscall(SYSCALL(fstat64), fd, &buf64);
233 return internal_syscall(SYSCALL(dup3), oldfd, newfd, 0);
235 return internal_syscall(SYSCALL(dup2), oldfd, newfd);
241 return internal_syscall(SYSCALL(readlinkat), AT_FDCWD,
244 return internal_syscall(SYSCALL(readlink), (uptr)path, (uptr)buf, bufsize);
250 return internal_syscall(SYSCALL(unlinkat), AT_FDCWD, (uptr)path, 0);
252 return internal_syscall(SYSCALL(unlink), (uptr)path);
258 return internal_syscall(SYSCALL(renameat), AT_FDCWD, (uptr)oldpath, AT_FDCWD,
261 return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath);
266 return internal_syscall(SYSCALL(sched_yield));
271 internal_syscall(SYSCALL(exit), exitcode);
273 internal_syscall(SYSCALL(exit_group), exitcode);
280 return internal_syscall(SYSCALL(execve), (uptr)filename, (uptr)argv,
288 if (internal_syscall(SYSCALL(newfstatat), AT_FDCWD, filename, &st, 0))
303 return internal_syscall(SYSCALL(gettid));
314 internal_syscall(SYSCALL(gettimeofday), (uptr)&tv, 0);
445 internal_syscall(SYSCALL(futex), (uptr)m, FUTEX_WAIT, MtxSleeping, 0, 0, 0);
458 internal_syscall(SYSCALL(futex), (uptr)m, FUTEX_WAKE, 1, 0, 0, 0);
471 // 32-bit syscall here.
484 // Syscall wrappers.
486 return internal_syscall(SYSCALL(ptrace), request, pid, (uptr)addr,
491 return internal_syscall(SYSCALL(wait4), pid, (uptr)status, options,
496 return internal_syscall(SYSCALL(getpid));
500 return internal_syscall(SYSCALL(getppid));
505 return internal_syscall(SYSCALL(getdents64), fd, (uptr)dirp, count);
507 return internal_syscall(SYSCALL(getdents), fd, (uptr)dirp, count);
512 return internal_syscall(SYSCALL(lseek), fd, offset, whence);
517 return internal_syscall(SYSCALL(prctl), option, arg2, arg3, arg4, arg5);
523 return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss);
528 return internal_syscall(SYSCALL(clone), SIGCHLD, 0);
530 return internal_syscall(SYSCALL(fork));
549 // to point to a valid signal restorer that calls the rt_sigreturn syscall.
559 uptr result = internal_syscall(SYSCALL(rt_sigaction), (uptr)signum,
579 return internal_syscall(SYSCALL(sigprocmask), how, set, oldset);
583 return internal_syscall(SYSCALL(rt_sigprocmask), (uptr)how,
793 /* %rax = syscall(%rax = SYSCALL(clone),
800 "syscall\n"
822 "syscall\n"
827 : "a"(SYSCALL(clone)), "i"(SYSCALL(exit)),