/bionic/libc/bionic/ |
D | pty.cpp | 122 close(*master); in openpty() 131 close(*master); in openpty() 137 close(*master); in openpty() 160 close(master); in forkpty() 161 close(slave); in forkpty() 168 close(master); in forkpty() 177 close(slave); in forkpty() 192 close(fd); in login_tty()
|
D | tmpfile.cpp | 49 close(fd); in __fd_to_fp() 74 close(fd); in __tmpfile_dir_legacy()
|
D | pthread_setname_np.cpp | 69 close(fd); in pthread_getname_np() 102 close(fd); in pthread_setname_np()
|
/bionic/tests/ |
D | fcntl_test.cpp | 49 close(fd); in TEST() 57 close(fd); in TEST() 61 close(fd); in TEST() 69 close(fd); in TEST() 73 close(fd); in TEST() 162 close(fd); in TEST() 176 close(fd); in TEST() 194 close(pipe_fds[0]); in TEST() 195 close(pipe_fds[1]); in TEST() 196 close(in); in TEST() [all …]
|
D | fdsan_test.cpp | 54 ASSERT_EQ(0, close(fd)); in TEST_F() 84 EXPECT_FDSAN_DEATH(close(fd), "expected to be unowned, actually owned"); in TEST_F() 117 EXPECT_FDSAN_DEATH(close(fileno(f)), "actually owned by FILE"); in TEST_F() 125 EXPECT_FDSAN_DEATH(close(dirfd(dir)), "actually owned by DIR"); in TEST_F() 169 EXPECT_FDSAN_DEATH(close(fd.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 175 close(fd.release()); in TEST_F() 193 EXPECT_FDSAN_DEATH(close(fd_moved.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 204 close(fd.get()); in TEST_F()
|
D | sys_epoll_test.cpp | 79 close(fds[0]); in TEST() 80 close(fds[1]); in TEST() 87 close(fd); in TEST() 91 close(fd); in TEST() 95 close(fd); in TEST()
|
D | eventfd_test.cpp | 47 close(fd); in TEST() 60 close(fd); in TEST() 70 close(fd); in TEST() 93 close(fd); in TEST()
|
D | pty_test.cpp | 50 close(master); in TEST() 51 close(slave); in TEST() 71 close(master); in TEST() 102 close(arg->slave_fd); in PtyReader_28979140() 165 close(master); in TEST()
|
D | sys_socket_test.cpp | 59 close(fd); in ConnectFn() 98 close(fd); in RunTest() 114 close(fd_acc); in TestAccept4() 169 close(fd_acc); in TestRecvMMsg() 227 close(fd_acc); in TestSendMMsg()
|
D | sys_xattr_test.cpp | 83 close(fd); in TEST() 101 close(fd); in TEST() 128 close(fd); in TEST()
|
D | sys_statvfs_test.cpp | 56 close(fd); in TEST() 64 close(fd); in TEST()
|
D | utils.h | 241 close(fds[0]); in Run() 244 if (fds[1] != STDOUT_FILENO && fds[1] != STDERR_FILENO) close(fds[1]); in Run() 250 close(fds[1]); in Run() 257 close(fds[0]); in Run()
|
D | sys_vfs_test.cpp | 57 close(fd); in TEST() 65 close(fd); in TEST()
|
D | stdlib_test.cpp | 57 close(fd); in ~GenericTemporaryFile() 643 close(fd); in TEST() 649 close(fd); in TEST() 666 close(fd); in TEST() 676 close(fd); in TEST() 686 close(fd); in TEST() 698 close(fd); in TEST() 707 close(fd); in TEST() 717 close(fd); in TEST() 727 close(fd); in TEST() [all …]
|
D | unistd_test.cpp | 176 ASSERT_EQ(0, close(tf.fd)); in TEST() 186 ASSERT_EQ(0, close(tf.fd)); in TEST() 197 ASSERT_EQ(0, close(tf.fd)); in TEST() 207 ASSERT_EQ(0, close(tf.fd)); in TEST() 246 close(fd); in TEST() 402 close(fd); in TestSyncFunction() 406 close(fd); in TestSyncFunction() 411 close(fd); in TestSyncFunction() 423 close(fd); in TestFsyncFunction() 1162 ASSERT_EQ(0, close(fd)); // Check that dup2 didn't close fd. in TEST() [all …]
|
D | sys_mman_test.cpp | 79 close(tf.fd); in TEST() 151 close(tf.fd); in TEST() 159 close(tf.fd); in TEST() 284 close(fd); in TEST() 300 close(fd); in TEST()
|
D | sys_select_test.cpp | 57 close(fds[0]); in DelayedWrite() 60 close(fds[1]); in DelayedWrite() 64 close(fds[1]); in DelayedWrite()
|
D | dirent_test.cpp | 101 close(proc_fd); in TEST() 137 close(root_fd); in TEST() 147 close(root_fd); in TEST() 158 close(fd); in TEST() 170 ASSERT_EQ(close(fd), -1); in TEST()
|
D | bug_26110743_test.cpp | 43 close(fd); in ProcSelfReadlinkBody() 88 close(fd); in ProcTaskFdReadlinkBody()
|
/bionic/libc/tzcode/ |
D | bionic.cpp | 127 close(fd); in __bionic_open_tzdata_path() 133 close(fd); in __bionic_open_tzdata_path() 139 close(fd); in __bionic_open_tzdata_path() 146 close(fd); in __bionic_open_tzdata_path() 152 close(fd); in __bionic_open_tzdata_path() 159 close(fd); in __bionic_open_tzdata_path() 166 close(fd); in __bionic_open_tzdata_path() 192 close(fd); in __bionic_open_tzdata_path() 199 close(fd); in __bionic_open_tzdata_path()
|
/bionic/docs/ |
D | fdsan.md | 8 …file descriptor ownership, which tend to manifest as *use-after-close* and *double-close*. These e… 14 close(fd); 15 close(fd); 31 close(123) = 0 33 close(123) = 0 43 …nctions to associate a file descriptor with an owner; if someone tries to close a file descriptor … 45 …cases where it's hard to derive an identifier for the "owner" that should close a file descriptor,… 91 close(fd); 98 close(fd); 103 close(fd); [all …]
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 85 close(fds[0]); in Exec() 86 close(STDIN_FILENO); in Exec() 87 close(STDOUT_FILENO); in Exec() 88 close(STDERR_FILENO); in Exec() 91 close(fds[1]); in Exec() 100 close(fds[1]); in Exec() 138 close(fd_); in RunTest()
|
/bionic/libfdtrack/ |
D | fdtrack_test.cpp | 90 TEST(fdtrack, close) { in TEST() argument 98 close(fd2); in TEST()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_system_tests.cpp | 76 close(fds[0]); in Exec() 77 close(STDIN_FILENO); in Exec() 78 close(STDOUT_FILENO); in Exec() 79 close(STDERR_FILENO); in Exec() 98 close(fds[1]); in Exec()
|
/bionic/libc/system_properties/ |
D | prop_area.cpp | 88 close(fd); in map_prop_area_rw() 97 close(fd); in map_prop_area_rw() 103 close(fd); in map_prop_area_rw() 141 close(fd); in map_prop_area()
|