Searched refs:lockfile (Results 1 - 12 of 12) sorted by relevance

/openbsd-current/usr.bin/tmux/
H A Dclient.c79 client_get_lock(char *lockfile) argument
83 log_debug("lock file is %s", lockfile);
85 if ((lockfd = open(lockfile, O_WRONLY|O_CREAT, 0600)) == -1) {
111 char *lockfile = NULL; local
138 xasprintf(&lockfile, "%s.lock", path);
139 if ((lockfd = client_get_lock(lockfile)) < 0) {
142 free(lockfile);
143 lockfile = NULL;
161 free(lockfile);
165 fd = server_start(client_proc, flags, base, lockfd, lockfile);
[all...]
H A Dserver.c174 int lockfd, char *lockfile)
225 unlink(lockfile);
226 free(lockfile);
173 server_start(struct tmuxproc *client, int flags, struct event_base *base, int lockfd, char *lockfile) argument
/openbsd-current/libexec/mail.local/
H A Dmail.local.c59 int ch, fd, eval, lockfile=1; local
77 lockfile=1;
80 lockfile=0;
103 if ((ch = deliver(fd, *argv, lockfile)) != 0)
155 deliver(int fd, char *name, int lockfile) argument
176 if (lockfile) {
182 /* after this point, always exit via bad to remove lockfile */
/openbsd-current/gnu/share/
H A Dltmain.sh394 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"
484 test x"`cat $lockfile
[all...]
/openbsd-current/usr.bin/ssh/
H A Dsshkey-xmss.c444 char *statefile = NULL, *ostatefile = NULL, *lockfile = NULL; local
466 if (asprintf(&lockfile, "%s.lock", filename) == -1 ||
472 if ((lockfd = open(lockfile, O_CREAT|O_RDONLY, 0600)) == -1) {
474 PRINT("cannot open/create: %s", lockfile);
480 PRINT("cannot lock: %s", lockfile);
485 PRINT("giving up on: %s", lockfile);
522 free(lockfile);
/openbsd-current/gnu/lib/libstdc++/
H A Dltmain.sh577 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...]
/openbsd-current/gnu/usr.bin/binutils/
H A Dltmain.sh577 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...]
/openbsd-current/gnu/usr.bin/binutils-2.17/
H A Dltmain.sh577 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...]
/openbsd-current/usr.sbin/unbound/
H A Dltmain.sh3455 lockfile=$output_obj.lock
3459 lockfile=
3465 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3466 func_echo "Waiting for $lockfile to be removed"
3470 if test -f "$lockfile"; then
3472 *** ERROR, $lockfile exists and contains:
3473 `cat $lockfile 2>/dev/null`
3486 $ECHO "$srcfile" > "$lockfile"
3490 func_append removelist " $lockfile"
3521 test "X`cat $lockfile
[all...]
/openbsd-current/gnu/usr.bin/perl/cpan/CPAN/lib/
H A DCPAN.pm717 my $lockfile = File::Spec->catfile($CPAN::Config->{cpan_home},".lock");
718 if (-f $lockfile && -M _ > 0) {
719 my $fh = FileHandle->new($lockfile) or
720 $CPAN::Frontend->mydie("Could not open lockfile '$lockfile': $!");
735 $CPAN::Frontend->mydie(sprintf("CPAN.pm panic: Lockfile '$lockfile'\n".
750 } elsif (-w $lockfile) {
754 qq{the lockfile '$lockfile'? (Y/n)},"y");
759 qq{Lockfile '$lockfile' no
[all...]
/openbsd-current/gnu/usr.bin/cvs/src/
H A Drcs.c8323 char *lockfile, *lockp;
8327 /* Create the lockfile name. */
8329 lockfile = (char *) xmalloc (rcslen + 10);
8332 for (lockp = lockfile, rcsp = rcsfile; rcsp < rcsbase; ++rcsp)
8340 return lockfile;
8319 char *lockfile, *lockp; local
/openbsd-current/gnu/usr.bin/perl/cpan/DB_File/
H A DDB_File.pm2046 An extremely lightweight B<DB_File> wrapper that simply flocks a lockfile
2048 one to use the same lockfile for multiple databases to avoid deadlock

Completed in 160 milliseconds