/freebsd-13-stable/contrib/ipfilter/lib/ |
H A D | poolio.c | 9 #include <fcntl.h>
|
H A D | checkrev.c | 12 #include <fcntl.h>
|
/freebsd-13-stable/contrib/file/src/ |
H A D | pread.c | 5 #include <fcntl.h>
|
/freebsd-13-stable/contrib/apr/poll/unix/ |
H A D | wakeup.c | 95 if ((flags = fcntl(wakeup_pipe[0]->filedes, F_GETFD)) == -1) 99 if (fcntl(wakeup_pipe[0]->filedes, F_SETFD, flags) == -1) 105 if ((flags = fcntl(wakeup_pipe[1]->filedes, F_GETFD)) == -1) 109 if (fcntl(wakeup_pipe[1]->filedes, F_SETFD, flags) == -1)
|
/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_file.c | 17 #include <fcntl.h> 45 if (fcntl(fd, F_SETLK, &lock) < 0) { 72 if (fcntl(fd, F_SETLK, &lock) < 0) 98 if (fcntl(fd, F_GETLK, &lock) < 0)
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | file_common.h | 51 #include <fcntl.h>
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
H A D | zed_fd_spill-zedlet.c | 16 #include <fcntl.h>
|
/freebsd-13-stable/contrib/ntp/libntp/ |
H A D | socket.c | 102 newfd = fcntl(fd, F_DUPFD, socket_boundary); 146 if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) { 148 "fcntl(O_NONBLOCK) fails on fd #%d: %m", fd); 152 if (fcntl(fd, F_SETFL, FNDELAY) < 0) { 153 msyslog(LOG_ERR, "fcntl(FNDELAY) fails on fd #%d: %m", 158 if (fcntl(fd, F_SETFL, O_NDELAY) < 0) { 159 msyslog(LOG_ERR, "fcntl(O_NDELAY) fails on fd #%d: %m",
|
/freebsd-13-stable/contrib/netbsd-tests/fs/psshfs/ |
H A D | h_have_puffs.c | 29 #include <fcntl.h>
|
/freebsd-13-stable/crypto/openssh/openbsd-compat/ |
H A D | daemon.c | 44 # include <fcntl.h>
|
/freebsd-13-stable/tests/sys/cddl/zfs/bin/ |
H A D | file_common.h | 46 #include <fcntl.h>
|
/freebsd-13-stable/tools/build/cross-build/include/linux/ |
H A D | fcntl.h | 41 /* <bits/fcntl.h> includes <bits/stat.h> which contains a member __unused */ 43 #include_next <fcntl.h>
|
/freebsd-13-stable/tools/regression/security/cap_test/ |
H A D | cap_test_fcntl.c | 29 * Test that fcntl works in capability mode. 46 #include <fcntl.h> 60 * Ensure that fcntl() works consistently for both regular file descriptors and 100 * Ensure that we can fcntl() all the files that we opened above. 107 CHECK_SYSCALL_SUCCEEDS(fcntl, f.f_fd, F_GETFL, 0); 109 if (fcntl(f.f_fd, F_GETFL, 0) == -1) 110 FAIL("Error calling fcntl('%s', F_GETFL)", f.f_name); 112 CHECK_NOTCAPABLE(fcntl, cap, F_GETFL, 0);
|
/freebsd-13-stable/tests/sys/file/ |
H A D | flock_helper.c | 41 #include <fcntl.h> 158 if (fcntl(fd, F_GETLK, &fl1) < 0) 177 * If a shared or exclusive lock cannot be set, fcntl returns 211 if (fcntl(fd, F_SETLK, &fl) < 0) 227 * fcntl should return -1 with errno set to either EACCES or 231 res = fcntl(fd, F_SETLK, &fl); 282 if (fcntl(fd, F_SETLK, &fl) < 0) 298 * fcntl should wait until the alarm and then return -1 with 305 res = fcntl(fd, F_SETLKW, &fl); 351 if (fcntl(f [all...] |
/freebsd-13-stable/tests/sys/kern/pipe/ |
H A D | big_pipe_test.c | 4 #include <fcntl.h> 56 flags = fcntl(fd[1], F_GETFL); 57 if (flags == -1 || fcntl(fd[1], F_SETFL, flags|O_NONBLOCK) == -1) { 58 printf("fcntl failed: %s\n", strerror(errno));
|
/freebsd-13-stable/tools/regression/sockets/accept_fd_leak/ |
H A D | accept_fd_leak.c | 37 #include <fcntl.h> 110 i = fcntl(s, F_GETFL); 114 if (fcntl(s, F_SETFL, i) != 0) 116 i = fcntl(s, F_GETFL); 177 i = fcntl(s, F_GETFL); 181 if (fcntl(s, F_SETFL, i) != 0) 183 i = fcntl(s, F_GETFL);
|
/freebsd-13-stable/contrib/netbsd-tests/net/net/ |
H A D | t_tcp.c | 51 #include <fcntl.h> 121 fl = fcntl(srvr, F_GETFL, 0); 125 ok = fcntl(srvr, F_SETFL, fl & ~O_NONBLOCK); 136 fl = fcntl(as, F_GETFL, 0); 141 ok = fcntl(as, F_SETFL, fl & ~O_NONBLOCK); 145 fl = fcntl(as, F_GETFL, 0); 189 atf_tc_set_md_var(tc, "descr", "Check that fcntl(2) resets " 202 atf_tc_set_md_var(tc, "descr", "Check that fcntl(2) resets "
|
/freebsd-13-stable/contrib/apr/file_io/unix/ |
H A D | flock.c | 20 #include <fcntl.h> 45 /* keep trying if fcntl() gets interrupted (by a signal) */ 46 while ((rc = fcntl(thefile->filedes, fc, &l)) < 0 && errno == EINTR) 98 /* keep trying if fcntl() gets interrupted (by a signal) */ 99 while ((rc = fcntl(thefile->filedes, F_SETLKW, &l)) < 0
|
/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | flock.c | 62 code = fcntl(fd, F_SETLK, &arg); 66 code = fcntl(fd, cmd, &arg); 70 code = fcntl(fd, cmd, &arg);
|
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/Host/ |
H A D | PseudoTerminal.h | 12 #include <fcntl.h>
|
/freebsd-13-stable/contrib/sendmail/libsm/ |
H A D | t-fopen.c | 13 #include <fcntl.h>
|
/freebsd-13-stable/contrib/sendmail/libsmutil/ |
H A D | lockfile.c | 20 ** LOCKFILE -- lock a file using flock or (shudder) fcntl locking 59 if (fcntl(fd, action, &lfd) >= 0) 66 ** previous fcntl will fail with "Invalid argument" errors.
|
/freebsd-13-stable/crypto/heimdal/admin/ |
H A D | ktutil_locl.h | 48 #include <fcntl.h>
|
/freebsd-13-stable/crypto/heimdal/appl/rcp/ |
H A D | rcp_locl.h | 50 #include <fcntl.h>
|
/freebsd-13-stable/lib/libc/sys/ |
H A D | openat.c | 37 #include <sys/fcntl.h>
|