Home
last modified time | relevance | path

Searched refs:fcntl (Results 1 – 25 of 127) sorted by relevance

123456

/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/
H A Dsemaphore_linux.c90 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 Dsocket_exec_common.h30 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 Dnetsys_tcp_client.c30 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 Dcppcrash_reporter.cpp131 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 Dvpn_interface.cpp40 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 Dle_utils.c21 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 Drs_profiler_socket.cpp66 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 Dsys.rs37 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 Dnet.c32 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 Dsys_dfile.c43 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 Dsocket.rs41 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 Dsoftbus_session.cpp38 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 Dguidance-on-ndk-libc-interfaces-affected-by-permissions.md45 | 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 Dsys_socket.c46 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 Dpreferences_file_lock.cpp67 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 Ddns_proxy_listen_test.cpp91 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 Draw_socket.cpp52 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 Ddelegate_tasks.cpp66 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 Dfault_logger_pipe.cpp93 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 Dsys_event.c121 flags = fcntl(node->pipeFd[i], F_GETFL, 0); in CreateNonBlockPipe()
129 ret = fcntl(node->pipeFd[i], F_SETFL, flags); in CreateNonBlockPipe()
H A Dsys_socket.c49 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 Dmedical_basic_data_channel.cpp72 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 Dsensor_basic_data_channel.cpp80 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 Dmock_wpa_ctrl.cpp132 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 Dchild.rs108 let mut flags = libc::fcntl(fd, libc::F_GETFL); in set_nonblock()
117 match libc::fcntl(fd, libc::F_SETFL, flags) { in set_nonblock()

123456