Lines Matching refs:lockfile
62 const char *lockfile = "lockf_test";
77 fd = open (lockfile, O_RDWR, 0);
80 err(1, "%s", lockfile);
131 (void)unlink(lockfile);
133 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
134 ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", lockfile, strerror(errno));
137 "ftruncate(%s): %s", lockfile, strerror(errno));
226 (void)unlink(lockfile);
228 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666);
229 ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", lockfile, strerror(errno));
232 "ftruncate(%s): %s", lockfile, strerror(errno));