Lines Matching refs:stat
235 #include <sys/stat.h> /* stat */
345 if stat() or unlink() fails, it may be due to another process noticing the
351 struct stat st;
357 if (stat(log->path, &st) == 0 && time(NULL) - st.st_mtime > PATIENCE) {
364 if (stat(log->path, &st) == 0)
374 struct stat st;
378 if (stat(log->path, &st) == 0)
386 struct stat st;
389 if (stat(log->path, &st) || st.st_mtime != log->lock)
743 struct stat st;
751 if (stat(log->path, &st) == 0 && st.st_size) {