6ce7367 | Dmitry Selyutin | 08 September 2017, 17:55:47 UTC | Merge branch 'master' of ssh://git.savannah.gnu.org:/srv/git/gnulib into pygnulib | 08 September 2017, 17:55:47 UTC |
d196719 | Dmitry Selyutin | 08 September 2017, 15:34:58 UTC | [pygnulib] autopep8 (fixing indentation, style, etc.) | 08 September 2017, 17:55:29 UTC |
80ad545 | Paul Eggert | 08 September 2017, 16:35:53 UTC | * lib/fts.c: Fix XFS comments. | 08 September 2017, 16:36:46 UTC |
21c52a8 | Dmitry Selyutin | 08 September 2017, 15:34:58 UTC | [pygnulib] autopep8 (fixing indentation, style, etc.) | 08 September 2017, 15:34:58 UTC |
4be624b | Dmitry Selyutin | 05 September 2017, 20:33:50 UTC | gnulib-tool.py: fix exception handling | 08 September 2017, 14:27:55 UTC |
3df6660 | Dmitry Selyutin | 05 September 2017, 07:04:18 UTC | gnulib-tool.py: fix errors on building wget2; use UTF-8 in subprocess | 08 September 2017, 14:27:55 UTC |
1fdadd2 | Dmitry Selyutin | 21 August 2017, 18:40:46 UTC | [pygnulib] .gitignore | 08 September 2017, 14:27:55 UTC |
02a1f93 | Dmitry Selyutin | 20 August 2017, 08:17:58 UTC | [pygnulib] initial merge (including some small bug fixes) | 08 September 2017, 14:27:55 UTC |
1d618ea | Dmitry Selyutin | 08 September 2017, 10:19:54 UTC | command-line configuration | 08 September 2017, 10:19:54 UTC |
3ba4dba | Bruno Haible | 08 September 2017, 08:02:47 UTC | stddef: Avoid conflict with system-defined max_align_t. 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>. | 08 September 2017, 08:02:47 UTC |
ed1a5a5 | Dmitry Selyutin | 08 September 2017, 07:36:22 UTC | filesystem: move git directory check below | 08 September 2017, 07:36:22 UTC |
2890b02 | Paul Eggert | 06 September 2017, 06:32:59 UTC | libc-config: port to MSVC 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. | 06 September 2017, 06:33:59 UTC |
8ffefc1 | Paul Eggert | 06 September 2017, 04:14:51 UTC | glob: Use enum for __glob_pattern_type result 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. | 06 September 2017, 04:15:55 UTC |
ef5de27 | Paul Eggert | 06 September 2017, 01:58:50 UTC | glob: fix for use in glibc 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. | 06 September 2017, 02:00:26 UTC |
d1a39ef | Dmitry Selyutin | 05 September 2017, 20:33:50 UTC | gnulib-tool.py: fix exception handling | 05 September 2017, 20:33:50 UTC |
f936474 | Dmitry Selyutin | 05 September 2017, 07:04:18 UTC | gnulib-tool.py: fix errors on building wget2; use UTF-8 in subprocess | 05 September 2017, 20:16:10 UTC |
e2ffefa | Dmitry Selyutin | 04 September 2017, 07:11:03 UTC | generator: gl_INIT macro generators | 04 September 2017, 07:11:03 UTC |
064df0b | Paul Eggert | 02 September 2017, 22:39:16 UTC | glob: fix bugs with long login names 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. | 02 September 2017, 22:45:55 UTC |
f0e372a | Dmitry Selyutin | 02 September 2017, 17:54:52 UTC | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulib | 02 September 2017, 17:54:52 UTC |
56fcb39 | Dmitry Selyutin | 02 September 2017, 17:51:27 UTC | generator: module for generating makefiles and autoconf snippets | 02 September 2017, 17:51:27 UTC |
01921f6 | Dmitry Selyutin | 02 September 2017, 17:19:56 UTC | filesystem: simplify names (it is already clear it's filesystem) | 02 September 2017, 17:19:56 UTC |
9ff1d2e | Dmitry Selyutin | 02 September 2017, 17:19:12 UTC | module: change names for some attributes; fix line-break bug | 02 September 2017, 17:19:12 UTC |
1f2b6a2 | Dmitry Selyutin | 02 September 2017, 17:18:30 UTC | config: manual attributes; rename CachedConfig to Cache | 02 September 2017, 17:18:30 UTC |
5f7d5f2 | Bruno Haible | 02 September 2017, 11:14:00 UTC | dirent: Update doc. * doc/posix-headers/dirent.texi: More concrete list of platforms. | 02 September 2017, 11:23:15 UTC |
5db9301 | Paul Eggert | 02 September 2017, 10:56:06 UTC | glob: fix getpwnam_r errno typo * lib/glob.c (glob): Fix longstanding misuse of errno after getpwnam_r, which returns an error number rather than setting errno. | 02 September 2017, 10:57:04 UTC |
ae55644 | Paul Eggert | 02 September 2017, 10:37:46 UTC | glob: fix typo in recent change * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]: Fix recently-introduced typo. | 02 September 2017, 10:38:21 UTC |
3b0628a | Dmitry Selyutin | 02 September 2017, 10:09:41 UTC | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulib | 02 September 2017, 10:09:41 UTC |
e0dc24d | Dmitry Selyutin | 02 September 2017, 10:05:18 UTC | further FileModule simpifications; minor cleanup in Config | 02 September 2017, 10:05:45 UTC |
8ac17a6 | Paul Eggert | 02 September 2017, 09:05:09 UTC | glob: don't save and restore errno unnecessarily * lib/glob.c (glob): Don't save and restore errno merely because we have getpwnam_r. | 02 September 2017, 09:06:58 UTC |
742b1c1 | Paul Eggert | 02 September 2017, 09:00:40 UTC | glob: don't assume getpwnam_r * lib/glob.c (glob): Port recent patches to platforms lacking getpwnam_r. | 02 September 2017, 09:06:58 UTC |
dca11d0 | Paul Eggert | 02 September 2017, 08:21:03 UTC | scratch_buffer: don’t use private glibc API 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. | 02 September 2017, 08:23:21 UTC |
e1e8420 | Paul Eggert | 01 September 2017, 22:41:45 UTC | 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. | 01 September 2017, 23:32:53 UTC |
3866ef6 | Paul Eggert | 01 September 2017, 21:42:53 UTC | scratch_buffer: new module * 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. | 01 September 2017, 23:32:53 UTC |
38885c8 | Paul Eggert | 01 September 2017, 21:40:58 UTC | libc-config: new module * 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. | 01 September 2017, 23:32:53 UTC |
fd1daf4 | Paul Eggert | 31 August 2017, 21:34:25 UTC | glob: match dangling symlinks 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. | 31 August 2017, 22:08:44 UTC |
c8e57c1 | Paul Eggert | 31 August 2017, 21:34:24 UTC | glob, backupfile: inode 0 is a valid inode number * 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. | 31 August 2017, 22:08:44 UTC |
b5ec983 | Paul Eggert | 31 August 2017, 21:34:24 UTC | glob: simplify symlink detection * 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. | 31 August 2017, 22:08:44 UTC |
a20922f | Pádraig Brady | 31 August 2017, 05:32:23 UTC | fts-tests: tag as a longrunning-test so not included by default * modules/fts-tests: This test takes about 20s on current systems, and uses about 285M of space on ext4. | 31 August 2017, 05:46:07 UTC |
58c0514 | Pádraig Brady | 30 August 2017, 07:16:39 UTC | renameat2: fix compilation on alpine linux * 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. | 30 August 2017, 07:18:10 UTC |
109b0ef | Dmitry Selyutin | 27 August 2017, 11:30:26 UTC | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulib | 27 August 2017, 11:30:26 UTC |
46f22b3 | Dmitry Selyutin | 27 August 2017, 11:29:47 UTC | provide the most common gnulib-specific error codes | 27 August 2017, 11:29:47 UTC |
c07a6ad | Dmitry Selyutin | 27 August 2017, 10:53:52 UTC | module: fix and simplify FileModule fields processing | 27 August 2017, 10:53:52 UTC |
37534ee | Dmitry Selyutin | 26 August 2017, 19:58:26 UTC | filesystem: fast modules iteration | 26 August 2017, 19:58:26 UTC |
7423e3e | Dmitry Selyutin | 26 August 2017, 19:57:37 UTC | module: hand-written properties; miscellaneous m4/makefile methods | 26 August 2017, 19:57:37 UTC |
8d116e3 | Paul Eggert | 25 August 2017, 06:51:07 UTC | glob: try to port recent changes to MS-Windows 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. | 25 August 2017, 06:52:24 UTC |
fa96a18 | Eric Blake | 25 August 2017, 01:28:52 UTC | warnings: fix compilation with old autoconf 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> | 25 August 2017, 01:48:57 UTC |
a103699 | Bruno Haible | 24 August 2017, 21:49:08 UTC | * doc/gnulib-intro.texi: Add comment regarding IRIX. | 24 August 2017, 21:49:59 UTC |
5cdbed4 | Dmitry Selyutin | 24 August 2017, 20:18:14 UTC | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulib | 24 August 2017, 20:18:14 UTC |
5336306 | Dmitry Selyutin | 24 August 2017, 20:17:12 UTC | [pygnulib] misc. bug fixes and improvements; project => VFS | 24 August 2017, 20:17:12 UTC |
6c12411 | Karl Berry | 24 August 2017, 15:10:28 UTC | autoupdate | 24 August 2017, 15:10:28 UTC |
8e0845e | Bruno Haible | 24 August 2017, 10:12:31 UTC | glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0. * modules/glob (Depends-on): Add c99. | 24 August 2017, 10:12:31 UTC |
47c634c | Paul Eggert | 24 August 2017, 07:46:49 UTC | glob: fix typo that broke platforms lacking d_ino This typo also hurt performance on GNU/Linux and similar hosts. * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef) in previous change. | 24 August 2017, 07:47:57 UTC |
d93b573 | Paul Eggert | 23 August 2017, 21:45:58 UTC | flexmember: fix typo in previous patch * lib/flexmember.h: Fix comment typo. | 23 August 2017, 21:47:06 UTC |
32107c1 | Paul Eggert | 23 August 2017, 17:45:42 UTC | glob: merge from glibc with Zanella glob changes Merge glob from glibc, with changes for glob proposed by Adhemerval Zanella in the thread starting here: https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html plus some fixes for this merge. * lib/flexmember.h: Change license wording to something that works unchanged in Glibc, since this code might be used in Glibc and this will minimize 'diff' output. * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c: New files, ported from glibc. * lib/glob_pattern_p.c, lib/globfree.c, lib/glob.c [!_LIBC]: Include <config.h> first. * lib/glob-libc.h (_Restrict_): Remove. All uses replaced with __restrict. (__size_t): Remove. All uses replaced by size_t. (size_t): Define by defining __need_size_t and including <stddef.h>. This should work even in non-glibc platforms, where any name pollution is OK. Use __USE_MISC instead of __USE_BSD || __USE_GNU. (struct stat64): Don’t worry about __GLOB_GNULIB. (glob, globfree, glob_pattern_p): Remove macros for __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB case. Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL but set errno. * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove. All uses removed since the glibc behavior works on null pointers. Do not include stdio.h; old SunOS is irrelevant now. Do not worry about GLOB_ONLY_P as we now mimic glibc here. Include glob_internal.h. (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not ((POSIX || WINDOWS32) && !__GNU_LIBRARY__). The latter probably worked only coincidentally. (attribute_hidden, __attribute_noinline__, __glibc_unlikely): Remove macros; now done in glob.in.h. (size_add_wrapv): Do not use __builtin_add_overflow if __ICC. (glob): Properly initialize glob structure with GLOB_BRACE|GLOB_DOOFFS (bug 20707). Remove old code using SHELL since Bash no longer uses this. (glob, prefix_array): Separate MS code better. (glob, glob_in_dir): Use C99 decls before statements when glibc does. (glob_in_dir): Remove old Amiga and VMS code. (globfree, __glob_pattern_type, __glob_pattern_p): Move to separate files. * lib/glob.in.h (attribute_hidden, __attribute_noinline__) (__glibc_unlikely): Move here from glob.c. (__restrict): New macro here, replacing the _Restrict_ in glob.c. (weak_alias): New macro. (__size_t): Remove. All uses replaced by size_t. * modules/d-ino (License): Now LGPLv2+, for compatibility with glob. * modules/flexmember (License): Now LGPLv2+, which it should have been anyway since flexmember.h is not unlimited-license. * modules/glob (Files): Add +lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c. (Depends-on): Remove snippet/arg-nonnull. | 23 August 2017, 21:41:54 UTC |
2404b35 | Dmitry Selyutin | 22 August 2017, 20:56:17 UTC | Merge branch 'master' of git.sv.gnu.org:/srv/git/gnulib into pygnulib | 22 August 2017, 20:56:17 UTC |
f085f0f | Dmitry Selyutin | 22 August 2017, 20:55:04 UTC | [pygnulib] project and git repository classes | 22 August 2017, 20:55:04 UTC |
bdcb0cf | Dmitry Selyutin | 22 August 2017, 20:54:22 UTC | [pygnulib] properties support; file-like module class | 22 August 2017, 20:54:22 UTC |
f320c1e | Paul Eggert | 22 August 2017, 17:13:50 UTC | glob: port to clang's Undefined Sanitizer Problem reported by Tim Rühsen in: http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00144.html * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty. (glob_in_dir): Do not rely on undefined behavior in accessing struct members beyond their bounds. Use a flexible array member instead. | 22 August 2017, 17:26:40 UTC |
b23000d | Bruno Haible | 21 August 2017, 20:20:11 UTC | ) -> } -> }) | 21 August 2017, 20:20:11 UTC |
50c5bd2 | Dmitry Selyutin | 21 August 2017, 20:19:21 UTC | merge master into pygnulib | 21 August 2017, 20:19:21 UTC |
ee67e65 | Dmitry Selyutin | 21 August 2017, 20:17:41 UTC | [pygnulib] BaseConfig, CachedConfig and Module classes (sketches) | 21 August 2017, 20:17:41 UTC |
efec517 | Paul Eggert | 21 August 2017, 19:38:20 UTC | vc-list-files: port to Solaris 10 * build-aux/vc-list-files: Don't assume test -e works. | 21 August 2017, 19:41:47 UTC |
6edef0c | Dmitry Selyutin | 21 August 2017, 18:40:46 UTC | [pygnulib] .gitignore | 21 August 2017, 18:40:46 UTC |
b2372a5 | Karl Berry | 21 August 2017, 15:00:44 UTC | ) -> } | 21 August 2017, 15:00:44 UTC |
2c309a3 | Karl Berry | 21 August 2017, 14:57:47 UTC | autoupdate | 21 August 2017, 14:57:47 UTC |
dd76853 | Paul Eggert | 21 August 2017, 00:03:55 UTC | git-version-gen: port to Solaris 10 Problem reported by Dagobert Michelsen in: http://lists.gnu.org/archive/html/grep-devel/2017-08/msg00002.html * build-aux/git-version-gen (v_from_git): Use expr instead of shell substitution. | 21 August 2017, 00:04:21 UTC |
eb41868 | Dmitry Selyutin | 20 August 2017, 08:17:58 UTC | [pygnulib] initial merge (including some small bug fixes) | 20 August 2017, 08:17:58 UTC |
ec2d725 | Bruno Haible | 19 August 2017, 23:19:50 UTC | host-cpu-c-abi: Improve detection of MIPS ABI. * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of _MIPS_SIM. | 19 August 2017, 23:19:50 UTC |
5408b0e | Bruno Haible | 17 August 2017, 20:15:10 UTC | hypot tests: Fix test failure on FreeBSD 11.0/x86. * tests/test-hypot.h (test_function): Declare z as 'volatile'. | 17 August 2017, 20:15:10 UTC |
02a6dd2 | Bruno Haible | 17 August 2017, 19:32:28 UTC | float: Fix LDBL_MIN value on FreeBSD/x86. * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision. | 17 August 2017, 19:32:28 UTC |
299d6d5 | Bruno Haible | 17 August 2017, 12:17:58 UTC | random: Fix test compilation failure on Cygwin 1.5.25. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE, HAVE_DECL_SETSTATE. * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are declared. * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE, HAVE_DECL_SETSTATE. * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0. (setstate): Declare also if HAVE_DECL_SETSTATE is 0. * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem. * doc/posix-functions/random.texi: Likewise. * doc/posix-functions/setstate.texi: Likewise. * doc/posix-functions/srandom.texi: Likewise. | 17 August 2017, 12:17:58 UTC |
daba283 | Bruno Haible | 16 August 2017, 23:59:11 UTC | stdnoreturn: Fix test compilation failure on Cygwin. * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's <stdnoreturn.h> replacement. * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC. * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem. | 17 August 2017, 00:00:04 UTC |
b1efc4a | Paul Eggert | 16 August 2017, 20:59:54 UTC | cloexec: spelling fixes in comments | 16 August 2017, 21:00:31 UTC |
9241177 | Bruno Haible | 16 August 2017, 18:35:42 UTC | thread: Fix conflict with pthread_sigmask module. * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if it's defined as a macro. * modules/thread (Depends-on): Add pthread_sigmask. | 16 August 2017, 18:35:42 UTC |
6980ece | Paul Eggert | 16 August 2017, 15:34:41 UTC | rename: port better to NetBSD * doc/posix-functions/rename.texi (rename): NetBSD 7 does not have the link-count bug. * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be broken merely because rename ("a", "b") removes "a" when the two names are hard links to the same file. | 16 August 2017, 15:35:19 UTC |
bf9412a | Bruno Haible | 16 August 2017, 09:25:10 UTC | iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'. * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix the target file names with '$(srcdir)/'. * modules/unicase/locale-language (Makefile.am): Likewise. * modules/unicase/special-casing (Makefile.am): Likewise. * modules/unictype/bidiclass-byname (Makefile.am): Likewise. * modules/unictype/category-byname (Makefile.am): Likewise. * modules/unictype/combining-class-byname (Makefile.am): Likewise. * modules/unictype/joininggroup-byname (Makefile.am): Likewise. * modules/unictype/joiningtype-byname (Makefile.am): Likewise. * modules/unictype/property-byname (Makefile.am): Likewise. * modules/unictype/scripts (Makefile.am): Likewise. * modules/uninorm/composition (Makefile.am): Likewise. | 16 August 2017, 09:25:10 UTC |
47f5e07 | Bruno Haible | 16 August 2017, 09:04:30 UTC | nonblocking-socket tests: Fix failure on OpenBSD 6.0. * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase value for OpenBSD. | 16 August 2017, 09:04:30 UTC |
60151d8 | Bruno Haible | 16 August 2017, 08:13:42 UTC | rename, renameat: Update doc regarding NetBSD. * doc/posix-functions/rename.texi: Clarify that when using -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone. * doc/posix-functions/renameat.texi: Be more precise about NetBSD version. | 16 August 2017, 08:13:42 UTC |
9abc084 | Paul Eggert | 16 August 2017, 00:09:35 UTC | renameat2: port better to macOS * lib/renameat2.c (renameat2): Use renameatx_np if available. | 16 August 2017, 00:10:04 UTC |
6536b95 | Paul Eggert | 15 August 2017, 23:47:22 UTC | futimens: don’t assume struct timespec layout * m4/futimens.m4 (gl_FUNC_FUTIMENS): * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): * tests/test-fdutimensat.c (main): * tests/test-futimens.h (test_futimens): * tests/test-lutimens.h (test_lutimens): * tests/test-utimens.h (test_utimens): * tests/test-utimensat.c (main): Don’t assume that struct timespec is a two-member structure in tv_sec, tv_nsec order. Although this is true on all platforms we know about, POSIX does not guarantee it. | 15 August 2017, 23:48:38 UTC |
9a6c7d3 | Paul Eggert | 15 August 2017, 22:53:50 UTC | rename: document+test NetBSD rename Test failure reported by Bruno Haible in: http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00104.html This is an area where NetBSD is better-behaved than POSIX, so allow the NetBSD behavior in tests. * doc/posix-functions/rename.texi: * doc/posix-functions/renameat.texi: Document NetBSD behavior. * tests/test-rename.h (test_rename): Allow NetBSD behavior. | 15 August 2017, 22:54:16 UTC |
13d3759 | Bruno Haible | 15 August 2017, 20:03:48 UTC | renameat: Ensure declaration in <stdio.h> on NetBSD. * lib/stdio.in.h: Include <unistd,h> also on NetBSD. * doc/posix-functions/renameat.texi: Mention this problem. | 15 August 2017, 20:03:48 UTC |
a1971db | Bruno Haible | 15 August 2017, 19:18:44 UTC | duplocale: Work around NetBSD 7.0 bug. * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug. * lib/duplocale.c: Add comment about NetBSD problem. * doc/posix-functions/duplocale.texi: Mention the NetBSD problem. | 15 August 2017, 19:18:44 UTC |
a71158a | Bruno Haible | 15 August 2017, 18:23:00 UTC | duplocale tests: Verify use with *_l functions. * modules/duplocale-tests (configure.ac): Test for uselocale and some *_l functions. * tests/test-duplocale.c (test_with_uselocale): New function, extracted from main. (get_locale_dependent_values_from, test_with_locale_parameter): New functions. (main): Test both test_with_uselocale and test_with_locale_parameter. | 15 August 2017, 18:23:00 UTC |
e94fc41 | Bruno Haible | 14 August 2017, 22:31:15 UTC | extensions: Enable NetBSD specific extensions. * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE. | 15 August 2017, 12:45:14 UTC |
0b8ab8f | Bruno Haible | 14 August 2017, 22:48:25 UTC | open, openat: Update doc about O_CLOEXEC. * doc/posix-functions/open.texi: More concrete list of platforms. * doc/posix-functions/openat.texi: Likewise. | 14 August 2017, 22:52:18 UTC |
990fa9d | Paul Eggert | 14 August 2017, 20:04:46 UTC | open: support O_CLOEXEC * NEWS, doc/posix-functions/open.texi: * doc/posix-functions/openat.texi: Document this. * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value. (GNULIB_defined_O_CLOEXEC): New symbol. * lib/open.c: Include cloexec.h. (open): Support O_CLOEXEC. * lib/openat.c: Include cloexec.h. (rpl_openat): Support O_CLOEXEC. * lib/popen-safer.c: Do not include cloexec.h. (open_noinherit): Remove. (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag. * lib/save-cwd.c: Do not include cloexec.h. (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag. * m4/open-cloexec.m4: New file. * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC. Replace 'open' if O_CLOEXEC is not present. * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC. Replace 'openat' if O_CLOEXEC is not present. * modules/freopen (Depends-on): Depend on 'open' if replacing freopen. * modules/open (Files): Add m4/open-cloexec.m4. (Depends-on): Depend on cloexec if replacing 'open'. * modules/openat (Files): Add m4/open-cloexec.m4. (Depends-on): Depend on cloexec if replacing openat. * modules/popen-safer (Depends-on): Remove cloexec. * modules/save-cwd (Depends-on): Remove cloexec, and add fd-safer-flag and 'open'. | 14 August 2017, 20:05:23 UTC |
825e198 | Paul Eggert | 13 August 2017, 18:03:40 UTC | * lib/reallocarray.c: Fix layout. | 13 August 2017, 18:04:01 UTC |
aa459ef | Paul Eggert | 13 August 2017, 17:55:55 UTC | reallocarray: minor fixes * doc/glibc-functions/reallocarray.texi: Update version numbers. * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents. * modules/reallocarray (License): Change from GPL to LGPL. * tests/test-reallocarray.c (main): Fix ENOMEM typo. Indent properly and don't use tabs. | 13 August 2017, 18:02:40 UTC |
9875676 | Darshit Shah | 13 August 2017, 17:13:33 UTC | reallocarray: New module reallocarray is a new function in glibc 2.26 to safely allocate an array of memory locations with integer overflow protection. * MODULES.html.sh: Add reallocarray. * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray. * lib/reallocarray.c: New file to implement module reallocarray. * lib/stdlib.in.h: Add function declarations for reallocarray. * m4/reallocarray.m4: New file. * m4/stdlib_h.m4: Declare reallocarray. * modules/reallocarray: New file. * modules/reallocarray-test: New file. * modules/stdlib: Coerce stdlib.h to export reallocarray. * tests/test-reallocarray.c: New test. | 13 August 2017, 18:02:40 UTC |
0474f8e | Paul Eggert | 12 August 2017, 18:34:50 UTC | dirent-safer: fix cloexec race * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h. (opendir_safer): Use F_DUPFD_CLOEXEC. * modules/dirent-safer (Depends-on): Add fcntl. Remove unistd-safer. * tests/test-dirent-safer.c: Do not include unistd-safer.h, as it is no longer a prerequisite. Use F_DUPFD_CLOEXEC instead of dup_safer. | 12 August 2017, 18:36:11 UTC |
b1f5569 | Paul Eggert | 12 August 2017, 18:20:41 UTC | fts: fix cloexec races * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h. (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag. (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag. (fd_ring_check): Set cloexec flag on new file descriptors. (fts_build, fd_ring_check): While we’re at it, make sure the resulting file descriptor is not 0, 1, or 2, since that is easy. * modules/fts (Depends-on): Remove cloexec, dirent-safer, dup, fcntl-safer, unistd-safer. Add fcntl. | 12 August 2017, 18:36:10 UTC |
3fae50e | Bruno Haible | 11 August 2017, 18:43:35 UTC | fts tests: Fix link error. Reported by Tom G. Christensen in https://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00078.html * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL. | 11 August 2017, 18:43:35 UTC |
8af35dd | Paul Eggert | 10 August 2017, 13:06:06 UTC | fts: port recent changes to CentOS 6 Problem reported by Tom G. Christensen in: http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00064.html * lib/fts.c (fsword): New type. (struct dev_type, filesystem_type): Use it. * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t. Also, check for f_type only if fstatfs and sys/vfs.h work. | 10 August 2017, 13:07:03 UTC |
009e65c | Karl Berry | 09 August 2017, 22:56:01 UTC | autoupdate | 09 August 2017, 22:56:01 UTC |
5befc65 | Paul Eggert | 09 August 2017, 18:30:36 UTC | tempname: do not depend on secure_getenv Excess dependency noted by Eli Zaretskii (Bug#28023#17). * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused. * modules/tempname (Depends-on): Remove secure_getenv. | 09 August 2017, 18:31:00 UTC |
f88e6fc | Paul Eggert | 08 August 2017, 18:07:06 UTC | extensions: add _OPENBSD_SOURCE * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE. | 08 August 2017, 18:07:29 UTC |
aae6a42 | Reuben Thomas | 07 August 2017, 20:08:13 UTC | manywarnings: Add support for C++. * build-aux/g++-warning.spec: New file. * m4/manywarnings-c++.m4: New file. * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that redirects to manywarnings-c++.m4. * modules/manywarnings (Files): Add m4/manywarnings-c++.m4. | 07 August 2017, 20:08:13 UTC |
ddbba9b | Reuben Thomas | 07 August 2017, 15:32:18 UTC | manywarnings: Add support for C++. * build-aux/g++-warning.spec: New file. * m4/manywarnings-c++.m4: New file. * modules/manywarnings (Files): Add it. | 07 August 2017, 15:32:18 UTC |
d93aa1d | Paul Eggert | 07 August 2017, 06:24:10 UTC | git-version-gen: another fix for tags with "-" * build-aux/git-version-gen: Improve fix for tags containing "-". Suggested by Markus Armbruster in: http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00034.html | 07 August 2017, 06:24:39 UTC |