Lines Matching +full:on +full:- +full:the +full:- +full:go
8 # modification, are permitted provided that the following conditions
10 # 1. Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 # 2. Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
42 mycc -o pthread9 -Wall -Wextra -O2 pthread9.c -lpthread || exit 1
43 rm -f pthread9.c
46 if ping -c 2 `echo $nfs_export | sed 's/:.*//'` > /dev/null 2>&1; then
47 mount -t nfs -o nfsv3,tcp,nolockd,retrycnt=3,intr $nfs_export \
53 if pgrep -q pthread9; then
55 procstat -k `pgrep pthread9 | grep -v $!`
58 rm -f $mntpoint/pthread9.core
59 umount -f $mntpoint
63 rm -f /tmp/pthread9 /tmp/pthread9.core
87 volatile u_int go;
99 while (go == 0)
102 atomic_add_int(&go, 1);
104 if (ftruncate(fd, 0) == -1)
118 while (go == 0)
121 atomic_add_int(&go, 1);
123 if (ftruncate(fd, 0) == -1)
136 while (go != 3)
149 go = 0;
157 atomic_add_int(&go, 1);
172 if ((fd = open(file, O_RDWR | O_CREAT, 0644)) == -1)
176 while (time(NULL) - start < RUNTIME) {