/external/ltp/testcases/kernel/syscalls/pidfd_getfd/ |
D | pidfd_getfd01.c | 36 SAFE_CLOSE(fds[0]); in do_child() 40 SAFE_CLOSE(fd); in do_child() 41 SAFE_CLOSE(fds[1]); in do_child() 54 SAFE_CLOSE(fds[1]); in run() 72 SAFE_CLOSE(remotefd); in run() 73 SAFE_CLOSE(pidfd); in run() 74 SAFE_CLOSE(fds[0]); in run() 87 SAFE_CLOSE(fds[0]); in cleanup() 89 SAFE_CLOSE(fds[1]); in cleanup() 91 SAFE_CLOSE(pidfd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/tee/ |
D | tee01.c | 46 SAFE_CLOSE(fd_out); in check_file() 73 SAFE_CLOSE(pipe2[0]); in tee_test() 74 SAFE_CLOSE(pipe2[1]); in tee_test() 75 SAFE_CLOSE(pipe1[0]); in tee_test() 76 SAFE_CLOSE(pipe1[1]); in tee_test() 77 SAFE_CLOSE(fd_out); in tee_test() 78 SAFE_CLOSE(fd_in); in tee_test() 92 SAFE_CLOSE(fd_in); in setup() 98 SAFE_CLOSE(fd_in); in cleanup() 101 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/connect/ |
D | connect02.c | 64 SAFE_CLOSE(confd3); in cleanup() 67 SAFE_CLOSE(confd2); in cleanup() 70 SAFE_CLOSE(confd1); in cleanup() 73 SAFE_CLOSE(fd); in cleanup() 76 SAFE_CLOSE(listenfd); in cleanup() 114 SAFE_CLOSE(confd3); in run() 115 SAFE_CLOSE(confd2); in run() 116 SAFE_CLOSE(confd1); in run() 117 SAFE_CLOSE(fd); in run()
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice01.c | 50 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() 87 SAFE_CLOSE(fd_in); in setup() 93 SAFE_CLOSE(fd_in); in cleanup() 96 SAFE_CLOSE(fd_out); in cleanup()
|
D | splice03.c | 105 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/ |
D | copy_file_range02.c | 157 SAFE_CLOSE(fd_append); in cleanup() 159 SAFE_CLOSE(fd_dir); in cleanup() 161 SAFE_CLOSE(fd_rdonly); in cleanup() 163 SAFE_CLOSE(fd_dest); in cleanup() 165 SAFE_CLOSE(fd_src); in cleanup() 168 SAFE_CLOSE(fd_immutable); in cleanup() 172 SAFE_CLOSE(fd_swapfile); in cleanup() 175 SAFE_CLOSE(fd_dup); in cleanup() 177 SAFE_CLOSE(fd_copy); in cleanup() 182 SAFE_CLOSE(fd_pipe[0]); in cleanup() [all …]
|
/external/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto03.c | 49 SAFE_CLOSE(sock); in setup() 80 SAFE_CLOSE(dst_sock); in check_tiny_frame() 100 SAFE_CLOSE(dst_sock); in check_tiny_frame() 148 SAFE_CLOSE(dst_sock); in check_vnet_hdr() 170 SAFE_CLOSE(sock); in check_vnet_hdr() 171 SAFE_CLOSE(dst_sock); in check_vnet_hdr() 193 SAFE_CLOSE(sock); in cleanup() 196 SAFE_CLOSE(dst_sock); in cleanup()
|
/external/ltp/testcases/kernel/security/dirtypipe/ |
D | dirtypipe.c | 136 SAFE_CLOSE(p[0]); in run() 137 SAFE_CLOSE(p[1]); in run() 138 SAFE_CLOSE(fd); in run() 150 SAFE_CLOSE(p[0]); in cleanup() 152 SAFE_CLOSE(p[1]); in cleanup() 154 SAFE_CLOSE(fd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead01.c | 43 SAFE_CLOSE(fd); in test_bad_fd() 46 SAFE_CLOSE(fd); in test_bad_fd() 57 SAFE_CLOSE(fd[0]); in test_invalid_fd() 58 SAFE_CLOSE(fd[1]); in test_invalid_fd() 63 SAFE_CLOSE(fd[0]); in test_invalid_fd()
|
/external/ltp/testcases/kernel/syscalls/fsync/ |
D | fsync03.c | 56 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/ |
D | cve-2014-0196.c | 95 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/logging/kmsg/ |
D | kmsg01.c | 53 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/accept/ |
D | accept02.c | 70 SAFE_CLOSE(clone_server_sockfd); in server_thread() 79 SAFE_CLOSE(server_sockfd); in server_thread() 90 SAFE_CLOSE(client_sockfd); in client_thread() 137 SAFE_CLOSE(clone_server_sockfd); in cleanup() 139 SAFE_CLOSE(client_sockfd); in cleanup() 141 SAFE_CLOSE(server_sockfd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/openat/ |
D | openat02.c | 138 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_append() 166 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_cloexec() 201 SAFE_CLOSE(cleanup, fd); in testfunc_largefile() 209 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile() 241 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_noatime() 259 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_nofollow() 281 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_trunc()
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify01.c | 120 SAFE_CLOSE(fd); in test_fanotify() 139 SAFE_CLOSE(fd); in test_fanotify() 187 SAFE_CLOSE(fd); in test_fanotify() 212 SAFE_CLOSE(fd); in test_fanotify() 227 SAFE_CLOSE(fd); in test_fanotify() 307 SAFE_CLOSE(event->fd); in test_fanotify() 329 SAFE_CLOSE(fd_notify); in test_fanotify() 338 SAFE_CLOSE(fd); in setup() 350 SAFE_CLOSE(fd_notify); in cleanup()
|
D | fanotify02.c | 65 SAFE_CLOSE(fd); in test01() 85 SAFE_CLOSE(fd); in test01() 107 SAFE_CLOSE(fd); in test01() 113 SAFE_CLOSE(fd); in test01() 169 SAFE_CLOSE(event->fd); in test01() 189 SAFE_CLOSE(fd_notify); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/pidfd_send_signal/ |
D | pidfd_send_signal03.c | 81 SAFE_CLOSE(new_pidfd); in verify_pidfd_send_signal() 90 SAFE_CLOSE(pidfd); in verify_pidfd_send_signal() 115 SAFE_CLOSE(pidfd); in verify_pidfd_send_signal() 133 SAFE_CLOSE(new_pidfd); in cleanup() 135 SAFE_CLOSE(pidfd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice01.c | 46 SAFE_CLOSE(fd_out); in check_file() 94 SAFE_CLOSE(pipes[0]); in vmsplice_test() 95 SAFE_CLOSE(pipes[1]); in vmsplice_test() 96 SAFE_CLOSE(fd_out); in vmsplice_test() 112 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/preadv/ |
D | preadv02.c | 109 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/fork/ |
D | fork08.c | 30 SAFE_CLOSE(fd); in run() 39 SAFE_CLOSE(fd); in run() 50 SAFE_CLOSE(fd); in run() 61 SAFE_CLOSE(fd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/preadv2/ |
D | preadv202.c | 104 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/write/ |
D | write03.c | 36 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/lseek/ |
D | lseek02.c | 86 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/writev/ |
D | writev03.c | 81 SAFE_CLOSE(writefd); in thread_run() 105 SAFE_CLOSE(readfd); in run() 128 SAFE_CLOSE(mapfd); in cleanup() 131 SAFE_CLOSE(readfd); in cleanup() 134 SAFE_CLOSE(writefd); in cleanup()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_initmsg_connect.c | 78 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()
|