Home | History | Annotate | Download | only in sanitizer_common

Lines Matching refs:SYSCALL

34 // For mips64, syscall(__NR_stat) fills the buffer in the 'struct kernel_stat'
57 #include <sys/syscall.h>
116 return internal_syscall(SYSCALL(mmap), (uptr)addr, length, prot, flags, fd,
121 return internal_syscall(SYSCALL(mmap2), addr, length, prot, flags, fd,
127 return internal_syscall(SYSCALL(munmap), (uptr)addr, length);
131 return internal_syscall(SYSCALL(mprotect), (uptr)addr, length, prot);
135 return internal_syscall(SYSCALL(close), fd);
140 return internal_syscall(SYSCALL(openat), AT_FDCWD, (uptr)filename, flags);
142 return internal_syscall(SYSCALL(open), (uptr)filename, flags);
148 return internal_syscall(SYSCALL(openat), AT_FDCWD, (uptr)filename, flags,
151 return internal_syscall(SYSCALL(open), (uptr)filename, flags, mode);
157 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(read), fd, (uptr)buf,
164 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(write), fd, (uptr)buf,
171 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(ftruncate), fd,
218 return internal_syscall(SYSCALL(stat), path, buf);
220 return internal_syscall(SYSCALL(newfstatat), AT_FDCWD, (uptr)path,
224 // For mips64, stat syscall fills buffer in the format of kernel_stat
226 int res = internal_syscall(SYSCALL(stat), path, &kbuf);
230 return internal_syscall(SYSCALL(stat), (uptr)path, (uptr)buf);
234 int res = internal_syscall(SYSCALL(stat64), path, &buf64);
242 return internal_syscall(SYSCALL(lstat), path, buf);
244 return internal_syscall(SYSCALL(newfstatat), AT_FDCWD, (uptr)path,
247 return internal_syscall(SYSCALL(lstat), (uptr)path, (uptr)buf);
250 int res = internal_syscall(SYSCALL(lstat64), path, &buf64);
258 return internal_syscall(SYSCALL(fstat), fd, (uptr)buf);
261 int res = internal_syscall(SYSCALL(fstat64), fd, &buf64);
276 return internal_syscall(SYSCALL(dup3), oldfd, newfd, 0);
278 return internal_syscall(SYSCALL(dup2), oldfd, newfd);
284 return internal_syscall(SYSCALL(readlinkat), AT_FDCWD,
287 return internal_syscall(SYSCALL(readlink), (uptr)path, (uptr)buf, bufsize);
293 return internal_syscall(SYSCALL(unlinkat), AT_FDCWD, (uptr)path, 0);
295 return internal_syscall(SYSCALL(unlink), (uptr)path);
301 return internal_syscall(SYSCALL(renameat), AT_FDCWD, (uptr)oldpath, AT_FDCWD,
304 return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath);
309 return internal_syscall(SYSCALL(sched_yield));
314 internal_syscall(SYSCALL(exit), exitcode);
316 internal_syscall(SYSCALL(exit_group), exitcode);
323 return internal_syscall(SYSCALL(execve), (uptr)filename, (uptr)argv,
331 if (internal_syscall(SYSCALL(newfstatat), AT_FDCWD, filename, &st, 0))
344 return internal_syscall(SYSCALL(gettid));
355 internal_syscall(SYSCALL(gettimeofday), (uptr)&tv, 0);
472 internal_syscall(SYSCALL(futex), (uptr)m, FUTEX_WAIT, MtxSleeping, 0, 0, 0);
485 internal_syscall(SYSCALL(futex), (uptr)m, FUTEX_WAKE, 1, 0, 0, 0);
498 // 32-bit syscall here.
511 // Syscall wrappers.
513 return internal_syscall(SYSCALL(ptrace), request, pid, (uptr)addr,
518 return internal_syscall(SYSCALL(wait4), pid, (uptr)status, options,
523 return internal_syscall(SYSCALL(getpid));
527 return internal_syscall(SYSCALL(getppid));
532 return internal_syscall(SYSCALL(getdents64), fd, (uptr)dirp, count);
534 return internal_syscall(SYSCALL(getdents), fd, (uptr)dirp, count);
539 return internal_syscall(SYSCALL(lseek), fd, offset, whence);
544 return internal_syscall(SYSCALL(prctl), option, arg2, arg3, arg4, arg5);
550 return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss);
555 return internal_syscall(SYSCALL(clone), SIGCHLD, 0);
557 return internal_syscall(SYSCALL(fork));
578 // to point to a valid signal restorer that calls the rt_sigreturn syscall.
588 uptr result = internal_syscall(SYSCALL(rt_sigaction), (uptr)signum,
608 return internal_syscall(SYSCALL(sigprocmask), how, set, oldset);
612 return internal_syscall(SYSCALL(rt_sigprocmask), (uptr)how,
823 /* %rax = syscall(%rax = SYSCALL(clone),
830 "syscall\n"
852 "syscall\n"
857 : "a"(SYSCALL(clone)), "i"(SYSCALL(exit)),