/bionic/libc/bionic/ |
D | pty.cpp | 122 close(*pty); in openpty() 131 close(*pty); in openpty() 137 close(*pty); in openpty() 160 close(pty); in forkpty() 161 close(tty); in forkpty() 168 close(pty); in forkpty() 177 close(tty); in forkpty() 192 close(fd); in login_tty()
|
D | pthread_setname_np.cpp | 69 close(fd); in pthread_getname_np() 102 close(fd); in pthread_setname_np()
|
D | tmpfile.cpp | 50 close(fd); in __fd_to_fp() 78 close(fd); in __tmpfile_dir_legacy()
|
/bionic/tests/ |
D | fcntl_test.cpp | 56 close(fd); in TEST() 64 close(fd); in TEST() 68 close(fd); in TEST() 76 close(fd); in TEST() 80 close(fd); in TEST() 169 close(fd); in TEST() 183 close(fd); in TEST() 201 close(pipe_fds[0]); in TEST() 202 close(pipe_fds[1]); in TEST() 203 close(in); in TEST() [all …]
|
D | fdsan_test.cpp | 63 ASSERT_EQ(0, close(fd)); in TEST_F() 93 EXPECT_FDSAN_DEATH(close(fd), "expected to be unowned, actually owned"); in TEST_F() 126 EXPECT_FDSAN_DEATH(close(fileno(f)), "actually owned by FILE"); in TEST_F() 134 EXPECT_FDSAN_DEATH(close(dirfd(dir)), "actually owned by DIR"); in TEST_F() 178 EXPECT_FDSAN_DEATH(close(fd.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 184 close(fd.release()); in TEST_F() 202 EXPECT_FDSAN_DEATH(close(fd_moved.get()), "expected to be unowned, actually owned by unique_fd"); in TEST_F() 213 close(fd.get()); in TEST_F()
|
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 | sys_epoll_test.cpp | 151 close(fds[0]); in TEST() 152 close(fds[1]); in TEST() 159 close(fd); in TEST() 163 close(fd); in TEST() 167 close(fd); in TEST()
|
D | pty_test.cpp | 50 close(pty); in TEST() 51 close(tty); in TEST() 71 close(pty); in TEST() 102 close(arg->fd); in PtyReader_28979140() 165 close(pty); 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() 230 close(fd_acc); in TestSendMMsg()
|
D | sys_statvfs_test.cpp | 66 close(fd); in TEST() 74 close(fd); in TEST()
|
D | sys_xattr_test.cpp | 85 close(fd); in TEST() 103 close(fd); in TEST() 130 close(fd); in TEST()
|
D | fdtrack_test.cpp | 127 TEST(fdtrack, close) { in TEST() argument 132 auto events = FdtrackRun([]() { close(fd); }); in TEST() 146 auto events = FdtrackRun([]() { close(fd); }, false); in TEST() 256 close(pidfd_self); 347 close(fd);
|
D | utils.h | 235 close(fds[0]); in Run() 238 if (fds[1] != STDOUT_FILENO && fds[1] != STDERR_FILENO) close(fds[1]); in Run() 244 close(fds[1]); in Run() 251 close(fds[0]); in Run()
|
D | sys_vfs_test.cpp | 84 close(fd); in TEST() 99 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 | bug_26110743_test.cpp | 43 close(fd); in ProcSelfReadlinkBody() 88 close(fd); in ProcTaskFdReadlinkBody()
|
D | unistd_test.cpp | 178 ASSERT_EQ(0, close(tf.fd)); in TEST() 188 ASSERT_EQ(0, close(tf.fd)); in TEST() 199 ASSERT_EQ(0, close(tf.fd)); in TEST() 209 ASSERT_EQ(0, close(tf.fd)); in TEST() 248 close(fd); in TEST() 407 close(fd); in TestSyncFunction() 411 close(fd); in TestSyncFunction() 416 close(fd); in TestSyncFunction() 428 close(fd); in TestFsyncFunction() 1238 ASSERT_EQ(0, close(fd)); // Check that dup2 didn't close fd. in TEST() [all …]
|
D | stdlib_test.cpp | 59 close(fd); in ~GenericTemporaryFile() 685 close(fd); in TEST() 691 close(fd); in TEST() 708 close(fd); in TEST() 718 close(fd); in TEST() 728 close(fd); in TEST() 740 close(fd); in TEST() 749 close(fd); in TEST() 759 close(fd); in TEST() 769 close(fd); in TEST() [all …]
|
D | sys_mman_test.cpp | 83 close(tf.fd); in TEST() 155 close(tf.fd); in TEST() 163 close(tf.fd); in TEST() 304 close(fd); in TEST() 320 close(fd); in TEST()
|
D | dirent_test.cpp | 105 close(proc_fd); in TEST() 156 close(root_fd); in TEST() 170 close(root_fd); in TEST() 184 close(fd); in TEST() 196 ASSERT_EQ(close(fd), -1); in TEST()
|
/bionic/libc/tzcode/ |
D | bionic.cpp | 146 close(fd); in __bionic_open_tzdata_path() 152 close(fd); in __bionic_open_tzdata_path() 158 close(fd); in __bionic_open_tzdata_path() 165 close(fd); in __bionic_open_tzdata_path() 171 close(fd); in __bionic_open_tzdata_path() 178 close(fd); in __bionic_open_tzdata_path() 185 close(fd); in __bionic_open_tzdata_path() 211 close(fd); in __bionic_open_tzdata_path() 230 close(fd); in __bionic_open_tzdata_path()
|
/bionic/docs/ |
D | fdsan.md | 12 …file descriptor ownership, which tend to manifest as *use-after-close* and *double-close*. These e… 18 close(fd); 19 close(fd); 35 close(123) = 0 37 close(123) = 0 47 …nctions to associate a file descriptor with an owner; if someone tries to close a file descriptor … 49 …cases where it's hard to derive an identifier for the "owner" that should close a file descriptor,… 95 close(fd); 102 close(fd); 107 close(fd); [all …]
|
D | EINTR.md | 66 ### close(2) 68 TL;DR: *never* wrap close(2) calls with `TEMP_FAILURE_RETRY`. 70 The case of close(2) is complicated. POSIX explicitly says that close(2) 71 shouldn't close the file descriptor if it returns `EINTR`, but that's *not* 73 [Returning EINTR from close()](https://lwn.net/Articles/576478/) 77 retrying close(2) is especially dangerous because the file descriptor might
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 81 close(fds[0]); in Exec() 82 close(STDIN_FILENO); in Exec() 83 close(STDOUT_FILENO); in Exec() 84 close(STDERR_FILENO); in Exec() 87 close(fds[1]); in Exec() 97 close(fds[1]); in Exec() 135 close(fd_); in RunTest()
|
/bionic/libfdtrack/ |
D | fdtrack_test.cpp | 90 TEST(fdtrack, close) { in TEST() argument 98 close(fd2); in TEST()
|