Modify glob.c to use fstatat and dirfd, to simplify it.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Oct 2007 23:06:45 +0000 (16:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Oct 2007 23:06:45 +0000 (16:06 -0700)
commit12a195113bbb388bd4e911ff6b507252577b4805
tree0bb5ee95e8acee24a0ae4ab0f8b11c7e99c6988d
parentb7bbe93b56b81ca1e41e2c3f709d5216ac100a8e
Modify glob.c to use fstatat and dirfd, to simplify it.

Suggested by Eric Blake.
* lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
Don't include <stdbool.h>; not used.
(link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
(link_exists_p): Simplify implementation, since we can now assume
dirfd and fstatat.
* modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
ChangeLog
lib/glob.c
modules/glob