Home
last modified time | relevance | path

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

12345678910>>...14

/external/ltp/testcases/kernel/syscalls/tee/
Dtee01.c47 SAFE_CLOSE(fd_out); in check_file()
74 SAFE_CLOSE(pipe2[0]); in tee_test()
75 SAFE_CLOSE(pipe2[1]); in tee_test()
76 SAFE_CLOSE(pipe1[0]); in tee_test()
77 SAFE_CLOSE(pipe1[1]); in tee_test()
78 SAFE_CLOSE(fd_out); in tee_test()
79 SAFE_CLOSE(fd_in); in tee_test()
99 SAFE_CLOSE(fd_in); in setup()
105 SAFE_CLOSE(fd_in); in cleanup()
108 SAFE_CLOSE(fd_out); in cleanup()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice01.c50 SAFE_CLOSE(fd_out); in check_file()
70 SAFE_CLOSE(fd_in); in splice_test()
71 SAFE_CLOSE(fd_out); in splice_test()
72 SAFE_CLOSE(pipes[0]); in splice_test()
73 SAFE_CLOSE(pipes[1]); in splice_test()
93 SAFE_CLOSE(fd_in); in setup()
99 SAFE_CLOSE(fd_in); in cleanup()
102 SAFE_CLOSE(fd_out); in cleanup()
Dsplice03.c105 SAFE_CLOSE(rdfd); in cleanup()
108 SAFE_CLOSE(wrfd); in cleanup()
111 SAFE_CLOSE(appendfd); in cleanup()
114 SAFE_CLOSE(pipes[0]); in cleanup()
117 SAFE_CLOSE(pipes[1]); in cleanup()
/external/ltp/testcases/kernel/syscalls/copy_file_range/
Dcopy_file_range02.c153 SAFE_CLOSE(fd_append); in cleanup()
155 SAFE_CLOSE(fd_dir); in cleanup()
157 SAFE_CLOSE(fd_rdonly); in cleanup()
159 SAFE_CLOSE(fd_dest); in cleanup()
161 SAFE_CLOSE(fd_src); in cleanup()
164 SAFE_CLOSE(fd_immutable); in cleanup()
168 SAFE_CLOSE(fd_swapfile); in cleanup()
171 SAFE_CLOSE(fd_dup); in cleanup()
173 SAFE_CLOSE(fd_copy); in cleanup()
178 SAFE_CLOSE(fd_pipe[0]); in cleanup()
[all …]
/external/ltp/testcases/kernel/syscalls/fsync/
Dfsync03.c56 SAFE_CLOSE(pipe_fd[0]); in setup()
77 SAFE_CLOSE(fifo_wfd); in cleanup()
78 SAFE_CLOSE(fifo_rfd); in cleanup()
79 SAFE_CLOSE(pipe_fd[1]); in cleanup()
80 SAFE_CLOSE(sock_fd); in cleanup()
/external/ltp/testcases/cve/
Dcve-2014-0196.c95 SAFE_CLOSE(target_ptys[RUN_ALLOCS / 2]); in run()
96 SAFE_CLOSE(target_ptys[RUN_ALLOCS / 2 + RUN_ALLOCS]); in run()
115 SAFE_CLOSE(target_ptys[j]); in run()
116 SAFE_CLOSE(target_ptys[j + RUN_ALLOCS]); in run()
121 SAFE_CLOSE(master_fd); in run()
122 SAFE_CLOSE(slave_fd); in run()
/external/ltp/testcases/kernel/syscalls/readahead/
Dreadahead01.c65 SAFE_CLOSE(fd); in test_bad_fd()
70 SAFE_CLOSE(fd); in test_bad_fd()
83 SAFE_CLOSE(fd[0]); in test_invalid_fd()
84 SAFE_CLOSE(fd[1]); in test_invalid_fd()
91 SAFE_CLOSE(fd[0]); in test_invalid_fd()
/external/ltp/testcases/kernel/logging/kmsg/
Dkmsg01.c53 SAFE_CLOSE(f); in inject_msg()
105 SAFE_CLOSE(f); in find_msg()
205 SAFE_CLOSE(pipefd[1]); in timed_read_kmsg()
211 SAFE_CLOSE(pipefd[0]); in timed_read_kmsg()
241 SAFE_CLOSE(fd); in test_read_nonblock()
256 SAFE_CLOSE(fd); in test_read_block()
272 SAFE_CLOSE(fd); in test_partial_read()
352 SAFE_CLOSE(fd); in test_read_returns_first_message()
435 SAFE_CLOSE(fd); in test_messages_overwritten()
503 SAFE_CLOSE(fd); in test_seek()
[all …]
/external/ltp/testcases/kernel/syscalls/preadv/
Dpreadv02.c109 SAFE_CLOSE(fd1); in cleanup()
112 SAFE_CLOSE(fd2); in cleanup()
115 SAFE_CLOSE(fd4); in cleanup()
118 SAFE_CLOSE(fd5[0]); in cleanup()
121 SAFE_CLOSE(fd5[1]); in cleanup()
/external/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice01.c47 SAFE_CLOSE(fd_out); in check_file()
95 SAFE_CLOSE(pipes[0]); in vmsplice_test()
96 SAFE_CLOSE(pipes[1]); in vmsplice_test()
97 SAFE_CLOSE(fd_out); in vmsplice_test()
118 SAFE_CLOSE(fd_out); in cleanup()
/external/ltp/testcases/kernel/syscalls/pidfd_send_signal/
Dpidfd_send_signal03.c75 SAFE_CLOSE(new_pidfd); in verify_pidfd_send_signal()
84 SAFE_CLOSE(pidfd); in verify_pidfd_send_signal()
109 SAFE_CLOSE(pidfd); in verify_pidfd_send_signal()
127 SAFE_CLOSE(new_pidfd); in cleanup()
129 SAFE_CLOSE(pidfd); in cleanup()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite03.c36 SAFE_CLOSE(fd); in verify_write()
40 SAFE_CLOSE(fd); in verify_write()
53 SAFE_CLOSE(fd); in verify_write()
67 SAFE_CLOSE(fd); 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()
208 SAFE_CLOSE(cleanup, fd); in testfunc_largefile()
216 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile()
254 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_noatime()
272 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_nofollow()
294 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_trunc()
/external/ltp/testcases/kernel/syscalls/preadv2/
Dpreadv202.c104 SAFE_CLOSE(fd1); in cleanup()
107 SAFE_CLOSE(fd2); in cleanup()
110 SAFE_CLOSE(fd4); in cleanup()
113 SAFE_CLOSE(fd5[0]); in cleanup()
116 SAFE_CLOSE(fd5[1]); in cleanup()
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek02.c86 SAFE_CLOSE(fd); in cleanup()
89 SAFE_CLOSE(pfd1); in cleanup()
92 SAFE_CLOSE(pfds[0]); in cleanup()
95 SAFE_CLOSE(pfds[1]); in cleanup()
98 SAFE_CLOSE(pfd2); in cleanup()
/external/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify02.c71 SAFE_CLOSE(fd); in test01()
91 SAFE_CLOSE(fd); in test01()
118 SAFE_CLOSE(fd); in test01()
124 SAFE_CLOSE(fd); in test01()
180 SAFE_CLOSE(event->fd); in test01()
200 SAFE_CLOSE(fd_notify); in cleanup()
Dfanotify01.c129 SAFE_CLOSE(fd); in test_fanotify()
148 SAFE_CLOSE(fd); in test_fanotify()
201 SAFE_CLOSE(fd); in test_fanotify()
232 SAFE_CLOSE(fd); in test_fanotify()
253 SAFE_CLOSE(fd); in test_fanotify()
332 SAFE_CLOSE(event->fd); in test_fanotify()
356 SAFE_CLOSE(fd_notify); in test_fanotify()
365 SAFE_CLOSE(fd); in setup()
374 SAFE_CLOSE(fd_notify); in cleanup()
/external/ltp/testcases/kernel/syscalls/flock/
Dflock03.c51 SAFE_CLOSE(fd); in childfunc()
52 SAFE_CLOSE(fd2); in childfunc()
81 SAFE_CLOSE(fd1); in verify_flock()
89 SAFE_CLOSE(fd); in setup()
Dflock04.c42 SAFE_CLOSE(fd1); in child()
57 SAFE_CLOSE(fd2); in verify_flock()
75 SAFE_CLOSE(fd2); in verify_flock()
83 SAFE_CLOSE(fd); in setup()
/external/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair02.c69 SAFE_CLOSE(fds[0]); in verify_socketpair()
70 SAFE_CLOSE(fds[1]); in verify_socketpair()
76 SAFE_CLOSE(fds[0]); in cleanup()
79 SAFE_CLOSE(fds[1]); in cleanup()
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_initmsg_connect.c78 SAFE_CLOSE(sk1); in test_sctp()
79 SAFE_CLOSE(sk3); in test_sctp()
105 SAFE_CLOSE(sk1); in test_sctp()
106 SAFE_CLOSE(sk2); in test_sctp()
107 SAFE_CLOSE(sk3); in test_sctp()
/external/ltp/testcases/kernel/syscalls/accept/
Daccept02.c75 SAFE_CLOSE(server_sockfd); in server_thread()
86 SAFE_CLOSE(client_sockfd); in client_thread()
133 SAFE_CLOSE(clone_server_sockfd); in cleanup()
135 SAFE_CLOSE(client_sockfd); in cleanup()
137 SAFE_CLOSE(server_sockfd); in cleanup()
/external/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt02.c37 SAFE_CLOSE(fork_socket_fd); in fork_func()
69 SAFE_CLOSE(accepted); in test_function()
76 SAFE_CLOSE(accepted); in cleanup()
78 SAFE_CLOSE(socket_fd); in cleanup()
/external/ltp/testcases/kernel/syscalls/pwritev/
Dpwritev02.c103 SAFE_CLOSE(fd1); in cleanup()
106 SAFE_CLOSE(fd2); in cleanup()
109 SAFE_CLOSE(fd4[0]); in cleanup()
112 SAFE_CLOSE(fd4[1]); in cleanup()
/external/ltp/testcases/kernel/syscalls/pwritev2/
Dpwritev202.c99 SAFE_CLOSE(fd1); in cleanup()
102 SAFE_CLOSE(fd2); in cleanup()
105 SAFE_CLOSE(fd4[0]); in cleanup()
108 SAFE_CLOSE(fd4[1]); in cleanup()

12345678910>>...14