Home
last modified time | relevance | path

Searched refs:F_SETFL (Results 1 – 25 of 174) sorted by relevance

1234567

/external/python/cpython2/Lib/test/
Dtest_fcntl.py73 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
85 rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
92 fcntl.fcntl(-1, fcntl.F_SETFL, os.O_NONBLOCK)
94 fcntl.fcntl(BadFile(-1), fcntl.F_SETFL, os.O_NONBLOCK)
96 fcntl.fcntl('spam', fcntl.F_SETFL, os.O_NONBLOCK)
98 fcntl.fcntl(BadFile('spam'), fcntl.F_SETFL, os.O_NONBLOCK)
105 fcntl.fcntl(INT_MAX + 1, fcntl.F_SETFL, os.O_NONBLOCK)
107 fcntl.fcntl(BadFile(INT_MAX + 1), fcntl.F_SETFL, os.O_NONBLOCK)
109 fcntl.fcntl(INT_MIN - 1, fcntl.F_SETFL, os.O_NONBLOCK)
111 fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, os.O_NONBLOCK)
/external/python/cpython3/Lib/test/
Dtest_fcntl.py67 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
78 rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
88 fcntl.fcntl(-1, fcntl.F_SETFL, os.O_NONBLOCK)
90 fcntl.fcntl(BadFile(-1), fcntl.F_SETFL, os.O_NONBLOCK)
92 fcntl.fcntl('spam', fcntl.F_SETFL, os.O_NONBLOCK)
94 fcntl.fcntl(BadFile('spam'), fcntl.F_SETFL, os.O_NONBLOCK)
101 fcntl.fcntl(INT_MAX + 1, fcntl.F_SETFL, os.O_NONBLOCK)
103 fcntl.fcntl(BadFile(INT_MAX + 1), fcntl.F_SETFL, os.O_NONBLOCK)
105 fcntl.fcntl(INT_MIN - 1, fcntl.F_SETFL, os.O_NONBLOCK)
107 fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, os.O_NONBLOCK)
/external/libmojo/mojo/edk/test/
Dtest_utils_posix.cc23 fcntl(handle.handle, F_SETFL, original_flags & (~O_NONBLOCK)) != 0) { in BlockingWrite()
29 fcntl(handle.handle, F_SETFL, original_flags); in BlockingWrite()
44 fcntl(handle.handle, F_SETFL, original_flags & (~O_NONBLOCK)) != 0) { in BlockingRead()
50 fcntl(handle.handle, F_SETFL, original_flags); in BlockingRead()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl01.c102 if (fcntl(fd[2], F_SETFL, O_NDELAY) == -1) in main()
111 if (fcntl(fd[2], F_SETFL, O_APPEND) == -1) in main()
120 if (fcntl(fd[2], F_SETFL, O_NDELAY | O_APPEND) < 0) in main()
130 if (fcntl(fd[2], F_SETFL, 0) == -1) in main()
Dfcntl08.c67 TEST(fcntl(fd, F_SETFL, O_NDELAY | O_APPEND | O_NONBLOCK)); in main()
/external/honggfuzz/examples/linux_kernel_ip/
Dtun.c158 if (fcntl(fd, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
161 if (fcntl(tcp_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
164 if (fcntl(udp_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
167 if (fcntl(sctp_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
170 if (fcntl(udp_lite_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
/external/strace/xlat/
Dfcntlcmds.h14 #if !(defined(F_SETFL) || (defined(HAVE_DECL_F_SETFL) && HAVE_DECL_F_SETFL))
15 # define F_SETFL 4 macro
97 XLAT(F_SETFL),
Dfcntlcmds.in6 F_SETFL 4
/external/curl/lib/
Dnonblock.c60 return sfcntl(sockfd, F_SETFL, flags | O_NONBLOCK); in curlx_nonblock()
61 return sfcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK)); in curlx_nonblock()
/external/ltp/testcases/kernel/syscalls/kill/
Dkill02.c727 || (fcntl(pipe1_fd[0], F_SETFL, O_NDELAY) == -1)) { in setup()
733 || (fcntl(pipe2_fd[0], F_SETFL, O_NDELAY) == -1)) { in setup()
739 || (fcntl(pipeA_fd[0], F_SETFL, O_NDELAY) == -1)) { in setup()
745 || (fcntl(pipeB_fd[0], F_SETFL, O_NDELAY) == -1)) { in setup()
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_rewrite_test.c110 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND)); in stage_rewrite_test()
154 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND)); in stage_rewrite_test()
/external/libmojo/mojo/edk/embedder/
Dplatform_channel_pair_posix.cc71 PCHECK(fcntl(fds[0], F_SETFL, O_NONBLOCK) == 0); in PlatformChannelPair()
73 PCHECK(fcntl(fds[1], F_SETFL, O_NONBLOCK) == 0); in PlatformChannelPair()
/external/mesa3d/src/gallium/auxiliary/util/
Du_network.c182 fcntl(s, F_SETFL, old & ~O_NONBLOCK); in u_socket_block()
184 fcntl(s, F_SETFL, old | O_NONBLOCK); in u_socket_block()
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/
Dpipe_select_interrupter.ipp43 ::fcntl(read_descriptor_, F_SETFL, O_NONBLOCK);
45 ::fcntl(write_descriptor_, F_SETFL, O_NONBLOCK);
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_nonblock.c117 error = fcntl(lstn_sk, F_SETFL, sflag | O_NONBLOCK); in main()
137 error = fcntl(sk, F_SETFL, sflag | O_NONBLOCK); in main()
/external/adhd/cras/src/common/
Dcras_util.c82 return fcntl(fd, F_SETFL, fl | O_NONBLOCK); in cras_make_fd_nonblocking()
94 return fcntl(fd, F_SETFL, fl & ~O_NONBLOCK); in cras_make_fd_blocking()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc99 if (fcntl(control_pipe[0], F_SETFL, O_NONBLOCK)) in Start()
143 if (fcntl(fds[1], F_SETFL, O_NONBLOCK)) in CreateReportChannel()
/external/devlib/devlib/instrument/
Dacmecape.py7 from fcntl import fcntl, F_GETFL, F_SETFL
24 fcntl(fd, F_SETFL, flags)
/external/libdaemon/libdaemon/
Ddnonblock.c48 return fcntl(fd, F_SETFL, c); in daemon_nonblock()
/external/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd01.c253 fcntl(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) | O_NONBLOCK); in main()
265 fcntl(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) & ~O_NONBLOCK); in main()
/external/libchrome/base/
Dsync_socket_posix.cc229 fcntl(handle_, F_SETFL, flags | O_NONBLOCK); in Send()
236 fcntl(handle_, F_SETFL, flags); in Send()
/external/libusb/libusb/os/
Dpoll_posix.c41 ret = fcntl(pipefd[1], F_SETFL, ret | O_NONBLOCK); in usbi_pipe()
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnetutil.cc62 return fcntl(fd, F_SETFL, flags) != -1; in setBlocking()
/external/valgrind/memcheck/tests/linux/
Dtimerfd-syscall.c300 fcntl(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) | O_NONBLOCK); in main()
310 fcntl(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) & ~O_NONBLOCK); in main()
/external/valgrind/auxprogs/
Dvalgrind-listener.c113 res = fcntl(sd, F_SETFL, res | O_NONBLOCK); in set_nonblocking()
124 res = fcntl(sd, F_SETFL, res & ~O_NONBLOCK); in set_blocking()

1234567