/netbsd-6-1-5-RELEASE/lib/libutil/ |
H A D | pidlock.c | 46 * Create a lockfile. Return 0 when locked, -1 on error. 49 pidlock(const char *lockfile, int flags, pid_t *locker, const char *info) argument 61 _DIAGASSERT(lockfile != NULL); 75 if (snprintf(tempfile, sizeof(tempfile), "%s.%d.%s", lockfile, 112 while (link(tempfile, lockfile) == -1) { 115 /* Find out who has this lockfile. */ 116 if ((f = open(lockfile, O_RDONLY, 0)) != -1) { 138 (void)unlink(lockfile); 208 char lockfile[MAXPATHLEN]; local 216 return pidlock(makelock(lockfile, sizeo 223 char lockfile[MAXPATHLEN]; local [all...] |
/netbsd-6-1-5-RELEASE/regress/sys/kern/lockf/ |
H A D | lockf.c | 52 const char *lockfile = "/tmp/lockf_test"; variable 69 fd = open (lockfile, O_RDWR, 0); 72 err(1, "%s", lockfile); 123 (void)unlink(lockfile); 125 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); 127 err(1, "%s", lockfile); 130 err(1, "ftruncate of %s failed", lockfile);
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/named/win32/ |
H A D | os.c | 239 FILE *lockfile; local 262 lockfile = ns_os_openfile(filename, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH, 264 if (lockfile == NULL) { 272 if (fprintf(lockfile, "%ld\n", (long)pid) < 0) { 274 (void)fclose(lockfile); 278 if (fflush(lockfile) == EOF) { 280 (void)fclose(lockfile); 284 (void)fclose(lockfile);
|
/netbsd-6-1-5-RELEASE/external/gpl2/lvm2/dist/lib/locking/ |
H A D | file_locking.c | 258 char lockfile[PATH_MAX]; local 271 dm_snprintf(lockfile, sizeof(lockfile), 274 dm_snprintf(lockfile, sizeof(lockfile), 277 if (!_lock_file(lockfile, flags)) 332 /* Get lockfile directory from config file */ 345 /* Change lockfile directory owner to match with others */
|
/netbsd-6-1-5-RELEASE/libexec/mail.local/ |
H A D | mail.local.c | 76 int ch, fd, eval, lockfile = 0; local 97 lockfile++; 123 rval = deliver(fd, *argv, lockfile); 178 deliver(int fd, char *name, int lockfile) argument 202 if (lockfile) { 256 if (lockfile) {
|
/netbsd-6-1-5-RELEASE/libexec/getty/ |
H A D | main.c | 101 char lockfile[512]; variable 238 (void)strlcpy(lockfile, _PATH_LOCK, 239 sizeof(lockfile)); 240 (void)strlcat(lockfile, argv[2], 241 sizeof(lockfile)); 246 if (pidlock(lockfile, 0, 0, 0) != 0) { 248 "%s: can't create lockfile", ttyn); 251 (void)unlink(lockfile); 275 if (uugetty && pidlock(lockfile, 0, 0, 0) != 0) { 276 syslog(LOG_ERR, "%s: can't create lockfile", [all...] |
/netbsd-6-1-5-RELEASE/external/gpl2/lvm2/dist/daemons/cmirrord/ |
H A D | clogd.c | 86 * @lockfile: location of lock file 90 static int create_lockfile(char *lockfile) argument 96 if((fd = open(lockfile, O_CREAT | O_WRONLY, 119 unlink(lockfile); 206 LOG_ERROR("Failed to create lockfile");
|
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/conf/mtab/ |
H A D | mtab_isc3.c | 69 lockfile(int fd, int type) function 88 if (lockfile(mtlckf, F_WRLCK) < 0) {
|
H A D | mtab_svr4.c | 86 lockfile(int fd, int type) function 123 if (lockfile(mntent_lock_fd, F_WRLCK) < 0) {
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/named/unix/ |
H A D | os.c | 853 FILE *lockfile; local 876 lockfile = ns_os_openfile(filename, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH, 878 if (lockfile == NULL) { 887 if (fprintf(lockfile, "%ld\n", (long)pid) < 0) { 889 (void)fclose(lockfile); 893 if (fflush(lockfile) == EOF) { 895 (void)fclose(lockfile); 899 (void)fclose(lockfile);
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/ntpd/ |
H A D | refclock_acts.c | 728 char lockfile[128], pidbuf[8]; local 756 snprintf(lockfile, sizeof(lockfile), LOCKFILE, 758 fd = open(lockfile, O_WRONLY | O_CREAT | O_EXCL, 876 snprintf(lockfile, sizeof(lockfile), 878 unlink(lockfile);
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/contrib/idn/idnkit-1.0-src/ |
H A D | ltmain.sh | 394 lockfile="$output_obj.lock" 395 removelist="$removelist $output_obj $lockfile" 399 lockfile= 405 until ln "$0" "$lockfile" 2>/dev/null; do 406 $show "Waiting for $lockfile to be removed" 410 if test -f "$lockfile"; then 412 *** ERROR, $lockfile exists and contains: 413 `cat $lockfile 2>/dev/null` 425 echo $srcfile > "$lockfile" 478 test x"`cat $lockfile [all...] |
/netbsd-6-1-5-RELEASE/gnu/usr.bin/rcs/ |
H A D | rcstest | 62 lockfile=RCS${SLASH}a._ 75 rm -f a.* $RCSfile $RCS_alt $lockfile && 453 test ! -f $lockfile || { echo "#lock file not removed"; exit 1; }
|
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/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 [all...] |
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/ |
H A D | ltmain.sh | 577 lockfile="$output_obj.lock" 578 removelist="$removelist $output_obj $lockfile" 583 lockfile= 589 until $run ln "$0" "$lockfile" 2>/dev/null; do 590 $show "Waiting for $lockfile to be removed" 594 if test -f "$lockfile"; then 596 *** ERROR, $lockfile exists and contains: 597 `cat $lockfile 2>/dev/null` 609 echo $srcfile > "$lockfile" 666 test x"`cat $lockfile [all...] |
/netbsd-6-1-5-RELEASE/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 [all...] |
/netbsd-6-1-5-RELEASE/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 [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/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 [all...] |
/netbsd-6-1-5-RELEASE/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 [all...] |
/netbsd-6-1-5-RELEASE/dist/nvi/dist/ |
H A D | ltmain.sh | 872 lockfile="$output_obj.lock" 873 removelist="$removelist $output_obj $lockfile" 878 lockfile= 884 until $run ln "$progpath" "$lockfile" 2>/dev/null; do 885 $show "Waiting for $lockfile to be removed" 889 if test -f "$lockfile"; then 891 *** ERROR, $lockfile exists and contains: 892 `cat $lockfile 2>/dev/null` 904 $echo "$srcfile" > "$lockfile" 966 test "X`cat $lockfile [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/ |
H A D | ltmain.sh | 918 lockfile="$output_obj.lock" 919 removelist="$removelist $output_obj $lockfile" 924 lockfile= 930 until $run ln "$progpath" "$lockfile" 2>/dev/null; do 931 $show "Waiting for $lockfile to be removed" 935 if test -f "$lockfile"; then 937 *** ERROR, $lockfile exists and contains: 938 `cat $lockfile 2>/dev/null` 950 $echo "$srcfile" > "$lockfile" 1012 test "X`cat $lockfile [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/bind/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 [all...] |
/netbsd-6-1-5-RELEASE/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 [all...] |
/netbsd-6-1-5-RELEASE/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 [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/build/ |
H A D | ltmain.sh | 886 lockfile="$output_obj.lock" 887 removelist="$removelist $output_obj $lockfile" 892 lockfile= 898 until $run ln "$progpath" "$lockfile" 2>/dev/null; do 899 $show "Waiting for $lockfile to be removed" 903 if test -f "$lockfile"; then 905 *** ERROR, $lockfile exists and contains: 906 `cat $lockfile 2>/dev/null` 918 $echo "$srcfile" > "$lockfile" 980 test "X`cat $lockfile [all...] |