Home
last modified time | relevance | path

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

12345678910

/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.py82 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
93 rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
103 fcntl.fcntl(-1, fcntl.F_SETFL, os.O_NONBLOCK)
105 fcntl.fcntl(BadFile(-1), fcntl.F_SETFL, os.O_NONBLOCK)
107 fcntl.fcntl('spam', fcntl.F_SETFL, os.O_NONBLOCK)
109 fcntl.fcntl(BadFile('spam'), fcntl.F_SETFL, os.O_NONBLOCK)
116 fcntl.fcntl(INT_MAX + 1, fcntl.F_SETFL, os.O_NONBLOCK)
118 fcntl.fcntl(BadFile(INT_MAX + 1), fcntl.F_SETFL, os.O_NONBLOCK)
120 fcntl.fcntl(INT_MIN - 1, fcntl.F_SETFL, os.O_NONBLOCK)
122 fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, os.O_NONBLOCK)
/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()
/external/curl/lib/
Dnonblock.c61 return sfcntl(sockfd, F_SETFL, flags | O_NONBLOCK); in curlx_nonblock()
62 return sfcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK)); in curlx_nonblock()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dendpoint_pair_posix.cc48 GPR_ASSERT(fcntl(sv[0], F_SETFL, flags | O_NONBLOCK) == 0); in create_sockets()
50 GPR_ASSERT(fcntl(sv[1], F_SETFL, flags | O_NONBLOCK) == 0); in create_sockets()
/external/grpc-grpc/src/core/lib/iomgr/
Dendpoint_pair_posix.cc45 GPR_ASSERT(fcntl(sv[0], F_SETFL, flags | O_NONBLOCK) == 0); in create_sockets()
47 GPR_ASSERT(fcntl(sv[1], F_SETFL, flags | O_NONBLOCK) == 0); in create_sockets()
/external/perfetto/src/base/
Dpipe.cc58 PERFETTO_CHECK(fcntl(*p.rd, F_SETFL, cur_flags | O_NONBLOCK) == 0); in Create()
64 PERFETTO_CHECK(fcntl(*p.wr, F_SETFL, cur_flags | O_NONBLOCK) == 0); in Create()
/external/mesa3d/src/util/
Dos_socket.c76 fcntl(s, F_SETFL, old & ~O_NONBLOCK); in os_socket_block()
78 fcntl(s, F_SETFL, old | O_NONBLOCK); in os_socket_block()
/external/libcups/scheduler/
Dcups-exec.c117 fcntl(3, F_SETFL, O_NDELAY); in main()
118 fcntl(4, F_SETFL, O_NDELAY); in main()
/external/strace/xlat/
Dfcntlcmds.h34 #if defined(F_SETFL) || (defined(HAVE_DECL_F_SETFL) && HAVE_DECL_F_SETFL)
36 static_assert((F_SETFL) == (4), "F_SETFL != 4");
39 # define F_SETFL 4
403 XLAT(F_SETFL),
/external/libcups/backend/
Dtestbackend.c176 fcntl(back_fds[0], F_SETFL, fcntl(back_fds[0], F_GETFL) | O_NONBLOCK); in main()
177 fcntl(back_fds[1], F_SETFL, fcntl(back_fds[1], F_GETFL) | O_NONBLOCK); in main()
180 fcntl(side_fds[0], F_SETFL, fcntl(side_fds[0], F_GETFL) | O_NONBLOCK); in main()
181 fcntl(side_fds[1], F_SETFL, fcntl(side_fds[1], F_GETFL) | O_NONBLOCK); in main()
/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/grpc-grpc/test/core/end2end/fixtures/
Dh2_fd.cc46 GPR_ASSERT(fcntl(sv[0], F_SETFL, flags | O_NONBLOCK) == 0); in create_sockets()
48 GPR_ASSERT(fcntl(sv[1], F_SETFL, flags | O_NONBLOCK) == 0); in create_sockets()
/external/mesa3d/src/gallium/auxiliary/util/
Du_network.c189 fcntl(s, F_SETFL, old & ~O_NONBLOCK); in u_socket_block()
191 fcntl(s, F_SETFL, old | O_NONBLOCK); in u_socket_block()
/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/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/grpc-grpc/test/core/iomgr/
Dtcp_posix_test.cc69 GPR_ASSERT(fcntl(sv[0], F_SETFL, flags | O_NONBLOCK) == 0); in create_sockets()
71 GPR_ASSERT(fcntl(sv[1], F_SETFL, flags | O_NONBLOCK) == 0); in create_sockets()
106 GPR_ASSERT(fcntl(sv[0], F_SETFL, flags | O_NONBLOCK) == 0); in create_inet_sockets()
108 GPR_ASSERT(fcntl(sv[1], F_SETFL, flags | O_NONBLOCK) == 0); in create_inet_sockets()
352 GPR_ASSERT(fcntl(fd, F_SETFL, flags & ~O_NONBLOCK) == 0); in drain_socket_blocking()
377 GPR_ASSERT(fcntl(fd, F_SETFL, flags | O_NONBLOCK) == 0); in drain_socket_blocking()
Dfd_posix_test.cc74 GPR_ASSERT(fcntl(fd, F_SETFL, flags | O_NONBLOCK) == 0); in create_test_socket()
204 fcntl(fd, F_SETFL, flags | O_NONBLOCK); in listen_cb()
453 GPR_ASSERT(fcntl(sv[0], F_SETFL, flags | O_NONBLOCK) == 0); in test_grpc_fd_change()
455 GPR_ASSERT(fcntl(sv[1], F_SETFL, flags | O_NONBLOCK) == 0); in test_grpc_fd_change()
/external/crosvm/seccomp/x86_64/
Dgpu_device.policy52 arg1 == F_SETFL
80 # fcntl: arg1 == F_SETFD || arg1 == F_GETFL || arg1 == F_SETFL (merged above)
/external/rust/crates/mio/src/sys/unix/uds/
Dmod.rs95 syscall!(fcntl(fds[0], libc::F_SETFL, libc::O_NONBLOCK))?;
97 syscall!(fcntl(fds[1], libc::F_SETFL, libc::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/iperf3/src/
Dnet.c91 if (fcntl(s, F_SETFL, flags | O_NONBLOCK) == -1) in timeout_connect()
112 if (timeout != -1 && fcntl(s, F_SETFL, flags) == -1) in timeout_connect()
472 if (fcntl(fd, F_SETFL, newflags) < 0) { in setnonblocking()
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnetutil.cc61 return fcntl(fd, F_SETFL, flags) != -1; in setBlocking()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc99 if (fcntl(control_pipe[0], F_SETFL, O_NONBLOCK)) in Start()
146 if (fcntl(fds[1], F_SETFL, O_NONBLOCK)) in CreateReportChannel()
/external/adhd/cras/src/common/
Dcras_util.c83 return fcntl(fd, F_SETFL, fl | O_NONBLOCK); in cras_make_fd_nonblocking()
95 return fcntl(fd, F_SETFL, fl & ~O_NONBLOCK); in cras_make_fd_blocking()

12345678910