Home
last modified time | relevance | path

Searched refs:O_NONBLOCK (Results 1 - 25 of 400) sorted by relevance

12345678910>>...16

/third_party/ltp/testcases/kernel/syscalls/inotify_init/
H A Dinotify_init1_02.c13 * O_NONBLOCK file status flag on the open file description referred
20 #define IN_NONBLOCK O_NONBLOCK
29 TST_EXP_EQ_LI(flags & O_NONBLOCK, 0); in run()
35 TST_EXP_EQ_LI(flags & O_NONBLOCK, O_NONBLOCK); in run()
/third_party/python/Lib/test/
H A Dtest_fcntl.py84 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
86 print('Status from fcntl with O_NONBLOCK: ', rv)
95 rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
97 print('Status from fcntl with O_NONBLOCK: ', rv)
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)
[all...]
/third_party/ltp/testcases/kernel/syscalls/pipe2/
H A Dpipe2_04.c9 * O_NONBLOCK is set or not.
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()
63 SAFE_PIPE2(fds, O_NONBLOCK); in setup()
67 if (!(flags & O_NONBLOCK)) in setup()
68 tst_brk(TCONF, "O_NONBLOCK flag must be set"); in setup()
/third_party/musl/porting/liteos_a/user/src/unistd/
H A Dpipe2.c19 if (flag & O_NONBLOCK) { in pipe2()
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 Dpipe2.c20 if (flag & O_NONBLOCK) { in pipe2()
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/node/deps/cares/src/lib/
H A Dares_event_wake_pipe.c70 if (pipe2(p->filedes, O_NONBLOCK | O_CLOEXEC) != 0) { in ares_pipeevent_init()
80 # ifdef O_NONBLOCK in ares_pipeevent_init()
85 val |= O_NONBLOCK; in ares_pipeevent_init()
91 val |= O_NONBLOCK; in ares_pipeevent_init()
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-pipe.c44 n = pipe2(pt->dummy_pipe_fds, O_NONBLOCK); in lws_plat_pipe_create()
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/ltp/testcases/kernel/syscalls/signalfd4/
H A Dsignalfd4_02.c64 #define SFD_NONBLOCK O_NONBLOCK
145 if (fl & O_NONBLOCK) { in main()
163 if ((fl & O_NONBLOCK) == 0) { in main()
/third_party/ltp/testcases/kernel/syscalls/timerfd/
H A Dtimerfd03.c63 #define TFD_NONBLOCK O_NONBLOCK
141 if (fl & O_NONBLOCK) { in main()
159 if ((fl & O_NONBLOCK) == 0) { in main()
/third_party/mbedtls/library/
H A Dnet_sockets.c326 if ((lwip_fcntl(ctx->fd, F_GETFL, 0) & O_NONBLOCK) != O_NONBLOCK) {
328 if ((fcntl(ctx->fd, F_GETFL) & O_NONBLOCK) != O_NONBLOCK) {
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/ltp/testcases/kernel/logging/kmsg/
H A Dkmsg01.c77 f = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in find_msg()
233 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_read_nonblock()
265 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_partial_read()
341 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_read_returns_first_message()
394 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_messages_overwritten()
483 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_seek()
484 fd2 = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_seek()
519 fd = SAFE_OPEN("/dev/kmsg", O_RDONLY | O_NONBLOCK); in test_seek()
/third_party/musl/porting/liteos_m/kernel/include/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/porting/liteos_a/kernel/include/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
21 #define O_NDELAY O_NONBLOCK
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/porting/liteos_m/user/include/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/porting/uniproton/kernel/include/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/ltp/testcases/kernel/syscalls/eventfd2/
H A Deventfd2_02.c11 * This test verifies that eventfd2 correctly set O_NONBLOCK flag on file when
26 TST_EXP_EXPR(!(flags & O_NONBLOCK), "O_NONBLOCK is not set"); in run()
31 TST_EXP_EXPR((flags & O_NONBLOCK), "O_NONBLOCK is set"); in run()
/third_party/musl/arch/aarch64/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/arch/generic/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/arch/m68k/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/arch/mipsn32/bits/
H A Dfcntl.h6 #define O_NONBLOCK 0200 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/arch/arm/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/arch/mips/bits/
H A Dfcntl.h6 #define O_NONBLOCK 0200 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/arch/mips64/bits/
H A Dfcntl.h6 #define O_NONBLOCK 0200 macro
20 #define O_NDELAY O_NONBLOCK
/third_party/musl/arch/powerpc/bits/
H A Dfcntl.h6 #define O_NONBLOCK 04000 macro
20 #define O_NDELAY O_NONBLOCK

Completed in 8 milliseconds

12345678910>>...16