F_GETFL
oflags = fcntl(out.fd, F_GETFL);
int flags = fcntl(0, F_GETFL, 0);
flags = fcntl(pip[1], F_GETFL, 0);
if ((flags = fcntl(fileno(tracefile), F_GETFL, 0)) >= 0)
fileflags = fcntl(c->fd, F_GETFL, 0);
(val = fcntl(rfd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
(val = fcntl(wfd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
(val = fcntl(efd, F_GETFL)) != -1 && !(val & O_NONBLOCK)) {
val = fcntl(fd, F_GETFL);
if (fcntl(dupfd, F_GETFL) == -1 && errno == EBADF) {
val = fcntl(fd, F_GETFL);
if ((val = fcntl(fd, F_GETFL)) == -1 ||
flags = fcntl(s, F_GETFL, 0);
if (fcntl(3, F_GETFL) == -1)
#elif defined(F_GETFL) && defined(F_SETFL) && (defined(O_NONBLOCK) || defined(FNDELAY))
l = fcntl(s, F_GETFL, 0);
sockflags = fcntl(b->num, F_GETFL, 0);
sockflags = fcntl(b->num, F_GETFL, 0);
flags = _fcntl(sock, F_GETFL, 0);
if ((fdflags = _fcntl(fd, F_GETFL, 0)) < 0)
if ((dflags = _fcntl(fp->_file, F_GETFL)) < 0) {
flags = fcntl(fd, F_GETFL);
ATF_REQUIRE((flags = fcntl(fileno(fp), F_GETFL, 0)) != -1);
if ((fcntl(fd, F_GETFL) & MISCFLAGS) != (oflags & MISCFLAGS)) {
return (fcntl(fd, F_GETFL) != -1 || errno != EBADF);
flags = fcntl(fd, F_GETFL, 0);
flags = fcntl(sd, F_GETFL);
#define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
#define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
#define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
#define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF)
case F_GETFL:
if ((flags = fcntl(h->fd, F_GETFL, 0)) == -1 ||
flags = fcntl(f, F_GETFL, NULL);
sdflags = fcntl(sd, F_GETFL);
flags = fcntl(sock, F_GETFL);
flags = fcntl(tctx->tc_fd, F_GETFL);
flags = fcntl(tctx->tc_fd, F_GETFL);
(void)fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_NONBLOCK);
if ((res = fcntl(fd, F_GETFL, 0)) != -1)
(void) ioctl(fd, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
(void) ioctl(0, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
(void) ioctl(1, F_SETFL, ioctl(fd, F_GETFL, 0)|O_NONBLOCK);
error = kern_fcntl(td, args->fd, F_GETFL, 0);
case F_GETFL:
error = fget_fcntl(td, fd, &cap_fcntl_rights, F_GETFL, &fp);
{ BSM_F_GETFL, F_GETFL },
#define CAP_FCNTL_GETFL (1 << F_GETFL)
ATF_REQUIRE((flagstatus = fcntl(filedesc, F_GETFL, 0)) != -1);
ATF_REQUIRE_ERRNO(EBADF, fcntl(-1, F_GETFL, 0) == -1);
int rc = fcntl(cap_fd, F_GETFL);
int fd_flag = CHECK_FCNTL(CAP_FCNTL, caps, F_GETFL, 0);
int fd_flag = fcntl(fd, F_GETFL, 0);
int fd_flag = fcntl(fd, F_GETFL, 0);
fd_flag = fcntl(fd, F_GETFL, 0);
fd_flag = fcntl(fd_get, F_GETFL, 0);
EXPECT_NOTCAPABLE(fcntl(fd_set, F_GETFL, 0));
EXPECT_NOTCAPABLE(fcntl(fd, F_GETFL, 0));
EXPECT_OK(fcntl(ii->second, F_GETFL, 0)) << " on " << ii->first;
EXPECT_EQ(-1, fcntl(cap, F_GETFL, 0)) << " on " << ii->first;
flags = fcntl(fd, F_GETFL);
flags = fcntl(fd, F_GETFL);
flags1 = fcntl(fd, F_GETFL);
flags2 = fcntl(fd, F_GETFL);
flags1 = fcntl(fd, F_GETFL);
flags2 = fcntl(fd, F_GETFL);
flags3 = fcntl(fd, F_GETFL);
flags = fcntl(pathfd, F_GETFL);
flags = fcntl(pathfd2, F_GETFL);
flags = fcntl(pathfd2, F_GETFL);
flags = fcntl(pathfd_copy, F_GETFL);
ATF_REQUIRE((flags = fcntl(s, F_GETFL)) != -1);
ATF_REQUIRE((flags = fcntl(fd, F_GETFL)) != -1);
flags = fcntl(fd[1], F_GETFL);
flags = fcntl(sv[0], F_GETFL);
flags = fcntl(fd, F_GETFL);
int r = fcntl(tfd, F_GETFL);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == -1);
CHECK(fcntl(fd, F_GETFL) == -1);
CHECK(fcntl(fd, F_GETFL) == -1);
CHECK(fcntl(fd, F_GETFL) == -1);
CHECK(fcntl(fd, F_GETFL) == -1);
CHECK(fcntl(fd, F_GETFL) == -1);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == -1);
CHECK(fcntl(fd, F_GETFL) == -1);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
CHECK(fcntl(fd, F_GETFL) == (O_RDWR | O_NONBLOCK));
CHECK(fcntl(fd, F_GETFL) == O_RDWR);
fcntl(t, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
fcntl(u, F_SETFL, fcntl(t, F_GETFL) | O_NONBLOCK);
flags = fcntl(sck, F_GETFL, 0);
ret = fcntl(fd_cap, F_GETFL);
CHECK_RESULT(fcntl(F_GETFL), CAP_FCNTL, ret >= 0);
CHECK_SYSCALL_SUCCEEDS(fcntl, f.f_fd, F_GETFL, 0);
if (fcntl(f.f_fd, F_GETFL, 0) == -1)
CHECK_NOTCAPABLE(fcntl, cap, F_GETFL, 0);
i = fcntl(s, F_GETFL);
i = fcntl(s, F_GETFL);
i = fcntl(s, F_GETFL);
i = fcntl(s, F_GETFL);
i = fcntl(lso, F_GETFL);
val = fcntl(fd, F_GETFL, 0);
val = fcntl(fd, F_GETFL, 0);
flags = fcntl(handle, F_GETFL);
flags = fcntl(handle, F_GETFL);
if ((status = fcntl(0, F_GETFL, 0)) == -1)
if ((status = fcntl(0, F_GETFL, 0)) == -1)
if ((flags = fcntl(0, F_GETFL, 0)) == -1)
lflags = fcntl(line, F_GETFL);
fcm = fcntl(master, F_GETFL);
i = fcntl(FD, F_GETFL);
if ((f = fcntl(s, F_GETFL)) == -1)
flags = fcntl(s, F_GETFL);
flags = fcntl(be->fd, F_GETFL);
m = fcntl(s, F_GETFL);
flags = fcntl(fd, F_GETFL);
flags = fcntl(ns, F_GETFL, 0);
if ((flags = fcntl(fd, F_GETFL, 0)) == -1)
stat = fcntl(fids[0], F_GETFL, 0);
stat = fcntl(fd, F_GETFL, 0);
stat = fcntl(p->fd_in, F_GETFL, 0);
stat = fcntl(p->fd_in, F_GETFL, 0);
stat = fcntl(p->fd_in, F_GETFL, 0);
oldflag = fcntl(p->fd, F_GETFL, 0);
if ((oldflag = fcntl(p->fd, F_GETFL, 0)) != -1)
oldflag = fcntl(p->fd, F_GETFL, 0);
if ((flags = fcntl(fd, F_GETFL, 0)) == -1) {
if ((flags = fcntl(s->si_fd, F_GETFL, 0)) == -1) {