/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/contrib/capsicum-test/ |
H A D | fcntl.cc | 192 EXPECT_EQ(0, CHECK_FCNTL(CAP_FCNTL, caps, F_SETFL, fd_flag)); in TEST() 270 EXPECT_NOTCAPABLE(fcntl(fd, F_SETFL, fd_flag)); in TEST() 333 EXPECT_OK(fcntl(fd, F_SETFL, fd_flag)); in TEST() 339 EXPECT_OK(fcntl(fd, F_SETFL, fd_flag)); in TEST() 350 EXPECT_OK(fcntl(fd_set, F_SETFL, fd_flag)); in TEST() 351 EXPECT_NOTCAPABLE(fcntl(fd_get, F_SETFL, fd_flag)); in TEST() 358 EXPECT_NOTCAPABLE(fcntl(fd, F_SETFL, fd_flag)); in TEST()
|
/freebsd/tests/sys/file/ |
H A D | fcntlflags_test.c | 63 if (fcntl(fd, F_SETFL, flags1) == -1) in subtests() 79 if (fcntl(fd, F_SETFL, flags2 | O_NONBLOCK) == -1) in subtests()
|
/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() 341 fcntl(data->child_stdout, F_SETFL, 0); in __archive_write_program_close()
|
H A D | filter_fork_posix.c | 174 fcntl(*child_stdin, F_SETFL, O_NONBLOCK); in __archive_create_child() 176 fcntl(*child_stdout, F_SETFL, O_NONBLOCK); in __archive_create_child()
|
/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/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()
|
H A D | unix_stream.c | 148 ATF_REQUIRE(fcntl(sv[0], F_SETFL, O_NONBLOCK) != -1); in ATF_TC_BODY() 151 ATF_REQUIRE(fcntl(sv[0], F_SETFL, 0) != -1); in ATF_TC_BODY()
|
/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/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/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/blocklist/port/ |
H A D | popenve.c | 107 fcntl(pdes[0], F_SETFL, fcntl(pdes[0], F_GETFL) | flags); in pdes_get() 108 fcntl(pdes[1], F_SETFL, fcntl(pdes[1], F_GETFL) | flags); in pdes_get()
|
/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/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()
|
/freebsd/bin/sh/ |
H A D | redir.c | 273 if (flags != -1 && fcntl(pip[1], F_SETFL, flags | O_NONBLOCK) != -1) { in openhere() 279 fcntl(pip[1], F_SETFL, flags); in openhere()
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | bio_sock.c | 322 # elif defined(F_GETFL) && defined(F_SETFL) && (defined(O_NONBLOCK) || defined(FNDELAY)) in BIO_socket_nbio() 343 ret = fcntl(s, F_SETFL, l); in BIO_socket_nbio()
|