Home
last modified time | relevance | path

Searched refs:F_SETFL (Results 1 - 25 of 222) sorted by relevance

123456789

/third_party/python/Lib/test/
H A Dtest_fcntl.py84 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
95 rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
105 fcntl.fcntl(-1, fcntl.F_SETFL, os.O_NONBLOCK)
107 fcntl.fcntl(BadFile(-1), fcntl.F_SETFL, os.O_NONBLOCK)
109 fcntl.fcntl('spam', fcntl.F_SETFL, os.O_NONBLOCK)
111 fcntl.fcntl(BadFile('spam'), fcntl.F_SETFL, os.O_NONBLOCK)
118 fcntl.fcntl(INT_MAX + 1, fcntl.F_SETFL, os.O_NONBLOCK)
120 fcntl.fcntl(BadFile(INT_MAX + 1), fcntl.F_SETFL, os.O_NONBLOCK)
122 fcntl.fcntl(INT_MIN - 1, fcntl.F_SETFL, os.O_NONBLOCK)
124 fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, o
[all...]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl01.c6 * Test F_DUPFD, F_SETFL cmds of fcntl
16 * 2. Checking F_SETFL cmd with each valid flag (O_NDELAY, O_APPEND).
103 if (fcntl(fd[2], F_SETFL, O_NDELAY) == -1) in main()
112 if (fcntl(fd[2], F_SETFL, O_APPEND) == -1) in main()
121 if (fcntl(fd[2], F_SETFL, O_NDELAY | O_APPEND) < 0) in main()
131 if (fcntl(fd[2], F_SETFL, 0) == -1) in main()
/third_party/musl/porting/liteos_a/user/src/unistd/
H A Dpipe2.c20 __syscall(SYS_fcntl, fd[0], F_SETFL, O_NONBLOCK); in pipe2()
21 __syscall(SYS_fcntl, fd[1], F_SETFL, O_NONBLOCK); in pipe2()
/third_party/musl/src/unistd/
H A Dpipe2.c21 __syscall(SYS_fcntl, fd[0], F_SETFL, O_NONBLOCK); in pipe2()
22 __syscall(SYS_fcntl, fd[1], F_SETFL, O_NONBLOCK); in pipe2()
/third_party/curl/lib/
H A Dnonblock.c54 return sfcntl(sockfd, F_SETFL, flags | O_NONBLOCK); in curlx_nonblock()
55 return sfcntl(sockfd, F_SETFL, flags & (~O_NONBLOCK)); in curlx_nonblock()
/third_party/musl/src/network/
H A Dsocketpair.c23 __syscall(SYS_fcntl, fd[0], F_SETFL, O_NONBLOCK); in socketpair()
24 __syscall(SYS_fcntl, fd[1], F_SETFL, O_NONBLOCK); in socketpair()
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-pipe.c53 if (fcntl(pt->dummy_pipe_fds[0], F_SETFL, O_NONBLOCK) < 0) in lws_plat_pipe_create()
56 if (fcntl(pt->dummy_pipe_fds[1], F_SETFL, O_NONBLOCK) < 0) in lws_plat_pipe_create()
/third_party/mesa3d/src/util/
H A 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()
/third_party/ltp/testcases/kernel/syscalls/pipe/
H A Dpipe12.c103 SAFE_FCNTL(fds[1], F_SETFL, O_NONBLOCK); in setup()
104 SAFE_FCNTL(fds[0], F_SETFL, O_NONBLOCK); in setup()
/third_party/ltp/testcases/kernel/syscalls/pipe2/
H A Dpipe2_04.c32 SAFE_FCNTL(fds[1], F_SETFL, flags | O_NONBLOCK); in test_pipe2()
45 SAFE_FCNTL(fds[1], F_SETFL, flags & ~O_NONBLOCK); in test_pipe2()
/third_party/ltp/testcases/kernel/syscalls/kill/
H A 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()
/third_party/node/deps/cares/src/lib/
H A Dares_event_wake_pipe.c87 fcntl(p->filedes[0], F_SETFL, val); in ares_pipeevent_init()
93 fcntl(p->filedes[1], F_SETFL, val); in ares_pipeevent_init()
/third_party/libevdev/test/
H A Dtest-common.c52 rc = fcntl(fd, F_SETFL, O_NONBLOCK); in test_create_device()
97 rc = fcntl(fd, F_SETFL, O_NONBLOCK); in test_create_abs_device()
/third_party/ltp/testcases/kernel/security/tomoyo/
H A Dtomoyo_rewrite_test.c109 show_prompt("fcntl(F_SETFL, ~O_APPEND)"); in stage_rewrite_test()
110 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND)); in stage_rewrite_test()
153 show_prompt("fcntl(F_SETFL, ~O_APPEND)"); in stage_rewrite_test()
154 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND)); in stage_rewrite_test()
/third_party/mesa3d/src/gallium/auxiliary/util/
H A 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()
/third_party/mbedtls/library/
H A Dnet_sockets.c468 return lwip_fcntl(ctx->fd, F_SETFL, lwip_fcntl(ctx->fd, F_GETFL, 0) & ~O_NONBLOCK);
470 return fcntl(ctx->fd, F_SETFL, fcntl(ctx->fd, F_GETFL) & ~O_NONBLOCK);
483 return lwip_fcntl(ctx->fd, F_SETFL, lwip_fcntl(ctx->fd, F_GETFL, 0) | O_NONBLOCK);
485 return fcntl(ctx->fd, F_SETFL, fcntl(ctx->fd, F_GETFL) | O_NONBLOCK);
/third_party/musl/porting/liteos_m/kernel/include/bits/
H A Dfcntl.h26 #define F_SETFL 4 macro
/third_party/musl/porting/liteos_a/kernel/include/bits/
H A Dfcntl.h31 #define F_SETFL 4 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/
H A Dfcntl.h26 #define F_SETFL 4 macro
/third_party/musl/porting/liteos_m/user/include/bits/
H A Dfcntl.h26 #define F_SETFL 4 macro
/third_party/musl/porting/uniproton/kernel/include/bits/
H A Dfcntl.h26 #define F_SETFL 4 macro
/third_party/musl/arch/aarch64/bits/
H A Dfcntl.h26 #define F_SETFL 4 macro
/third_party/musl/arch/generic/bits/
H A Dfcntl.h26 #define F_SETFL 4 macro
/third_party/musl/arch/m68k/bits/
H A Dfcntl.h26 #define F_SETFL 4 macro
/third_party/musl/arch/mipsn32/bits/
H A Dfcntl.h26 #define F_SETFL 4 macro

Completed in 10 milliseconds

123456789