Lines Matching refs:fspec

1397 check_fspec (struct File_spec *fspec, struct File_spec **prev_fspec)  in check_fspec()  argument
1402 if (fspec->fd == -1) in check_fspec()
1405 name = pretty_name (fspec); in check_fspec()
1407 if (fstat (fspec->fd, &stats) != 0) in check_fspec()
1409 fspec->errnum = errno; in check_fspec()
1410 close_fd (fspec->fd, name); in check_fspec()
1411 fspec->fd = -1; in check_fspec()
1420 if (S_ISREG (fspec->mode) && stats.st_size < fspec->size) in check_fspec()
1423 xlseek (fspec->fd, 0, SEEK_SET, name); in check_fspec()
1424 fspec->size = 0; in check_fspec()
1426 else if (S_ISREG (fspec->mode) && stats.st_size == fspec->size in check_fspec()
1427 && timespec_cmp (fspec->mtime, get_stat_mtime (&stats)) == 0) in check_fspec()
1430 bool want_header = print_headers && (fspec != *prev_fspec); in check_fspec()
1432 uintmax_t bytes_read = dump_remainder (want_header, name, fspec->fd, in check_fspec()
1434 fspec->size += bytes_read; in check_fspec()
1438 *prev_fspec = fspec; in check_fspec()
1607 struct File_spec *fspec; in tail_forever_inotify() local
1718 fspec = &(f[j]); in tail_forever_inotify()
1746 new_watch = (! deleting) && (fspec->wd < 0 || new_wd != fspec->wd); in tail_forever_inotify()
1750 if (0 <= fspec->wd) in tail_forever_inotify()
1752 inotify_rm_watch (wd, fspec->wd); in tail_forever_inotify()
1753 hash_remove (wd_to_name, fspec); in tail_forever_inotify()
1756 fspec->wd = new_wd; in tail_forever_inotify()
1764 struct File_spec *prev = hash_remove (wd_to_name, fspec); in tail_forever_inotify()
1765 if (prev && prev != fspec) in tail_forever_inotify()
1773 if (hash_insert (wd_to_name, fspec) == nullptr) in tail_forever_inotify()
1778 recheck (fspec, false); in tail_forever_inotify()
1784 fspec = hash_lookup (wd_to_name, &key); in tail_forever_inotify()
1787 if (! fspec) in tail_forever_inotify()
1798 inotify_rm_watch (wd, fspec->wd); in tail_forever_inotify()
1799 hash_remove (wd_to_name, fspec); in tail_forever_inotify()
1810 recheck (fspec, false); in tail_forever_inotify()
1814 check_fspec (fspec, &prev_fspec); in tail_forever_inotify()