Home
last modified time | relevance | path

Searched refs:F_GETFL (Results 1 – 25 of 133) sorted by relevance

123456

/freebsd/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c59 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
63 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
83 CHECK(fcntl(fd, F_GETFL) == O_RDWR); in fcntl_tests_0()
140 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_0()
149 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_0()
192 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_1()
201 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_1()
239 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_2()
248 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_2()
392 CHECK(fcntl(fd, F_GETFL) == -1); in fcntl_tests_recv_0()
[all …]
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_fcntl.c104 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/contrib/netbsd-tests/lib/libc/sys/
H A Dt_pipe2.c79 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 Dt_socketpair.c91 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/tests/sys/file/
H A Dfcntlflags_test.c53 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 Dfcntl.cc61 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 Daccept_fd_leak.c108 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 Dt_tcp.c121 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/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.sh139 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 Dunix_socket_detach.sh103 if ((flags = fcntl(sd, F_GETFL, 0)) < 0)
H A Dsendfile2.sh103 flags = fcntl(s, F_GETFL);
H A Dunix_socket_detach2.sh102 if ((flags = fcntl(sd, F_GETFL, 0)) < 0)
/freebsd/usr.sbin/ppp/
H A Dprompt.c423 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 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/lib/libcasper/libcasper/
H A Dlibcasper_impl.c45 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF); in fd_is_valid()
/freebsd/contrib/sendmail/libsm/
H A Dlocal.h169 ret = fcntl((fd), F_GETFL, 0); \
185 ret = fcntl((fd), F_GETFL, 0); \
/freebsd/lib/libc/stdio/
H A Dfdopen.c67 if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0) in fdopen()
/freebsd/tests/sys/kern/pipe/
H A Dbig_pipe_test.c54 flags = fcntl(fd[1], F_GETFL); in main()
/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()
325 l = fcntl(s, F_GETFL, 0); in BIO_socket_nbio()
/freebsd/contrib/sendmail/libsmdb/
H A Dsmdb.c125 int omode = fcntl(fd, F_GETFL, NULL);
145 int omode = fcntl(fd, F_GETFL, NULL);
/freebsd/contrib/netbsd-tests/lib/librumpclient/
H A Dt_fd.c120 RL(fl = rump_sys_fcntl(ls, F_GETFL)); in ATF_TC_BODY()
/freebsd/tests/sys/kern/
H A Dsendfile_helper.c82 flags = fcntl(sv[0], F_GETFL); in tcp_socketpair()
/freebsd/lib/libc/tests/stdio/
H A Dmkostemp_test.c77 if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags & MISCFLAGS)) { in test_one()

123456