| /freebsd/tools/regression/capsicum/syscalls/ |
| H A D | cap_fcntls_limit.c | 59 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0); in fcntl_tests_0() 61 CHECK(fcntl(fd, F_SETFL, 0) == 0); in fcntl_tests_0() 83 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0); in fcntl_tests_0() 85 CHECK(fcntl(fd, F_SETFL, 0) == 0); in fcntl_tests_0() 107 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1); in fcntl_tests_0() 111 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_0() 142 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1); in fcntl_tests_0() 145 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_0() 194 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1); in fcntl_tests_1() 197 CHECK(fcntl(fd, F_SETFL, in fcntl_tests_1() [all...] |
| /freebsd/tools/regression/sockets/kqueue/ |
| H A D | kqueue.c | 270 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0) in main() 273 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0) in main() 300 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0) in main() 302 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0) in main() 321 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0) in main() 324 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0) in main() 345 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0) in main() 348 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0) in main()
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | socket.c | 146 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()
|
| H A D | iosignal.c | 155 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()
|
| /freebsd/tests/sys/capsicum/ |
| H A D | fcntl.cc | 185 EXPECT_EQ(0, CHECK_FCNTL(CAP_FCNTL, caps, F_SETFL, fd_flag)); in TEST() 262 EXPECT_NOTCAPABLE(fcntl(fd, F_SETFL, fd_flag)); in TEST() 325 EXPECT_OK(fcntl(fd, F_SETFL, fd_flag)); in TEST() 331 EXPECT_OK(fcntl(fd, F_SETFL, fd_flag)); in TEST() 342 EXPECT_OK(fcntl(fd_set, F_SETFL, fd_flag)); in TEST() 343 EXPECT_NOTCAPABLE(fcntl(fd_get, F_SETFL, fd_flag)); in TEST() 350 EXPECT_NOTCAPABLE(fcntl(fd, F_SETFL, fd_flag)); in TEST()
|
| /freebsd/share/examples/ipfilter/samples/ |
| H A D | relay.c | 181 (void) ioctl(fd, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK); 182 (void) ioctl(0, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK); 183 (void) ioctl(1, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | fcntl.sh | 142 if ((flags = fcntl(fd, F_SETFL, flags)) == -1) 166 if ((flags = fcntl(fd, F_SETFL, flags)) == -1) 198 if ((flags = fcntl(fd, F_SETFL, flags)) == -1)
|
| H A D | socketpair2.sh | 181 || fcntl(s, F_SETFL, p | O_NONBLOCK) == -1 182 || fcntl(r, F_SETFL, p | O_NONBLOCK) == -1) {
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_program.c | 255 fcntl(data->child_stdout, F_SETFL, 0); in child_write() 262 fcntl(data->child_stdin, F_SETFL, 0); in child_write() 277 fcntl(data->child_stdin, F_SETFL, 0); in child_write() 342 fcntl(data->child_stdout, F_SETFL, 0); in __archive_write_program_close()
|
| H A D | filter_fork_posix.c | 203 fcntl(*child_stdin, F_SETFL, O_NONBLOCK); in __archive_create_child() 205 fcntl(*child_stdout, F_SETFL, O_NONBLOCK); in __archive_create_child()
|
| /freebsd/tools/regression/netinet/tcpfullwindowrst/ |
| H A D | tcpfullwindowrsttest.c | 95 fcntl(t, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK); in main() 96 fcntl(u, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK); in main()
|
| /freebsd/tests/sys/kern/ |
| H A D | sendfile_helper.c | 84 if (fcntl(sv[0], F_SETFL, flags) == -1) in tcp_socketpair() 96 if (fcntl(sv[0], F_SETFL, flags) == -1) in tcp_socketpair()
|
| /freebsd/tests/sys/file/ |
| H A D | fcntlflags_test.c | 56 ATF_REQUIRE_MSG(fcntl(fd, F_SETFL, flags1) != -1, in basic_tests() 64 ATF_REQUIRE_MSG(fcntl(fd, F_SETFL, flags2 | O_NONBLOCK) != -1, in basic_tests()
|
| /freebsd/usr.sbin/bhyve/ |
| H A D | uart_backend.c | 306 if (fcntl(conn_fd, F_SETFL, O_NONBLOCK) != 0) in uart_tcp_listener() 361 if (fcntl(sc->tty.rfd, F_SETFL, O_NONBLOCK) != 0) in uart_stdio_backend() 363 if (fcntl(sc->tty.wfd, F_SETFL, O_NONBLOCK) != 0) in uart_stdio_backend() 464 if (fcntl(bind_fd, F_SETFL, O_NONBLOCK) == -1) in uart_tcp_backend()
|
| /freebsd/contrib/netbsd-tests/net/net/ |
| H A D | t_tcp.c | 125 ok = fcntl(srvr, F_SETFL, fl & ~O_NONBLOCK); in paccept_block() 141 ok = fcntl(as, F_SETFL, fl & ~O_NONBLOCK); in paccept_block()
|
| /freebsd/tools/regression/sockets/accept_fd_leak/ |
| H A D | accept_fd_leak.c | 112 if (fcntl(s, F_SETFL, i) != 0) in main() 179 if (fcntl(s, F_SETFL, i) != 0) in main()
|
| /freebsd/contrib/xz/src/xz/ |
| H A D | file_io.c | 152 if (flags == -1 || fcntl(user_abort_pipe[i], F_SETFL, in io_init() 536 && fcntl(STDIN_FILENO, F_SETFL, in io_open_src_real() 819 if (fcntl(STDIN_FILENO, F_SETFL, stdin_flags) == -1) in io_close_src() 875 && fcntl(STDOUT_FILENO, F_SETFL, in io_open_dest_real() 1065 if (fcntl(STDOUT_FILENO, F_SETFL, flags) == -1) in io_open_dest_real() 1130 if (fcntl(STDOUT_FILENO, F_SETFL, stdout_flags) == -1) { in io_close_dest()
|
| /freebsd/usr.sbin/ppp/ |
| H A D | prompt.c | 426 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()
|
| /freebsd/contrib/blocklist/port/ |
| H A D | popenve.c | 109 fcntl(pdes[0], F_SETFL, fcntl(pdes[0], F_GETFL) | flags); in pdes_get() 110 fcntl(pdes[1], F_SETFL, fcntl(pdes[1], F_GETFL) | flags); in pdes_get()
|
| /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/ |
| H A D | fcntl-macros.h | 69 #define F_SETFL 4 macro
|
| /freebsd/contrib/sendmail/libsm/ |
| H A D | local.h | 170 if (ret == -1 || fcntl((fd), F_SETFL, \ 186 if (ret == -1 || fcntl((fd), F_SETFL, \
|
| /freebsd/cddl/usr.sbin/zfsd/ |
| H A D | zfsd.cc | 164 if (fcntl(s_signalPipeFD[0], F_SETFL, O_NONBLOCK) == -1) in ZfsDaemon() 167 if (fcntl(s_signalPipeFD[1], F_SETFL, O_NONBLOCK) == -1) in ZfsDaemon()
|
| /freebsd/tools/tools/netrate/tcpp/ |
| H A D | tcpp_server.c | 87 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) in tcpp_server_newconn() 252 if (fcntl(listen_sock, F_SETFL, O_NONBLOCK) < 0) in tcpp_server_worker()
|
| /freebsd/tests/sys/kern/pipe/ |
| H A D | big_pipe_test.c | 55 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) { in main()
|
| /freebsd/contrib/wpa/src/wps/ |
| H A D | http_server.c | 255 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()
|