summaryrefslogtreecommitdiff
path: root/modules/i-ring
Commit message (Collapse)AuthorAgeFilesLines
* i-ring: Move AC_LIBOBJ invocations to module description.Bruno Haible2011-06-161-0/+1
| | | | | * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation. * modules/i-ring (Makefile.am): Augment lib_SOURCES.
* * modules/i-ring (Depends-on): Add stdbool.Bruno Haible2007-03-111-0/+1
|
* * modules/i-ring (Depends-on): Add verify.Jim Meyering2006-11-181-1/+2
| | | | (License): Change to LGPL.
* Make fts (in FTS_CWDFD mode) more efficient by caching a few openJim Meyering2006-11-121-0/+23
file descriptors. This also averts a failure on systems with native openat support when a traversed directory lacks "x" access. * lib/fts_.h: Include "i-ring.h" (struct FTS) [fts_fd_ring]: New member. * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear. (FCHDIR): Add parentheses. (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away. (cwd_advance_fd): Add a 3rd parameter. Adjust all callers. When descending, rather than simply closing the previous fts_cwd_fd value, push that file descriptor onto the ring. (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions. (fts_open): Initialize the new fd_ring member. (fts_close): Clear the ring. (fts_safe_changedir): When possible, use our new fd_ring to skip the diropen and fstat and dev/ino comparison that would normally accompany a virtual `chdir ("..")'. * modules/fts (Depends-on): Add i-ring. * modules/i-ring: New module. * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files. * m4/i-ring.m4: New file.