Searched refs:fcntl (Results 51 - 75 of 2108) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/ipfilter/lib/
H A Dpoolio.c9 #include <fcntl.h>
H A Dcheckrev.c12 #include <fcntl.h>
/freebsd-13-stable/contrib/file/src/
H A Dpread.c5 #include <fcntl.h>
/freebsd-13-stable/contrib/apr/poll/unix/
H A Dwakeup.c95 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 Dzed_file.c17 #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 Dfile_common.h51 #include <fcntl.h>
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/
H A Dzed_fd_spill-zedlet.c16 #include <fcntl.h>
/freebsd-13-stable/contrib/ntp/libntp/
H A Dsocket.c102 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 Dh_have_puffs.c29 #include <fcntl.h>
/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Ddaemon.c44 # include <fcntl.h>
/freebsd-13-stable/tests/sys/cddl/zfs/bin/
H A Dfile_common.h46 #include <fcntl.h>
/freebsd-13-stable/tools/build/cross-build/include/linux/
H A Dfcntl.h41 /* <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 Dcap_test_fcntl.c29 * 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 Dflock_helper.c41 #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 Dbig_pipe_test.c4 #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 Daccept_fd_leak.c37 #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 Dt_tcp.c51 #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 Dflock.c20 #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 Dflock.c62 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 DPseudoTerminal.h12 #include <fcntl.h>
/freebsd-13-stable/contrib/sendmail/libsm/
H A Dt-fopen.c13 #include <fcntl.h>
/freebsd-13-stable/contrib/sendmail/libsmutil/
H A Dlockfile.c20 ** 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 Dktutil_locl.h48 #include <fcntl.h>
/freebsd-13-stable/crypto/heimdal/appl/rcp/
H A Drcp_locl.h50 #include <fcntl.h>
/freebsd-13-stable/lib/libc/sys/
H A Dopenat.c37 #include <sys/fcntl.h>

Completed in 165 milliseconds

1234567891011>>