Lines Matching +full:on +full:- +full:the +full:- +full:go

4 # SPDX-License-Identifier: BSD-2-Clause
9 # modification, are permitted provided that the following conditions
11 # 1. Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 # 2. Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in the
15 # documentation and/or other materials provided with the distribution.
17 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 # "Use a consistent snapshot of the fd's rights in fget_mmap()"
43 mycc -o mmap37 -Wall -Wextra -O0 mmap37.c -lpthread || exit 1
44 rm -f mmap37.c
46 set -e
47 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
48 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
49 mdconfig -a -t swap -s 2g -u $mdstart
59 mount | grep -q "on $mntpoint " || break
61 [ $i -eq 6 ] &&
62 { echo FATAL; fstat -mf $mntpoint; exit 1; }
64 mdconfig -d -u $mdstart
65 rm -f /tmp/mmap37
86 static volatile int go;
99 while (go == 1) {
100 if ((fd = open(path, 2)) == -1)
109 while (go == 1) {
127 if ((fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0622)) == -1)
130 if (ftruncate(fd, len) == -1)
134 go = 1;
143 go = 0;
149 if (unlink(path) == -1)