Hash :
4ef30f6c
Author :
Date :
2005-09-13T03:47:44
* modules/glob (Files): Add glob-libc.h. * lib/glob-libc.h: Renamed from glob_.h. The new version is taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB' protecting things that should be done only in gnulib contexts. * lib/glob_.h: New file, containing only the glob things needed for gnulib. (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB. (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed. (glob, globfree, glob_pattern_p): Now defined simply in terms of rpl_glob, rpl_globfree, rpl_glob_pattern_p. (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer and to respect the namespace rules better. * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c, glob_.h, glob-libc.h. (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
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
Description:
glob() function: Search for files and directories with paths matching a
pattern, with GNU extensions.
Files:
lib/glob_.h
lib/glob-libc.h
lib/glob.c
m4/d-type.m4
m4/glob.m4
Depends-on:
alloca
extensions
fnmatch
getlogin_r
mempcpy
restrict
stat-macros
stdbool
strdup
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_.h
cp $(srcdir)/glob_.h $@-t
mv $@-t $@
MOSTLYCLEANFILES += glob.h glob.h-t
Include:
<glob.h>
License:
LGPL
Maintainer:
all, glibc