/third_party/ltp/testcases/kernel/syscalls/pipe2/ |
D | pipe2_04.c | 32 SAFE_FCNTL(fds[1], F_SETFL, flags | O_NONBLOCK); in test_pipe2() 45 SAFE_FCNTL(fds[1], F_SETFL, flags & ~O_NONBLOCK); in test_pipe2() 66 flags = SAFE_FCNTL(fds[1], F_GETFL); in setup() 74 SAFE_FCNTL(fds[0], F_SETPIPE_SZ, 0); in setup() 80 pipe_size = SAFE_FCNTL(fds[1], F_GETPIPE_SZ); in setup()
|
D | pipe2_01.c | 66 get_flag = SAFE_FCNTL(fds[i], tc->cmd); in verify_pipe2()
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
D | pidns13.c | 69 SAFE_FCNTL(pipe_fd[0], F_SETOWN, pid); in child_fn() 70 SAFE_FCNTL(pipe_fd[0], F_SETSIG, SIGUSR1); in child_fn() 71 flags = SAFE_FCNTL(pipe_fd[0], F_GETFL); in child_fn() 72 SAFE_FCNTL(pipe_fd[0], F_SETFL, flags | O_ASYNC); in child_fn()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl15.c | 76 SAFE_FCNTL(fd, F_SETLK, &lock_two); in lock_region_two() 140 fd[1] = SAFE_FCNTL(fd[0], F_DUPFD, 0); in run_test() 144 SAFE_FCNTL(fd[0], F_SETLK, &lock_one); in run_test() 148 SAFE_FCNTL(fd[1], F_SETLK, &lock_two); in run_test()
|
D | fcntl36.c | 126 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w() 132 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w() 226 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_r() 257 SAFE_FCNTL(fd, F_SETLK, &lck); in fn_posix_r()
|
D | fcntl_common.h | 26 return SAFE_FCNTL(fd, cmd, lck); in my_fcntl()
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe12.c | 97 max_size = SAFE_FCNTL(fds[1], F_GETPIPE_SZ); in setup() 103 SAFE_FCNTL(fds[1], F_SETFL, O_NONBLOCK); in setup() 104 SAFE_FCNTL(fds[0], F_SETFL, O_NONBLOCK); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/dup2/ |
D | dup203.c | 50 SAFE_FCNTL(fd0, F_SETFD, 1); in run() 76 rval = SAFE_FCNTL(fd2, F_GETFD); in run()
|
/third_party/ltp/testcases/kernel/syscalls/accept4/ |
D | accept4_01.c | 130 fdf = SAFE_FCNTL(acceptfd, F_GETFD); in verify_accept4() 139 flf = SAFE_FCNTL(acceptfd, F_GETFL); in verify_accept4()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_create1/ |
D | epoll_create1_01.c | 37 coe = SAFE_FCNTL(fd, F_GETFD); in run()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify08.c | 36 ret = SAFE_FCNTL(fd_notify, F_GETFD); in test_init_bit()
|
/third_party/ltp/testcases/kernel/syscalls/dup3/ |
D | dup3_01.c | 46 ret = SAFE_FCNTL(fd, F_GETFD); in run()
|
/third_party/ltp/testcases/kernel/syscalls/socket/ |
D | socket02.c | 45 res = SAFE_FCNTL(fd, tc->fl_flag); in verify_socket()
|
/third_party/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice04.c | 74 pipe_max_size = SAFE_FCNTL(pipes[1], F_GETPIPE_SZ); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/socketpair/ |
D | socketpair02.c | 50 res = SAFE_FCNTL(fds[i], tc->fl_flag); in verify_socketpair()
|
/third_party/ltp/testcases/kernel/syscalls/fsync/ |
D | fsync02.c | 50 SAFE_FCNTL(fd, F_SETFL, O_LARGEFILE); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/ftruncate/ |
D | ftruncate04.c | 123 SAFE_FCNTL(fd, F_SETLKW, &flocks); in dochild()
|
/third_party/ltp/testcases/kernel/syscalls/splice/ |
D | splice02.c | 126 max_pipe_size = SAFE_FCNTL(pipe_fd[1], F_GETPIPE_SZ); in run()
|
/third_party/ltp/testcases/kernel/syscalls/close_range/ |
D | close_range01.c | 71 int present = SAFE_FCNTL(fd[i], F_GETFD) & FD_CLOEXEC; in check_cloexec()
|
/third_party/ltp/testcases/kernel/syscalls/timerfd/ |
D | timerfd01.c | 138 SAFE_FCNTL(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) | O_NONBLOCK); in run()
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create_common.h | 56 ({int r = SAFE_FCNTL((fd), F_ADD_SEALS, (seals)); \
|
D | memfd_create_common.c | 212 int ret = SAFE_FCNTL((fd), F_GET_SEALS); in check_mfd_has_seals()
|
/third_party/ltp/testcases/kernel/syscalls/io_uring/ |
D | io_uring02.c | 98 SAFE_FCNTL(sockpair[0], F_SETFL, O_NONBLOCK); in drain_fallback()
|
/third_party/ltp/testcases/kernel/pty/ |
D | pty04.c | 128 SAFE_FCNTL(ptmx, F_SETFL, O_NONBLOCK); in open_pty()
|
/third_party/ltp/include/ |
D | tst_safe_macros.h | 244 #define SAFE_FCNTL(fd, cmd, ...) \ macro
|