diff options
Diffstat (limited to 'dir-iterator.h')
| -rw-r--r-- | dir-iterator.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/dir-iterator.h b/dir-iterator.h index 08229157c6..6d438809b6 100644 --- a/dir-iterator.h +++ b/dir-iterator.h @@ -55,18 +55,10 @@ * warning is emitted. Note: ENOENT errors are always ignored so that * the API users may remove files during iteration. * - * - DIR_ITERATOR_FOLLOW_SYMLINKS: make dir-iterator follow symlinks. - * i.e., linked directories' contents will be iterated over and - * iter->base.st will contain information on the referred files, - * not the symlinks themselves, which is the default behavior. Broken - * symlinks are ignored. - * - * Warning: circular symlinks are also followed when - * DIR_ITERATOR_FOLLOW_SYMLINKS is set. The iteration may end up with - * an ELOOP if they happen and DIR_ITERATOR_PEDANTIC is set. + * - DIR_ITERATOR_SORTED: sort directory entries alphabetically. */ #define DIR_ITERATOR_PEDANTIC (1 << 0) -#define DIR_ITERATOR_FOLLOW_SYMLINKS (1 << 1) +#define DIR_ITERATOR_SORTED (1 << 1) struct dir_iterator { /* The current path: */ @@ -83,9 +75,7 @@ struct dir_iterator { const char *basename; /* - * The result of calling lstat() on path; or stat(), if the - * DIR_ITERATOR_FOLLOW_SYMLINKS flag was set at - * dir_iterator's initialization. + * The result of calling lstat() on path. */ struct stat st; }; |
