Age | Commit message (Collapse) | Author |
|
E.g., `du --exclude '[^/]*' -x /' would print only "4\t\n" for me.
(ftw_dir): Don't clobber the leading `/'.
Reported by Chris Lesniewski as http://bugs.debian.org/200542.
|
|
|
|
initializers matches the number of members in the corresponding enum.
|
|
(nftw_arr): Update to reflect complete list of members.
(ftw_arr): Likewise
|
|
(S_IFMT): Define, if necessary.
[STAT_MACROS_BROKEN]: Undefine S_ISLNK.
(S_ISLNK): Define, if necessary.
|
|
with STAT definition from <sys/dir.h> on AIX 5.1.
|
|
(ftw_startup): Avoid use of getcwd, if possible.
Instead, use fopen/fchdir via save_cwd/restore_cwd.
|
|
(ftw_startup): Declare `func' parameter to be of type
NFTW_FUNC_T, not void* which may be smaller on 64-bit systems.
Remove now-unnecessary cast.
(FTW_NAME): Cast func argument to type `NFTW_FUNC_T'.
|
|
|
|
This is required for Apple Darwin 6.3 (MacOS 10.2.3).
|
|
|
|
Merge inconsequential changes from libc.
|
|
the current directory, not just when DIR contains a slash.
|
|
Include limits.h earlier.
Move PATH_MAX definition `down' a little; add comment.
Rename local, saved_errno to save_err.
|
|
user-supplied callback, once for the current directory before calling
ftw_dir, in case that part of the hierarchy should be pruned.
`func' does that by setting `data->skip'.
|
|
(PATH_MAX): Define to 1024, if not already defined.
(process_entry): Allocate enough space to hold the resulting
file name. Don't presume that 2*dirbufsize is enough.
(ftw_startup): Always use PATH_MAX to compute buffer size, now that
it is guaranteed to be defined.
|
|
the user-supplied callback, once before any of its entries,
in case that part of the hierarchy should be pruned. `func'
does that by setting `data->skip'.
|
|
|
|
(base_name): New function.
(ftw_startup): Don't strip trailing slashes.
Use base_name to find the offset of the basename.
|
|
The former is much more likely to differ for any two given file objects.
|
|
[!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
|
|
|
|
(ftw_dir): Handle FTW_DCH.
|
|
related definitions and includes. Use NAMELEN throughout,
rather than _D_EXACT_NAMLEN.
[_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
(stpcpy): Declare, if necessary.
(mempcpy): Define, if necessary.
[!_LIBC] (__stpcpy, __mempcpy): Define.
[!_LIBC] (LXSTAT, XSTAT): Define.
|
|
|
|
|
|
AC_HEADER_DIRENT.
|
|
|
|
|