Hash :
12a19511
Author :
Date :
2007-10-17T16:06:45
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Description:
glob() function: Search for files and directories with paths matching a
pattern, with GNU extensions.
Files:
lib/glob.in.h
lib/glob-libc.h
lib/glob.c
m4/glob.m4
Depends-on:
alloca
d-type
dirfd
extensions
fnmatch
getlogin_r
mempcpy
openat
strdup
sys_stat
unistd
malloc-posix
configure.ac:
gl_GLOB
Makefile.am:
BUILT_SOURCES += $(GLOB_H)
# We need the following in order to create <glob.h> when the system
# doesn't have one that works with the given compiler.
glob.h: glob.in.h
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
sed -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
< $(srcdir)/glob.in.h; \
} > $@-t
mv -f $@-t $@
MOSTLYCLEANFILES += glob.h glob.h-t
Include:
<glob.h>
License:
LGPLv2+
Maintainer:
all, glibc