Home | History | Annotate | Download | only in kernel

Lines Matching defs:lockfile

62 const char *lockfile = "lockf_test";
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));
229 "ftruncate(%s): %s", lockfile, strerror(errno));