|
|
@ -46,13 +46,17 @@ f2b_logfile_rotated(const f2b_logfile_t *file) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
if (file->st.st_dev != st.st_dev || |
|
|
|
if (file->st.st_dev != st.st_dev || |
|
|
|
file->st.st_ino != st.st_ino) |
|
|
|
file->st.st_ino != st.st_ino || |
|
|
|
|
|
|
|
file->st.st_size > st.st_size) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ssize_t |
|
|
|
bool |
|
|
|
f2b_logfile_getline(const f2b_logfile_t *file, const char *buf, size_t bufsize) { |
|
|
|
f2b_logfile_getline(const f2b_logfile_t *file, char *buf, size_t bufsize) { |
|
|
|
return -1; |
|
|
|
if (fgets(buf, bufsize, file->fd) != NULL) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|