Home
last modified time | relevance | path

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

1234567

/NextBSD/tools/regression/capsicum/syscalls/
HDcap_fcntls_limit.c63 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0); in fcntl_tests_0()
65 CHECK(fcntl(fd, F_SETFL, 0) == 0); in fcntl_tests_0()
87 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0); in fcntl_tests_0()
89 CHECK(fcntl(fd, F_SETFL, 0) == 0); in fcntl_tests_0()
111 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1); in fcntl_tests_0()
115 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_0()
146 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1); in fcntl_tests_0()
149 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_0()
195 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1); in fcntl_tests_1()
198 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_1()
[all …]
/NextBSD/tools/regression/sockets/kqueue/
HDkqueue.c272 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0) in main()
275 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0) in main()
302 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0) in main()
304 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0) in main()
323 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0) in main()
326 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0) in main()
347 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0) in main()
350 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0) in main()
/NextBSD/contrib/gdb/gdb/
HDinflow.c236 result = fcntl (0, F_SETFL, tflags_inferior); in terminal_inferior()
237 result = fcntl (0, F_SETFL, tflags_inferior); in terminal_inferior()
409 result = fcntl (0, F_SETFL, tflags_ours); in terminal_ours_1()
410 result = fcntl (0, F_SETFL, tflags_ours); in terminal_ours_1()
667 fcntl (target_activity_fd, F_SETFL, old_fcntl_flags | FASYNC); in set_sigio_trap()
677 fcntl (target_activity_fd, F_SETFL, old_fcntl_flags); in clear_sigio_trap()
/NextBSD/contrib/ntp/libntp/
HDsocket.c146 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) { in make_socket_nonblocking()
152 if (fcntl(fd, F_SETFL, FNDELAY) < 0) { in make_socket_nonblocking()
158 if (fcntl(fd, F_SETFL, O_NDELAY) < 0) { in make_socket_nonblocking()
HDiosignal.c155 if (fcntl(rio->fd, F_SETFL, FNDELAY|FASYNC) < 0) in init_clock_sig()
189 if (fcntl(rio->fd, F_SETFL, FNDELAY|FASYNC) < 0) in init_clock_sig()
241 if (fcntl(fd, F_SETFL, flags|FASYNC) < 0) in init_socket_sig()
/NextBSD/tests/sys/file/
HDfcntlflags_test.c65 if (fcntl(fd, F_SETFL, flags1) == -1) in subtests()
81 if (fcntl(fd, F_SETFL, flags2 | O_NONBLOCK) == -1) in subtests()
/NextBSD/contrib/ipfilter/samples/
HDrelay.c182 (void) ioctl(fd, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
183 (void) ioctl(0, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
184 (void) ioctl(1, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
/NextBSD/tools/regression/netinet/tcpfullwindowrst/
HDtcpfullwindowrsttest.c97 fcntl(t, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK); in main()
98 fcntl(u, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK); in main()
/NextBSD/contrib/libarchive/libarchive/
HDarchive_write_add_filter_program.c276 fcntl(data->child_stdout, F_SETFL, 0); in child_write()
283 fcntl(data->child_stdin, F_SETFL, 0); in child_write()
298 fcntl(data->child_stdin, F_SETFL, 0); in child_write()
362 fcntl(data->child_stdout, F_SETFL, 0); in __archive_write_program_close()
HDfilter_fork_posix.c175 fcntl(*child_stdin, F_SETFL, O_NONBLOCK); in __archive_create_child()
177 fcntl(*child_stdout, F_SETFL, O_NONBLOCK); in __archive_create_child()
/NextBSD/contrib/xz/src/xz/
HDfile_io.c93 if (flags == -1 || fcntl(user_abort_pipe[i], F_SETFL, in io_init()
416 && fcntl(STDIN_FILENO, F_SETFL, in io_open_src_real()
670 if (fcntl(STDIN_FILENO, F_SETFL, stdin_flags) == -1) in io_close_src()
727 && fcntl(STDOUT_FILENO, F_SETFL, in io_open_dest_real()
844 if (fcntl(STDOUT_FILENO, F_SETFL, flags) == -1) in io_open_dest_real()
897 if (fcntl(STDOUT_FILENO, F_SETFL, stdout_flags) == -1) { in io_close_dest()
/NextBSD/contrib/netbsd-tests/net/net/
HDt_tcp.c118 ok = fcntl(srvr, F_SETFL, fl & ~O_NONBLOCK); in paccept_block()
134 ok = fcntl(as, F_SETFL, fl & ~O_NONBLOCK); in paccept_block()
/NextBSD/usr.sbin/ppp/
HDprompt.c426 fcntl(fd, F_SETFL, stat); in prompt_TtyInit()
465 fcntl(p->fd_in, F_SETFL, stat); in prompt_TtyCommandMode()
485 fcntl(p->fd_in, F_SETFL, stat); in prompt_TtyTermMode()
498 fcntl(p->fd_in, F_SETFL, stat); in prompt_TtyOldMode()
/NextBSD/tools/regression/sockets/accept_fd_leak/
HDaccept_fd_leak.c114 if (fcntl(s, F_SETFL, i) != 0) in main()
181 if (fcntl(s, F_SETFL, i) != 0) in main()
/NextBSD/contrib/ntp/lib/isc/win32/
HDunistd.h27 #define F_SETFL 0 macro
/NextBSD/contrib/apr/file_io/unix/
HDpipe.c52 if (fcntl(thepipe->filedes, F_SETFL, fd_flags) == -1) { in pipeblock()
87 if (fcntl(thepipe->filedes, F_SETFL, fd_flags) == -1) { in pipenonblock()
/NextBSD/tools/tools/netrate/tcpp/
HDtcpp_server.c89 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) in tcpp_server_newconn()
254 if (fcntl(listen_sock, F_SETFL, O_NONBLOCK) < 0) in tcpp_server_worker()
/NextBSD/bin/sh/
HDredir.c270 if (flags != -1 && fcntl(pip[1], F_SETFL, flags | O_NONBLOCK) != -1) { in openhere()
276 fcntl(pip[1], F_SETFL, flags); in openhere()
/NextBSD/contrib/wpa/src/wps/
HDhttp_server.c255 if (fcntl(srv->fd, F_SETFL, O_NONBLOCK) < 0) in http_server_init()
281 fcntl(srv->fd, F_SETFL, O_NONBLOCK) < 0 || in http_server_init()
/NextBSD/tests/sys/kern/pipe/
HDbig_pipe_test.c57 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) { in main()
/NextBSD/tools/tools/netrate/tcpconnect/
HDtcpconnect.c86 if (fcntl(s, F_SETFL, FIONBIO, &i) < 0) in try_connect()
/NextBSD/contrib/libreadline/
HDinput.c213 fcntl (tty, F_SETFL, (tem | O_NDELAY)); in rl_gather_tyi()
216 fcntl (tty, F_SETFL, tem); in rl_gather_tyi()
/NextBSD/tools/regression/sockets/listenclose/
HDlistenclose.c95 if (fcntl(connect_sock, F_SETFL, &arg) < 0) in main()
/NextBSD/usr.sbin/asl/
HDklog_in.c105 if (fcntl(kfd, F_SETFL, O_NONBLOCK) < 0) in klog_in_init()
/NextBSD/usr.sbin/bhyve/
HDdbgport.c78 fcntl(conn_fd, F_SETFL, O_NONBLOCK); in dbg_handler()

1234567