]> Savannah Git Hosting - gnulib.git/commit
glob: use scratch_buffer instead of extend_alloca
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Sep 2017 22:41:45 +0000 (15:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Sep 2017 23:32:53 +0000 (16:32 -0700)
commite1e842053e2a573d132bd44439534e20ce00d23b
treec4cecb162fe23a41ebb75602cb320099f0f18f68
parent3866ef6158c1ddfe4927e1f88886189ad7a50752
glob: use scratch_buffer instead of extend_alloca

Much of the lib/glob.c part of this patch comes from a glibc patch
proposed by Adhemerval Zanella in:
https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
* lib/glob.c: Do not include <config.h>, since <libc-config.h>,
included via glob.h, does this for us now.
(__set_errno): Remove, as libc-config does this for us now.
Include <scratch_buffer.h>.
(GETPW_R_SIZE_MAX): Remove.
(glob): Use struct scratch_buffer instead of extend_alloca.
* lib/glob.in.h: Include libc-config.h rather than
including <sys/cdefs.h> conditionally.
(__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
(__glibc_unlikely, __restrict, weak_alias):
Remove, as libc-config does this for us now.
* m4/glob.m4 (gl_PREREQ_GLOB):
Remove sys/cdefs.h tests; no longer needed.
* modules/glob (Depends-on): Add libc-config, scratch_buffer.
(glob.h): Do not replace HAVE_SYS_CDEFS_H.
ChangeLog
lib/glob.c
lib/glob.in.h
m4/glob.m4
modules/glob