Home
last modified time | relevance | path

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

123456

/external/ltp/testcases/kernel/syscalls/preadv/
Dpreadv02.c117 SAFE_CLOSE(fd1); in cleanup()
120 SAFE_CLOSE(fd2); in cleanup()
123 SAFE_CLOSE(fd4); in cleanup()
126 SAFE_CLOSE(fd5[0]); in cleanup()
129 SAFE_CLOSE(fd5[1]); in cleanup()
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c139 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_append()
173 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_cloexec()
209 SAFE_CLOSE(cleanup, fd); in testfunc_largefile()
217 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile()
255 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_noatime()
273 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_nofollow()
295 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_trunc()
Dopenat03.c62 SAFE_CLOSE(cleanup, fd); in setup()
100 SAFE_CLOSE(cleanup, fd); in test01()
120 SAFE_CLOSE(cleanup, fd); in test01()
169 SAFE_CLOSE(cleanup, fd[i]); in test02()
231 SAFE_CLOSE(cleanup, fd[i]); in test03()
/external/ltp/testcases/kernel/logging/kmsg/
Dkmsg01.c76 SAFE_CLOSE(cleanup, f); in inject_msg()
131 SAFE_CLOSE(cleanup, f); in find_msg()
231 SAFE_CLOSE(cleanup, pipefd[1]); in timed_read_kmsg()
237 SAFE_CLOSE(cleanup, pipefd[0]); in timed_read_kmsg()
270 SAFE_CLOSE(cleanup, fd); in test_read_nonblock()
287 SAFE_CLOSE(cleanup, fd); in test_read_block()
305 SAFE_CLOSE(cleanup, fd); in test_partial_read()
387 SAFE_CLOSE(cleanup, fd); in test_read_returns_first_message()
473 SAFE_CLOSE(cleanup, fd); in test_messages_overwritten()
543 SAFE_CLOSE(cleanup, fd); in test_seek()
[all …]
/external/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair02.c81 SAFE_CLOSE(fds[0]); in verify_socketpair()
82 SAFE_CLOSE(fds[1]); in verify_socketpair()
88 SAFE_CLOSE(fds[0]); in cleanup()
91 SAFE_CLOSE(fds[1]); in cleanup()
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite02.c155 SAFE_CLOSE(cleanup, pipe_fds[0]); in test_espipe()
156 SAFE_CLOSE(cleanup, pipe_fds[1]); in test_espipe()
170 SAFE_CLOSE(cleanup, fd); in test_einval()
192 SAFE_CLOSE(cleanup, fd); in test_ebadf2()
207 SAFE_CLOSE(cleanup, fd); in test_efault()
/external/ltp/testcases/kernel/syscalls/pwritev/
Dpwritev02.c111 SAFE_CLOSE(fd1); in cleanup()
114 SAFE_CLOSE(fd2); in cleanup()
117 SAFE_CLOSE(fd4[0]); in cleanup()
120 SAFE_CLOSE(fd4[1]); in cleanup()
/external/ltp/testcases/kernel/syscalls/kcmp/
Dkcmp01.c65 SAFE_CLOSE(fd1); in cleanup()
77 SAFE_CLOSE(fd3); in do_child()
84 SAFE_CLOSE(fd2); in do_child()
85 SAFE_CLOSE(fd3); in do_child()
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg02.c95 SAFE_CLOSE(sdw); in verify_recvmsg()
96 SAFE_CLOSE(sdr); in verify_recvmsg()
102 SAFE_CLOSE(sdw); in cleanup()
105 SAFE_CLOSE(sdr); in cleanup()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev07.c76 SAFE_CLOSE(fd); in test_partially_valid_iovec()
98 SAFE_CLOSE(fd); in test_partially_valid_iovec()
106 SAFE_CLOSE(fd); in test_partially_valid_iovec()
129 SAFE_CLOSE(fd); in test_partially_valid_iovec()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl29.c66 SAFE_CLOSE(cleanup, dup_fd); in main()
79 SAFE_CLOSE(cleanup, dup_fd); in main()
105 SAFE_CLOSE(NULL, test_fd); in cleanup()
Dfcntl33.c157 SAFE_CLOSE(NULL, fd); in do_test()
165 SAFE_CLOSE(cleanup, fd); in do_test()
177 SAFE_CLOSE(cleanup, fd); in do_test()
203 SAFE_CLOSE(cleanup, fd); in do_test()
/external/ltp/testcases/kernel/syscalls/open/
Dopen12.c134 SAFE_CLOSE(cleanup, TEST_RETURN); in test_append()
172 SAFE_CLOSE(cleanup, TEST_RETURN); in test_noatime()
212 SAFE_CLOSE(cleanup, TEST_RETURN); in test_cloexec()
248 SAFE_CLOSE(cleanup, fd); in test_largefile()
256 SAFE_CLOSE(cleanup, TEST_RETURN); in test_largefile()
Dopen14.c61 SAFE_CLOSE(cleanup, fd); in setup()
89 SAFE_CLOSE(cleanup, fd); in test01()
109 SAFE_CLOSE(cleanup, fd); in test01()
158 SAFE_CLOSE(cleanup, fd[i]); in test02()
220 SAFE_CLOSE(cleanup, fd[i]); in test03()
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe02.c39 SAFE_CLOSE(fd[0]); in do_child()
77 SAFE_CLOSE(fd[1]); in verify_pipe()
86 SAFE_CLOSE(fd[0]); in verify_pipe()
/external/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm_readv02.c112 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_alloc()
115 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_alloc()
128 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_invoke()
130 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_invoke()
Dprocess_vm_writev02.c125 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_init_and_verify()
128 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_init_and_verify()
158 SAFE_CLOSE(tst_exit, pipe_fd[1]); in child_write()
160 SAFE_CLOSE(tst_exit, pipe_fd[0]); in child_write()
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c99 SAFE_CLOSE(cleanup, fd); in main()
118 SAFE_CLOSE(cleanup, fd); in main()
171 SAFE_CLOSE(cleanup, fd); in main()
203 SAFE_CLOSE(cleanup, fd); in main()
224 SAFE_CLOSE(cleanup, fd); in main()
343 SAFE_CLOSE(cleanup, fd); in setup()
Dfanotify02.c102 SAFE_CLOSE(cleanup, fd); in main()
122 SAFE_CLOSE(cleanup, fd); in main()
149 SAFE_CLOSE(cleanup, fd); in main()
155 SAFE_CLOSE(cleanup, fd); in main()
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile06.c103 SAFE_CLOSE(cleanup, in_fd); in do_sendfile()
104 SAFE_CLOSE(cleanup, out_fd); in do_sendfile()
105 SAFE_CLOSE(cleanup, sockfd); in do_sendfile()
144 SAFE_CLOSE(cleanup, fd); in setup()
/external/ltp/testcases/kernel/containers/userns/
Duserns02.c96 SAFE_CLOSE(cleanup, fd); in main()
102 SAFE_CLOSE(cleanup, fd); in main()
109 SAFE_CLOSE(cleanup, fd); in main()
/external/ltp/testcases/kernel/syscalls/epoll_ctl/
Depoll_ctl02.c91 SAFE_CLOSE(epfd); in cleanup()
94 SAFE_CLOSE(fd[0]); in cleanup()
97 SAFE_CLOSE(fd[1]); in cleanup()
Depoll_ctl01.c63 SAFE_CLOSE(epfd); in cleanup()
66 SAFE_CLOSE(fd[0]); in cleanup()
69 SAFE_CLOSE(fd[1]); in cleanup()
/external/ltp/testcases/kernel/syscalls/llseek/
Dllseek03.c99 SAFE_CLOSE(cleanup, fd); in setup()
138 SAFE_CLOSE(cleanup, fd); in testfunc_seekcur()
172 SAFE_CLOSE(cleanup, fd); in testfunc_seekend()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create01.c162 SAFE_CLOSE(fd2); in test_share_dup()
215 SAFE_CLOSE(fd); in test_share_open()
222 SAFE_CLOSE(fd2); in test_share_open()
257 SAFE_CLOSE(fd); in verify_memfd_create()

123456