Searched refs:F_SETLK (Results 1 - 25 of 37) sorted by relevance

12

/netbsd-current/tools/compat/
H A Dflock.c46 #if defined(F_SETLK) && defined(F_SETLKW)
68 rc = fcntl(fd, op & LOCK_NB ? F_SETLK : F_SETLKW, &fl);
/netbsd-current/lib/libc/gen/
H A Dlockf.c59 cmd = F_SETLK;
67 cmd = F_SETLK;
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dflock.c48 #if defined(HAVE_FCNTL) && defined(F_SETLK)
57 cmd = F_SETLK;
64 code = fcntl(fd, F_SETLK, &arg);
/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Dmyflock.c134 request = (operation & MYFLOCK_OP_NOWAIT) ? F_SETLK : F_SETLKW;
/netbsd-current/external/gpl2/lvm2/dist/lib/misc/
H A Dlvm-file.c69 if (!fcntl(*fd, F_SETLK, &lock))
269 if (fcntl(lockfd, F_SETLK, &lock) == -1)
/netbsd-current/sys/kern/
H A Dsys_descrip.c259 /* Fall into F_SETLK */
262 case F_SETLK:
274 error = (*fo_advlock)(fp, p, F_SETLK, fl, flg);
287 error = (*fo_advlock)(fp, p, F_SETLK, fl, flg);
362 case F_SETLK:
657 error = (*fo_advlock)(fp, fp, F_SETLK, &lf, F_FLOCK);
659 error = (*fo_advlock)(fp, fp, F_SETLK, &lf, F_FLOCK|F_WAIT);
H A Dvfs_lockf.c846 case F_SETLK:
873 case F_SETLK:
900 if (ap->a_op != F_SETLK) {
927 case F_SETLK:
/netbsd-current/external/gpl2/lvm2/dist/daemons/cmirrord/
H A Dclogd.c105 if (fcntl(fd, F_SETLK, &lock) < 0) {
/netbsd-current/sys/compat/linux/common/
H A Dlinux_fcntl.h180 return do_fcntl_lock(fd, cmd == setlk ? F_SETLK : F_SETLKW, &bfl); \
/netbsd-current/tests/fs/vfs/
H A Dt_vnops.c807 RL(rump_sys_fcntl(fd, F_SETLK, &l));
813 ATF_REQUIRE_ERRNO(EAGAIN, rump_sys_fcntl(fd2, F_SETLK, &l));
818 RL(rump_sys_fcntl(fd, F_SETLK, &l));
823 RL(rump_sys_fcntl(fd2, F_SETLK, &l));
941 RL(rump_sys_fcntl(fd[i], F_SETLK, &lock[i]));
1084 ATF_TC_FSAPPLY(fcntl_lock, "check fcntl F_SETLK");
/netbsd-current/external/bsd/libarchive/dist/libarchive/
H A Darchive_windows.h243 #define F_SETLK 8 /* Set record locking info (non-blocking). */ macro
/netbsd-current/sys/sys/
H A Dfcntl.h190 #define F_SETLK 8 /* set record locking information */ macro
191 #define F_SETLKW 9 /* F_SETLK; wait if blocked */
210 /* record locking flags (F_GETLK, F_SETLK, F_SETLKW) */
/netbsd-current/sys/fs/nfs/nlm/
H A Dnlm_advlock.c229 if (op == F_SETLK || op == F_UNLCK)
294 case F_SETLK:
309 vp, F_SETLK, fl, flags & ~F_WAIT,
326 &timo, retries, vp, F_SETLK, fl,
513 error = nlm_advlock_internal(vp, NULL, F_SETLK, fl, F_REMOTE,
/netbsd-current/external/gpl3/gcc.old/dist/libgfortran/io/
H A Dunix.c1497 #if defined(HAVE_FCNTL) && defined(F_SETLK) && defined(F_UNLCK)
1514 r = fcntl (fd, F_SETLK, &f);
1525 r = fcntl (fd, F_SETLK, &f);
1881 #if defined(HAVE_FCNTL) && defined(F_SETLK) && defined(F_UNLCK)
1896 r = fcntl (fd, F_SETLK, &f);
/netbsd-current/external/gpl3/gcc/dist/libgfortran/io/
H A Dunix.c1497 #if defined(HAVE_FCNTL) && defined(F_SETLK) && defined(F_UNLCK)
1514 r = fcntl (fd, F_SETLK, &f);
1525 r = fcntl (fd, F_SETLK, &f);
1881 #if defined(HAVE_FCNTL) && defined(F_SETLK) && defined(F_UNLCK)
1896 r = fcntl (fd, F_SETLK, &f);
/netbsd-current/external/bsd/am-utils/dist/conf/mtab/
H A Dmtab_linux.c237 if (fcntl(lockfile_fd, F_SETLK, &flock) == -1) {
/netbsd-current/external/bsd/ppp/usr.sbin/pppd/
H A Dtdb.c1157 if (tdb_brlock(&tdb, ACTIVE_LOCK, LOCK_SET, F_WRLCK, F_SETLK) == 0) {
1159 tdb_brlock(&tdb, ACTIVE_LOCK, LOCK_CLEAR, F_WRLCK, F_SETLK);
/netbsd-current/lib/libukfs/
H A Dukfs.c417 if (fcntl(fd, F_SETLK, &flarg) == -1)
476 if (fcntl(devfd, F_SETLK, &flarg) == -1) {
/netbsd-current/libexec/ftpd/
H A Dconf.c908 if (fcntl(fd, F_SETLK, &fl) == -1)
951 (void)fcntl(fd, F_SETLK, &fl);
/netbsd-current/sys/compat/ultrix/
H A Dultrix_misc.c748 case F_SETLK:
/netbsd-current/external/mpl/bind/dist/bin/named/
H A Dos.c860 if (fcntl(singletonfd, F_SETLK, &lock) == -1) {
/netbsd-current/external/bsd/nvi/dist/common/
H A Dexf.c1509 if (!fcntl(fd, F_SETLK, &arg))
/netbsd-current/sys/fs/nfs/client/
H A Dnfs_clvnops.c3026 ap->a_op == F_SETLK) {
3039 ap->a_op == F_SETLK);
3056 if (ap->a_op == F_SETLK) {
3096 if (error == 0 && ap->a_op == F_SETLK) {
/netbsd-current/sys/compat/sunos/
H A Dsunos_ioctl.c1051 case F_SETLK:
/netbsd-current/sys/compat/sunos32/
H A Dsunos32_ioctl.c1081 case F_SETLK:

Completed in 374 milliseconds

12