HomeSort by: relevance | last modified time | path
    Searched defs:lockfile (Results 1 - 3 of 3) sorted by relevancy

  /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) {

Completed in 11 milliseconds