Home
last modified time | relevance | path

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

12345

/bionic/libc/bionic/
Dpty.cpp122 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()
Dpthread_setname_np.cpp69 close(fd); in pthread_getname_np()
102 close(fd); in pthread_setname_np()
Dtmpfile.cpp50 close(fd); in __fd_to_fp()
78 close(fd); in __tmpfile_dir_legacy()
/bionic/tests/
Dfcntl_test.cpp56 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 …]
Dfdsan_test.cpp63 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()
Deventfd_test.cpp47 close(fd); in TEST()
60 close(fd); in TEST()
70 close(fd); in TEST()
93 close(fd); in TEST()
Dsys_epoll_test.cpp151 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()
Dpty_test.cpp50 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()
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()
230 close(fd_acc); in TestSendMMsg()
Dsys_statvfs_test.cpp66 close(fd); in TEST()
74 close(fd); in TEST()
Dsys_xattr_test.cpp85 close(fd); in TEST()
103 close(fd); in TEST()
130 close(fd); in TEST()
Dfdtrack_test.cpp127 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);
Dutils.h235 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()
Dsys_vfs_test.cpp84 close(fd); in TEST()
99 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()
Dbug_26110743_test.cpp43 close(fd); in ProcSelfReadlinkBody()
88 close(fd); in ProcTaskFdReadlinkBody()
Dunistd_test.cpp178 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 …]
Dstdlib_test.cpp59 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 …]
Dsys_mman_test.cpp83 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()
Ddirent_test.cpp105 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/
Dbionic.cpp146 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/
Dfdsan.md12 …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 …]
DEINTR.md66 ### 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/
Dinterface_test.cpp81 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/
Dfdtrack_test.cpp90 TEST(fdtrack, close) { in TEST() argument
98 close(fd2); in TEST()

12345