/freebsd/usr.bin/lockf/tests/ |
H A D | lockf_test.sh | 37 atf_check -s exit:${EX_USAGE} -e not-empty lockf 38 atf_check -s exit:${EX_USAGE} -e not-empty lockf "testlock" 46 lockf "testlock" sleep 10 & 56 lockf -t 0 "testlock" sleep 0 58 lockf -t 0 -s "testlock" sleep 0 70 atf_check lockf -k "9" sleep 0 79 lockf -s -t 0 9 101 lockf -s -t 0 /dev/fd/9 127 lockf -s -t 0 9 134 lockf -s 9 [all …]
|
/freebsd/sys/sys/ |
H A D | lockf.h | 112 struct lockf { struct 113 LIST_ENTRY(lockf) ls_link; /* (S) all active lockf states */ 119 LIST_HEAD(lockf_list, lockf); argument 123 int lf_advlock(struct vop_advlock_args *, struct lockf **, u_quad_t); 124 int lf_advlockasync(struct vop_advlockasync_args *, struct lockf **, u_quad_t); 125 void lf_purgelocks(struct vnode *vp, struct lockf **statep);
|
/freebsd/sys/kern/ |
H A D | kern_lockf.c | 109 static int lf_clearlock(struct lockf *, struct lockf_entry *); 120 static int lf_add_outgoing(struct lockf *, struct lockf_entry *); 121 static int lf_add_incoming(struct lockf *, struct lockf_entry *); 125 lf_getblock(struct lockf *, struct lockf_entry *); 126 static int lf_getlock(struct lockf *, struct lockf_entry *, struct flock *); 127 static void lf_insert_lock(struct lockf *, struct lockf_entry *); 128 static void lf_wakeup_lock(struct lockf *, struct lockf_entry *); 129 static void lf_update_dependancies(struct lockf *, struct lockf_entry *, 131 static void lf_set_start(struct lockf *, struct lockf_entry *, off_t, 133 static void lf_set_end(struct lockf *, struct lockf_entry *, off_t, [all …]
|
/freebsd/tools/test/stress2/testcases/lockf/ |
H A D | lockf.c | 53 r = lockf(fd, F_LOCK, 0); in get() 68 if (lockf(fd, F_ULOCK, 0) == -1) in get() 78 r = lockf(fd, F_LOCK, 0); in incr() 91 if (lockf(fd, F_ULOCK, 0) == -1) in incr()
|
H A D | Makefile | 1 PROG= lockf
|
/freebsd/tools/test/stress2/ |
H A D | lockf.cfg | 6 export TESTPROGS="testcases/lockf2/lockf2 testcases/lockf/lockf testcases/swap/swap"
|
H A D | marcus.cfg | 18 testcases/lockf/lockf
|
/freebsd/tools/test/stress2/misc/ |
H A D | fts2.sh | 91 if (lockf(fd, F_LOCK, 0) == -1) 97 if (lockf(fd, F_ULOCK, 0) == -1) 105 if (lockf(fd, F_LOCK, 0) == -1) 116 if (lockf(fd, F_ULOCK, 0) == -1)
|
H A D | lockd.sh | 43 lockf -t 10 $mntpoint/$$.lock sleep 2 > /tmp/$$.log 2>&1 54 lockf -t 10 $mntpoint/$0.$$.$i sleep 2 &
|
H A D | lockf.sh | 47 lockf -t 10 $mntpoint/$$.lock sleep 2 || fail=1 58 lockf -t 10 $mntpoint/$0.$$.$j sleep 3 &
|
H A D | nfs15lockd3.sh | 70 lockf -t 10 $mntpoint/$$.lock sleep 2 > /tmp/$$.log 2>&1 162 r = lockf(fd, F_LOCK, 0); 170 if (lockf(fd, F_ULOCK, 0) == -1)
|
H A D | nfs15lockd.sh | 62 lockf -t 10 $mntpoint/$$.lock sleep 2 > /tmp/$$.log 2>&1 156 r = lockf(fd, F_LOCK, 0); 164 if (lockf(fd, F_ULOCK, 0) == -1)
|
H A D | lockf3.sh | 114 if (lockf(fd, F_LOCK, 0) == -1) 130 if (lockf(fd, F_LOCK, 0) == -1)
|
H A D | lockf4.sh | 88 while (lockf(fd, F_LOCK, sizeof(v)) == -1) { 109 if (lockf(fd, F_ULOCK, sizeof(v)) == -1)
|
H A D | nfs15.sh | 129 r = lockf(fd, F_LOCK, 0); 136 if (lockf(fd, F_ULOCK, 0) == -1)
|
H A D | nfs16.sh | 112 r = lockf(fd, F_LOCK, 0); 120 if (lockf(fd, F_ULOCK, 0) == -1)
|
H A D | lockf2.sh | 33 lockf -t 10 $file sleep 3 &
|
H A D | sysctl.sh | 40 vmstat -m | grep -q lockf || echo "vmstat -m Failed"
|
H A D | cluster.sh | 105 while (lockf(fd, F_LOCK, ln) == -1) { 113 if (lockf(fd, F_ULOCK, ln) == -1)
|
H A D | lockf5.sh | 50 (cd $mntpoint/$0; lockf -t 10 f$i sleep 5) > /dev/null 2>&1 &
|
/freebsd/tools/test/stress2/testcases/lockf2/ |
H A D | lockf2.c | 118 r = lockf(fd, F_LOCK, size); in test() 123 if (lockf(fd, F_ULOCK, size) == -1) in test()
|
/freebsd/usr.bin/lockf/ |
H A D | Makefile | 3 PROG= lockf
|
/freebsd/tools/test/stress2/testcases/ |
H A D | Makefile | 8 lockf \
|
/freebsd/lib/libc/sys/ |
H A D | Makefile.inc | 24 lockf.c \
|
H A D | lockf.c | 1 /* $NetBSD: lockf.c,v 1.3 2008/04/28 20:22:59 martin Exp $ */ 41 lockf(int filedes, int function, off_t size) in lockf() function
|