Home
last modified time | relevance | path

Searched refs:close (Results 1 – 25 of 120) sorted by relevance

12345

/bionic/libc/bionic/
Dpty.cpp122 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()
Dtmpfile.cpp49 close(fd); in __fd_to_fp()
74 close(fd); in __tmpfile_dir_legacy()
Dpthread_setname_np.cpp69 close(fd); in pthread_getname_np()
102 close(fd); in pthread_setname_np()
/bionic/tests/
Dfcntl_test.cpp49 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 …]
Dfdsan_test.cpp54 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()
Dsys_epoll_test.cpp79 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()
Deventfd_test.cpp47 close(fd); in TEST()
60 close(fd); in TEST()
70 close(fd); in TEST()
93 close(fd); in TEST()
Dpty_test.cpp50 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()
Dsys_socket_test.cpp59 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()
Dsys_xattr_test.cpp83 close(fd); in TEST()
101 close(fd); in TEST()
128 close(fd); in TEST()
Dsys_statvfs_test.cpp56 close(fd); in TEST()
64 close(fd); in TEST()
Dutils.h241 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()
Dsys_vfs_test.cpp57 close(fd); in TEST()
65 close(fd); in TEST()
Dstdlib_test.cpp57 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 …]
Dunistd_test.cpp176 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 …]
Dsys_mman_test.cpp79 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()
Dsys_select_test.cpp57 close(fds[0]); in DelayedWrite()
60 close(fds[1]); in DelayedWrite()
64 close(fds[1]); in DelayedWrite()
Ddirent_test.cpp101 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()
Dbug_26110743_test.cpp43 close(fd); in ProcSelfReadlinkBody()
88 close(fd); in ProcTaskFdReadlinkBody()
/bionic/libc/tzcode/
Dbionic.cpp127 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/
Dfdsan.md8 …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/
Dinterface_test.cpp85 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/
Dfdtrack_test.cpp90 TEST(fdtrack, close) { in TEST() argument
98 close(fd2); in TEST()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp76 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/
Dprop_area.cpp88 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()

12345