Home
last modified time | relevance | path

Searched refs:close (Results 1 - 25 of 39) sorted by relevance

12

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Dsemaphore.rs200 /// sem.close();
217 /// sem.close();
220 pub fn close(&self) { in close() functions
221 self.inner.close(); in close()
316 /// sem.close();
333 /// sem.close();
336 pub fn close(&self) { in close() functions
337 self.inner.close(); in close()
353 /// UT test cases for `Semaphore::close()`.
364 sem.close(); in ut_sem_close_test()
[all...]
H A Doneshot.rs192 /// or calls the [`close`] method.
194 /// [`close`]: Receiver::close
341 /// `close`. It will do nothing if the channel is already closed or the
354 /// rx.close();
361 /// Receive a value sent **before** calling `close`
369 /// rx.close();
375 pub fn close(&mut self) { in close() functions
385 self.close(); in drop()
506 /// UT test cases for `is_closed()` and `close` in fmt()
[all...]
/commonlibrary/ets_utils/platform/default/
H A Dprocess_helper.cpp76 statFile.close(); in GetProcessStartRealtime()
85 statFile.close(); in GetProcessStartRealtime()
94 statFile.close(); in GetProcessStartRealtime()
/commonlibrary/memory_utils/libpurgeablemem/cpp/src/
H A Dpurgeable_ashmem.cpp91 close(ashmemFd_); in ~PurgeableAshMem()
124 close(fd); in CreatePurgeableData()
133 close(ashmemFd_); in CreatePurgeableData()
204 close(ashmemFd_); in ResizeData()
227 close(ashmemFd_); in ChangeAshmemData()
/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs_impl.c236 close(fdSrc); in CopyFileImpl()
240 close(fdSrc); in CopyFileImpl()
248 close(fdSrc); in CopyFileImpl()
252 close(fdSrc); in CopyFileImpl()
253 close(fdDest); in CopyFileImpl()
284 close(fileHandle); in WriteTextFile()
317 close(fileHandle); in WriteArrayFile()
322 close(fileHandle); in WriteArrayFile()
347 close(fileHandle); in ReadFileImpl()
351 close(fileHandl in ReadFileImpl()
[all...]
/commonlibrary/c_utils/base/src/
H A Dashmem.cpp78 close(fd); in AshmemOpenLocked()
84 close(fd); in AshmemOpenLocked()
117 close(fd); in AshmemCreate()
124 close(fd); in AshmemCreate()
132 close(fd); in AshmemCreate()
197 ::close(memoryFd_); in CloseAshmem()
H A Dmapped_file.cpp179 if (close(fd) == -1) { in OpenFile()
180 UTILS_LOGW("%{public}s: Failed. Cannot close the file: %{public}s.", \ in OpenFile()
466 if (fd_ != -1 && close(fd_) == -1) { in Clear()
467 UTILS_LOGD("%{public}s: Failed. Cannot close the file: %{public}s.", \ in Clear()
485 if (fd_ != -1 && close(fd_) == -1) { in ~MappedFile()
486 UTILS_LOGE("%{public}s: Failed. Cannot close the file: %{public}s.", \ in ~MappedFile()
559 if (fd_ != -1 && close(fd_) == -1) { in ChangePath()
560 UTILS_LOGW("%{public}s: Failed. Cannot close the file: %{public}s.", \ in ChangePath()
H A Dtimer_event_handler.cpp42 close(GetHandle()); in ~TimerEventHandler()
H A Dio_event_epoll.cpp50 if (close(epollFd_) != 0) { in CleanUp()
51 UTILS_LOGW("%{public}s: Failed, cannot close fd: %{public}s.", __FUNCTION__, strerror(errno)); in CleanUp()
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_file_test.cpp89 close(fd); in HWTEST_F()
193 close(fd); in HWTEST_F()
210 close(fd); in HWTEST_F()
227 close(fd); in HWTEST_F()
244 close(fd); in HWTEST_F()
260 close(fd); in HWTEST_F()
395 close(fd); in HWTEST_F()
401 close(fd); in HWTEST_F()
417 close(fd); in HWTEST_F()
423 close(f in HWTEST_F()
[all...]
H A Dutils_unique_fd_test.cpp45 outfile.close(); in SetUpTestCase()
55 inputfile.close(); in TearDownTestCase()
129 close(fd); in Close()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/
H A Dmod.rs23 fn close(&self); in close() functions
76 pub(crate) fn close(&self) {
78 self.inner.chan.close();
/commonlibrary/ets_utils/js_sys_module/process/
H A Djs_childprocess.cpp82 close(stdErrFd_[0]); in Spawn()
83 close(stdOutFd_[0]); in Spawn()
110 close(stdErrFd_[1]); in Spawn()
111 close(stdOutFd_[1]); in Spawn()
402 HILOG_ERROR("close kill SIGKILL signal failed"); in Close()
480 close(stdOutFd_[0]); in ~ChildProcess()
481 close(stdErrFd_[0]); in ~ChildProcess()
/commonlibrary/memory_utils/libdmabufheap/src/
H A Ddmabuf_alloc.c86 return close(fd); in DmabufHeapClose()
122 return close(buffer->fd); in DmabufHeapBufferFree()
/commonlibrary/memory_utils/libmeminfo/src/
H A Dmeminfo.cpp84 in.close(); in GetPssByPid()
112 in.close(); in GetSwapPssByPid()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/quic/
H A Dmod.rs157 self.close(false, 0x1, b"verify server cert failed")
173 self.close(false, 0x1, b"fail").ok();
/commonlibrary/utils_lite/hals/file/
H A Dhal_file.c29 return close(fd); in HalFileClose()
/commonlibrary/utils_lite/js/builtin/kvstorekit/src/
H A Dnativeapi_kv_impl.c120 close(fileHandle); in GetValue()
149 close(fd); in SetValue()
/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/
H A Dfile_benchmark_test.cpp87 close(fd); in LoadString()
98 close(fd); in SaveString()
104 close(fd); in SaveString()
127 close(fd); in BENCHMARK_F()
305 close(fd); in BENCHMARK_F()
325 close(fd); in BENCHMARK_F()
523 close(fd); in BENCHMARK_F()
529 close(fd); in BENCHMARK_F()
/commonlibrary/c_utils/base/test/benchmarktest/unique_fd_benchmark_test/
H A Dunique_fd_benchmark_test.cpp48 outfile.close();
57 inputfile.close();
174 close(fd); in Close()
/commonlibrary/c_utils/base/test/fuzztest/directory_fuzzer/
H A Ddirectory_fuzzer.cpp40 file.close(); in DirectoryTestFunc()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/unbounded/
H A Dmod.rs128 /// dropped or calls the [`close`] method.
130 /// [`close`]: UnboundedReceiver::close
192 self.channel.close(); in drop()
359 /// `close`. It will do nothing if the channel is already closed.
370 /// rx.close();
377 /// Receive a value sent **before** calling `close`
385 /// rx.close();
391 pub fn close(&mut self) { in close() functions
392 self.channel.close(); in close()
[all...]
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/
H A Depoll.rs117 if let Err(_err) = syscall!(close(self.ep)) { in drop()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/
H A Dmod.rs233 /// dropped or the [`close`] method gets called.
235 /// [`close`]: BoundedReceiver::close
310 self.channel.close(); in drop()
480 /// `Receiver` called `close`. It will do nothing if the channel is
493 /// rx.close();
500 /// Receives a value sent **before** calling `close`
508 /// rx.close();
514 pub fn close(&mut self) { in close() functions
515 self.channel.close(); in close()
[all...]
/commonlibrary/c_utils/base/include/
H A Dunique_fd.h34 * including a static function to close FDs.
44 * @brief Default function to close an FD.
46 * Call `close()` if the input FD is valid (greater than or equal to 0).
53 close(fd); in Close()
76 * To ensure unique management on an FD, avoid the double-close issue,
122 * This function is used to close the FD and set the FD to `-1`.

Completed in 16 milliseconds

12