| /llvm-project-15.0.7/compiler-rt/utils/ |
| H A D | generate_netbsd_syscalls.awk | 547 if (syscall == "syscall") { 549 } else if (syscall == "exit") { 551 } else if (syscall == "fork") { 557 } else if (syscall == "read") { 577 } else if (syscall == "open") { 601 } else if (syscall == "link") { 891 } else if (syscall == "sync") { 893 } else if (syscall == "kill") { 901 } else if (syscall == "dup") { 903 } else if (syscall == "pipe") { [all …]
|
| /llvm-project-15.0.7/libc/test/src/__support/OSUtil/linux/x86_64/ |
| H A D | syscall_test.cpp | 19 Function<long(long)> f([](long n) { return __llvm_libc::syscall(n); }); in TEST() 21 [](long n, long a1) { return __llvm_libc::syscall(n, a1); }); in TEST() 23 [](long n, long a1, long a2) { return __llvm_libc::syscall(n, a1, a2); }); in TEST() 26 return __llvm_libc::syscall(n, a1, a2, a3); in TEST() 30 return __llvm_libc::syscall(n, a1, a2, a3, a4); in TEST() 34 return __llvm_libc::syscall(n, a1, a2, a3, a4, a5); in TEST() 38 return __llvm_libc::syscall(n, a1, a2, a3, a4, a5, a6); in TEST() 42 [](long n, void *a1) { return __llvm_libc::syscall(n, a1); }); in TEST()
|
| /llvm-project-15.0.7/compiler-rt/test/tsan/Linux/ |
| H A D | syscall.h | 11 int res = syscall(SYS_fork); in myfork() 13 int res = syscall(SYS_clone, SIGCHLD, 0); in myfork() 21 int res = syscall(SYS_pipe2, pipefd, 0); in mypipe() 28 int res = syscall(SYS_close, fd); in myclose() 35 ssize_t res = syscall(SYS_read, fd, buf, count); in myread() 42 ssize_t res = syscall(SYS_write, fd, buf, count); in mywrite()
|
| /llvm-project-15.0.7/libc/src/__support/OSUtil/linux/x86_64/ |
| H A D | syscall.h | 18 __attribute__((always_inline)) inline long syscall(long __number) { in syscall() function 27 __attribute__((always_inline)) inline long syscall(long __number, long __arg1) { in syscall() function 36 __attribute__((always_inline)) inline long syscall(long __number, long __arg1, in syscall() function 46 __attribute__((always_inline)) inline long syscall(long __number, long __arg1, in syscall() function 57 syscall(long __number, long __arg1, long __arg2, long __arg3, long __arg4) { in syscall() function 68 __attribute__((always_inline)) inline long syscall(long __number, long __arg1, in syscall() function 82 __attribute__((always_inline)) inline long syscall(long __number, long __arg1, in syscall() function
|
| /llvm-project-15.0.7/libc/src/__support/OSUtil/linux/aarch64/ |
| H A D | syscall.h | 47 __attribute__((always_inline)) inline long syscall(long number) { in syscall() function 53 __attribute__((always_inline)) inline long syscall(long number, long arg1) { in syscall() function 59 __attribute__((always_inline)) inline long syscall(long number, long arg1, in syscall() function 66 __attribute__((always_inline)) inline long syscall(long number, long arg1, in syscall() function 74 syscall(long number, long arg1, long arg2, long arg3, long arg4) { in syscall() function 81 syscall(long number, long arg1, long arg2, long arg3, long arg4, long arg5) { in syscall() function 87 __attribute__((always_inline)) inline long syscall(long number, long arg1, in syscall() function
|
| /llvm-project-15.0.7/libc/loader/linux/x86_64/ |
| H A D | start.cpp | 59 long mmapRetVal = __llvm_libc::syscall( in init_tls() 65 __llvm_libc::syscall(SYS_exit, 1); in init_tls() 84 __llvm_libc::syscall(SYS_munmap, addr, size); in cleanup_tls() 89 return __llvm_libc::syscall(SYS_arch_prctl, ARCH_SET_FS, val) == -1 ? false in set_thread_ptr() 124 auto tid = __llvm_libc::syscall(SYS_gettid); in _start() 126 __llvm_libc::syscall(SYS_exit, 1); in _start() 174 __llvm_libc::syscall(SYS_exit, 1); in _start() 181 __llvm_libc::syscall(SYS_exit, retval); in _start()
|
| /llvm-project-15.0.7/compiler-rt/lib/safestack/ |
| H A D | safestack_platform.h | 77 return syscall(SYS_gettid); in GetTid() 87 return syscall(SYS_thr_kill2, pid, tid, sig); in TgKill() 89 return syscall(SYS_tgkill, pid, tid, sig); in TgKill() 100 return (void *)syscall(SYS_mmap, addr, length, prot, flags, fd, offset); in Mmap() 109 return syscall(SYS_munmap, addr, length); in Munmap() 118 return syscall(SYS_mprotect, addr, length, prot); in Mprotect()
|
| /llvm-project-15.0.7/libc/src/__support/File/ |
| H A D | linux_file.cpp | 56 long ret = __llvm_libc::syscall(SYS_write, lf->get_fd(), data, size); in write_func() 66 long ret = __llvm_libc::syscall(SYS_read, lf->get_fd(), buf, size); in read_func() 77 long ret = __llvm_libc::syscall(SYS_lseek, lf->get_fd(), offset, whence); in seek_func() 80 long ret = __llvm_libc::syscall(SYS__lseek, lf->get_fd(), offset >> 32, in seek_func() 95 long ret = __llvm_libc::syscall(SYS_close, lf->get_fd()); in close_func() 105 long ret = __llvm_libc::syscall(SYS_fsync, lf->get_fd()); in flush_func() 147 int fd = __llvm_libc::syscall(SYS_open, path, open_flags, OPEN_MODE); in openfile() 150 __llvm_libc::syscall(SYS_openat, AT_FDCWD, path, open_flags, OPEN_MODE); in openfile()
|
| H A D | linux_dir.cpp | 22 int fd = __llvm_libc::syscall(SYS_open, name, open_flags); in platform_opendir() 24 int fd = __llvm_libc::syscall(SYS_openat, AT_FDCWD, name, open_flags); in platform_opendir() 39 __llvm_libc::syscall(SYS_getdents, fd, buffer.data(), buffer.size()); in platform_fetch_dirents() 48 long ret = __llvm_libc::syscall(SYS_close, fd); in platform_closedir()
|
| /llvm-project-15.0.7/libc/include/sys/ |
| H A D | syscall.h.def | 1 //===-- Linux like sys/syscall.h ------------------------------------------===// 12 <!> If syscall.h were a linux only file, then we do not need this indirection. 13 <!> However, to keep the option of a non-linux OS requiring a syscall.h file, 14 <!> with its own special syscall numbers, we use this indirection.
|
| /llvm-project-15.0.7/libc/loader/linux/aarch64/ |
| H A D | start.cpp | 69 long mmap_ret_val = __llvm_libc::syscall(MMAP_SYSCALL_NUMBER, nullptr, in init_tls() 75 __llvm_libc::syscall(SYS_exit, 1); in init_tls() 89 __llvm_libc::syscall(SYS_munmap, addr, size); in cleanup_tls() 111 auto tid = __llvm_libc::syscall(SYS_gettid); in _start() 113 __llvm_libc::syscall(SYS_exit, 1); in _start() 168 __llvm_libc::syscall(SYS_exit, retval); in _start()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_syscall_linux_x86_64.inc | 17 asm volatile("syscall" : "=a"(retval) : "a"(nr) : "rcx", "r11", 25 asm volatile("syscall" : "=a"(retval) : "a"(nr), "D"((u64)arg1) : 33 asm volatile("syscall" : "=a"(retval) : "a"(nr), "D"((u64)arg1), 41 asm volatile("syscall" : "=a"(retval) : "a"(nr), "D"((u64)arg1), 50 "syscall" : "=a"(retval) : "a"(nr), "D"((u64)arg1), 62 "syscall" : "=a"(retval) : "a"(nr), "D"((u64)arg1), 76 "syscall" : "=a"(retval) : "a"(nr), "D"((u64)arg1),
|
| H A D | sanitizer_syscall_linux_loongarch64.inc | 18 // syscall number is passed in a7 19 // (http://man7.org/linux/man-pages/man2/syscall.2.html) results are return in 20 // a0 and a1 (http://man7.org/linux/man-pages/man2/syscall.2.html) arguments 29 __asm__ volatile("syscall 0\n\t" 40 __asm__ volatile("syscall 0\n\t" 52 __asm__ volatile("syscall 0\n\t" 66 __asm__ volatile("syscall 0\n\t" 82 __asm__ volatile("syscall 0\n\t" 99 __asm__ volatile("syscall 0\n\t" 118 __asm__ volatile("syscall 0\n\t" [all …]
|
| /llvm-project-15.0.7/libc/src/__support/threads/linux/ |
| H A D | thread.cpp | 53 __llvm_libc::syscall(MMAP_SYSCALL_NUMBER, in alloc_stack() 67 __llvm_libc::syscall(SYS_munmap, stack, size); in free_stack() 135 __llvm_libc::syscall(SYS_set_tid_address, 0); in start_thread() 138 __llvm_libc::syscall(SYS_exit, retval); in start_thread() 200 clone_result = __llvm_libc::syscall( in run() 208 clone_result = __llvm_libc::syscall( in run() 272 __llvm_libc::syscall(SYS_futex, &clear_tid->val, FUTEX_WAIT, in wait()
|
| /llvm-project-15.0.7/libc/src/signal/linux/ |
| H A D | raise.cpp | 19 long pid = __llvm_libc::syscall(SYS_getpid); 20 long tid = __llvm_libc::syscall(SYS_gettid); 21 int ret = __llvm_libc::syscall(SYS_tgkill, pid, tid, sig);
|
| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | local-got.s | 45 movl $0x2000004, %eax # write() syscall 49 syscall 51 movl $0x2000004, %eax # write() syscall 57 syscall 59 movl $0x2000004, %eax # write() syscall 64 syscall
|
| /llvm-project-15.0.7/llvm/test/MC/Mips/ |
| H A D | micromips-control-instructions.s | 29 # CHECK-EL: syscall # encoding: [0x00,0x00,0x7c,0x8b] 31 # CHECK-EL: syscall 396 # encoding: [0x8c,0x01,0x7c,0x8b] 71 # CHECK-EB: syscall # encoding: [0x00,0x00,0x8b,0x7c] 72 # CHECK-EB: syscall 396 # encoding: [0x01,0x8c,0x8b,0x7c] 100 syscall 101 syscall 0x18c
|
| /llvm-project-15.0.7/llvm/test/MC/Mips/micromips/ |
| H A D | invalid-wrong-error.s | 11 syscall -1 # CHECK: :[[@LINE]]:11: error: expected 10-bit unsigned immediate 12 syscall $4 # CHECK: :[[@LINE]]:11: error: expected 10-bit unsigned immediate 13 …syscall 1024 # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently…
|
| /llvm-project-15.0.7/libc/src/stdlib/linux/ |
| H A D | _Exit.cpp | 19 __llvm_libc::syscall(SYS_exit_group, status); 20 __llvm_libc::syscall(SYS_exit, status);
|
| /llvm-project-15.0.7/libc/src/__support/OSUtil/linux/ |
| H A D | quick_exit.h | 20 __llvm_libc::syscall(SYS_exit_group, status); in quick_exit() 21 __llvm_libc::syscall(SYS_exit, status); in quick_exit()
|
| H A D | syscall.h | 23 __attribute__((always_inline)) inline long syscall(long __number, Ts... ts) { in syscall() function 25 return syscall(__number, (long)ts...); in syscall()
|
| /llvm-project-15.0.7/libc/src/unistd/linux/ |
| H A D | unlink.cpp | 22 long ret = __llvm_libc::syscall(SYS_unlink, path); 24 long ret = __llvm_libc::syscall(SYS_unlinkat, AT_FDCWD, path, 0);
|
| H A D | rmdir.cpp | 22 long ret = __llvm_libc::syscall(SYS_rmdir, path); 24 long ret = __llvm_libc::syscall(SYS_unlinkat, AT_FDCWD, path, AT_REMOVEDIR);
|
| /llvm-project-15.0.7/lldb/tools/debugserver/scripts/ |
| H A D | diagnose-termination.d | 8 syscall::kill:entry 14 syscall::__pthread_kill:entry
|
| /llvm-project-15.0.7/libc/src/sys/stat/linux/ |
| H A D | mkdir.cpp | 23 long ret = __llvm_libc::syscall(SYS_mkdir, path, mode); 25 long ret = __llvm_libc::syscall(SYS_mkdirat, AT_FDCWD, path, mode);
|