Lines Matching refs:long

40 //   COMMON_SYSCALL_POST_FORK(long res)
92 unsigned long iov_len;
99 unsigned long msg_iovlen;
101 unsigned long msg_controllen;
111 long tv_sec;
112 long tv_nsec;
116 long tv_sec;
117 long tv_usec;
122 long ru_long[14];
155 PRE_SYSCALL(recvmsg)(long sockfd, sanitizer_kernel_msghdr *msg, long flags) {
159 POST_SYSCALL(recvmsg)(long res, long sockfd, sanitizer_kernel_msghdr *msg,
160 long flags) {
163 for (unsigned long i = 0; i < msg->msg_iovlen; ++i) {
171 PRE_SYSCALL(recvmmsg)(long fd, sanitizer_kernel_mmsghdr *msg, long vlen,
172 long flags, void *timeout) {
176 POST_SYSCALL(recvmmsg)(long res, long fd, sanitizer_kernel_mmsghdr *msg,
177 long vlen, long flags, void *timeout) {
180 for (unsigned long i = 0; i < msg->msg_hdr.msg_iovlen; ++i) {
191 PRE_SYSCALL(read)(long fd, void *buf, uptr count) {
197 POST_SYSCALL(read)(long res, long fd, void *buf, uptr count) {
205 POST_SYSCALL(time)(long res, void *tloc) {
207 if (tloc) POST_WRITE(tloc, sizeof(long));
213 POST_SYSCALL(stime)(long res, void *tptr) {
215 if (tptr) POST_WRITE(tptr, sizeof(long));
221 POST_SYSCALL(gettimeofday)(long res, void *tv, void *tz) {
230 POST_SYSCALL(settimeofday)(long res, void *tv, void *tz) {
240 POST_SYSCALL(adjtimex)(long res, void *txc_p) {
249 POST_SYSCALL(times)(long res, void *tbuf) {
257 POST_SYSCALL(gettid)(long res) {}
261 POST_SYSCALL(nanosleep)(long res, void *rqtp, void *rmtp) {
268 PRE_SYSCALL(alarm)(long seconds) {}
270 POST_SYSCALL(alarm)(long res, long seconds) {}
274 POST_SYSCALL(getpid)(long res) {}
278 POST_SYSCALL(getppid)(long res) {}
282 POST_SYSCALL(getuid)(long res) {}
286 POST_SYSCALL(geteuid)(long res) {}
290 POST_SYSCALL(getgid)(long res) {}
294 POST_SYSCALL(getegid)(long res) {}
298 POST_SYSCALL(getresuid)(long res, void *ruid, void *euid, void *suid) {
308 POST_SYSCALL(getresgid)(long res, void *rgid, void *egid, void *sgid) {
316 PRE_SYSCALL(getpgid)(long pid) {}
318 POST_SYSCALL(getpgid)(long res, long pid) {}
322 POST_SYSCALL(getpgrp)(long res) {}
324 PRE_SYSCALL(getsid)(long pid) {}
326 POST_SYSCALL(getsid)(long res, long pid) {}
328 PRE_SYSCALL(getgroups)(long gidsetsize, void *grouplist) {}
330 POST_SYSCALL(getgroups)(long res, long gidsetsize,
337 PRE_SYSCALL(setregid)(long rgid, long egid) {}
339 POST_SYSCALL(setregid)(long res, long rgid, long egid) {}
341 PRE_SYSCALL(setgid)(long gid) {}
343 POST_SYSCALL(setgid)(long res, long gid) {}
345 PRE_SYSCALL(setreuid)(long ruid, long euid) {}
347 POST_SYSCALL(setreuid)(long res, long ruid, long euid) {}
349 PRE_SYSCALL(setuid)(long uid) {}
351 POST_SYSCALL(setuid)(long res, long uid) {}
353 PRE_SYSCALL(setresuid)(long ruid, long euid, long suid) {}
355 POST_SYSCALL(setresuid)(long res, long ruid, long euid, long suid) {}
357 PRE_SYSCALL(setresgid)(long rgid, long egid, long sgid) {}
359 POST_SYSCALL(setresgid)(long res, long rgid, long egid, long sgid) {}
361 PRE_SYSCALL(setfsuid)(long uid) {}
363 POST_SYSCALL(setfsuid)(long res, long uid) {}
365 PRE_SYSCALL(setfsgid)(long gid) {}
367 POST_SYSCALL(setfsgid)(long res, long gid) {}
369 PRE_SYSCALL(setpgid)(long pid, long pgid) {}
371 POST_SYSCALL(setpgid)(long res, long pid, long pgid) {}
375 POST_SYSCALL(setsid)(long res) {}
377 PRE_SYSCALL(setgroups)(long gidsetsize, __sanitizer___kernel_gid_t *grouplist) {
381 POST_SYSCALL(setgroups)(long res, long gidsetsize,
389 POST_SYSCALL(acct)(long res, const void *name) {}
395 POST_SYSCALL(capget)(long res, void *header, void *dataptr) {
405 POST_SYSCALL(capset)(long res, void *header, const void *data) {}
407 PRE_SYSCALL(personality)(long personality) {}
409 POST_SYSCALL(personality)(long res, long personality) {}
413 POST_SYSCALL(sigpending)(long res, void *set) {
419 PRE_SYSCALL(sigprocmask)(long how, void *set, void *oset) {}
421 POST_SYSCALL(sigprocmask)(long res, long how, void *set, void *oset) {
428 PRE_SYSCALL(getitimer)(long which, void *value) {}
430 POST_SYSCALL(getitimer)(long res, long which, void *value) {
436 PRE_SYSCALL(setitimer)(long which, void *value, void *ovalue) {}
438 POST_SYSCALL(setitimer)(long res, long which, void *value, void *ovalue) {
445 PRE_SYSCALL(timer_create)(long which_clock, void *timer_event_spec,
448 POST_SYSCALL(timer_create)(long res, long which_clock, void *timer_event_spec,
452 if (created_timer_id) POST_WRITE(created_timer_id, sizeof(long));
456 PRE_SYSCALL(timer_gettime)(long timer_id, void *setting) {}
458 POST_SYSCALL(timer_gettime)(long res, long timer_id, void *setting) {
464 PRE_SYSCALL(timer_getoverrun)(long timer_id) {}
466 POST_SYSCALL(timer_getoverrun)(long res, long timer_id) {}
468 PRE_SYSCALL(timer_settime)(long timer_id, long flags, const void *new_setting,
473 POST_SYSCALL(timer_settime)(long res, long timer_id, long flags,
480 PRE_SYSCALL(timer_delete)(long timer_id) {}
482 POST_SYSCALL(timer_delete)(long res, long timer_id) {}
484 PRE_SYSCALL(clock_settime)(long which_clock, const void *tp) {
488 POST_SYSCALL(clock_settime)(long res, long which_clock, const void *tp) {}
490 PRE_SYSCALL(clock_gettime)(long which_clock, void *tp) {}
492 POST_SYSCALL(clock_gettime)(long res, long which_clock, void *tp) {
499 PRE_SYSCALL(clock_adjtime)(long which_clock, void *tx) {}
501 POST_SYSCALL(clock_adjtime)(long res, long which_clock, void *tx) {
508 PRE_SYSCALL(clock_getres)(long which_clock, void *tp) {}
510 POST_SYSCALL(clock_getres)(long res, long which_clock, void *tp) {
516 PRE_SYSCALL(clock_nanosleep)(long which_clock, long flags, const void *rqtp,
521 POST_SYSCALL(clock_nanosleep)(long res, long which_clock, long flags,
528 PRE_SYSCALL(nice)(long increment) {}
530 POST_SYSCALL(nice)(long res, long increment) {}
532 PRE_SYSCALL(sched_setscheduler)(long pid, long policy, void *param) {}
534 POST_SYSCALL(sched_setscheduler)(long res, long pid, long policy, void *param) {
540 PRE_SYSCALL(sched_setparam)(long pid, void *param) {
544 POST_SYSCALL(sched_setparam)(long res, long pid, void *param) {}
546 PRE_SYSCALL(sched_getscheduler)(long pid) {}
548 POST_SYSCALL(sched_getscheduler)(long res, long pid) {}
550 PRE_SYSCALL(sched_getparam)(long pid, void *param) {}
552 POST_SYSCALL(sched_getparam)(long res, long pid, void *param) {
558 PRE_SYSCALL(sched_setaffinity)(long pid, long len, void *user_mask_ptr) {
562 POST_SYSCALL(sched_setaffinity)(long res, long pid, long len,
565 PRE_SYSCALL(sched_getaffinity)(long pid, long len, void *user_mask_ptr) {}
567 POST_SYSCALL(sched_getaffinity)(long res, long pid, long len,
576 POST_SYSCALL(sched_yield)(long res) {}
578 PRE_SYSCALL(sched_get_priority_max)(long policy) {}
580 POST_SYSCALL(sched_get_priority_max)(long res, long policy) {}
582 PRE_SYSCALL(sched_get_priority_min)(long policy) {}
584 POST_SYSCALL(sched_get_priority_min)(long res, long policy) {}
586 PRE_SYSCALL(sched_rr_get_interval)(long pid, void *interval) {}
588 POST_SYSCALL(sched_rr_get_interval)(long res, long pid, void *interval) {
594 PRE_SYSCALL(setpriority)(long which, long who, long niceval) {}
596 POST_SYSCALL(setpriority)(long res, long which, long who, long niceval) {}
598 PRE_SYSCALL(getpriority)(long which, long who) {}
600 POST_SYSCALL(getpriority)(long res, long which, long who) {}
602 PRE_SYSCALL(shutdown)(long arg0, long arg1) {}
604 POST_SYSCALL(shutdown)(long res, long arg0, long arg1) {}
606 PRE_SYSCALL(reboot)(long magic1, long magic2, long cmd, void *arg) {}
608 POST_SYSCALL(reboot)(long res, long magic1, long magic2, long cmd, void *arg) {}
612 POST_SYSCALL(restart_syscall)(long res) {}
614 PRE_SYSCALL(kexec_load)(long entry, long nr_segments, void *segments,
615 long flags) {}
617 POST_SYSCALL(kexec_load)(long res, long entry, long nr_segments, void *segments,
618 long flags) {
624 PRE_SYSCALL(exit)(long error_code) {}
626 POST_SYSCALL(exit)(long res, long error_code) {}
628 PRE_SYSCALL(exit_group)(long error_code) {}
630 POST_SYSCALL(exit_group)(long res, long error_code) {}
632 PRE_SYSCALL(wait4)(long pid, void *stat_addr, long options, void *ru) {}
634 POST_SYSCALL(wait4)(long res, long pid, void *stat_addr, long options,
642 PRE_SYSCALL(waitid)(long which, long pid, void *infop, long options, void *ru) {
645 POST_SYSCALL(waitid)(long res, long which, long pid, void *infop, long options,
653 PRE_SYSCALL(waitpid)(long pid, void *stat_addr, long options) {}
655 POST_SYSCALL(waitpid)(long res, long pid, void *stat_addr, long options) {
663 POST_SYSCALL(set_tid_address)(long res, void *tidptr) {
669 PRE_SYSCALL(init_module)(void *umod, long len, const void *uargs) {
674 POST_SYSCALL(init_module)(long res, void *umod, long len, const void *uargs) {}
676 PRE_SYSCALL(delete_module)(const void *name_user, long flags) {
682 POST_SYSCALL(delete_module)(long res, const void *name_user, long flags) {}
684 PRE_SYSCALL(rt_sigprocmask)(long how, void *set, void *oset, long sigsetsize) {}
686 POST_SYSCALL(rt_sigprocmask)(long res, long how, kernel_sigset_t *set,
687 kernel_sigset_t *oset, long sigsetsize) {
694 PRE_SYSCALL(rt_sigpending)(void *set, long sigsetsize) {}
696 POST_SYSCALL(rt_sigpending)(long res, kernel_sigset_t *set, long sigsetsize) {
703 const void *uts, long sigsetsize) {
708 POST_SYSCALL(rt_sigtimedwait)(long res, const void *uthese, void *uinfo,
709 const void *uts, long sigsetsize) {
715 PRE_SYSCALL(rt_tgsigqueueinfo)(long tgid, long pid, long sig, void *uinfo) {}
717 POST_SYSCALL(rt_tgsigqueueinfo)(long res, long tgid, long pid, long sig,
724 PRE_SYSCALL(kill)(long pid, long sig) {}
726 POST_SYSCALL(kill)(long res, long pid, long sig) {}
728 PRE_SYSCALL(tgkill)(long tgid, long pid, long sig) {}
730 POST_SYSCALL(tgkill)(long res, long tgid, long pid, long sig) {}
732 PRE_SYSCALL(tkill)(long pid, long sig) {}
734 POST_SYSCALL(tkill)(long res, long pid, long sig) {}
736 PRE_SYSCALL(rt_sigqueueinfo)(long pid, long sig, void *uinfo) {}
738 POST_SYSCALL(rt_sigqueueinfo)(long res, long pid, long sig, void *uinfo) {
746 POST_SYSCALL(sgetmask)(long res) {}
748 PRE_SYSCALL(ssetmask)(long newmask) {}
750 POST_SYSCALL(ssetmask)(long res, long newmask) {}
752 PRE_SYSCALL(signal)(long sig, long handler) {}
754 POST_SYSCALL(signal)(long res, long sig, long handler) {}
758 POST_SYSCALL(pause)(long res) {}
762 POST_SYSCALL(sync)(long res) {}
764 PRE_SYSCALL(fsync)(long fd) {}
766 POST_SYSCALL(fsync)(long res, long fd) {}
768 PRE_SYSCALL(fdatasync)(long fd) {}
770 POST_SYSCALL(fdatasync)(long res, long fd) {}
772 PRE_SYSCALL(bdflush)(long func, long data) {}
774 POST_SYSCALL(bdflush)(long res, long func, long data) {}
776 PRE_SYSCALL(mount)(void *dev_name, void *dir_name, void *type, long flags,
779 POST_SYSCALL(mount)(long res, void *dev_name, void *dir_name, void *type,
780 long flags, void *data) {
793 PRE_SYSCALL(umount)(void *name, long flags) {}
795 POST_SYSCALL(umount)(long res, void *name, long flags) {
804 POST_SYSCALL(oldumount)(long res, void *name) {
811 PRE_SYSCALL(truncate)(const void *path, long length) {
816 POST_SYSCALL(truncate)(long res, const void *path, long length) {}
818 PRE_SYSCALL(ftruncate)(long fd, long length) {}
820 POST_SYSCALL(ftruncate)(long res, long fd, long length) {}
828 POST_SYSCALL(stat)(long res, const void *filename, void *statbuf) {
840 POST_SYSCALL(statfs)(long res, const void *path, void *buf) {
846 PRE_SYSCALL(statfs64)(const void *path, long sz, void *buf) {
851 POST_SYSCALL(statfs64)(long res, const void *path, long sz, void *buf) {
857 PRE_SYSCALL(fstatfs)(long fd, void *buf) {}
859 POST_SYSCALL(fstatfs)(long res, long fd, void *buf) {
865 PRE_SYSCALL(fstatfs64)(long fd, long sz, void *buf) {}
867 POST_SYSCALL(fstatfs64)(long res, long fd, long sz, void *buf) {
880 POST_SYSCALL(lstat)(long res, const void *filename, void *statbuf) {
886 PRE_SYSCALL(fstat)(long fd, void *statbuf) {}
888 POST_SYSCALL(fstat)(long res, long fd, void *statbuf) {
900 POST_SYSCALL(newstat)(long res, const void *filename, void *statbuf) {
912 POST_SYSCALL(newlstat)(long res, const void *filename, void *statbuf) {
918 PRE_SYSCALL(newfstat)(long fd, void *statbuf) {}
920 POST_SYSCALL(newfstat)(long res, long fd, void *statbuf) {
927 PRE_SYSCALL(ustat)(long dev, void *ubuf) {}
929 POST_SYSCALL(ustat)(long res, long dev, void *ubuf) {
942 POST_SYSCALL(stat64)(long res, const void *filename, void *statbuf) {
948 PRE_SYSCALL(fstat64)(long fd, void *statbuf) {}
950 POST_SYSCALL(fstat64)(long res, long fd, void *statbuf) {
962 POST_SYSCALL(lstat64)(long res, const void *filename, void *statbuf) {
969 long size, long flags) {
977 POST_SYSCALL(setxattr)(long res, const void *path, const void *name,
978 const void *value, long size, long flags) {}
981 long size, long flags) {
989 POST_SYSCALL(lsetxattr)(long res, const void *path, const void *name,
990 const void *value, long size, long flags) {}
992 PRE_SYSCALL(fsetxattr)(long fd, const void *name, const void *value, long size,
993 long flags) {
999 POST_SYSCALL(fsetxattr)(long res, long fd, const void *name, const void *value,
1000 long size, long flags) {}
1003 long size) {
1010 POST_SYSCALL(getxattr)(long res, const void *path, const void *name,
1011 void *value, long size) {
1018 long size) {
1025 POST_SYSCALL(lgetxattr)(long res, const void *path, const void *name,
1026 void *value, long size) {
1032 PRE_SYSCALL(fgetxattr)(long fd, const void *name, void *value, long size) {
1037 POST_SYSCALL(fgetxattr)(long res, long fd, const void *name, void *value,
1038 long size) {
1044 PRE_SYSCALL(listxattr)(const void *path, void *list, long size) {
1049 POST_SYSCALL(listxattr)(long res, const void *path, void *list, long size) {
1055 PRE_SYSCALL(llistxattr)(const void *path, void *list, long size) {
1060 POST_SYSCALL(llistxattr)(long res, const void *path, void *list, long size) {
1066 PRE_SYSCALL(flistxattr)(long fd, void *list, long size) {}
1068 POST_SYSCALL(flistxattr)(long res, long fd, void *list, long size) {
1081 POST_SYSCALL(removexattr)(long res, const void *path, const void *name) {}
1090 POST_SYSCALL(lremovexattr)(long res, const void *path, const void *name) {}
1092 PRE_SYSCALL(fremovexattr)(long fd, const void *name) {
1097 POST_SYSCALL(fremovexattr)(long res, long fd, const void *name) {}
1099 PRE_SYSCALL(brk)(long brk) {}
1101 POST_SYSCALL(brk)(long res, long brk) {}
1103 PRE_SYSCALL(mprotect)(long start, long len, long prot) {}
1105 POST_SYSCALL(mprotect)(long res, long start, long len, long prot) {}
1107 PRE_SYSCALL(mremap)(long addr, long old_len, long new_len, long flags,
1108 long new_addr) {}
1110 POST_SYSCALL(mremap)(long res, long addr, long old_len, long new_len,
1111 long flags, long new_addr) {}
1113 PRE_SYSCALL(remap_file_pages)(long start, long size, long prot, long pgoff,
1114 long flags) {}
1116 POST_SYSCALL(remap_file_pages)(long res, long start, long size, long prot,
1117 long pgoff, long flags) {}
1119 PRE_SYSCALL(msync)(long start, long len, long flags) {}
1121 POST_SYSCALL(msync)(long res, long start, long len, long flags) {}
1123 PRE_SYSCALL(munmap)(long addr, long len) {}
1125 POST_SYSCALL(munmap)(long res, long addr, long len) {}
1127 PRE_SYSCALL(mlock)(long start, long len) {}
1129 POST_SYSCALL(mlock)(long res, long start, long len) {}
1131 PRE_SYSCALL(munlock)(long start, long len) {}
1133 POST_SYSCALL(munlock)(long res, long start, long len) {}
1135 PRE_SYSCALL(mlockall)(long flags) {}
1137 POST_SYSCALL(mlockall)(long res, long flags) {}
1141 POST_SYSCALL(munlockall)(long res) {}
1143 PRE_SYSCALL(madvise)(long start, long len, long behavior) {}
1145 POST_SYSCALL(madvise)(long res, long start, long len, long behavior) {}
1147 PRE_SYSCALL(mincore)(long start, long len, void *vec) {}
1149 POST_SYSCALL(mincore)(long res, long start, long len, void *vec) {
1165 POST_SYSCALL(pivot_root)(long res, const void *new_root, const void *put_old) {}
1173 POST_SYSCALL(chroot)(long res, const void *filename) {}
1175 PRE_SYSCALL(mknod)(const void *filename, long mode, long dev) {
1181 POST_SYSCALL(mknod)(long res, const void *filename, long mode, long dev) {}
1190 POST_SYSCALL(link)(long res, const void *oldname, const void *newname) {}
1198 POST_SYSCALL(symlink)(long res, const void *old, const void *new_) {}
1206 POST_SYSCALL(unlink)(long res, const void *pathname) {}
1215 POST_SYSCALL(rename)(long res, const void *oldname, const void *newname) {}
1217 PRE_SYSCALL(chmod)(const void *filename, long mode) {
1223 POST_SYSCALL(chmod)(long res, const void *filename, long mode) {}
1225 PRE_SYSCALL(fchmod)(long fd, long mode) {}
1227 POST_SYSCALL(fchmod)(long res, long fd, long mode) {}
1229 PRE_SYSCALL(fcntl)(long fd, long cmd, long arg) {}
1231 POST_SYSCALL(fcntl)(long res, long fd, long cmd, long arg) {}
1233 PRE_SYSCALL(fcntl64)(long fd, long cmd, long arg) {}
1235 POST_SYSCALL(fcntl64)(long res, long fd, long cmd, long arg) {}
1239 POST_SYSCALL(pipe)(long res, void *fildes) {
1245 PRE_SYSCALL(pipe2)(void *fildes, long flags) {}
1247 POST_SYSCALL(pipe2)(long res, void *fildes, long flags) {
1253 PRE_SYSCALL(dup)(long fildes) {}
1255 POST_SYSCALL(dup)(long res, long fildes) {}
1257 PRE_SYSCALL(dup2)(long oldfd, long newfd) {}
1259 POST_SYSCALL(dup2)(long res, long oldfd, long newfd) {}
1261 PRE_SYSCALL(dup3)(long oldfd, long newfd, long flags) {}
1263 POST_SYSCALL(dup3)(long res, long oldfd, long newfd, long flags) {}
1265 PRE_SYSCALL(ioperm)(long from, long num, long on) {}
1267 POST_SYSCALL(ioperm)(long res, long from, long num, long on) {}
1269 PRE_SYSCALL(ioctl)(long fd, long cmd, long arg) {}
1271 POST_SYSCALL(ioctl)(long res, long fd, long cmd, long arg) {}
1273 PRE_SYSCALL(flock)(long fd, long cmd) {}
1275 POST_SYSCALL(flock)(long res, long fd, long cmd) {}
1277 PRE_SYSCALL(io_setup)(long nr_reqs, void **ctx) {
1281 POST_SYSCALL(io_setup)(long res, long nr_reqs, void **ctx) {
1291 PRE_SYSCALL(io_destroy)(long ctx) {}
1293 POST_SYSCALL(io_destroy)(long res, long ctx) {}
1295 PRE_SYSCALL(io_getevents)(long ctx_id, long min_nr, long nr,
1300 POST_SYSCALL(io_getevents)(long res, long ctx_id, long min_nr, long nr,
1306 for (long i = 0; i < res; i++) {
1318 PRE_SYSCALL(io_submit)(long ctx_id, long nr, __sanitizer_iocb **iocbpp) {
1319 for (long i = 0; i < nr; ++i) {
1342 POST_SYSCALL(io_submit)(long res, long ctx_id, long nr,
1345 PRE_SYSCALL(io_cancel)(long ctx_id, __sanitizer_iocb *iocb,
1349 POST_SYSCALL(io_cancel)(long res, long ctx_id, __sanitizer_iocb *iocb,
1362 PRE_SYSCALL(sendfile)(long out_fd, long in_fd, void *offset, long count) {}
1364 POST_SYSCALL(sendfile)(long res, long out_fd, long in_fd,
1365 __sanitizer___kernel_off_t *offset, long count) {
1371 PRE_SYSCALL(sendfile64)(long out_fd, long in_fd, void *offset, long count) {}
1373 POST_SYSCALL(sendfile64)(long res, long out_fd, long in_fd,
1374 __sanitizer___kernel_loff_t *offset, long count) {
1380 PRE_SYSCALL(readlink)(const void *path, void *buf, long bufsiz) {
1385 POST_SYSCALL(readlink)(long res, const void *path, void *buf, long bufsiz) {
1392 PRE_SYSCALL(creat)(const void *pathname, long mode) {
1398 POST_SYSCALL(creat)(long res, const void *pathname, long mode) {}
1400 PRE_SYSCALL(open)(const void *filename, long flags, long mode) {
1406 POST_SYSCALL(open)(long res, const void *filename, long flags, long mode) {}
1408 PRE_SYSCALL(close)(long fd) {
1412 POST_SYSCALL(close)(long res, long fd) {}
1414 PRE_SYSCALL(access)(const void *filename, long mode) {
1420 POST_SYSCALL(access)(long res, const void *filename, long mode) {}
1424 POST_SYSCALL(vhangup)(long res) {}
1426 PRE_SYSCALL(chown)(const void *filename, long user, long group) {
1432 POST_SYSCALL(chown)(long res, const void *filename, long user, long group) {}
1434 PRE_SYSCALL(lchown)(const void *filename, long user, long group) {
1440 POST_SYSCALL(lchown)(long res, const void *filename, long user, long group) {}
1442 PRE_SYSCALL(fchown)(long fd, long user, long group) {}
1444 POST_SYSCALL(fchown)(long res, long fd, long user, long group) {}
1447 PRE_SYSCALL(chown16)(const void *filename, long user, long group) {
1453 POST_SYSCALL(chown16)(long res, const void *filename, long user, long group) {}
1455 PRE_SYSCALL(lchown16)(const void *filename, long user, long group) {
1461 POST_SYSCALL(lchown16)(long res, const void *filename, long user, long group) {}
1463 PRE_SYSCALL(fchown16)(long fd, long user, long group) {}
1465 POST_SYSCALL(fchown16)(long res, long fd, long user, long group) {}
1467 PRE_SYSCALL(setregid16)(long rgid, long egid) {}
1469 POST_SYSCALL(setregid16)(long res, long rgid, long egid) {}
1471 PRE_SYSCALL(setgid16)(long gid) {}
1473 POST_SYSCALL(setgid16)(long res, long gid) {}
1475 PRE_SYSCALL(setreuid16)(long ruid, long euid) {}
1477 POST_SYSCALL(setreuid16)(long res, long ruid, long euid) {}
1479 PRE_SYSCALL(setuid16)(long uid) {}
1481 POST_SYSCALL(setuid16)(long res, long uid) {}
1483 PRE_SYSCALL(setresuid16)(long ruid, long euid, long suid) {}
1485 POST_SYSCALL(setresuid16)(long res, long ruid, long euid, long suid) {}
1489 POST_SYSCALL(getresuid16)(long res, __sanitizer___kernel_old_uid_t *ruid,
1499 PRE_SYSCALL(setresgid16)(long rgid, long egid, long sgid) {}
1501 POST_SYSCALL(setresgid16)(long res, long rgid, long egid, long sgid) {}
1505 POST_SYSCALL(getresgid16)(long res, __sanitizer___kernel_old_gid_t *rgid,
1515 PRE_SYSCALL(setfsuid16)(long uid) {}
1517 POST_SYSCALL(setfsuid16)(long res, long uid) {}
1519 PRE_SYSCALL(setfsgid16)(long gid) {}
1521 POST_SYSCALL(setfsgid16)(long res, long gid) {}
1523 PRE_SYSCALL(getgroups16)(long gidsetsize,
1526 POST_SYSCALL(getgroups16)(long res, long gidsetsize,
1533 PRE_SYSCALL(setgroups16)(long gidsetsize,
1538 POST_SYSCALL(setgroups16)(long res, long gidsetsize,
1543 POST_SYSCALL(getuid16)(long res) {}
1547 POST_SYSCALL(geteuid16)(long res) {}
1551 POST_SYSCALL(getgid16)(long res) {}
1555 POST_SYSCALL(getegid16)(long res) {}
1560 POST_SYSCALL(utime)(long res, void *filename, void *times) {
1571 POST_SYSCALL(utimes)(long res, void *filename, void *utimes) {
1580 PRE_SYSCALL(lseek)(long fd, long offset, long origin) {}
1582 POST_SYSCALL(lseek)(long res, long fd, long offset, long origin) {}
1584 PRE_SYSCALL(llseek)(long fd, long offset_high, long offset_low, void *result,
1585 long origin) {}
1587 POST_SYSCALL(llseek)(long res, long fd, long offset_high, long offset_low,
1588 void *result, long origin) {
1590 if (result) POST_WRITE(result, sizeof(long long));
1594 PRE_SYSCALL(readv)(long fd, const __sanitizer_iovec *vec, long vlen) {}
1596 POST_SYSCALL(readv)(long res, long fd, const __sanitizer_iovec *vec,
1597 long vlen) {
1603 PRE_SYSCALL(write)(long fd, const void *buf, long count) {
1607 POST_SYSCALL(write)(long res, long fd, const void *buf, long count) {}
1609 PRE_SYSCALL(writev)(long fd, const __sanitizer_iovec *vec, long vlen) {}
1611 POST_SYSCALL(writev)(long res, long fd, const __sanitizer_iovec *vec,
1612 long vlen) {
1619 PRE_SYSCALL(pread64)(long fd, void *buf, long count, long pos) {}
1621 POST_SYSCALL(pread64)(long res, long fd, void *buf, long count, long pos) {
1627 PRE_SYSCALL(pwrite64)(long fd, const void *buf, long count, long pos) {
1631 POST_SYSCALL(pwrite64)(long res, long fd, const void *buf, long count,
1632 long pos) {}
1634 PRE_SYSCALL(pread64)(long fd, void *buf, long count, long pos0, long pos1) {}
1636 POST_SYSCALL(pread64)(long res, long fd, void *buf, long count, long pos0,
1637 long pos1) {
1643 PRE_SYSCALL(pwrite64)(long fd, const void *buf, long count, long pos0,
1644 long pos1) {
1648 POST_SYSCALL(pwrite64)(long res, long fd, const void *buf, long count,
1649 long pos0, long pos1) {}
1652 PRE_SYSCALL(preadv)(long fd, const __sanitizer_iovec *vec, long vlen,
1653 long pos_l, long pos_h) {}
1655 POST_SYSCALL(preadv)(long res, long fd, const __sanitizer_iovec *vec, long vlen,
1656 long pos_l, long pos_h) {
1662 PRE_SYSCALL(pwritev)(long fd, const __sanitizer_iovec *vec, long vlen,
1663 long pos_l, long pos_h) {}
1665 POST_SYSCALL(pwritev)(long res, long fd, const __sanitizer_iovec *vec,
1666 long vlen, long pos_l, long pos_h) {
1672 PRE_SYSCALL(getcwd)(void *buf, long size) {}
1674 POST_SYSCALL(getcwd)(long res, void *buf, long size) {
1681 PRE_SYSCALL(mkdir)(const void *pathname, long mode) {
1687 POST_SYSCALL(mkdir)(long res, const void *pathname, long mode) {}
1695 POST_SYSCALL(chdir)(long res, const void *filename) {}
1697 PRE_SYSCALL(fchdir)(long fd) {}
1699 POST_SYSCALL(fchdir)(long res, long fd) {}
1707 POST_SYSCALL(rmdir)(long res, const void *pathname) {}
1709 PRE_SYSCALL(lookup_dcookie)(u64 cookie64, void *buf, long len) {}
1711 POST_SYSCALL(lookup_dcookie)(long res, u64 cookie64, void *buf, long len) {
1718 PRE_SYSCALL(quotactl)(long cmd, const void *special, long id, void *addr) {
1723 POST_SYSCALL(quotactl)(long res, long cmd, const void *special, long id,
1726 PRE_SYSCALL(getdents)(long fd, void *dirent, long count) {}
1728 POST_SYSCALL(getdents)(long res, long fd, void *dirent, long count) {
1734 PRE_SYSCALL(getdents64)(long fd, void *dirent, long count) {}
1736 POST_SYSCALL(getdents64)(long res, long fd, void *dirent, long count) {
1742 PRE_SYSCALL(setsockopt)(long fd, long level, long optname, void *optval,
1743 long optlen) {}
1745 POST_SYSCALL(setsockopt)(long res, long fd, long level, long optname,
1746 void *optval, long optlen) {
1754 PRE_SYSCALL(getsockopt)(long fd, long level, long optname, void *optval,
1757 POST_SYSCALL(getsockopt)(long res, long fd, long level, long optname,
1767 PRE_SYSCALL(bind)(long arg0, sanitizer_kernel_sockaddr *arg1, long arg2) {}
1769 POST_SYSCALL(bind)(long res, long arg0, sanitizer_kernel_sockaddr *arg1,
1770 long arg2) {
1776 PRE_SYSCALL(connect)(long arg0, sanitizer_kernel_sockaddr *arg1, long arg2) {}
1778 POST_SYSCALL(connect)(long res, long arg0, sanitizer_kernel_sockaddr *arg1,
1779 long arg2) {
1785 PRE_SYSCALL(accept)(long arg0, sanitizer_kernel_sockaddr *arg1, void *arg2) {}
1787 POST_SYSCALL(accept)(long res, long arg0, sanitizer_kernel_sockaddr *arg1,
1795 PRE_SYSCALL(accept4)(long arg0, sanitizer_kernel_sockaddr *arg1, void *arg2,
1796 long arg3) {}
1798 POST_SYSCALL(accept4)(long res, long arg0, sanitizer_kernel_sockaddr *arg1,
1799 void *arg2, long arg3) {
1806 PRE_SYSCALL(getsockname)(long arg0, sanitizer_kernel_sockaddr *arg1,
1809 POST_SYSCALL(getsockname)(long res, long arg0, sanitizer_kernel_sockaddr *arg1,
1817 PRE_SYSCALL(getpeername)(long arg0, sanitizer_kernel_sockaddr *arg1,
1820 POST_SYSCALL(getpeername)(long res, long arg0, sanitizer_kernel_sockaddr *arg1,
1828 PRE_SYSCALL(send)(long arg0, void *arg1, long arg2, long arg3) {}
1830 POST_SYSCALL(send)(long res, long arg0, void *arg1, long arg2, long arg3) {
1836 PRE_SYSCALL(sendto)(long arg0, void *arg1, long arg2, long arg3,
1837 sanitizer_kernel_sockaddr *arg4, long arg5) {}
1839 POST_SYSCALL(sendto)(long res, long arg0, void *arg1, long arg2, long arg3,
1840 sanitizer_kernel_sockaddr *arg4, long arg5) {
1847 PRE_SYSCALL(sendmsg)(long fd, void *msg, long flags) {}
1849 POST_SYSCALL(sendmsg)(long res, long fd, void *msg, long flags) {
1853 PRE_SYSCALL(sendmmsg)(long fd, void *msg, long vlen, long flags) {}
1855 POST_SYSCALL(sendmmsg)(long res, long fd, void *msg, long vlen, long flags) {
1859 PRE_SYSCALL(recv)(long arg0, void *buf, long len, long flags) {}
1861 POST_SYSCALL(recv)(long res, void *buf, long len, long flags) {
1867 PRE_SYSCALL(recvfrom)(long arg0, void *buf, long len, long flags,
1870 POST_SYSCALL(recvfrom)(long res, long arg0, void *buf, long len, long flags,
1879 PRE_SYSCALL(socket)(long arg0, long arg1, long arg2) {}
1881 POST_SYSCALL(socket)(long res, long arg0, long arg1, long arg2) {}
1883 PRE_SYSCALL(socketpair)(long arg0, long arg1, long arg2, void *arg3) {}
1885 POST_SYSCALL(socketpair)(long res, long arg0, long arg1, long arg2,
1892 PRE_SYSCALL(socketcall)(long call, void *args) {}
1894 POST_SYSCALL(socketcall)(long res, long call, void *args) {
1896 if (args) POST_WRITE(args, sizeof(long));
1900 PRE_SYSCALL(listen)(long arg0, long arg1) {}
1902 POST_SYSCALL(listen)(long res, long arg0, long arg1) {}
1904 PRE_SYSCALL(poll)(void *ufds, long nfds, long timeout) {}
1906 POST_SYSCALL(poll)(long res, __sanitizer_pollfd *ufds, long nfds,
1907 long timeout) {
1913 PRE_SYSCALL(select)(long n, __sanitizer___kernel_fd_set *inp,
1917 POST_SYSCALL(select)(long res, long n, __sanitizer___kernel_fd_set *inp,
1930 POST_SYSCALL(old_select)(long res, void *arg) {}
1932 PRE_SYSCALL(epoll_create)(long size) {}
1934 POST_SYSCALL(epoll_create)(long res, long size) {}
1936 PRE_SYSCALL(epoll_create1)(long flags) {}
1938 POST_SYSCALL(epoll_create1)(long res, long flags) {}
1940 PRE_SYSCALL(epoll_ctl)(long epfd, long op, long fd, void *event) {}
1942 POST_SYSCALL(epoll_ctl)(long res, long epfd, long op, long fd, void *event) {
1948 PRE_SYSCALL(epoll_wait)(long epfd, void *events, long maxevents, long timeout) {
1951 POST_SYSCALL(epoll_wait)(long res, long epfd, void *events, long maxevents,
1952 long timeout) {
1958 PRE_SYSCALL(epoll_pwait)(long epfd, void *events, long maxevents, long timeout,
1959 const kernel_sigset_t *sigmask, long sigsetsize) {
1963 POST_SYSCALL(epoll_pwait)(long res, long epfd, void *events, long maxevents,
1964 long timeout, const void *sigmask, long sigsetsize) {
1970 PRE_SYSCALL(gethostname)(void *name, long len) {}
1972 POST_SYSCALL(gethostname)(long res, void *name, long len) {
1979 PRE_SYSCALL(sethostname)(void *name, long len) {}
1981 POST_SYSCALL(sethostname)(long res, void *name, long len) {
1988 PRE_SYSCALL(setdomainname)(void *name, long len) {}
1990 POST_SYSCALL(setdomainname)(long res, void *name, long len) {
1999 POST_SYSCALL(newuname)(long res, void *name) {
2007 POST_SYSCALL(uname)(long res, void *arg0) {
2015 POST_SYSCALL(olduname)(long res, void *arg0) {
2021 PRE_SYSCALL(getrlimit)(long resource, void *rlim) {}
2023 POST_SYSCALL(getrlimit)(long res, long resource, void *rlim) {
2029 PRE_SYSCALL(old_getrlimit)(long resource, void *rlim) {}
2031 POST_SYSCALL(old_getrlimit)(long res, long resource, void *rlim) {
2037 PRE_SYSCALL(setrlimit)(long resource, void *rlim) {}
2039 POST_SYSCALL(setrlimit)(long res, long resource, void *rlim) {
2046 PRE_SYSCALL(prlimit64)(long pid, long resource, const void *new_rlim,
2051 POST_SYSCALL(prlimit64)(long res, long pid, long resource, const void *new_rlim,
2059 PRE_SYSCALL(getrusage)(long who, void *ru) {}
2061 POST_SYSCALL(getrusage)(long res, long who, void *ru) {
2067 PRE_SYSCALL(umask)(long mask) {}
2069 POST_SYSCALL(umask)(long res, long mask) {}
2071 PRE_SYSCALL(msgget)(long key, long msgflg) {}
2073 POST_SYSCALL(msgget)(long res, long key, long msgflg) {}
2075 PRE_SYSCALL(msgsnd)(long msqid, void *msgp, long msgsz, long msgflg) {
2079 POST_SYSCALL(msgsnd)(long res, long msqid, void *msgp, long msgsz,
2080 long msgflg) {}
2082 PRE_SYSCALL(msgrcv)(long msqid, void *msgp, long msgsz, long msgtyp,
2083 long msgflg) {}
2085 POST_SYSCALL(msgrcv)(long res, long msqid, void *msgp, long msgsz, long msgtyp,
2086 long msgflg) {
2093 PRE_SYSCALL(msgctl)(long msqid, long cmd, void *buf) {}
2095 POST_SYSCALL(msgctl)(long res, long msqid, long cmd, void *buf) {
2102 PRE_SYSCALL(semget)(long key, long nsems, long semflg) {}
2104 POST_SYSCALL(semget)(long res, long key, long nsems, long semflg) {}
2106 PRE_SYSCALL(semop)(long semid, void *sops, long nsops) {}
2108 POST_SYSCALL(semop)(long res, long semid, void *sops, long nsops) {}
2110 PRE_SYSCALL(semctl)(long semid, long semnum, long cmd, void *arg) {}
2112 POST_SYSCALL(semctl)(long res, long semid, long semnum, long cmd, void *arg) {}
2114 PRE_SYSCALL(semtimedop)(long semid, void *sops, long nsops,
2119 POST_SYSCALL(semtimedop)(long res, long semid, void *sops, long nsops,
2122 PRE_SYSCALL(shmat)(long shmid, void *shmaddr, long shmflg) {}
2124 POST_SYSCALL(shmat)(long res, long shmid, void *shmaddr, long shmflg) {
2132 PRE_SYSCALL(shmget)(long key, long size, long flag) {}
2134 POST_SYSCALL(shmget)(long res, long key, long size, long flag) {}
2138 POST_SYSCALL(shmdt)(long res, void *shmaddr) {
2146 PRE_SYSCALL(ipc)(long call, long first, long second, long third, void *ptr,
2147 long fifth) {}
2149 POST_SYSCALL(ipc)(long res, long call, long first, long second, long third,
2150 void *ptr, long fifth) {}
2153 PRE_SYSCALL(shmctl)(long shmid, long cmd, void *buf) {}
2155 POST_SYSCALL(shmctl)(long res, long shmid, long cmd, void *buf) {
2161 PRE_SYSCALL(mq_open)(const void *name, long oflag, long mode, void *attr) {
2166 POST_SYSCALL(mq_open)(long res, const void *name, long oflag, long mode,
2178 POST_SYSCALL(mq_unlink)(long res, const void *name) {}
2180 PRE_SYSCALL(mq_timedsend)(long mqdes, const void *msg_ptr, long msg_len,
2181 long msg_prio, const void *abs_timeout) {
2186 POST_SYSCALL(mq_timedsend)(long res, long mqdes, const void *msg_ptr,
2187 long msg_len, long msg_prio,
2190 PRE_SYSCALL(mq_timedreceive)(long mqdes, void *msg_ptr, long msg_len,
2195 POST_SYSCALL(mq_timedreceive)(long res, long mqdes, void *msg_ptr, long msg_len,
2203 PRE_SYSCALL(mq_notify)(long mqdes, const void *notification) {
2207 POST_SYSCALL(mq_notify)(long res, long mqdes, const void *notification) {}
2209 PRE_SYSCALL(mq_getsetattr)(long mqdes, const void *mqstat, void *omqstat) {
2213 POST_SYSCALL(mq_getsetattr)(long res, long mqdes, const void *mqstat,
2221 PRE_SYSCALL(pciconfig_iobase)(long which, long bus, long devfn) {}
2223 POST_SYSCALL(pciconfig_iobase)(long res, long which, long bus, long devfn) {}
2225 PRE_SYSCALL(pciconfig_read)(long bus, long dfn, long off, long len, void *buf) {
2228 POST_SYSCALL(pciconfig_read)(long res, long bus, long dfn, long off, long len,
2231 PRE_SYSCALL(pciconfig_write)(long bus, long dfn, long off, long len,
2234 POST_SYSCALL(pciconfig_write)(long res, long bus, long dfn, long off, long len,
2237 PRE_SYSCALL(swapon)(const void *specialfile, long swap_flags) {
2243 POST_SYSCALL(swapon)(long res, const void *specialfile, long swap_flags) {}
2251 POST_SYSCALL(swapoff)(long res, const void *specialfile) {}
2260 POST_SYSCALL(sysctl)(long res, __sanitizer___sysctl_args *args) {
2271 POST_SYSCALL(sysinfo)(long res, void *info) {
2277 PRE_SYSCALL(sysfs)(long option, long arg1, long arg2) {}
2279 POST_SYSCALL(sysfs)(long res, long option, long arg1, long arg2) {}
2281 PRE_SYSCALL(syslog)(long type, void *buf, long len) {}
2283 POST_SYSCALL(syslog)(long res, long type, void *buf, long len) {
2295 POST_SYSCALL(uselib)(long res, const void *library) {}
2299 POST_SYSCALL(ni_syscall)(long res) {}
2301 PRE_SYSCALL(ptrace)(long request, long pid, long addr, long data) {
2321 POST_SYSCALL(ptrace)(long res, long request, long pid, long addr, long data) {
2348 const void *_payload, long plen, long destringid) {
2356 POST_SYSCALL(add_key)(long res, const void *_type, const void *_description,
2357 const void *_payload, long plen, long destringid) {}
2360 const void *_callout_info, long destringid) {
2371 POST_SYSCALL(request_key)(long res, const void *_type, const void *_description,
2372 const void *_callout_info, long destringid) {}
2374 PRE_SYSCALL(keyctl)(long cmd, long arg2, long arg3, long arg4, long arg5) {}
2376 POST_SYSCALL(keyctl)(long res, long cmd, long arg2, long arg3, long arg4,
2377 long arg5) {}
2379 PRE_SYSCALL(ioprio_set)(long which, long who, long ioprio) {}
2381 POST_SYSCALL(ioprio_set)(long res, long which, long who, long ioprio) {}
2383 PRE_SYSCALL(ioprio_get)(long which, long who) {}
2385 POST_SYSCALL(ioprio_get)(long res, long which, long who) {}
2387 PRE_SYSCALL(set_mempolicy)(long mode, void *nmask, long maxnode) {}
2389 POST_SYSCALL(set_mempolicy)(long res, long mode, void *nmask, long maxnode) {
2391 if (nmask) POST_WRITE(nmask, sizeof(long));
2395 PRE_SYSCALL(migrate_pages)(long pid, long maxnode, const void *from,
2397 if (from) PRE_READ(from, sizeof(long));
2398 if (to) PRE_READ(to, sizeof(long));
2401 POST_SYSCALL(migrate_pages)(long res, long pid, long maxnode, const void *from,
2404 PRE_SYSCALL(move_pages)(long pid, long nr_pages, const void **pages,
2405 const int *nodes, int *status, long flags) {
2410 POST_SYSCALL(move_pages)(long res, long pid, long nr_pages, const void **pages,
2411 const int *nodes, int *status, long flags) {
2417 PRE_SYSCALL(mbind)(long start, long len, long mode, void *nmask, long maxnode,
2418 long flags) {}
2420 POST_SYSCALL(mbind)(long res, long start, long len, long mode, void *nmask,
2421 long maxnode, long flags) {
2423 if (nmask) POST_WRITE(nmask, sizeof(long));
2427 PRE_SYSCALL(get_mempolicy)(void *policy, void *nmask, long maxnode, long addr,
2428 long flags) {}
2430 POST_SYSCALL(get_mempolicy)(long res, void *policy, void *nmask, long maxnode,
2431 long addr, long flags) {
2434 if (nmask) POST_WRITE(nmask, sizeof(long));
2440 POST_SYSCALL(inotify_init)(long res) {}
2442 PRE_SYSCALL(inotify_init1)(long flags) {}
2444 POST_SYSCALL(inotify_init1)(long res, long flags) {}
2446 PRE_SYSCALL(inotify_add_watch)(long fd, const void *path, long mask) {
2451 POST_SYSCALL(inotify_add_watch)(long res, long fd, const void *path,
2452 long mask) {}
2454 PRE_SYSCALL(inotify_rm_watch)(long fd, long wd) {}
2456 POST_SYSCALL(inotify_rm_watch)(long res, long fd, long wd) {}
2458 PRE_SYSCALL(spu_run)(long fd, void *unpc, void *ustatus) {}
2460 POST_SYSCALL(spu_run)(long res, long fd, unsigned *unpc, unsigned *ustatus) {
2467 PRE_SYSCALL(spu_create)(const void *name, long flags, long mode, long fd) {
2472 POST_SYSCALL(spu_create)(long res, const void *name, long flags, long mode,
2473 long fd) {}
2475 PRE_SYSCALL(mknodat)(long dfd, const void *filename, long mode, long dev) {
2481 POST_SYSCALL(mknodat)(long res, long dfd, const void *filename, long mode,
2482 long dev) {}
2484 PRE_SYSCALL(mkdirat)(long dfd, const void *pathname, long mode) {
2490 POST_SYSCALL(mkdirat)(long res, long dfd, const void *pathname, long mode) {}
2492 PRE_SYSCALL(unlinkat)(long dfd, const void *pathname, long flag) {
2498 POST_SYSCALL(unlinkat)(long res, long dfd, const void *pathname, long flag) {}
2500 PRE_SYSCALL(symlinkat)(const void *oldname, long newdfd, const void *newname) {
2507 POST_SYSCALL(symlinkat)(long res, const void *oldname, long newdfd,
2510 PRE_SYSCALL(linkat)(long olddfd, const void *oldname, long newdfd,
2511 const void *newname, long flags) {
2518 POST_SYSCALL(linkat)(long res, long olddfd, const void *oldname, long newdfd,
2519 const void *newname, long flags) {}
2521 PRE_SYSCALL(renameat)(long olddfd, const void *oldname, long newdfd,
2529 POST_SYSCALL(renameat)(long res, long olddfd, const void *oldname, long newdfd,
2532 PRE_SYSCALL(futimesat)(long dfd, const void *filename, void *utimes) {
2538 POST_SYSCALL(futimesat)(long res, long dfd, const void *filename,
2545 PRE_SYSCALL(faccessat)(long dfd, const void *filename, long mode) {
2551 POST_SYSCALL(faccessat)(long res, long dfd, const void *filename, long mode) {}
2553 PRE_SYSCALL(fchmodat)(long dfd, const void *filename, long mode) {
2559 POST_SYSCALL(fchmodat)(long res, long dfd, const void *filename, long mode) {}
2561 PRE_SYSCALL(fchownat)(long dfd, const void *filename, long user, long group,
2562 long flag) {
2568 POST_SYSCALL(fchownat)(long res, long dfd, const void *filename, long user,
2569 long group, long flag) {}
2571 PRE_SYSCALL(openat)(long dfd, const void *filename, long flags, long mode) {
2577 POST_SYSCALL(openat)(long res, long dfd, const void *filename, long flags,
2578 long mode) {}
2580 PRE_SYSCALL(newfstatat)(long dfd, const void *filename, void *statbuf,
2581 long flag) {
2587 POST_SYSCALL(newfstatat)(long res, long dfd, const void *filename,
2588 void *statbuf, long flag) {
2594 PRE_SYSCALL(fstatat64)(long dfd, const void *filename, void *statbuf,
2595 long flag) {
2601 POST_SYSCALL(fstatat64)(long res, long dfd, const void *filename, void *statbuf,
2602 long flag) {
2608 PRE_SYSCALL(readlinkat)(long dfd, const void *path, void *buf, long bufsiz) {
2613 POST_SYSCALL(readlinkat)(long res, long dfd, const void *path, void *buf,
2614 long bufsiz) {
2621 PRE_SYSCALL(utimensat)(long dfd, const void *filename, void *utimes,
2622 long flags) {
2628 POST_SYSCALL(utimensat)(long res, long dfd, const void *filename, void *utimes,
2629 long flags) {
2635 PRE_SYSCALL(unshare)(long unshare_flags) {}
2637 POST_SYSCALL(unshare)(long res, long unshare_flags) {}
2639 PRE_SYSCALL(splice)(long fd_in, void *off_in, long fd_out, void *off_out,
2640 long len, long flags) {}
2642 POST_SYSCALL(splice)(long res, long fd_in, void *off_in, long fd_out,
2643 void *off_out, long len, long flags) {
2645 if (off_in) POST_WRITE(off_in, sizeof(long long));
2646 if (off_out) POST_WRITE(off_out, sizeof(long long));
2650 PRE_SYSCALL(vmsplice)(long fd, const __sanitizer_iovec *iov, long nr_segs,
2651 long flags) {}
2653 POST_SYSCALL(vmsplice)(long res, long fd, const __sanitizer_iovec *iov,
2654 long nr_segs, long flags) {
2660 PRE_SYSCALL(tee)(long fdin, long fdout, long len, long flags) {}
2662 POST_SYSCALL(tee)(long res, long fdin, long fdout, long len, long flags) {}
2664 PRE_SYSCALL(get_robust_list)(long pid, void *head_ptr, void *len_ptr) {}
2666 POST_SYSCALL(get_robust_list)(long res, long pid, void *head_ptr,
2669 PRE_SYSCALL(set_robust_list)(void *head, long len) {}
2671 POST_SYSCALL(set_robust_list)(long res, void *head, long len) {}
2675 POST_SYSCALL(getcpu)(long res, void *cpu, void *node, void *cache) {
2683 PRE_SYSCALL(signalfd)(long ufd, void *user_mask, long sizemask) {}
2685 POST_SYSCALL(signalfd)(long res, long ufd, kernel_sigset_t *user_mask,
2686 long sizemask) {
2692 PRE_SYSCALL(signalfd4)(long ufd, void *user_mask, long sizemask, long flags) {}
2694 POST_SYSCALL(signalfd4)(long res, long ufd, kernel_sigset_t *user_mask,
2695 long sizemask, long flags) {
2701 PRE_SYSCALL(timerfd_create)(long clockid, long flags) {}
2703 POST_SYSCALL(timerfd_create)(long res, long clockid, long flags) {}
2705 PRE_SYSCALL(timerfd_settime)(long ufd, long flags, const void *utmr,
2710 POST_SYSCALL(timerfd_settime)(long res, long ufd, long flags, const void *utmr,
2717 PRE_SYSCALL(timerfd_gettime)(long ufd, void *otmr) {}
2719 POST_SYSCALL(timerfd_gettime)(long res, long ufd, void *otmr) {
2725 PRE_SYSCALL(eventfd)(long count) {}
2727 POST_SYSCALL(eventfd)(long res, long count) {}
2729 PRE_SYSCALL(eventfd2)(long count, long flags) {}
2731 POST_SYSCALL(eventfd2)(long res, long count, long flags) {}
2733 PRE_SYSCALL(old_readdir)(long arg0, void *arg1, long arg2) {}
2735 POST_SYSCALL(old_readdir)(long res, long arg0, void *arg1, long arg2) {
2739 PRE_SYSCALL(pselect6)(long arg0, __sanitizer___kernel_fd_set *arg1,
2744 POST_SYSCALL(pselect6)(long res, long arg0, __sanitizer___kernel_fd_set *arg1,
2756 PRE_SYSCALL(ppoll)(__sanitizer_pollfd *arg0, long arg1, void *arg2,
2757 const kernel_sigset_t *arg3, long arg4) {
2761 POST_SYSCALL(ppoll)(long res, __sanitizer_pollfd *arg0, long arg1, void *arg2,
2762 const void *arg3, long arg4) {
2769 PRE_SYSCALL(syncfs)(long fd) {}
2771 POST_SYSCALL(syncfs)(long res, long fd) {}
2773 PRE_SYSCALL(perf_event_open)(__sanitizer_perf_event_attr *attr_uptr, long pid,
2774 long cpu, long group_fd, long flags) {
2778 POST_SYSCALL(perf_event_open)(long res, __sanitizer_perf_event_attr *attr_uptr,
2779 long pid, long cpu, long group_fd, long flags) {}
2781 PRE_SYSCALL(mmap_pgoff)(long addr, long len, long prot, long flags, long fd,
2782 long pgoff) {}
2784 POST_SYSCALL(mmap_pgoff)(long res, long addr, long len, long prot, long flags,
2785 long fd, long pgoff) {}
2789 POST_SYSCALL(old_mmap)(long res, void *arg) {}
2791 PRE_SYSCALL(name_to_handle_at)(long dfd, const void *name, void *handle,
2792 void *mnt_id, long flag) {}
2794 POST_SYSCALL(name_to_handle_at)(long res, long dfd, const void *name,
2795 void *handle, void *mnt_id, long flag) {}
2797 PRE_SYSCALL(open_by_handle_at)(long mountdirfd, void *handle, long flags) {}
2799 POST_SYSCALL(open_by_handle_at)(long res, long mountdirfd, void *handle,
2800 long flags) {}
2802 PRE_SYSCALL(setns)(long fd, long nstype) {}
2804 POST_SYSCALL(setns)(long res, long fd, long nstype) {}
2806 PRE_SYSCALL(process_vm_readv)(long pid, const __sanitizer_iovec *lvec,
2807 long liovcnt, const void *rvec, long riovcnt,
2808 long flags) {}
2810 POST_SYSCALL(process_vm_readv)(long res, long pid,
2811 const __sanitizer_iovec *lvec, long liovcnt,
2812 const void *rvec, long riovcnt, long flags) {
2818 PRE_SYSCALL(process_vm_writev)(long pid, const __sanitizer_iovec *lvec,
2819 long liovcnt, const void *rvec, long riovcnt,
2820 long flags) {}
2822 POST_SYSCALL(process_vm_writev)(long res, long pid,
2823 const __sanitizer_iovec *lvec, long liovcnt,
2824 const void *rvec, long riovcnt, long flags) {
2834 POST_SYSCALL(fork)(long res) {
2842 POST_SYSCALL(vfork)(long res) {