/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/ |
H A D | semaphore_linux.c | 90 int flags = fcntl(sem->fd, F_GETFL); in SemaphoreTryWait() 95 if (fcntl(sem->fd, F_SETFL, flags | EFD_NONBLOCK) == -1) { in SemaphoreTryWait() 104 if (fcntl(sem->fd, F_SETFL, flags) == -1) { in SemaphoreTryWait() 128 int flags = fcntl(sem->fd, F_GETFL); in SemaphoreTryPost() 133 if (fcntl(sem->fd, F_SETFL, flags | EFD_NONBLOCK) == -1) { in SemaphoreTryPost() 141 if (fcntl(sem->fd, F_SETFL, flags) == -1) { in SemaphoreTryPost()
|
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/include/ |
H A D | socket_exec_common.h | 30 int flags = fcntl(sock, F_GETFL, 0); in MakeNonBlock() 32 flags = fcntl(sock, F_GETFL, 0); in MakeNonBlock() 38 int ret = fcntl(sock, F_SETFL, flags | O_NONBLOCK); in MakeNonBlock() 40 ret = fcntl(sock, F_SETFL, flags | O_NONBLOCK); in MakeNonBlock()
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | netsys_tcp_client.c | 30 int flags = fcntl(sock, F_GETFL, 0); in MakeNonBlock() 32 flags = fcntl(sock, F_GETFL, 0); in MakeNonBlock() 39 int ret = fcntl(sock, F_SETFL, tempFlags); in MakeNonBlock() 41 ret = fcntl(sock, F_SETFL, tempFlags); in MakeNonBlock()
|
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | cppcrash_reporter.cpp | 131 if (fcntl(pipeFd[PIPE_READ], F_SETPIPE_SZ, sz) < 0 || in WriteCppCrashInfoByPipe() 132 fcntl(pipeFd[PIPE_WRITE], F_SETPIPE_SZ, sz) < 0) { in WriteCppCrashInfoByPipe() 136 if (fcntl(pipeFd[PIPE_READ], F_GETFL) < 0) { in WriteCppCrashInfoByPipe() 140 uint32_t flags = static_cast<uint32_t>(fcntl(pipeFd[PIPE_READ], F_GETFL)); in WriteCppCrashInfoByPipe() 142 if (fcntl(pipeFd[PIPE_READ], F_SETFL, flags) < 0) { in WriteCppCrashInfoByPipe()
|
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/ |
H A D | vpn_interface.cpp | 40 uint32_t flags = static_cast<uint32_t>(fcntl(sockfd, F_GETFL, 0)); in ConnectControl() 41 fcntl(sockfd, F_SETFL, flags | O_NONBLOCK); in ConnectControl() 50 fcntl(sockfd, F_SETFL, flags); /* restore file status flags */ in ConnectControl() 87 fcntl(sockfd, F_SETFL, flags); /* restore file status flags */ in ConnectControl()
|
/ohos5.0/base/startup/init/services/loopevent/utils/ |
H A D | le_utils.c | 21 int option = fcntl(fd, F_GETFD); in SetNoBlock() 26 (void)fcntl(fd, F_SETFD, option); in SetNoBlock()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/ |
H A D | rs_profiler_socket.cpp | 66 fcntl(socket, F_SETFL, ToggleFlag(fcntl(socket, F_GETFL, 0), O_NONBLOCK, !enable)); in SetBlocking() 71 fcntl(socket, F_SETFD, ToggleFlag(fcntl(socket, F_GETFD, 0), FD_CLOEXEC, enable)); in SetCloseOnExec()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/ |
H A D | sys.rs | 37 let mut flags = syscall!(fcntl(raw, libc::F_GETFD))?; in open() 39 syscall!(fcntl(raw, libc::F_SETFD, flags))?; in open() 95 let mut flags = syscall!(fcntl(self.0.as_raw_fd(), libc::F_GETFL))?; in set_nonblocking() 97 syscall!(fcntl(self.0.as_raw_fd(), libc::F_SETFL, flags)).map(|_| ()) in set_nonblocking()
|
/ohos5.0/foundation/communication/wifi/wifi/base/cRPC/src/ |
H A D | net.c | 32 int flags = fcntl(fd, F_GETFL, 0); in SetNonBlock() 42 if (fcntl(fd, F_SETFL, flags) < 0) { in SetNonBlock() 153 fcntl(sock, F_SETFD, FD_CLOEXEC); in CreateUnixServer()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/platform/unix/dfile/ |
H A D | sys_dfile.c | 43 int32_t flags = fcntl(session->receiverPipe[i], F_GETFL, 0); in CreateReceiverPipe() 50 int32_t ret = fcntl(session->receiverPipe[i], F_SETFL, flags); in CreateReceiverPipe()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/ |
H A D | socket.rs | 41 if let Err(e) = syscall!(fcntl(socket, libc::F_SETFL, libc::O_NONBLOCK)) { in set_non_block() 46 if let Err(e) = syscall!(fcntl(socket, libc::F_SETFD, libc::FD_CLOEXEC)) { in set_non_block()
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session.cpp | 38 int32_t flags = fcntl(socketFd, F_GETFL, 0); in SoftbusSession() 44 ret = fcntl(socketFd, F_SETFL, flags); in SoftbusSession()
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | guidance-on-ndk-libc-interfaces-affected-by-permissions.md | 45 | fcntl.h | name_to_handle_at | 46 | fcntl.h | open_by_handle_at | 212 | fcntl.h | open | 213 | fcntl.h | openat | 250 | fcntl.h | open_by_handle_at | CAP_DAC_READ_SEARCH |
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/ |
H A D | sys_socket.c | 46 flag = fcntl(fd, F_GETFL, 0); in SetSocketNonBlock() 52 if (fcntl(fd, F_SETFL, (unsigned int)flag | O_NONBLOCK) < 0) { in SetSocketNonBlock()
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/ |
H A D | preferences_file_lock.cpp | 67 if (fcntl(fd_, F_SETLK, &fileLockInfo) != -1) { in PreferencesFileLock() 86 if (fcntl(fd_, F_SETLK, &fileLockInfo) == -1) { in ~PreferencesFileLock()
|
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | dns_proxy_listen_test.cpp | 91 int flags = fcntl(proxySockFd, F_GETFL, 0); 93 fcntl(proxySockFd, F_SETFL, tempFlags);
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | raw_socket.cpp | 52 int ret = fcntl(fd, F_GETFL); in SetNonBlock() 58 return fcntl(fd, F_SETFL, flags); in SetNonBlock()
|
/ohos5.0/foundation/multimodalinput/input/service/delegate_task/src/ |
H A D | delegate_tasks.cpp | 66 if (fcntl(fds_[0], F_SETFL, O_NONBLOCK) == -1) { in Init() 71 if (fcntl(fds_[1], F_SETFL, O_NONBLOCK) == -1) { in Init()
|
/ohos5.0/base/hiviewdfx/faultloggerd/services/ |
H A D | fault_logger_pipe.cpp | 93 if (fcntl(fds_[PIPE_READ], F_SETPIPE_SZ, sz) < 0) { in SetSize() 96 if (fcntl(fds_[PIPE_WRITE], F_SETPIPE_SZ, sz) < 0) { in SetSize()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/ |
H A D | sys_event.c | 121 flags = fcntl(node->pipeFd[i], F_GETFL, 0); in CreateNonBlockPipe() 129 ret = fcntl(node->pipeFd[i], F_SETFL, flags); in CreateNonBlockPipe()
|
H A D | sys_socket.c | 49 flag = fcntl(fd, F_GETFL, 0); in SetSocketNonBlock() 55 if (fcntl(fd, F_SETFL, (unsigned int)flag | O_NONBLOCK) < 0) { in SetSocketNonBlock()
|
/ohos5.0/base/sensors/medical_sensor/utils/src/ |
H A D | medical_basic_data_channel.cpp | 72 ret = fcntl(socketPair[0], F_SETFL, O_NONBLOCK); in CreateSensorBasicChannel() 77 ret = fcntl(socketPair[1], F_SETFL, O_NONBLOCK); in CreateSensorBasicChannel()
|
/ohos5.0/base/sensors/sensor/utils/common/src/ |
H A D | sensor_basic_data_channel.cpp | 80 if (fcntl(socketPair[0], F_SETFL, O_NONBLOCK) != 0) { in CreateSensorBasicChannel() 84 if (fcntl(socketPair[1], F_SETFL, O_NONBLOCK) != 0) { in CreateSensorBasicChannel()
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/ |
H A D | mock_wpa_ctrl.cpp | 132 int flags = fcntl(fd, F_GETFL, 0); in SetNonBlock() 137 fcntl(fd, F_SETFL, flags); in SetNonBlock()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/ |
H A D | child.rs | 108 let mut flags = libc::fcntl(fd, libc::F_GETFL); in set_nonblock() 117 match libc::fcntl(fd, libc::F_SETFL, flags) { in set_nonblock()
|