/src/lib/libutil/ |
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) 61 _DIAGASSERT(lockfile != NULL); 81 if (snprintf(tempfile, sizeof(tempfile), "%s.%d.%s", lockfile, 118 while (link(tempfile, lockfile) == -1) { 121 /* Find out who has this lockfile. */ 122 if ((f = open(lockfile, O_RDONLY, 0)) != -1) { 144 (void)unlink(lockfile); 214 char lockfile[MAXPATHLEN]; local in function:ttylock 222 return pidlock(makelock(lockfile, sizeof(lockfile), tty) 229 char lockfile[MAXPATHLEN]; local in function:ttyunlock [all...] |
/src/tests/kernel/ |
t_lockf.c | 62 const char *lockfile = "lockf_test"; variable in typeref:typename:const char * 77 fd = open (lockfile, O_RDWR, 0); 80 err(1, "%s", lockfile); 128 (void)unlink(lockfile); 130 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); 131 ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", lockfile, strerror(errno)); 134 "ftruncate(%s): %s", lockfile, strerror(errno)); 223 (void)unlink(lockfile); 225 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); 226 ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", lockfile, strerror(errno)) [all...] |
/src/libexec/mail.local/ |
mail.local.c | 77 int ch, fd, eval, lockfile = 0; local in function:main 98 lockfile++; 124 rval = deliver(fd, *argv, lockfile); 195 deliver(int fd, char *name, int lockfile) 219 if (lockfile) { 303 if (lockfile) {
|
/src/sys/external/isc/libsodium/dist/build-aux/ |
ltmain.sh | 3455 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 2>/dev/null`" != "X$srcfile"; the [all...] |
/src/sys/external/isc/libsodium/dist/ |
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"; the [all...] |