/third_party/python/Lib/test/ |
H A D | test_fcntl.py | 84 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 D | fcntl01.c | 6 * 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 D | pipe2.c | 20 __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 D | pipe2.c | 21 __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 D | nonblock.c | 54 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 D | socketpair.c | 23 __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 D | unix-pipe.c | 53 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 D | os_socket.c | 76 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 D | pipe12.c | 103 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 D | pipe2_04.c | 32 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 D | kill02.c | 727 || (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 D | ares_event_wake_pipe.c | 87 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 D | test-common.c | 52 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 D | tomoyo_rewrite_test.c | 109 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 D | u_network.c | 189 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 D | net_sockets.c | 468 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 D | fcntl.h | 26 #define F_SETFL 4 macro
|
/third_party/musl/porting/liteos_a/kernel/include/bits/ |
H A D | fcntl.h | 31 #define F_SETFL 4 macro
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/ |
H A D | fcntl.h | 26 #define F_SETFL 4 macro
|
/third_party/musl/porting/liteos_m/user/include/bits/ |
H A D | fcntl.h | 26 #define F_SETFL 4 macro
|
/third_party/musl/porting/uniproton/kernel/include/bits/ |
H A D | fcntl.h | 26 #define F_SETFL 4 macro
|
/third_party/musl/arch/aarch64/bits/ |
H A D | fcntl.h | 26 #define F_SETFL 4 macro
|
/third_party/musl/arch/generic/bits/ |
H A D | fcntl.h | 26 #define F_SETFL 4 macro
|
/third_party/musl/arch/m68k/bits/ |
H A D | fcntl.h | 26 #define F_SETFL 4 macro
|
/third_party/musl/arch/mipsn32/bits/ |
H A D | fcntl.h | 26 #define F_SETFL 4 macro
|