Lines Matching refs:logfile
71 const char *logfile = "test.log";
89 stat(logfile, &sb);
111 if ((fd = open(logfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1)
112 err(1, "creat(%s)", logfile);
123 if (rename(logfile, new) == -1)
124 warn("rename(%s, %s)", logfile, new);
127 if (link(logfile, new) == -1)
128 err(1, "link(%s, %s)", logfile, new);
129 if (unlink(logfile) == -1)
130 err(1, "unlink(%s)", logfile);
133 * stat() for logfile and new will be identical sometimes,
136 r1 = stat(logfile, &sb1);
142 "size = %jd\n", logfile, (uintmax_t)sb1.st_ino,
156 "size = %jd\n", logfile,