Home
last modified time | relevance | path

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

123456

/freebsd-13.1/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c62 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-13.1/tools/regression/security/cap_test/
H A Dcap_test_fcntl.c107 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-13.1/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-13.1/tests/sys/file/
H A Dfcntlflags_test.c55 flags1 = fcntl(fd, F_GETFL); in subtests()
71 flags2 = fcntl(fd, F_GETFL); in subtests()
87 flags3 = fcntl(fd, F_GETFL); in subtests()
/freebsd-13.1/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-13.1/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c110 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-13.1/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-13.1/tools/regression/netinet/tcpfullwindowrst/
H A Dtcpfullwindowrsttest.c97 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-13.1/share/examples/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-13.1/usr.sbin/ppp/
H A Dprompt.c425 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-13.1/contrib/ntp/lib/isc/win32/
H A Dunistd.h28 #define F_GETFL 1 macro
/freebsd-13.1/contrib/blacklist/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-13.1/lib/libcasper/libcasper/
H A Dlibcasper_impl.c47 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF); in fd_is_valid()
/freebsd-13.1/contrib/apr/file_io/unix/
H A Dpipe.c41 fd_flags = fcntl(thepipe->filedes, F_GETFL, 0); in pipeblock()
75 int fd_flags = fcntl(thepipe->filedes, F_GETFL, 0); in pipenonblock()
/freebsd-13.1/contrib/sendmail/libsm/
H A Dlocal.h169 ret = fcntl((fd), F_GETFL, 0); \
185 ret = fcntl((fd), F_GETFL, 0); \
/freebsd-13.1/lib/libc/stdio/
H A Dfdopen.c73 if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0) in fdopen()
/freebsd-13.1/crypto/openssl/crypto/bio/
H A Db_sock.c306 # 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-13.1/tests/sys/kern/pipe/
H A Dbig_pipe_test.c56 flags = fcntl(fd[1], F_GETFL); in main()
/freebsd-13.1/contrib/sendmail/libsmdb/
H A Dsmdb.c125 int omode = fcntl(fd, F_GETFL, NULL);
145 int omode = fcntl(fd, F_GETFL, NULL);
/freebsd-13.1/contrib/apr/network_io/unix/
H A Dsockopt.c27 fd_flags = fcntl(sd, F_GETFL, 0); in soblock()
53 fd_flags = fcntl(sd, F_GETFL, 0); in sononblock()
/freebsd-13.1/contrib/netbsd-tests/lib/librumpclient/
H A Dt_fd.c120 RL(fl = rump_sys_fcntl(ls, F_GETFL)); in ATF_TC_BODY()
/freebsd-13.1/lib/libc/tests/stdio/
H A Dmkostemp_test.c80 if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags & MISCFLAGS)) { in test_one()
/freebsd-13.1/usr.sbin/rtadvd/
H A Dcontrol.c241 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-13.1/contrib/llvm-project/lldb/source/Host/common/
H A DTerminal.cpp113 m_tflags = ::fcntl(fd, F_GETFL, 0); in Save()

123456