Home
last modified time | relevance | path

Searched refs:fcntl (Results 1 - 25 of 907) sorted by relevance

12345678910>>...37

/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/
H A Dsemaphore_linux.c17 #include <fcntl.h>
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()
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/include/
H A Dsocket_exec_common.h20 #include <fcntl.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()
/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/
H A Dvpn_interface.cpp19 #include <fcntl.h>
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()
/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()
/foundation/communication/wifi/wifi/base/cRPC/src/
H A Dnet.c17 #include <fcntl.h>
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()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_socket.cpp18 #include <fcntl.h>
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()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_session.cpp19 #include "fcntl.h"
37 int32_t flags = fcntl(socketFd, F_GETFL, 0); in SoftbusSession()
44 ret = fcntl(socketFd, F_SETFL, flags); in SoftbusSession()
/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()
45 LOGE(TAG, "fcntl get flags failed: %d", errno); in CreateReceiverPipe()
50 int32_t ret = fcntl(session->receiverPipe[i], F_SETFL, flags); in CreateReceiverPipe()
52 LOGE(TAG, "fcntl set flags to non-blocking failed: %d", errno); in CreateReceiverPipe()
/foundation/CastEngine/castengine_wifi_display/tests/demo/network/
H A Dudp_server_demo.cpp19 #include <fcntl.h>
38 return fcntl(sockfd, F_SETFL, fcntl(sockfd, F_GETFL) | O_NONBLOCK); in setnonblocking()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Draw_socket.cpp20 #include <fcntl.h>
52 int ret = fcntl(fd, F_GETFL); in SetNonBlock()
58 return fcntl(fd, F_SETFL, flags); in SetNonBlock()
/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/
H A Dpreferences_file_lock.cpp19 #include <fcntl.h>
67 if (fcntl(fd_, F_SETLK, &fileLockInfo) != -1) { in PreferencesFileLock()
86 if (fcntl(fd_, F_SETLK, &fileLockInfo) == -1) { in ~PreferencesFileLock()
/foundation/filemanagement/dfs_service/utils/dentry/src/
H A Dfile_utils.cpp20 #include <fcntl.h>
92 if (fcntl(fd, F_SETLKW, &fl) < 0) { in FileRangeLock()
93 LOGE("fcntl set F_WRLCK failed: %{public}d", errno); in FileRangeLock()
110 if (fcntl(fd_, F_SETLKW, &fl) < 0) { in ~FileRangeLock()
111 LOGE("fcntl F_UNLCK failed: %{public}d", errno); in ~FileRangeLock()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/pipeline/rspipelinerender_fuzzer/
H A Drspipelinerender_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/render/rspixelmapshader_fuzzer/
H A Drspixelmapshader_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsbaserendernode_fuzzer/
H A Drsbaserendernode_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsbasecommon_fuzzer/
H A Drsbasecommon_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rslistenedcanvas_fuzzer/
H A Drslistenedcanvas_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsoverdrawcontroller_fuzzer/
H A Drsoverdrawcontroller_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscommand_fuzzer/
H A Drscommand_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsrenderimage_fuzzer/
H A Drsrenderimage_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsinterfaces_fuzzer/
H A Drsinterfaces_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/ui/rsnode_fuzzer/
H A Drsnode_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/ui/rsuisurface_fuzzer/
H A Drsuisurface_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/utils/color_manager/test/fuzztest/colormanager_fuzzer/
H A Dcolormanager_fuzzer.h21 #include <fcntl.h>
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rspropertyclient_fuzzer/
H A Drspropertyclient_fuzzer.h21 #include <fcntl.h>

Completed in 6 milliseconds

12345678910>>...37