Home
last modified time | relevance | path

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

1234567

/system/vold/
DLoop.cpp60 close(fd); in dumpState()
104 close(fd); in lookupActive()
160 close(fd); in create()
181 close(fd); in create()
187 close(file_fd); in create()
188 close(fd); in create()
200 close(file_fd); in create()
201 close(fd); in create()
205 close(fd); in create()
206 close(file_fd); in create()
[all …]
DDevmapper.cpp72 close(fd); in dumpState()
80 close(fd); in dumpState()
113 close(fd); in dumpState()
155 close(fd); in lookupActive()
158 close(fd); in lookupActive()
189 close(fd); in create()
204 close(fd); in create()
213 close(fd); in create()
244 close(fd); in create()
254 close(fd); in create()
[all …]
Dlogwrapper.c124 close(parent_ptty); in logwrap()
131 close(parent_ptty); in logwrap()
140 close(parent_ptty); in logwrap()
146 close(parent_ptty); in logwrap()
149 close(child_ptty); in logwrap()
165 close(parent_ptty); in logwrap()
/system/extras/tests/cpueater/
Dcpueater.c50 close(0); in main()
52 close(1); in main()
58 close(2); in main()
61 close(fd); in main()
Ddaemonize.c43 close(0); open("/dev/null", 0); in main()
44 close(1); in main()
91 close(2); dup(1); /* join stdout and stderr */ in main()
97 close(fd); in main()
/system/netd/
DNetlinkManager.cpp72 close(*sock); in setupSocket()
78 close(*sock); in setupSocket()
84 close(*sock); in setupSocket()
91 close(*sock); in setupSocket()
129 close(mUeventSock); in stop()
140 close(mRouteSock); in stop()
152 close(mQuotaSock); in stop()
DTetherController.cpp74 close(fd); in setIpFwdEnabled()
77 close(fd); in setIpFwdEnabled()
92 close(fd); in getIpFwdEnabled()
96 close(fd); in getIpFwdEnabled()
123 close(pipefd[0]); in startTethering()
124 close(pipefd[1]); in startTethering()
129 close(pipefd[1]); in startTethering()
135 close(pipefd[0]); in startTethering()
164 close(pipefd[0]); in startTethering()
185 close(mDaemonFd); in stopTethering()
Dlogwrapper.c123 close(parent_ptty); in logwrap()
130 close(parent_ptty); in logwrap()
139 close(parent_ptty); in logwrap()
145 close(parent_ptty); in logwrap()
148 close(child_ptty); in logwrap()
156 close(parent_ptty); in logwrap()
/system/core/libdiskconfig/
Ddiskutils.c106 close(src_fd); in write_raw_image()
108 close(dst_fd); in write_raw_image()
113 close(dst_fd); in write_raw_image()
115 close(src_fd); in write_raw_image()
/system/security/keystore/
Dkeystore_client.cpp34 close(sock); in keystore_cmd()
46 close(sock); in keystore_cmd()
55 close(sock); in keystore_cmd()
66 close(sock); in keystore_cmd()
95 close(sock); in keystore_cmd()
/system/bluetooth/bluedroid/
Dbluetooth.c63 close(fd); in init_rfkill()
107 if (fd >= 0) close(fd); in check_bluetooth_power()
136 if (fd >= 0) close(fd); in set_bluetooth_power()
194 close(hci_sock); in bt_enable()
221 if (hci_sock >= 0) close(hci_sock); in bt_enable()
262 if (hci_sock >= 0) close(hci_sock); in bt_disable()
299 if (hci_sock >= 0) close(hci_sock); in bt_is_enabled()
/system/extras/tests/sdcard/
Dtestcase.cpp72 for (int i = 0; i < 4; ++i) close(mIpc[i]); in ~TestCase()
91 close(mIpc[READ_FROM_CHILD]); in runTest()
92 close(mIpc[WRITE_TO_CHILD]); in runTest()
113 close(mIpc[WRITE_TO_PARENT]); in runTest()
114 close(mIpc[READ_FROM_PARENT]); in runTest()
119 close(mIpc[WRITE_TO_PARENT]); in runTest()
120 close(mIpc[READ_FROM_PARENT]); in runTest()
/system/core/sh/
Dredir.c156 close(fd); in redirect()
160 close(fd); in redirect()
240 close(f); in openredirect()
273 close(pip[0]); in openhere()
288 close(pip[1]); in openhere()
308 close(i); in popredir()
311 close(rp->renamed[i]); in popredir()
360 close(rp->renamed[i]);
/system/core/init/
Dlogo.c73 close(fb->fd); in fb_open()
80 close(fb->fd); in fb_close()
99 close(fd); in vt_set_mode()
151 close(fd); in load_565rle_image()
158 close(fd); in load_565rle_image()
Dbuiltins.c72 close(fd); in write_file()
104 close(fd); in _chown()
109 close(fd); in _chown()
127 close(fd); in _chmod()
132 close(fd); in _chmod()
164 close(fd); in setkey()
192 close(s); in __ifupdown()
429 close(fd); in do_mount()
433 close(loop); in do_mount()
437 close(loop); in do_mount()
[all …]
/system/extras/sound/
Dplaywav.c92 close(afd); in pcm_play()
225 close(fd); in wav_rec()
278 close(afd); in wav_rec()
285 close(fd); in wav_rec()
289 close(afd); in wav_rec()
290 close(fd); in wav_rec()
309 close(fd); in mp3_play()
324 close(fd); in mp3_play()
325 close(afd); in mp3_play()
/system/extras/tests/iptables/qtaguid/
DsocketTag.cpp70 close(ctrl); in doCtrlCommand()
92 close(param_fd); in writeModuleParam()
105 close(fd); in setup()
110 close(fd); in setup()
115 close(fd); in setup()
182 close(ctrl_fd); in checkTag()
211 close(ctrl_fd); in SetUp()
229 close(dev_fd); in TearDown()
232 close(ctrl_fd); in TearDown()
388 close(sock0.fd); in TEST_F()
[all …]
/system/core/adb/
Dsockets.c156 s->close(s); in local_socket_enqueue()
235 if (s->peer->close == local_socket_close) { in local_socket_close_locked()
238 s->peer->close(s->peer); in local_socket_close_locked()
291 s->close(s); in local_socket_event_func()
307 s->close(s); in local_socket_event_func()
377 s->close(s); in local_socket_event_func()
400 s->close = local_socket_close; in create_local_socket()
499 s->peer->close(s->peer); in remote_socket_close()
516 peer->close(peer); in remote_socket_disconnect()
531 s->close = remote_socket_close; in create_remote_socket()
[all …]
Dframebuffer_service.c71 close(fds[0]); in framebuffer_service()
72 close(fds[1]); in framebuffer_service()
177 close(fds[0]); in framebuffer_service()
178 close(fds[1]); in framebuffer_service()
179 close(fd); in framebuffer_service()
/system/core/libcutils/
Dfs.c93 close(fd); in fs_read_atomic_int()
97 close(fd); in fs_read_atomic_int()
125 if (close(fd) == -1) { in fs_write_atomic_int()
138 close(fd); in fs_write_atomic_int()
Dload_file.c41 close(fd); in load_file()
48 close(fd); in load_file()
Dsocket_loopback_server.c54 close(s); in socket_loopback_server()
64 close(s); in socket_loopback_server()
Dsocket_inaddr_any_server.c54 close(s); in socket_inaddr_any_server()
64 close(s); in socket_inaddr_any_server()
/system/core/libsysutils/src/
DSocketListener.cpp57 close(mSock); in ~SocketListener()
60 close(mCtrlPipe[0]); in ~SocketListener()
61 close(mCtrlPipe[1]); in ~SocketListener()
120 close(mCtrlPipe[0]); in stopListener()
121 close(mCtrlPipe[1]); in stopListener()
126 close(mSock); in stopListener()
/system/core/toolbox/cp/
Dutils.c147 (void)close(from_fd); in copy_file()
156 (void)close(from_fd); in copy_file()
178 (void)close(from_fd); in copy_file()
186 (void)close(from_fd); in copy_file()
187 (void)close(to_fd); in copy_file()
283 (void)close(from_fd); in copy_file()
286 (void)close(to_fd); in copy_file()
309 if (close(to_fd)) { in copy_file()

1234567