Searched refs:F_SETFL (Results 1 - 25 of 150) sorted by relevance

123456

/freebsd-10.3-release/contrib/ntp/lib/isc/win32/
H A Dunistd.h27 #define F_SETFL 0 macro
/freebsd-10.3-release/contrib/ntp/libntp/
H A Dsocket.c146 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) {
152 if (fcntl(fd, F_SETFL, FNDELAY) < 0) {
158 if (fcntl(fd, F_SETFL, O_NDELAY) < 0) {
H A Diosignal.c155 if (fcntl(rio->fd, F_SETFL, FNDELAY|FASYNC) < 0)
189 if (fcntl(rio->fd, F_SETFL, FNDELAY|FASYNC) < 0)
241 if (fcntl(fd, F_SETFL, flags|FASYNC) < 0)
/freebsd-10.3-release/tests/sys/file/
H A Dfcntlflags_test.c65 if (fcntl(fd, F_SETFL, flags1) == -1)
66 printf("not ok %d - fcntl(F_SETFL) same flags failed\n",
69 printf("ok %d - fcntl(F_SETFL) same flags succeeded\n",
78 printf("not ok %d - fcntl(F_SETFL) caused fcntl(F_GETFL) to "
81 if (fcntl(fd, F_SETFL, flags2 | O_NONBLOCK) == -1)
82 printf("not ok %d - fcntl(F_SETFL) O_NONBLOCK failed\n",
85 printf("ok %d - fcntl(F_SETFL) O_NONBLOCK succeeded\n",
94 printf("not ok %d - fcntl(F_SETFL) gave unexpected result "
/freebsd-10.3-release/tools/regression/sockets/kqueue/
H A Dkqueue.c272 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
275 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
302 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
304 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
323 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
326 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
347 if (fcntl(sv[0], F_SETFL, O_NONBLOCK) != 0)
350 if (fcntl(sv[1], F_SETFL, O_NONBLOCK) != 0)
/freebsd-10.3-release/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c63 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
65 CHECK(fcntl(fd, F_SETFL, 0) == 0);
87 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == 0);
89 CHECK(fcntl(fd, F_SETFL, 0) == 0);
111 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
115 CHECK(fcntl(fd, F_SETFL, 0) == -1);
146 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
149 CHECK(fcntl(fd, F_SETFL, 0) == -1);
195 CHECK(fcntl(fd, F_SETFL, O_NONBLOCK) == -1);
198 CHECK(fcntl(fd, F_SETFL,
[all...]
/freebsd-10.3-release/lib/libkse/thread/
H A Dthr_fcntl.c64 case F_SETFL:
/freebsd-10.3-release/tools/regression/netinet/tcpfullwindowrst/
H A Dtcpfullwindowrsttest.c97 fcntl(t, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
98 fcntl(u, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
/freebsd-10.3-release/contrib/gdb/gdb/
H A Dinflow.c235 places we use F_SETFL, so I'm inclined to think perhaps there
237 result = fcntl (0, F_SETFL, tflags_inferior);
238 result = fcntl (0, F_SETFL, tflags_inferior);
239 OOPSY ("fcntl F_SETFL");
408 places we use F_SETFL, so I'm inclined to think perhaps there
410 result = fcntl (0, F_SETFL, tflags_ours);
411 result = fcntl (0, F_SETFL, tflags_ours);
672 fcntl (target_activity_fd, F_SETFL, old_fcntl_flags | FASYNC);
682 fcntl (target_activity_fd, F_SETFL, old_fcntl_flags);
/freebsd-10.3-release/tests/sys/kern/pipe/
H A Dbig_pipe_test.c57 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) {
/freebsd-10.3-release/tools/regression/netipx/spxabort/
H A Dspxabort.c83 if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0)
84 err(-1, "fcntl(sock, F_SETFL, O_NONBLOCKING)");
/freebsd-10.3-release/contrib/netbsd-tests/net/net/
H A Dt_tcp.c118 ok = fcntl(srvr, F_SETFL, fl & ~O_NONBLOCK);
134 ok = fcntl(as, F_SETFL, fl & ~O_NONBLOCK);
/freebsd-10.3-release/contrib/libarchive/libarchive/
H A Dfilter_fork_posix.c175 fcntl(*child_stdin, F_SETFL, O_NONBLOCK);
177 fcntl(*child_stdout, F_SETFL, O_NONBLOCK);
H A Darchive_write_add_filter_program.c276 fcntl(data->child_stdout, F_SETFL, 0);
283 fcntl(data->child_stdin, F_SETFL, 0);
298 fcntl(data->child_stdin, F_SETFL, 0);
362 fcntl(data->child_stdout, F_SETFL, 0);
/freebsd-10.3-release/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c114 if (fcntl(s, F_SETFL, i) != 0)
115 errx(-1, "ioctl(F_SETFL): %s", strerror(errno));
181 if (fcntl(s, F_SETFL, i) != 0)
182 errx(-1, "ioctl(F_SETFL): %s", strerror(errno));
/freebsd-10.3-release/usr.sbin/bhyve/
H A Ddbgport.c78 fcntl(conn_fd, F_SETFL, O_NONBLOCK);
/freebsd-10.3-release/tools/tools/netrate/tcpconnect/
H A Dtcpconnect.c86 if (fcntl(s, F_SETFL, FIONBIO, &i) < 0)
/freebsd-10.3-release/tools/regression/netipx/ipxdgramloopback/
H A Dipxdgramloopback.c75 if (fcntl(sock_recv, F_SETFL, O_NONBLOCK) < 0)
/freebsd-10.3-release/tools/regression/sockets/listenclose/
H A Dlistenclose.c95 if (fcntl(connect_sock, F_SETFL, &arg) < 0)
/freebsd-10.3-release/contrib/ipfilter/samples/
H A Drelay.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);
/freebsd-10.3-release/contrib/xz/src/xz/
H A Dfile_io.c93 if (flags == -1 || fcntl(user_abort_pipe[i], F_SETFL,
416 && fcntl(STDIN_FILENO, F_SETFL,
670 if (fcntl(STDIN_FILENO, F_SETFL, stdin_flags) == -1)
727 && fcntl(STDOUT_FILENO, F_SETFL,
844 if (fcntl(STDOUT_FILENO, F_SETFL, flags) == -1)
897 if (fcntl(STDOUT_FILENO, F_SETFL, stdout_flags) == -1) {
/freebsd-10.3-release/contrib/netbsd-tests/lib/librumpclient/
H A Dt_fd.c121 RL(rump_sys_fcntl(ls, F_SETFL, fl | O_ASYNC));
/freebsd-10.3-release/contrib/pf/libevent/
H A Dsignal.c103 fcntl(ev_signal_pair[0], F_SETFL, O_NONBLOCK);
/freebsd-10.3-release/usr.bin/wall/
H A Dttymsg.c146 (void) fcntl(fd, F_SETFL, 0); /* clear O_NONBLOCK */
/freebsd-10.3-release/tools/regression/netinet/tcpconnect/
H A Dtcpconnect.c140 if (fcntl(sock, F_SETFL, O_NONBLOCK) != 0)
141 err(-1, "fcntl(F_SETFL)");

Completed in 185 milliseconds

123456