/freebsd/tools/regression/capsicum/syscalls/ |
H A D | cap_fcntls_limit.c | 58 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 60 CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK)); in fcntl_tests_0() 62 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 82 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 84 CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK)); in fcntl_tests_0() 86 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 105 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 109 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 113 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0() 139 CHECK(fcntl(fd, F_GETFL) in fcntl_tests_0() [all...] |
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_pipe2.c | 79 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0); in run() 80 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0); in run() 82 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0); in run() 83 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); in run()
|
H A D | t_socketpair.c | 91 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) != 0); in run() 92 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) != 0); in run() 94 ATF_REQUIRE((fcntl(fd[0], F_GETFL) & O_NONBLOCK) == 0); in run() 95 ATF_REQUIRE((fcntl(fd[1], F_GETFL) & O_NONBLOCK) == 0); in run()
|
/freebsd/tools/regression/security/cap_test/ |
H A D | cap_test_fcntl.c | 104 CHECK_SYSCALL_SUCCEEDS(fcntl, f.f_fd, F_GETFL, 0); in test_fcntl() 106 if (fcntl(f.f_fd, F_GETFL, 0) == -1) in test_fcntl() 109 CHECK_NOTCAPABLE(fcntl, cap, F_GETFL, 0); in test_fcntl()
|
/freebsd/tests/sys/file/ |
H A D | fcntlflags_test.c | 53 flags1 = fcntl(fd, F_GETFL); in subtests() 69 flags2 = fcntl(fd, F_GETFL); in subtests() 85 flags3 = fcntl(fd, F_GETFL); in subtests()
|
/freebsd/contrib/capsicum-test/ |
H A D | fcntl.cc | 61 EXPECT_OK(fcntl(ii->second, F_GETFL, 0)) << " on " << ii->first; in FORK_TEST() 65 EXPECT_EQ(-1, fcntl(cap, F_GETFL, 0)) << " on " << ii->first; in FORK_TEST() 191 int fd_flag = CHECK_FCNTL(CAP_FCNTL, caps, F_GETFL, 0); in TEST() 268 int fd_flag = fcntl(fd, F_GETFL, 0); in TEST() 331 int fd_flag = fcntl(fd, F_GETFL, 0); in TEST() 337 fd_flag = fcntl(fd, F_GETFL, 0); in TEST() 347 fd_flag = fcntl(fd_get, F_GETFL, 0); in TEST() 349 EXPECT_NOTCAPABLE(fcntl(fd_set, F_GETFL, 0)); in TEST() 357 EXPECT_NOTCAPABLE(fcntl(fd, F_GETFL, 0)); in TEST()
|
/freebsd/tools/regression/sockets/accept_fd_leak/ |
H A D | accept_fd_leak.c | 108 i = fcntl(s, F_GETFL); in main() 114 i = fcntl(s, F_GETFL); in main() 175 i = fcntl(s, F_GETFL); in main() 181 i = fcntl(s, F_GETFL); in main()
|
/freebsd/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/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 | 139 if ((flags = fcntl(fd, F_GETFL)) == -1) 163 if ((flags = fcntl(fd, F_GETFL)) == -1) 195 if ((flags = fcntl(fd, F_GETFL)) == -1)
|
H A D | unix_socket_detach.sh | 103 if ((flags = fcntl(sd, F_GETFL, 0)) < 0)
|
H A D | unix_socket_detach2.sh | 102 if ((flags = fcntl(sd, F_GETFL, 0)) < 0)
|
H A D | sendfile2.sh | 103 flags = fcntl(s, F_GETFL);
|
/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/usr.sbin/ppp/ |
H A D | prompt.c | 423 stat = fcntl(fd, F_GETFL, 0); in prompt_TtyInit() 462 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyCommandMode() 482 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyTermMode() 495 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyOldMode()
|
/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/lib/libcasper/libcasper/ |
H A D | libcasper_impl.c | 45 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF); in fd_is_valid()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | local.h | 169 ret = fcntl((fd), F_GETFL, 0); \ 185 ret = fcntl((fd), F_GETFL, 0); \
|
/freebsd/lib/libc/stdio/ |
H A D | fdopen.c | 67 if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0) in fdopen()
|
/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() 325 l = fcntl(s, F_GETFL, 0); in BIO_socket_nbio()
|
/freebsd/tests/sys/kern/pipe/ |
H A D | big_pipe_test.c | 54 flags = fcntl(fd[1], F_GETFL); in main()
|
/freebsd/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/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/tests/sys/kern/ |
H A D | sendfile_helper.c | 82 flags = fcntl(sv[0], F_GETFL); in tcp_socketpair()
|
/freebsd/lib/libc/tests/stdio/ |
H A D | mkostemp_test.c | 77 if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags & MISCFLAGS)) { in test_one()
|