Home
last modified time | relevance | path

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

12345678

/freebsd/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c60 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0); in fcntl_tests_0()
62 CHECK(fcntl(fd, F_SETFL, 0) == 0); in fcntl_tests_0()
86 CHECK(fcntl(fd, F_SETFL, 0) == 0); in fcntl_tests_0()
112 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_0()
146 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_0()
198 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_1()
245 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_2()
298 CHECK(fcntl(fd, F_SETFL, 0) == 0); in fcntl_tests_recv_0()
322 CHECK(fcntl(fd, F_SETFL, 0) == 0); in fcntl_tests_recv_0()
355 CHECK(fcntl(fd, F_SETFL, 0) == -1); in fcntl_tests_recv_0()
[all …]
/freebsd/tools/regression/sockets/kqueue/
H A Dkqueue.c270 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 Dsocket.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()
H A Diosignal.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()
/freebsd/contrib/capsicum-test/
H A Dfcntl.cc192 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 Dfcntlflags_test.c63 if (fcntl(fd, F_SETFL, flags1) == -1) in subtests()
79 if (fcntl(fd, F_SETFL, flags2 | O_NONBLOCK) == -1) in subtests()
/freebsd/tools/regression/netinet/tcpfullwindowrst/
H A Dtcpfullwindowrsttest.c95 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/share/examples/ipfilter/samples/
H A Drelay.c181 (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 Dfcntl.sh142 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 Dsocketpair2.sh181 || fcntl(s, F_SETFL, p | O_NONBLOCK) == -1
182 || fcntl(r, F_SETFL, p | O_NONBLOCK) == -1) {
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_program.c255 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 Dfilter_fork_posix.c174 fcntl(*child_stdin, F_SETFL, O_NONBLOCK); in __archive_create_child()
176 fcntl(*child_stdout, F_SETFL, O_NONBLOCK); in __archive_create_child()
/freebsd/tests/sys/kern/
H A Dsendfile_helper.c84 if (fcntl(sv[0], F_SETFL, flags) == -1) in tcp_socketpair()
96 if (fcntl(sv[0], F_SETFL, flags) == -1) in tcp_socketpair()
/freebsd/contrib/xz/src/xz/
H A Dfile_io.c128 if (flags == -1 || fcntl(user_abort_pipe[i], F_SETFL, in io_init()
472 && fcntl(STDIN_FILENO, F_SETFL, in io_open_src_real()
747 if (fcntl(STDIN_FILENO, F_SETFL, stdin_flags) == -1) in io_close_src()
803 && fcntl(STDOUT_FILENO, F_SETFL, in io_open_dest_real()
941 if (fcntl(STDOUT_FILENO, F_SETFL, flags) == -1) in io_open_dest_real()
994 if (fcntl(STDOUT_FILENO, F_SETFL, stdout_flags) == -1) { in io_close_dest()
/freebsd/contrib/netbsd-tests/net/net/
H A Dt_tcp.c125 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 Daccept_fd_leak.c112 if (fcntl(s, F_SETFL, i) != 0) in main()
179 if (fcntl(s, F_SETFL, i) != 0) in main()
/freebsd/usr.sbin/ppp/
H A Dprompt.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()
/freebsd/contrib/blocklist/port/
H A Dpopenve.c107 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 Dlocal.h170 if (ret == -1 || fcntl((fd), F_SETFL, \
186 if (ret == -1 || fcntl((fd), F_SETFL, \
/freebsd/cddl/usr.sbin/zfsd/
H A Dzfsd.cc164 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 Dtcpp_server.c87 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 Dbig_pipe_test.c55 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) { in main()
/freebsd/tools/tools/netrate/tcpconnect/
H A Dtcpconnect.c84 if (fcntl(s, F_SETFL, FIONBIO, &i) < 0) in try_connect()
/freebsd/contrib/wpa/src/wps/
H A Dhttp_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()
/freebsd/crypto/openssl/crypto/bio/
H A Dbio_sock.c322 # 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()

12345678