Home
last modified time | relevance | path

Searched refs:SAFE_FCNTL (Results 1 – 25 of 36) sorted by relevance

12

/aosp_15_r20/external/ltp/testcases/kernel/syscalls/pipe2/
H A Dpipe2_04.c33 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 Dpipe2_01.c62 get_flag = SAFE_FCNTL(fds[i], tc->cmd); in verify_pipe2()
/aosp_15_r20/external/ltp/testcases/kernel/containers/pidns/
H A Dpidns13.c69 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 Dfcntl15.c76 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 Dfcntl36.c126 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 Dfcntl_common.h15 SAFE_FCNTL(fd, cmd, flock)
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/pipe/
H A Dpipe12.c97 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 Dpipe15.c32 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 Deventfd2_01.c25 flags = SAFE_FCNTL(fd, F_GETFD); in run()
30 flags = SAFE_FCNTL(fd, F_GETFD); in run()
H A Deventfd2_02.c25 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 Dinotify_init1_02.c28 flags = SAFE_FCNTL(fd, F_GETFL); in run()
34 flags = SAFE_FCNTL(fd, F_GETFL); in run()
H A Dinotify_init1_01.c28 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 Ddup203.c50 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 Daccept4_01.c130 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 Dpidfd_open01.c28 flag = SAFE_FCNTL(pidfd, F_GETFD); in run()
H A Dpidfd_open04.c41 flag = SAFE_FCNTL(pidfd, F_GETFL); in run()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/epoll_create1/
H A Depoll_create1_01.c37 coe = SAFE_FCNTL(fd, F_GETFD); in run()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify08.c36 ret = SAFE_FCNTL(fd_notify, F_GETFD); in test_init_bit()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/timerfd/
H A Dtimerfd02.c37 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 Ddup3_01.c46 ret = SAFE_FCNTL(fd, F_GETFD); in run()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/socket/
H A Dsocket02.c45 res = SAFE_FCNTL(fd, tc->fl_flag); in verify_socket()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/socketpair/
H A Dsocketpair02.c50 res = SAFE_FCNTL(fds[i], tc->fl_flag); in verify_socketpair()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/vmsplice/
H A Dvmsplice04.c74 pipe_max_size = SAFE_FCNTL(pipes[1], F_GETPIPE_SZ); in setup()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/pidfd_getfd/
H A Dpidfd_getfd01.c63 flag = SAFE_FCNTL(remotefd, F_GETFD); in run()
/aosp_15_r20/external/ltp/testcases/kernel/syscalls/fsync/
H A Dfsync02.c55 SAFE_FCNTL(fd, F_SETFL, O_LARGEFILE); in setup()

12