| /freebsd-12.1/tools/regression/capsicum/syscalls/ |
| H A D | cap_fcntls_limit.c | 62 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 66 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 86 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 143 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_0() 152 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_0() 195 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_1() 204 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_1() 242 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_2() 251 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_2() 395 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_recv_0() [all …]
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_socketpair.c | 89 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0); in run() 90 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0); in run() 92 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0); in run() 93 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); in run()
|
| H A D | t_pipe2.c | 77 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0); in run() 78 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0); in run() 80 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0); in run() 81 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); in run()
|
| /freebsd-12.1/tools/regression/security/cap_test/ |
| H A D | cap_test_fcntl.c | 107 CHECK_SYSCALL_SUCCEEDS(fcntl, f.f_fd, F_GETFL, 0); in test_fcntl() 109 if (fcntl(f.f_fd, F_GETFL, 0) == -1) in test_fcntl() 112 CHECK_NOTCAPABLE(fcntl, cap, F_GETFL, 0); in test_fcntl()
|
| /freebsd-12.1/tests/sys/file/ |
| H A D | fcntlflags_test.c | 55 flags1 = fcntl(fd, F_GETFL); in subtests() 71 flags2 = fcntl(fd, F_GETFL); in subtests() 87 flags3 = fcntl(fd, F_GETFL); in subtests()
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | inflow.c | 123 #ifdef F_GETFL in gdb_has_a_terminal() 124 tflags_ours = fcntl (0, F_GETFL, 0); in gdb_has_a_terminal() 232 #ifdef F_GETFL in terminal_inferior() 403 #ifdef F_GETFL in terminal_ours_1() 404 tflags_inferior = fcntl (0, F_GETFL, 0); in terminal_ours_1() 666 old_fcntl_flags = fcntl (target_activity_fd, F_GETFL, 0); in set_sigio_trap()
|
| /freebsd-12.1/tools/regression/sockets/accept_fd_leak/ |
| H A D | accept_fd_leak.c | 110 i = fcntl(s, F_GETFL); in main() 116 i = fcntl(s, F_GETFL); in main() 177 i = fcntl(s, F_GETFL); in main() 183 i = fcntl(s, F_GETFL); in main()
|
| /freebsd-12.1/contrib/netbsd-tests/net/net/ |
| H A D | t_tcp.c | 121 fl = fcntl(srvr, F_GETFL, 0); in paccept_block() 136 fl = fcntl(as, F_GETFL, 0); in paccept_block() 145 fl = fcntl(as, F_GETFL, 0); in paccept_block()
|
| /freebsd-12.1/contrib/ipfilter/samples/ |
| H A D | relay.c | 182 (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-12.1/tools/regression/netinet/tcpfullwindowrst/ |
| H A D | tcpfullwindowrsttest.c | 97 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()
|
| /freebsd-12.1/usr.sbin/ppp/ |
| H A D | prompt.c | 425 stat = fcntl(fd, F_GETFL, 0); in prompt_TtyInit() 464 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyCommandMode() 484 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyTermMode() 497 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyOldMode()
|
| /freebsd-12.1/contrib/blacklist/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-12.1/lib/libcasper/libcasper/ |
| H A D | libcasper_impl.c | 45 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF); in fd_is_valid()
|
| /freebsd-12.1/contrib/ntp/lib/isc/win32/ |
| H A D | unistd.h | 28 #define F_GETFL 1 macro
|
| /freebsd-12.1/contrib/apr/file_io/unix/ |
| H A D | pipe.c | 41 fd_flags = fcntl(thepipe->filedes, F_GETFL, 0); in pipeblock() 75 int fd_flags = fcntl(thepipe->filedes, F_GETFL, 0); in pipenonblock()
|
| /freebsd-12.1/contrib/sendmail/libsm/ |
| H A D | local.h | 169 ret = fcntl((fd), F_GETFL, 0); \ 185 ret = fcntl((fd), F_GETFL, 0); \
|
| /freebsd-12.1/crypto/openssl/crypto/bio/ |
| H A D | b_sock.c | 306 # elif defined(F_GETFL) && defined(F_SETFL) && (defined(O_NONBLOCK) || defined(FNDELAY)) in BIO_socket_nbio() 309 l = fcntl(s, F_GETFL, 0); in BIO_socket_nbio()
|
| /freebsd-12.1/contrib/sendmail/libsmdb/ |
| H A D | smdb.c | 125 int omode = fcntl(fd, F_GETFL, NULL); 145 int omode = fcntl(fd, F_GETFL, NULL);
|
| /freebsd-12.1/lib/libc/stdio/ |
| H A D | fdopen.c | 73 if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0) in fdopen()
|
| /freebsd-12.1/tests/sys/kern/pipe/ |
| H A D | big_pipe_test.c | 56 flags = fcntl(fd[1], F_GETFL); in main()
|
| /freebsd-12.1/contrib/apr/network_io/unix/ |
| H A D | sockopt.c | 27 fd_flags = fcntl(sd, F_GETFL, 0); in soblock() 53 fd_flags = fcntl(sd, F_GETFL, 0); in sononblock()
|
| /freebsd-12.1/contrib/netbsd-tests/lib/librumpclient/ |
| H A D | t_fd.c | 120 RL(fl = rump_sys_fcntl(ls, F_GETFL)); in ATF_TC_BODY()
|
| /freebsd-12.1/lib/libc/tests/stdio/ |
| H A D | mkostemp_test.c | 80 if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags & MISCFLAGS)) { in test_one()
|
| /freebsd-12.1/usr.sbin/rtadvd/ |
| H A D | control.c | 241 if ((flags = fcntl(fd, F_GETFL, 0)) == -1) { in csock_accept() 325 if ((flags = fcntl(s->si_fd, F_GETFL, 0)) == -1) { in csock_open()
|
| /freebsd-12.1/sys/sys/ |
| H A D | fcntl.h | 223 #define F_GETFL 3 /* get file status flags */ macro
|