Symbol: F_GETFL
bin/dd/dd.c
170
oflags = fcntl(out.fd, F_GETFL);
bin/sh/input.c
164
int flags = fcntl(0, F_GETFL, 0);
bin/sh/redir.c
272
flags = fcntl(pip[1], F_GETFL, 0);
bin/sh/show.c
396
if ((flags = fcntl(fileno(tracefile), F_GETFL, 0)) >= 0)
crypto/heimdal/lib/ipc/server.c
642
fileflags = fcntl(c->fd, F_GETFL, 0);
crypto/openssh/channels.c
454
(val = fcntl(rfd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
crypto/openssh/channels.c
460
(val = fcntl(wfd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
crypto/openssh/channels.c
466
(val = fcntl(efd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
crypto/openssh/misc.c
137
val = fcntl(fd, F_GETFL);
crypto/openssh/misc.c
1542
if (fcntl(dupfd, F_GETFL) == -1 && errno == EBADF) {
crypto/openssh/misc.c
161
val = fcntl(fd, F_GETFL);
crypto/openssh/openbsd-compat/bsd-pselect.c
62
if ((val = fcntl(fd, F_GETFL)) == -1 ||
crypto/openssh/regress/netcat.c
683
flags = fcntl(s, F_GETFL, 0);
crypto/openssh/ssh-agent.c
2409
if (fcntl(3, F_GETFL) == -1)
crypto/openssl/crypto/bio/bio_sock.c
363
#elif defined(F_GETFL) && defined(F_SETFL) && (defined(O_NONBLOCK) || defined(FNDELAY))
crypto/openssl/crypto/bio/bio_sock.c
366
l = fcntl(s, F_GETFL, 0);
crypto/openssl/crypto/bio/bss_dgram.c
2701
sockflags = fcntl(b->num, F_GETFL, 0);
crypto/openssl/crypto/bio/bss_dgram.c
2750
sockflags = fcntl(b->num, F_GETFL, 0);
lib/libc/rpc/svc_vc.c
333
flags = _fcntl(sock, F_GETFL, 0);
lib/libc/stdio/fdopen.c
67
if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0)
lib/libc/stdio/freopen.c
84
if ((dflags = _fcntl(fp->_file, F_GETFL)) < 0) {
lib/libc/tests/stdio/fopen_test.c
55
flags = fcntl(fd, F_GETFL);
lib/libc/tests/stdio/getdelim_test.c
344
ATF_REQUIRE((flags = fcntl(fileno(fp), F_GETFL, 0)) != -1);
lib/libc/tests/stdio/mkostemp_test.c
77
if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags & MISCFLAGS)) {
lib/libcasper/libcasper/libcasper_impl.c
45
return (fcntl(fd, F_GETFL) != -1 || errno != EBADF);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
206
flags = fcntl(fd, F_GETFL, 0);
lib/libfetch/common.c
293
flags = fcntl(sd, F_GETFL);
lib/libnv/tests/cnv_tests.cc
36
#define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
lib/libnv/tests/nv_array_tests.cc
42
#define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
lib/libnv/tests/nvlist_get_test.c
46
#define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
lib/libnv/tests/nvlist_send_recv_test.c
50
#define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
lib/libsysdecode/flags.c
886
case F_GETFL:
lib/libtacplus/taclib.c
246
if ((flags = fcntl(h->fd, F_GETFL, 0)) == -1 ||
lib/libusb/libusb10.c
163
flags = fcntl(f, F_GETFL, NULL);
libexec/phttpget/phttpget.c
394
sdflags = fcntl(sd, F_GETFL);
sbin/hastd/proto_common.c
56
flags = fcntl(sock, F_GETFL);
sbin/hastd/proto_tcp.c
298
flags = fcntl(tctx->tc_fd, F_GETFL);
sbin/hastd/proto_tcp.c
388
flags = fcntl(tctx->tc_fd, F_GETFL);
sbin/init/init.c
588
(void)fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_NONBLOCK);
share/examples/ipfilter/l4check/l4check.c
296
if ((res = fcntl(fd, F_GETFL, 0)) != -1)
share/examples/ipfilter/samples/relay.c
181
(void) ioctl(fd, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
share/examples/ipfilter/samples/relay.c
182
(void) ioctl(0, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
share/examples/ipfilter/samples/relay.c
183
(void) ioctl(1, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
sys/compat/linux/linux_file.c
1382
error = kern_fcntl(td, args->fd, F_GETFL, 0);
sys/kern/kern_descrip.c
643
case F_GETFL:
sys/kern/kern_descrip.c
644
error = fget_fcntl(td, fd, &cap_fcntl_rights, F_GETFL, &fp);
sys/security/audit/bsm_fcntl.c
50
{ BSM_F_GETFL, F_GETFL },
sys/sys/capsicum.h
317
#define CAP_FCNTL_GETFL (1 << F_GETFL)
tests/sys/audit/file-attribute-modify.c
119
ATF_REQUIRE((flagstatus = fcntl(filedesc, F_GETFL, 0)) != -1);
tests/sys/audit/file-attribute-modify.c
143
ATF_REQUIRE_ERRNO(EBADF, fcntl(-1, F_GETFL, 0) == -1);
tests/sys/capsicum/capability-fd.cc
524
int rc = fcntl(cap_fd, F_GETFL);
tests/sys/capsicum/fcntl.cc
184
int fd_flag = CHECK_FCNTL(CAP_FCNTL, caps, F_GETFL, 0);
tests/sys/capsicum/fcntl.cc
260
int fd_flag = fcntl(fd, F_GETFL, 0);
tests/sys/capsicum/fcntl.cc
323
int fd_flag = fcntl(fd, F_GETFL, 0);
tests/sys/capsicum/fcntl.cc
329
fd_flag = fcntl(fd, F_GETFL, 0);
tests/sys/capsicum/fcntl.cc
339
fd_flag = fcntl(fd_get, F_GETFL, 0);
tests/sys/capsicum/fcntl.cc
341
EXPECT_NOTCAPABLE(fcntl(fd_set, F_GETFL, 0));
tests/sys/capsicum/fcntl.cc
349
EXPECT_NOTCAPABLE(fcntl(fd, F_GETFL, 0));
tests/sys/capsicum/fcntl.cc
61
EXPECT_OK(fcntl(ii->second, F_GETFL, 0)) << " on " << ii->first;
tests/sys/capsicum/fcntl.cc
65
EXPECT_EQ(-1, fcntl(cap, F_GETFL, 0)) << " on " << ii->first;
tests/sys/fifo/fifo_io.c
172
flags = fcntl(fd, F_GETFL);
tests/sys/fifo/fifo_io.c
193
flags = fcntl(fd, F_GETFL);
tests/sys/file/fcntlflags_test.c
108
flags1 = fcntl(fd, F_GETFL);
tests/sys/file/fcntlflags_test.c
116
flags2 = fcntl(fd, F_GETFL);
tests/sys/file/fcntlflags_test.c
50
flags1 = fcntl(fd, F_GETFL);
tests/sys/file/fcntlflags_test.c
59
flags2 = fcntl(fd, F_GETFL);
tests/sys/file/fcntlflags_test.c
67
flags3 = fcntl(fd, F_GETFL);
tests/sys/file/path_test.c
561
flags = fcntl(pathfd, F_GETFL);
tests/sys/file/path_test.c
573
flags = fcntl(pathfd2, F_GETFL);
tests/sys/file/path_test.c
581
flags = fcntl(pathfd2, F_GETFL);
tests/sys/file/path_test.c
917
flags = fcntl(pathfd_copy, F_GETFL);
tests/sys/kern/ktls_test.c
256
ATF_REQUIRE((flags = fcntl(s, F_GETFL)) != -1);
tests/sys/kern/ktls_test.c
300
ATF_REQUIRE((flags = fcntl(fd, F_GETFL)) != -1);
tests/sys/kern/pipe/big_pipe_test.c
54
flags = fcntl(fd[1], F_GETFL);
tests/sys/kern/sendfile_helper.c
82
flags = fcntl(sv[0], F_GETFL);
tests/sys/kern/socket_splice.c
53
flags = fcntl(fd, F_GETFL);
tests/sys/kern/timerfd.c
1033
int r = fcntl(tfd, F_GETFL);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
105
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
109
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
113
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
139
CHECK(fcntl(fd, F_GETFL) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
148
CHECK(fcntl(fd, F_GETFL) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
191
CHECK(fcntl(fd, F_GETFL) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
200
CHECK(fcntl(fd, F_GETFL) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
238
CHECK(fcntl(fd, F_GETFL) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
247
CHECK(fcntl(fd, F_GETFL) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
294
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
296
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
298
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
318
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
320
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
322
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
348
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
352
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
356
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
391
CHECK(fcntl(fd, F_GETFL) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
400
CHECK(fcntl(fd, F_GETFL) == -1);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
58
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
60
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
62
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
82
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
84
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
tools/regression/capsicum/syscalls/cap_fcntls_limit.c
86
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c
95
fcntl(t, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c
96
fcntl(u, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
tools/regression/poll/sockpoll.c
87
flags = fcntl(sck, F_GETFL, 0);
tools/regression/security/cap_test/cap_test_capabilities.c
320
ret = fcntl(fd_cap, F_GETFL);
tools/regression/security/cap_test/cap_test_capabilities.c
321
CHECK_RESULT(fcntl(F_GETFL), CAP_FCNTL, ret >= 0);
tools/regression/security/cap_test/cap_test_fcntl.c
104
CHECK_SYSCALL_SUCCEEDS(fcntl, f.f_fd, F_GETFL, 0);
tools/regression/security/cap_test/cap_test_fcntl.c
106
if (fcntl(f.f_fd, F_GETFL, 0) == -1)
tools/regression/security/cap_test/cap_test_fcntl.c
109
CHECK_NOTCAPABLE(fcntl, cap, F_GETFL, 0);
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
108
i = fcntl(s, F_GETFL);
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
114
i = fcntl(s, F_GETFL);
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
175
i = fcntl(s, F_GETFL);
tools/regression/sockets/accept_fd_leak/accept_fd_leak.c
181
i = fcntl(s, F_GETFL);
tools/regression/sockets/accf_data_attach/accf_data_attach.c
211
i = fcntl(lso, F_GETFL);
tools/regression/sockets/unix_cmsg/uc_common.c
160
val = fcntl(fd, F_GETFL, 0);
tools/regression/sockets/unix_cmsg/uc_common.c
380
val = fcntl(fd, F_GETFL, 0);
tools/test/gpioevents/gpioevents.c
446
flags = fcntl(handle, F_GETFL);
tools/test/gpioevents/gpioevents.c
572
flags = fcntl(handle, F_GETFL);
usr.bin/chat/chat.c
1035
if ((status = fcntl(0, F_GETFL, 0)) == -1)
usr.bin/chat/chat.c
1062
if ((status = fcntl(0, F_GETFL, 0)) == -1)
usr.bin/chat/chat.c
443
if ((flags = fcntl(0, F_GETFL, 0)) == -1)
usr.bin/morse/morse.c
375
lflags = fcntl(line, F_GETFL);
usr.bin/script/script.c
221
fcm = fcntl(master, F_GETFL);
usr.bin/tip/tip/tip.c
194
i = fcntl(FD, F_GETFL);
usr.bin/whois/whois.c
447
if ((f = fcntl(s, F_GETFL)) == -1)
usr.sbin/bhyve/gdb.c
2252
flags = fcntl(s, F_GETFL);
usr.sbin/bhyve/net_backend_netgraph.c
111
flags = fcntl(be->fd, F_GETFL);
usr.sbin/bluetooth/bthidd/client.c
223
m = fcntl(s, F_GETFL);
usr.sbin/bsdinstall/runconsoles/runconsoles.c
334
flags = fcntl(fd, F_GETFL);
usr.sbin/dconschat/dconschat.c
702
flags = fcntl(ns, F_GETFL, 0);
usr.sbin/fdformat/fdformat.c
267
if ((flags = fcntl(fd, F_GETFL, 0)) == -1)
usr.sbin/ppp/exec.c
271
stat = fcntl(fids[0], F_GETFL, 0);
usr.sbin/ppp/prompt.c
423
stat = fcntl(fd, F_GETFL, 0);
usr.sbin/ppp/prompt.c
462
stat = fcntl(p->fd_in, F_GETFL, 0);
usr.sbin/ppp/prompt.c
482
stat = fcntl(p->fd_in, F_GETFL, 0);
usr.sbin/ppp/prompt.c
495
stat = fcntl(p->fd_in, F_GETFL, 0);
usr.sbin/ppp/tty.c
465
oldflag = fcntl(p->fd, F_GETFL, 0);
usr.sbin/ppp/tty.c
510
if ((oldflag = fcntl(p->fd, F_GETFL, 0)) != -1)
usr.sbin/ppp/tty.c
753
oldflag = fcntl(p->fd, F_GETFL, 0);
usr.sbin/rtadvd/control.c
239
if ((flags = fcntl(fd, F_GETFL, 0)) == -1) {
usr.sbin/rtadvd/control.c
323
if ((flags = fcntl(s->si_fd, F_GETFL, 0)) == -1) {