/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/ |
H A D | semaphore_linux.c | 17 #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 D | socket_exec_common.h | 20 #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 D | vpn_interface.cpp | 19 #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 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()
|
/foundation/communication/wifi/wifi/base/cRPC/src/ |
H A D | net.c | 17 #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 D | rs_profiler_socket.cpp | 18 #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 D | softbus_session.cpp | 19 #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 D | sys_dfile.c | 43 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 D | udp_server_demo.cpp | 19 #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 D | raw_socket.cpp | 20 #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 D | preferences_file_lock.cpp | 19 #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 D | file_utils.cpp | 20 #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 D | rspipelinerender_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/render/rspixelmapshader_fuzzer/ |
H A D | rspixelmapshader_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsbaserendernode_fuzzer/ |
H A D | rsbaserendernode_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsbasecommon_fuzzer/ |
H A D | rsbasecommon_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rslistenedcanvas_fuzzer/ |
H A D | rslistenedcanvas_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsoverdrawcontroller_fuzzer/ |
H A D | rsoverdrawcontroller_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscommand_fuzzer/ |
H A D | rscommand_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsrenderimage_fuzzer/ |
H A D | rsrenderimage_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsinterfaces_fuzzer/ |
H A D | rsinterfaces_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/ui/rsnode_fuzzer/ |
H A D | rsnode_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/ui/rsuisurface_fuzzer/ |
H A D | rsuisurface_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/utils/color_manager/test/fuzztest/colormanager_fuzzer/ |
H A D | colormanager_fuzzer.h | 21 #include <fcntl.h>
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rspropertyclient_fuzzer/ |
H A D | rspropertyclient_fuzzer.h | 21 #include <fcntl.h>
|