| /netbsd-src/lib/libutil/ |
| H A D | pidlock.c | 49 pidlock(const char *lockfile, int flags, pid_t *locker, const char *info) in pidlock() argument 61 _DIAGASSERT(lockfile != NULL); in pidlock() 81 if (snprintf(tempfile, sizeof(tempfile), "%s.%d.%s", lockfile, in pidlock() 118 while (link(tempfile, lockfile) == -1) { in pidlock() 122 if ((f = open(lockfile, O_RDONLY, 0)) != -1) { in pidlock() 144 (void)unlink(lockfile); in pidlock() 214 char lockfile[MAXPATHLEN]; in ttylock() local 222 return pidlock(makelock(lockfile, sizeof(lockfile), tty), in ttylock() 229 char lockfile[MAXPATHLEN]; in ttyunlock() local 237 return unlink(makelock(lockfile, sizeof(lockfile), tty)); in ttyunlock()
|
| /netbsd-src/tests/kernel/ |
| H A D | t_lockf.c | 62 const char *lockfile = "lockf_test"; variable 77 fd = open (lockfile, O_RDWR, 0); in trylocks() 80 err(1, "%s", lockfile); in trylocks() 128 (void)unlink(lockfile); in ATF_TC_BODY() 130 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); in ATF_TC_BODY() 131 ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", lockfile, strerror(errno)); in ATF_TC_BODY() 134 "ftruncate(%s): %s", lockfile, strerror(errno)); in ATF_TC_BODY() 223 (void)unlink(lockfile); in ATF_TC_BODY() 225 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); in ATF_TC_BODY() 226 ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", lockfile, strerror(errno)); in ATF_TC_BODY() [all …]
|
| /netbsd-src/external/gpl2/lvm2/dist/lib/locking/ |
| H A D | file_locking.c | 258 char lockfile[PATH_MAX]; in _file_lock_resource() local 271 dm_snprintf(lockfile, sizeof(lockfile), in _file_lock_resource() 274 dm_snprintf(lockfile, sizeof(lockfile), in _file_lock_resource() 277 if (!_lock_file(lockfile, flags)) in _file_lock_resource()
|
| /netbsd-src/libexec/mail.local/ |
| H A D | mail.local.c | 77 int ch, fd, eval, lockfile = 0; in main() local 98 lockfile++; in main() 124 rval = deliver(fd, *argv, lockfile); in main() 195 deliver(int fd, char *name, int lockfile) in deliver() argument 219 if (lockfile) { in deliver() 303 if (lockfile) { in deliver()
|
| /netbsd-src/external/bsd/unbound/dist/contrib/ |
| H A D | unbound.init_fedora | 31 lockfile=/var/lock/subsys/unbound 51 [ $retval -eq 0 ] && touch $lockfile 60 [ $retval -eq 0 ] && rm -f $lockfile
|
| H A D | unbound.init_yocto | 32 lockfile=/var/lock/subsys/$prog 67 [ $retval -eq 0 ] && touch $lockfile 77 [ $retval -eq 0 ] && rm -f $lockfile
|
| H A D | unbound.init | 32 lockfile=/var/lock/subsys/$prog 67 [ $retval -eq 0 ] && touch $lockfile 77 [ $retval -eq 0 ] && rm -f $lockfile
|
| /netbsd-src/external/gpl2/lvm2/dist/daemons/cmirrord/ |
| H A D | clogd.c | 90 static int create_lockfile(char *lockfile) in create_lockfile() argument 96 if((fd = open(lockfile, O_CREAT | O_WRONLY, in create_lockfile() 119 unlink(lockfile); in create_lockfile()
|
| /netbsd-src/external/bsd/am-utils/dist/conf/mtab/ |
| H A D | mtab_svr4.c | 82 lockfile(int fd, int type) in lockfile() function 119 if (lockfile(mntent_lock_fd, F_WRLCK) < 0) { in lockmnttab()
|
| H A D | mtab_isc3.c | 65 lockfile(int fd, int type) in lockfile() function 84 if (lockfile(mtlckf, F_WRLCK) < 0) { in lockmnttab()
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | sshkey-xmss.c | 447 char *statefile = NULL, *ostatefile = NULL, *lockfile = NULL; in sshkey_xmss_get_state() local 469 if (asprintf(&lockfile, "%s.lock", filename) == -1 || in sshkey_xmss_get_state() 475 if ((lockfd = open(lockfile, O_CREAT|O_RDONLY, 0600)) == -1) { in sshkey_xmss_get_state() 477 PRINT("cannot open/create: %s", lockfile); in sshkey_xmss_get_state() 483 PRINT("cannot lock: %s", lockfile); in sshkey_xmss_get_state() 488 PRINT("giving up on: %s", lockfile); in sshkey_xmss_get_state() 525 free(lockfile); in sshkey_xmss_get_state()
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-c++-kde/admin/ |
| H A D | ltmain.sh | 580 lockfile="$output_obj.lock" 581 removelist="$removelist $output_obj $lockfile" 586 lockfile= 592 until $run ln "$0" "$lockfile" 2>/dev/null; do 593 $show "Waiting for $lockfile to be removed" 597 if test -f "$lockfile"; then 599 *** ERROR, $lockfile exists and contains: 600 `cat $lockfile 2>/dev/null` 612 echo $srcfile > "$lockfile" 669 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/mit/libuv/dist/docs/ |
| H A D | requirements.txt | 21 lockfile==0.12.2
|
| /netbsd-src/external/gpl3/binutils/dist/ |
| H A D | ltmain.sh | 1469 lockfile="$output_obj.lock" 1473 lockfile= 1479 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 1480 func_echo "Waiting for $lockfile to be removed" 1484 if test -f "$lockfile"; then 1486 *** ERROR, $lockfile exists and contains: 1487 `cat $lockfile 2>/dev/null` 1500 $ECHO "$srcfile" > "$lockfile" 1504 removelist="$removelist $lockfile" 1536 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/ |
| H A D | ltmain.sh | 1469 lockfile="$output_obj.lock" 1473 lockfile= 1479 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 1480 func_echo "Waiting for $lockfile to be removed" 1484 if test -f "$lockfile"; then 1486 *** ERROR, $lockfile exists and contains: 1487 `cat $lockfile 2>/dev/null` 1500 $ECHO "$srcfile" > "$lockfile" 1504 removelist="$removelist $lockfile" 1536 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/gpl3/gdb.old/dist/ |
| H A D | ltmain.sh | 1469 lockfile="$output_obj.lock" 1473 lockfile= 1479 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 1480 func_echo "Waiting for $lockfile to be removed" 1484 if test -f "$lockfile"; then 1486 *** ERROR, $lockfile exists and contains: 1487 `cat $lockfile 2>/dev/null` 1500 $ECHO "$srcfile" > "$lockfile" 1504 removelist="$removelist $lockfile" 1536 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/ |
| H A D | ltmain.sh | 1469 lockfile="$output_obj.lock" 1473 lockfile= 1479 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 1480 func_echo "Waiting for $lockfile to be removed" 1484 if test -f "$lockfile"; then 1486 *** ERROR, $lockfile exists and contains: 1487 `cat $lockfile 2>/dev/null` 1500 $ECHO "$srcfile" > "$lockfile" 1504 removelist="$removelist $lockfile" 1536 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/ |
| H A D | ltmain.sh | 1469 lockfile="$output_obj.lock" 1473 lockfile= 1479 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 1480 func_echo "Waiting for $lockfile to be removed" 1484 if test -f "$lockfile"; then 1486 *** ERROR, $lockfile exists and contains: 1487 `cat $lockfile 2>/dev/null` 1500 $ECHO "$srcfile" > "$lockfile" 1504 removelist="$removelist $lockfile" 1536 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/bsd/am-utils/dist/ |
| H A D | ltmain.sh | 2139 lockfile="$output_obj.lock" 2143 lockfile= 2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 2150 func_echo "Waiting for $lockfile to be removed" 2154 if test -f "$lockfile"; then 2156 *** ERROR, $lockfile exists and contains: 2157 `cat $lockfile 2>/dev/null` 2170 $ECHO "$srcfile" > "$lockfile" 2174 func_append removelist " $lockfile" 2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/sys/external/isc/libsodium/dist/ |
| H A D | ltmain.sh | 2139 lockfile="$output_obj.lock" 2143 lockfile= 2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do 2150 func_echo "Waiting for $lockfile to be removed" 2154 if test -f "$lockfile"; then 2156 *** ERROR, $lockfile exists and contains: 2157 `cat $lockfile 2>/dev/null` 2170 $ECHO "$srcfile" > "$lockfile" 2174 func_append removelist " $lockfile" 2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/gpl2/gettext/dist/build-aux/ |
| H A D | ltmain.sh | 842 lockfile="$output_obj.lock" 843 removelist="$removelist $output_obj $lockfile" 848 lockfile= 854 until $run ln "$progpath" "$lockfile" 2>/dev/null; do 855 $show "Waiting for $lockfile to be removed" 859 if test -f "$lockfile"; then 861 *** ERROR, $lockfile exists and contains: 862 `cat $lockfile 2>/dev/null` 874 $echo "$srcfile" > "$lockfile" 938 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/bsd/libbind/dist/ |
| H A D | ltmain.sh | 908 lockfile="$output_obj.lock" 909 removelist="$removelist $output_obj $lockfile" 914 lockfile= 920 until $run ln "$progpath" "$lockfile" 2>/dev/null; do 921 $show "Waiting for $lockfile to be removed" 925 if test -f "$lockfile"; then 927 *** ERROR, $lockfile exists and contains: 928 `cat $lockfile 2>/dev/null` 940 $echo "$srcfile" > "$lockfile" 1002 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/bsd/iscsi/dist/buildaux/ |
| H A D | ltmain.sh | 925 lockfile="$output_obj.lock" 926 removelist="$removelist $output_obj $lockfile" 931 lockfile= 937 until $run ln "$progpath" "$lockfile" 2>/dev/null; do 938 $show "Waiting for $lockfile to be removed" 942 if test -f "$lockfile"; then 944 *** ERROR, $lockfile exists and contains: 945 `cat $lockfile 2>/dev/null` 957 $echo "$srcfile" > "$lockfile" 1019 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|
| /netbsd-src/external/gpl2/rcs/dist/src/ |
| H A D | rcstest | 60 lockfile=RCS${SLASH}a._ 73 rm -f a.* RCSfile $RCS_alt lockfile && 451 test ! -f $lockfile || { echo "#lock file not removed"; exit 1; }
|
| /netbsd-src/crypto/external/bsd/netpgp/dist/buildaux/ |
| H A D | ltmain.sh | 925 lockfile="$output_obj.lock" 926 removelist="$removelist $output_obj $lockfile" 931 lockfile= 937 until $run ln "$progpath" "$lockfile" 2>/dev/null; do 938 $show "Waiting for $lockfile to be removed" 942 if test -f "$lockfile"; then 944 *** ERROR, $lockfile exists and contains: 945 `cat $lockfile 2>/dev/null` 957 $ECHO "$srcfile" > "$lockfile" 1019 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then [all …]
|