/external/ltp/testcases/kernel/syscalls/tee/ |
D | tee01.c | 66 SAFE_CLOSE(fd_out); in check_file() 93 SAFE_CLOSE(pipe2[0]); in tee_test() 94 SAFE_CLOSE(pipe2[1]); in tee_test() 95 SAFE_CLOSE(pipe1[0]); in tee_test() 96 SAFE_CLOSE(pipe1[1]); in tee_test() 97 SAFE_CLOSE(fd_out); in tee_test() 98 SAFE_CLOSE(fd_in); in tee_test() 118 SAFE_CLOSE(fd_in); in setup() 124 SAFE_CLOSE(fd_in); in cleanup() 127 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice01.c | 63 SAFE_CLOSE(fd_out); in check_file() 83 SAFE_CLOSE(fd_in); in splice_test() 84 SAFE_CLOSE(fd_out); in splice_test() 85 SAFE_CLOSE(pipes[0]); in splice_test() 86 SAFE_CLOSE(pipes[1]); in splice_test() 106 SAFE_CLOSE(fd_in); in setup() 112 SAFE_CLOSE(fd_in); in cleanup() 115 SAFE_CLOSE(fd_out); in cleanup()
|
D | splice03.c | 116 SAFE_CLOSE(rdfd); in cleanup() 119 SAFE_CLOSE(wrfd); in cleanup() 122 SAFE_CLOSE(appendfd); in cleanup() 125 SAFE_CLOSE(pipes[0]); in cleanup() 128 SAFE_CLOSE(pipes[1]); in cleanup()
|
D | splice04.c | 94 SAFE_CLOSE(pp1[1]); in pipe_pipe() 95 SAFE_CLOSE(pp1[0]); in pipe_pipe() 96 SAFE_CLOSE(pp2[1]); in pipe_pipe() 97 SAFE_CLOSE(pp2[0]); in pipe_pipe()
|
/external/ltp/testcases/kernel/logging/kmsg/ |
D | kmsg01.c | 72 SAFE_CLOSE(f); in inject_msg() 124 SAFE_CLOSE(f); in find_msg() 224 SAFE_CLOSE(pipefd[1]); in timed_read_kmsg() 230 SAFE_CLOSE(pipefd[0]); in timed_read_kmsg() 260 SAFE_CLOSE(fd); in test_read_nonblock() 275 SAFE_CLOSE(fd); in test_read_block() 291 SAFE_CLOSE(fd); in test_partial_read() 371 SAFE_CLOSE(fd); in test_read_returns_first_message() 454 SAFE_CLOSE(fd); in test_messages_overwritten() 522 SAFE_CLOSE(fd); in test_seek() [all …]
|
/external/ltp/testcases/cve/ |
D | cve-2014-0196.c | 107 SAFE_CLOSE(target_ptys[RUN_ALLOCS / 2]); in run() 108 SAFE_CLOSE(target_ptys[RUN_ALLOCS / 2 + RUN_ALLOCS]); in run() 127 SAFE_CLOSE(target_ptys[j]); in run() 128 SAFE_CLOSE(target_ptys[j + RUN_ALLOCS]); in run() 133 SAFE_CLOSE(master_fd); in run() 134 SAFE_CLOSE(slave_fd); in run()
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead01.c | 65 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/syscalls/openat/ |
D | openat02.c | 139 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/vmsplice/ |
D | vmsplice01.c | 66 SAFE_CLOSE(fd_out); in check_file() 114 SAFE_CLOSE(pipes[0]); in vmsplice_test() 115 SAFE_CLOSE(pipes[1]); in vmsplice_test() 116 SAFE_CLOSE(fd_out); in vmsplice_test() 137 SAFE_CLOSE(fd_out); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/preadv/ |
D | preadv02.c | 117 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/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/lseek/ |
D | lseek02.c | 103 SAFE_CLOSE(fd); in cleanup() 106 SAFE_CLOSE(pfd1); in cleanup() 109 SAFE_CLOSE(pfds[0]); in cleanup() 112 SAFE_CLOSE(pfds[1]); in cleanup() 115 SAFE_CLOSE(pfd2); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write03.c | 49 SAFE_CLOSE(fd); in verify_write() 53 SAFE_CLOSE(fd); in verify_write() 66 SAFE_CLOSE(fd); in verify_write() 80 SAFE_CLOSE(fd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify02.c | 71 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()
|
D | fanotify01.c | 97 SAFE_CLOSE(fd); in test_fanotify() 116 SAFE_CLOSE(fd); in test_fanotify() 169 SAFE_CLOSE(fd); in test_fanotify() 200 SAFE_CLOSE(fd); in test_fanotify() 221 SAFE_CLOSE(fd); in test_fanotify() 299 SAFE_CLOSE(event->fd); in test_fanotify() 323 SAFE_CLOSE(fd_notify); in test_fanotify() 335 SAFE_CLOSE(fd_notify); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/flock/ |
D | flock03.c | 51 SAFE_CLOSE(fd); in childfunc() 52 SAFE_CLOSE(fd2); in childfunc() 81 SAFE_CLOSE(fd1); in verify_flock() 89 SAFE_CLOSE(fd); in setup()
|
D | flock04.c | 42 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/ |
D | socketpair02.c | 81 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/getsockopt/ |
D | getsockopt02.c | 49 SAFE_CLOSE(fork_socket_fd); in fork_func() 81 SAFE_CLOSE(accepted); in test_function() 88 SAFE_CLOSE(accepted); in cleanup() 90 SAFE_CLOSE(socket_fd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/pwritev/ |
D | pwritev02.c | 111 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/pwrite/ |
D | pwrite02.c | 120 SAFE_CLOSE(fd); in cleanup() 123 SAFE_CLOSE(fd_ro); in cleanup() 126 SAFE_CLOSE(pipe_fds[0]); in cleanup() 129 SAFE_CLOSE(pipe_fds[1]); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/pwritev2/ |
D | pwritev202.c | 99 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()
|
/external/ltp/testcases/kernel/syscalls/msync/ |
D | msync04.c | 46 SAFE_CLOSE(pagemap_fd); in get_dirty_bit() 54 SAFE_CLOSE(pageflags_fd); in get_dirty_bit() 66 SAFE_CLOSE(test_fd); in test_msync() 101 SAFE_CLOSE(test_fd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
D | recvmsg02.c | 95 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/kcmp/ |
D | kcmp01.c | 65 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()
|