summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of ssh://git.savannah.gnu.org:/srv/git/gnulib into ↵pygnulibDmitry Selyutin2017-09-089-82/+140
|\ | | | | | | pygnulib
| * * lib/fts.c: Fix XFS comments.Paul Eggert2017-09-081-3/+3
| |
| * [pygnulib] autopep8 (fixing indentation, style, etc.)Dmitry Selyutin2017-09-0813-7274/+7338
| |
| * gnulib-tool.py: fix exception handlingDmitry Selyutin2017-09-081-4/+1
| |
| * gnulib-tool.py: fix errors on building wget2; use UTF-8 in subprocessDmitry Selyutin2017-09-086-11/+30
| |
| * [pygnulib] .gitignoreDmitry Selyutin2017-09-081-0/+1
| |
| * [pygnulib] initial merge (including some small bug fixes)Dmitry Selyutin2017-09-0813-0/+8475
| |
| * stddef: Avoid conflict with system-defined max_align_t.Bruno Haible2017-09-082-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | The configure-determined HAVE_MAX_ALIGN_T may not always be accurate. Reported by Werner Lemberg <wl@gnu.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00185.html>. * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t. (max_align_t): Define as a macro. (GNULIB_defined_max_align_t): New macro. Guards against multiple definitions of rpl_max_align_t in different copies of gnulib-generated <stddef.h>.
| * libc-config: port to MSVCPaul Eggert2017-09-054-3/+36
| | | | | | | | | | | | | | | | | | | | Problems reported by Gisle Vanem in: http://lists.gnu.org/archive/html/bug-gnulib/2017-09/msg00016.html * lib/libc-config.h (__inline): Don't define if HAVE___INLINE. (libc_hidden_proto): Stick to Standard C syntax for varargs macro. * m4/__inline.m4: New file. * modules/libc-config (Files): Add it. (Depends-on): Use it.
| * glob: Use enum for __glob_pattern_type resultPaul Eggert2017-09-054-10/+28
| | | | | | | | | | | | | | | | | | | | | | From a patch proposed by Adhemerval Zanella in: https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL) (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants. * lib/glob_internal.h (__glob_pattern_type): * lib/glob.c (glob): * lib/glob_pattern_p.c (__glob_pattern_p): Use them.
| * glob: fix for use in glibcPaul Eggert2017-09-052-1/+9
| | | | | | | | | | | | | | Problem reported by Adhemerval Zanella in: https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK): Do not redefine if _LIBC.
| * glob: fix bugs with long login namesPaul Eggert2017-09-022-58/+41
| | | | | | | | | | | | | | | | | | | | Problem reported by Adhemerval Zanella in: https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html * lib/glob.c (GET_LOGIN_NAME_MAX): Remove. (glob): Use the same scratch buffer for both getlogin_r and getpwnam_r. Don’t require preallocation of the login name. This simplifies storage allocation, and corrects the handling of long login names.
* | [pygnulib] autopep8 (fixing indentation, style, etc.)Dmitry Selyutin2017-09-0813-7274/+7338
| |
* | command-line configurationDmitry Selyutin2017-09-081-20/+741
| |
* | filesystem: move git directory check belowDmitry Selyutin2017-09-081-2/+2
| |
* | gnulib-tool.py: fix exception handlingDmitry Selyutin2017-09-051-4/+1
| |
* | gnulib-tool.py: fix errors on building wget2; use UTF-8 in subprocessDmitry Selyutin2017-09-056-11/+30
| |
* | generator: gl_INIT macro generatorsDmitry Selyutin2017-09-041-10/+199
| |
* | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulibDmitry Selyutin2017-09-023-18/+30
|\ \ | |/
| * dirent: Update doc.Bruno Haible2017-09-022-5/+17
| | | | | | | | * doc/posix-headers/dirent.texi: More concrete list of platforms.
| * glob: fix getpwnam_r errno typoPaul Eggert2017-09-022-12/+8
| | | | | | | | | | | | * lib/glob.c (glob): Fix longstanding misuse of errno after getpwnam_r, which returns an error number rather than setting errno.
| * glob: fix typo in recent changePaul Eggert2017-09-022-1/+5
| | | | | | | | | | * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]: Fix recently-introduced typo.
* | generator: module for generating makefiles and autoconf snippetsDmitry Selyutin2017-09-021-0/+253
| |
* | filesystem: simplify names (it is already clear it's filesystem)Dmitry Selyutin2017-09-021-5/+6
| |
* | module: change names for some attributes; fix line-break bugDmitry Selyutin2017-09-021-34/+34
| |
* | config: manual attributes; rename CachedConfig to CacheDmitry Selyutin2017-09-021-26/+277
| |
* | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulibDmitry Selyutin2017-09-0224-396/+1375
|\ \ | |/
| * glob: don't save and restore errno unnecessarilyPaul Eggert2017-09-022-4/+4
| | | | | | | | | | * lib/glob.c (glob): Don't save and restore errno merely because we have getpwnam_r.
| * glob: don't assume getpwnam_rPaul Eggert2017-09-022-2/+6
| | | | | | | | | | * lib/glob.c (glob): Port recent patches to platforms lacking getpwnam_r.
| * scratch_buffer: don’t use private glibc APIPaul Eggert2017-09-027-144/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by Florian Weimer in: http://lists.gnu.org/archive/html/bug-gnulib/2017-09/msg00004.html * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h. * lib/scratch_buffer_grow.c: Rename to lib/malloc/scratch_buffer_grow.c. * lib/scratch_buffer_grow_preserve.c: Rename to lib/malloc/scratch_buffer_grow_preserve.c. * lib/scratch_buffer_set_array_size.c: Rename to lib/malloc/scratch_buffer_set_array_size.c. * lib/scratch_buffer.h: New file. * modules/scratch_buffer (Files, Makefile.am): Adjust to source-file renaming.
| * glob: use scratch_buffer instead of extend_allocaPaul Eggert2017-09-015-180/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * scratch_buffer: new modulePaul Eggert2017-09-016-0/+362
| | | | | | | | | | | | | | | | | | * lib/scratch_buffer.h, lib/scratch_buffer_grow.c: * lib/scratch_buffer_grow_preserve.c: * lib/scratch_buffer_set_array_size.c: New files, copied from glibc with very minor changes that can be copied back. * modules/scratch_buffer: New file.
| * libc-config: new modulePaul Eggert2017-09-015-0/+709
| | | | | | | | | | | | | | * MODULES.html.sh: Add libc-config. * lib/cdefs.h: New file, copied from the GNU C Library with very minor changes that can be copied back. * lib/libc-config.h, modules/libc-config: New files.
| * glob: match dangling symlinksPaul Eggert2017-08-318-159/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug I inadvertently introduced to Gnulib when I merged glibc glob back into gnulib on 2007-10-16. This fix is inspired by a patch proposed for glibc by Adhemerval Zanella in: https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html * doc/posix-functions/glob.texi: Update list of affected platforms. * lib/glob.c (__lstat64): New macro. (is_dir): New function. (glob, glob_in_dir): Match symlinks even if they are dangling. (link_stat, link_exists_p): Remove. All uses removed. * lib/glob.in.h (__attribute_noinline__): Remove; no longer used. * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat. * modules/glob (Depends-on): Remove dirfd. * modules/glob-tests (Depends-on): Add symlink. * tests/test-glob.c: Include errno.h, unistd.h. (BASE): New macro. (main): Test dangling symlinks, if symlinks are supported.
| * glob, backupfile: inode 0 is a valid inode numberPaul Eggert2017-08-316-28/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/posix-functions/readdir.texi (readdir): * doc/posix-headers/dirent.texi (dirent.h): Document more readdir portability issues. * lib/backupfile.c (REAL_DIR_ENTRY): Remove. (numbered_backup): Don’t treat inode 0 any differently from other inode values. * lib/glob.c (struct readdir_result): Remove skip_entry member. (readdir_result_skip_entry, D_INO_TO_RESULT): Remove. All uses removed. * modules/glob (Depends-on): Remove d-ino.
| * glob: simplify symlink detectionPaul Eggert2017-08-312-36/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/glob.c (dirent_type): New type. Use uint_fast8_t not uint8_t, as C99 does not require uint8_t. (DT_UNKNOWN, DT_DIR, DT_LNK) [!HAVE_STRUCT_DIRENT_D_TYPE]: New macros. (struct readdir_result): Use dirent_type. Do not define skip_entry unless it is needed; this saves a byte on platforms lacking d_ino. (readdir_result_type, readdir_result_skip_entry): New functions, replacing ... (readdir_result_might_be_symlink, readdir_result_might_be_dir): ... these functions, which were removed. This makes the callers easier to read. All callers changed. (D_INO_TO_RESULT): Now empty if there is no d_ino.
| * fts-tests: tag as a longrunning-test so not included by defaultPádraig Brady2017-08-302-0/+9
| | | | | | | | | | * modules/fts-tests: This test takes about 20s on current systems, and uses about 285M of space on ext4.
| * renameat2: fix compilation on alpine linuxPádraig Brady2017-08-303-1/+9
| | | | | | | | | | | | * m4/renameat.m4: Check for <linux/fs.h> presence. * lib/renameat2.h: Only include <linux/fs.h> if present. Reported by Assaf Gordon on Alpine Linux.
* | further FileModule simpifications; minor cleanup in ConfigDmitry Selyutin2017-09-022-12/+24
| |
* | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulibDmitry Selyutin2017-08-276-7/+29
|\ \ | |/
| * glob: try to port recent changes to MS-WindowsPaul Eggert2017-08-243-1/+9
| | | | | | | | | | | | | | Problem reported by Bruno Haible in: http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00170.html * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ... * lib/glob.in.h (__glob_pattern_p): ... to here.
| * warnings: fix compilation with old autoconfEric Blake2017-08-243-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autoconf older than 2.63b (such as what ships on CentOS 6) had a bug that any AC_DEFUN'd macro name that includes shell meta- characters causes failure due to missing shell quoting during aclocal's use of autom4te. We can work around the problem by using m4_defun instead (same semantics in autom4te, but no longer traced by aclocal, so no longer tickles the shell quoting bug). * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)) (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than AC_DEFUN. * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)) (gl_MANYWARN_ALL_GCC(C++)): Likewise. Reported-by: Erik Skultety <eskultet@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
| * * doc/gnulib-intro.texi: Add comment regarding IRIX.Bruno Haible2017-08-241-0/+1
| |
* | provide the most common gnulib-specific error codesDmitry Selyutin2017-08-271-0/+54
| |
* | module: fix and simplify FileModule fields processingDmitry Selyutin2017-08-271-46/+44
| |
* | filesystem: fast modules iterationDmitry Selyutin2017-08-261-7/+9
| |
* | module: hand-written properties; miscellaneous m4/makefile methodsDmitry Selyutin2017-08-261-79/+303
| |
* | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulibDmitry Selyutin2017-08-2412-339/+374
|\ \ | |/
| * autoupdateKarl Berry2017-08-241-5/+9
| |
| * glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.Bruno Haible2017-08-242-0/+6
| | | | | | | | * modules/glob (Depends-on): Add c99.