]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Don't require that the maximum length of a file name
authorJim Meyering <jim@meyering.net>
Thu, 2 Oct 2003 17:33:54 +0000 (17:33 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 2 Oct 2003 17:33:54 +0000 (17:33 +0000)
commit7e25757f8be66bcfe3bbb0ac9fb977aad24bfc13
treee314635ae36144ad5569d679e48872c623d70871
parentcaf4f07912fe60253c65f8b3c3ba77290d4cc607
Don't require that the maximum length of a file name
encountered in a traversal fit in an `unsigned short',
and fix some portability bugs (don't depend on gcc).

Include "fts_.h", not <fts.h>.
(ALIGNBYTES) [!(__GNUC__ >= 2)]: Add a definition that works with
compilers that don't have __alignof__.
(MAX): Use a definition that doesn't depend on gcc.
(fts_build): Make `len' and `maxlen' be of type size_t, not int.
Test for overflow in a less type-dependent manner.
Test HAVE_STRUCT_DIRENT_D_TYPE, rather than
defined DT_DIR && defined _DIRENT_HAVE_D_TYPE.
(fts_palloc): Test for overflow in a less type-dependent manner.
(fts_safe_changedir): Use stat, not stat64.
Use fstat, not __fxstat64(_STAT_VER.
lib/fts.c