Home
last modified time | relevance | path

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

12345678910>>...14

/base/security/access_token/interfaces/innerkits/token_setproc/src/
Dtoken_setproc.c59 close(fd); in GetSelfTokenID()
63 close(fd); in GetSelfTokenID()
75 close(fd); in SetSelfTokenID()
79 close(fd); in SetSelfTokenID()
92 close(fd); in GetFirstCallerTokenID()
96 close(fd); in GetFirstCallerTokenID()
109 close(fd); in SetFirstCallerTokenID()
113 close(fd); in SetFirstCallerTokenID()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Ddata_share_util.cpp62 close(src_fd); in CopyFile()
69 close(dest_fd); in CopyFile()
70 close(src_fd); in CopyFile()
78 close(dest_fd); in CopyFile()
79 close(src_fd); in CopyFile()
82 close(src_fd); in CopyFile()
83 close(dest_fd); in CopyFile()
/base/update/updater/services/applypatch/
Dpartition_record.cpp48 close(fd); in IsPartitionUpdated()
53 close(fd); in IsPartitionUpdated()
61 close(fd); in IsPartitionUpdated()
66 close(fd); in IsPartitionUpdated()
131 close(fd); in RecordPartitionUpdateStatus()
136 close(fd); in RecordPartitionUpdateStatus()
142 close(fd); in RecordPartitionUpdateStatus()
147 close(fd); in RecordPartitionUpdateStatus()
163 close(fd); in ClearRecordPartitionOffset()
170 close(fd); in ClearRecordPartitionOffset()
[all …]
Dstore.cpp120 close(fd); in WriteDataToStore()
124 close(fd); in WriteDataToStore()
129 close(fd); in WriteDataToStore()
132 close(fd); in WriteDataToStore()
138 close(fdd); in WriteDataToStore()
168 close(fd); in LoadDataFromStore()
172 close(fd); in LoadDataFromStore()
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_bulkcallback_test.cpp147 bool close = UsbSrvClient.Close(pipe); variable
149 …B_SERVICE, "UsbBulkcallbackTest::RegBulkCallback001 %{public}d close=%{public}d", __LINE__, close);
150 EXPECT_TRUE(close);
195 bool close = UsbSrvClient.Close(pipe); variable
197 …B_SERVICE, "UsbBulkcallbackTest::RegBulkCallback002 %{public}d close=%{public}d", __LINE__, close);
198 EXPECT_TRUE(close);
245 bool close = UsbSrvClient.Close(pipe); variable
247 …B_SERVICE, "UsbBulkcallbackTest::RegBulkCallback003 %{public}d close=%{public}d", __LINE__, close);
248 EXPECT_TRUE(close);
295 bool close = UsbSrvClient.Close(pipe); variable
[all …]
Dusb_request_test.cpp109 bool close = UsbSrvClient.Close(pip); variable
111 …B_SERVICE, "UsbRequestTest::UsbRequestInitialize001 %{public}d close=%{public}d", __LINE__, close);
112 EXPECT_TRUE(close);
155 bool close = UsbSrvClient.Close(pip); variable
157 …B_SERVICE, "UsbRequestTest::UsbRequestInitialize002 %{public}d close=%{public}d", __LINE__, close);
158 EXPECT_TRUE(close);
198 bool close = UsbSrvClient.Close(pip); variable
200 …B_SERVICE, "UsbRequestTest::UsbRequestInitialize003 %{public}d close=%{public}d", __LINE__, close);
201 EXPECT_TRUE(close);
241 bool close = UsbSrvClient.Close(pip); variable
[all …]
Dusb_device_pipe_test.cpp981 bool close = UsbSrvClient.Close(pipe); variable
983 close);
984 EXPECT_TRUE(close);
1016 bool close = UsbSrvClient.Close(pipe); variable
1018 close);
1019 EXPECT_TRUE(close);
1051 bool close = UsbSrvClient.Close(pipe); variable
1053 close);
1054 EXPECT_TRUE(close);
1086 bool close = UsbSrvClient.Close(pipe); variable
[all …]
/base/startup/init/services/loopevent/socket/
Dle_socket.c39 LE_CHECK(ret == 0, close(listenfd); in CreatePipeServerSocket_()
43 LE_CHECK(ret == 0, close(listenfd); in CreatePipeServerSocket_()
47 LE_CHECK(ret >= 0, close(listenfd); in CreatePipeServerSocket_()
52 LE_CHECK(ret >= 0, close(listenfd); in CreatePipeServerSocket_()
72 LE_CHECK(ret == 0, close(fd); in CreatePipeSocket_()
76 LE_CHECK(ret == 0, close(fd); in CreatePipeSocket_()
80 LE_CHECK(ret >= 0, close(fd); in CreatePipeSocket_()
109 LE_CHECK(ret >= 0, close(listenfd); in CreateTcpServerSocket_()
114 LE_CHECK(ret >= 0, close(listenfd); in CreateTcpServerSocket_()
132 LE_CHECK(ret >= 0, close(fd); in CreateTcpSocket_()
/base/sensors/sensor/test/unittest/common/src/
Dsystem_info.cpp70 filePath.close(); in GetTaskPidFile()
74 filePath.close(); in GetTaskPidFile()
78 filePath.close(); in GetTaskPidFile()
89 filePath.close(); in GetTaskPidFile()
110 file.close(); in GetProcOccupy()
115 file.close(); in GetProcOccupy()
118 file.close(); in GetProcOccupy()
155 statFile.close(); in GetSystemCpuStatInfo()
160 statFile.close(); in GetSystemCpuStatInfo()
165 statFile.close(); in GetSystemCpuStatInfo()
[all …]
/base/update/updater/services/flashd/
Dpartition.cpp53 close(fd); in DoErase()
60 close(fd); in DoErase()
66 close(fd); in DoErase()
71 close(fd); in DoErase()
/base/hiviewdfx/faultloggerd/test/unittest/faultloggerd_client/
Dfaultloggerd_client_test.cpp72 close(fd);
76 close(fd);
95 close(fd);
101 close(fd);
139 close(fd);
184 close(fd);
/base/security/selinux_adapter/test/unittest/common/
Dtest_common.cpp119 fin.close(); in CopyFile()
124 fin.close(); in CopyFile()
125 fout.close(); in CopyFile()
128 fin.close(); in CopyFile()
129 fout.close(); in CopyFile()
143 fout.close(); in WriteFile()
146 fout.close(); in WriteFile()
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd_client.c59 (void)close(agent->ptyFd); in ProcessPtyRead()
82 (void)close(agent->ptyFd); in CmdOnClose()
108 info.baseInfo.close = CmdOnClose; in CmdAgentCreate()
165 BEGET_ERROR_CHECK(grantpt(pfd) >= 0, close(pfd); return -1, "Failed to call grantpt"); in InitPtyInterface()
166 BEGET_ERROR_CHECK(unlockpt(pfd) >= 0, close(pfd); return -1, "Failed to call unlockpt"); in InitPtyInterface()
169 BEGET_ERROR_CHECK(ret >= 0, close(pfd); return -1, "Failed to get pts name err=%d", errno); in InitPtyInterface()
172 close(pfd); return -1, "Failed to chmod %s, err=%d", ptsbuffer, errno); in InitPtyInterface()
181 close(pfd); return -1, "[control_fd] Failed le_loop start watcher ptmx read"); in InitPtyInterface()
185close(pfd); return -1, "[control_fd] Failed le_loop start watcher stdin read and write ptmx"); in InitPtyInterface()
187 BEGET_ERROR_CHECK(ret == 0, close(pfd); return -1, "[control_fd] Failed send message"); in InitPtyInterface()
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dload_policy.cpp68 hashFile.close(); in ReadFileFirstLine()
108 close(fd); in ReadPolicyFile()
119 close(fd); in ReadPolicyFile()
123 close(fd); in ReadPolicyFile()
262 (void)close(pipeFd[0]); in CompilePolicyWithFork()
263 (void)close(pipeFd[1]); in CompilePolicyWithFork()
267 (void)close(pipeFd[0]); in CompilePolicyWithFork()
270 (void)close(pipeFd[1]); in CompilePolicyWithFork()
273 (void)close(pipeFd[1]); in CompilePolicyWithFork()
281 (void)close(pipeFd[1]); in CompilePolicyWithFork()
[all …]
Dselinux_klog.c65 close(g_fd); in SelinuxKmsg()
80 close(g_fd); in SelinuxKmsg()
88 close(g_fd); in SelinuxKmsg()
/base/hiviewdfx/hiview/plugins/sysevent_source/test/unittest/common/
Dsys_event_stat_test.cpp76 close(fd1);
82 close(fd2);
88 close(fd3);
94 close(fd4);
/base/sensors/miscdevice/interfaces/native/vibrator/test/unittest/
Dvibrator_agent_test.cpp258 close(fd);
277 close(fd);
300 close(fd);
323 close(fd);
346 close(fd);
369 close(fd);
392 close(fd);
415 close(fd);
438 close(fd);
461 close(fd);
[all …]
/base/theme/wallpaper_mgr/utils/src/
Dfile_deal.cpp64 in.close(); in CopyFile()
70 out.close(); in CopyFile()
71 in.close(); in CopyFile()
75 out.close(); in CopyFile()
76 in.close(); in CopyFile()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/
Devent_logger_catcher_test.cpp133 close(fd2); in JudgmentsFileSize()
172 close(fd); in StartCreate()
175 close(fd); in StartCreate()
223 close(fd);
226 close(fd);
292 close(fd);
295 close(fd);
359 close(fd);
362 close(fd);
406 close(fd);
[all …]
/base/theme/wallpaper_mgr/frameworks/native/src/
Dwallpaper_manager.cpp63 close(iter->second); in ~WallpaperManager()
166 close(iter->second); in GetFile()
208 close(fd); in SetWallpaper()
247 close(fd[1]); in SetWallpaper()
248 close(fd[0]); in SetWallpaper()
251 close(fd[1]); in SetWallpaper()
258 close(fd[0]); in SetWallpaper()
293 close(fd); in SetVideo()
370 close(fdInfo.fd); in GetPixelMap()
373 close(fdInfo.fd); in GetPixelMap()
[all …]
/base/startup/init/interfaces/innerkits/fd_holder/
Dfd_holder.c36 BEGET_ERROR_CHECK(ret == 0, close(sockFd); in BuildClientSocket()
42 BEGET_ERROR_CHECK(ret >= 0, close(sockFd); in BuildClientSocket()
87 BEGET_ERROR_CHECK(ret >= 0, close(sock); in ServiceSendFds()
100 close(sock); in ServiceSendFds()
110 close(sock); in ServiceSendFds()
118 close(sock); in ServiceSendFds()
/base/hiviewdfx/hilog_lite/services/apphilogcat/
Dhiview_applogcat.c162 close(fd); in main()
170 close(fd); in main()
177 close(fd); in main()
184 close(fd); in main()
237 close(fd); in main()
251 close(fd); in main()
258 close(fd); in main()
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dhap_verify_test.cpp90 appFile.close();
103 hapFile.close();
117 hapFile1.close();
128 hapFile2.close();
152 hapFile.close();
180 hapFile.close();
206 errorFile.close();
218 errorFile.close();
229 errorFile.close();
250 hapFile.close();
Dhap_crl_manager_test.cpp50 source.close(); in CopyFile()
54 source.close(); in CopyFile()
55 dest.close(); in CopyFile()
66 fileStream.close(); in ClearFile()
/base/web/webview/ohos_adapter/datashare_adapter/src/
Ddatashare_adapter_impl.cpp76 close(fd); in GetFileDisplayName()
83 close(fd); in GetFileDisplayName()
88 close(fd); in GetFileDisplayName()

12345678910>>...14