Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/pipe2/
Dpipe2_04.c32 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()
Dpipe2_01.c66 get_flag = SAFE_FCNTL(fds[i], tc->cmd); in verify_pipe2()
/third_party/ltp/testcases/kernel/containers/pidns/
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()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
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()
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()
Dfcntl_common.h26 return SAFE_FCNTL(fd, cmd, lck); in my_fcntl()
/third_party/ltp/testcases/kernel/syscalls/pipe/
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()
/third_party/ltp/testcases/kernel/syscalls/dup2/
Ddup203.c50 SAFE_FCNTL(fd0, F_SETFD, 1); in run()
76 rval = SAFE_FCNTL(fd2, F_GETFD); in run()
/third_party/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c130 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/
Depoll_create1_01.c37 coe = SAFE_FCNTL(fd, F_GETFD); in run()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify08.c36 ret = SAFE_FCNTL(fd_notify, F_GETFD); in test_init_bit()
/third_party/ltp/testcases/kernel/syscalls/dup3/
Ddup3_01.c46 ret = SAFE_FCNTL(fd, F_GETFD); in run()
/third_party/ltp/testcases/kernel/syscalls/socket/
Dsocket02.c45 res = SAFE_FCNTL(fd, tc->fl_flag); in verify_socket()
/third_party/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice04.c74 pipe_max_size = SAFE_FCNTL(pipes[1], F_GETPIPE_SZ); in setup()
/third_party/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair02.c50 res = SAFE_FCNTL(fds[i], tc->fl_flag); in verify_socketpair()
/third_party/ltp/testcases/kernel/syscalls/fsync/
Dfsync02.c50 SAFE_FCNTL(fd, F_SETFL, O_LARGEFILE); in setup()
/third_party/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate04.c123 SAFE_FCNTL(fd, F_SETLKW, &flocks); in dochild()
/third_party/ltp/testcases/kernel/syscalls/splice/
Dsplice02.c126 max_pipe_size = SAFE_FCNTL(pipe_fd[1], F_GETPIPE_SZ); in run()
/third_party/ltp/testcases/kernel/syscalls/close_range/
Dclose_range01.c71 int present = SAFE_FCNTL(fd[i], F_GETFD) & FD_CLOEXEC; in check_cloexec()
/third_party/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd01.c138 SAFE_FCNTL(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) | O_NONBLOCK); in run()
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.h56 ({int r = SAFE_FCNTL((fd), F_ADD_SEALS, (seals)); \
Dmemfd_create_common.c212 int ret = SAFE_FCNTL((fd), F_GET_SEALS); in check_mfd_has_seals()
/third_party/ltp/testcases/kernel/syscalls/io_uring/
Dio_uring02.c98 SAFE_FCNTL(sockpair[0], F_SETFL, O_NONBLOCK); in drain_fallback()
/third_party/ltp/testcases/kernel/pty/
Dpty04.c128 SAFE_FCNTL(ptmx, F_SETFL, O_NONBLOCK); in open_pty()
/third_party/ltp/include/
Dtst_safe_macros.h244 #define SAFE_FCNTL(fd, cmd, ...) \ macro