/aosp_15_r20/external/ltp/testcases/kernel/syscalls/pipe2/ |
H A D | pipe2_04.c | 33 SAFE_FCNTL(fds[1], F_SETFL, flags | O_NONBLOCK); in test_pipe2() 46 SAFE_FCNTL(fds[1], F_SETFL, flags & ~O_NONBLOCK); in test_pipe2() 67 flags = SAFE_FCNTL(fds[1], F_GETFL); in setup() 75 SAFE_FCNTL(fds[0], F_SETPIPE_SZ, 0); in setup() 81 pipe_size = SAFE_FCNTL(fds[1], F_GETPIPE_SZ); in setup()
|
H A D | pipe2_01.c | 62 get_flag = SAFE_FCNTL(fds[i], tc->cmd); in verify_pipe2()
|
/aosp_15_r20/external/ltp/testcases/kernel/containers/pidns/ |
H A 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()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/fcntl/ |
H A 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()
|
H A 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()
|
H A D | fcntl_common.h | 15 SAFE_FCNTL(fd, cmd, flock)
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/pipe/ |
H A 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()
|
H A D | pipe15.c | 32 const int buffer_size = SAFE_FCNTL(pipe[1], F_GETPIPE_SZ); in run() 50 const int buffer_size = SAFE_FCNTL(pipe[1], F_GETPIPE_SZ); in setup()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/eventfd2/ |
H A D | eventfd2_01.c | 25 flags = SAFE_FCNTL(fd, F_GETFD); in run() 30 flags = SAFE_FCNTL(fd, F_GETFD); in run()
|
H A D | eventfd2_02.c | 25 flags = SAFE_FCNTL(fd, F_GETFL); in run() 30 flags = SAFE_FCNTL(fd, F_GETFL); in run()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/inotify_init/ |
H A D | inotify_init1_02.c | 28 flags = SAFE_FCNTL(fd, F_GETFL); in run() 34 flags = SAFE_FCNTL(fd, F_GETFL); in run()
|
H A D | inotify_init1_01.c | 28 fd_flags = SAFE_FCNTL(fd, F_GETFD); in run() 34 fd_flags = SAFE_FCNTL(fd, F_GETFD); in run()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/dup2/ |
H A D | dup203.c | 50 SAFE_FCNTL(fd0, F_SETFD, 1); in run() 76 rval = SAFE_FCNTL(fd2, F_GETFD); in run()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/accept4/ |
H A D | accept4_01.c | 130 fdf = SAFE_FCNTL(acceptfd, F_GETFD); in verify_accept4() 139 flf = SAFE_FCNTL(acceptfd, F_GETFL); in verify_accept4()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/pidfd_open/ |
H A D | pidfd_open01.c | 28 flag = SAFE_FCNTL(pidfd, F_GETFD); in run()
|
H A D | pidfd_open04.c | 41 flag = SAFE_FCNTL(pidfd, F_GETFL); in run()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/epoll_create1/ |
H A D | epoll_create1_01.c | 37 coe = SAFE_FCNTL(fd, F_GETFD); in run()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify08.c | 36 ret = SAFE_FCNTL(fd_notify, F_GETFD); in test_init_bit()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/timerfd/ |
H A D | timerfd02.c | 37 TST_EXP_EQ_LI(SAFE_FCNTL(fdesc, tcase->check) & tcase->expected, tcase->expected); in run()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/dup3/ |
H A D | dup3_01.c | 46 ret = SAFE_FCNTL(fd, F_GETFD); in run()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/socket/ |
H A D | socket02.c | 45 res = SAFE_FCNTL(fd, tc->fl_flag); in verify_socket()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/socketpair/ |
H A D | socketpair02.c | 50 res = SAFE_FCNTL(fds[i], tc->fl_flag); in verify_socketpair()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/vmsplice/ |
H A D | vmsplice04.c | 74 pipe_max_size = SAFE_FCNTL(pipes[1], F_GETPIPE_SZ); in setup()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/pidfd_getfd/ |
H A D | pidfd_getfd01.c | 63 flag = SAFE_FCNTL(remotefd, F_GETFD); in run()
|
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/fsync/ |
H A D | fsync02.c | 55 SAFE_FCNTL(fd, F_SETFL, O_LARGEFILE); in setup()
|