Log

Author Commit Date CI Message
Bruno Haible 730e9ea2 2018-09-07T23:39:37 Fix a comment. * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
Bruno Haible 340de5fe 2018-09-07T23:38:53 posix_spawn_file_actions_addchdir: Add tests. * tests/test-posix_spawn_file_actions_addchdir.c: New file. * tests/test-posix_spawn4.c: New file. * modules/posix_spawn_file_actions_addchdir-tests: New file.
Bruno Haible 86b1dc89 2018-09-07T23:35:52 posix_spawn_file_actions_addchdir: New module. Suggested by Eric Blake in <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>. * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration. * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and union member 'chdir_action'. * lib/spawn_faction_addchdir.c: New file. * lib/spawni.c (__spawni): Implement the spawn_do_chdir action. * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of HAVE_WORKING_POSIX_SPAWN. * lib/spawn_faction_adddup2.c: Likewise. * lib/spawn_faction_addopen.c: Likewise. * m4/posix_spawn_faction_addchdir.m4: New file. * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module 'posix_spawn_file_actions_addchdir' is present and whether posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN instead of HAVE_WORKING_POSIX_SPAWN. * m4/spawn_h.m4 (gl_SPAWN_H): Test whether posix_spawn_file_actions_addchdir is declared. (gl_SPAWN_H_DEFAULTS): Initialize GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR, HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR, REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR. * modules/spawn (Makefile.am): Substitute GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR, HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR, REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR. * modules/posix_spawn_file_actions_addchdir: New file. * modules/posix_spawn_file_actions_addclose (Depends-on, configure.ac): Test also REPLACE_POSIX_SPAWN. * modules/posix_spawn_file_actions_adddup2 (Depends-on, configure.ac): Likewise. * modules/posix_spawn_file_actions_addopen (Depends-on, configure.ac): Likewise. * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check signature. * doc/posix-functions/posix_spawn.texi: Mention the new module. * doc/posix-functions/posix_spawnp.texi: Likewise.
Bruno Haible e41da810 2018-09-07T09:57:25 Fix typo in comment in yesterday's commit.
Bruno Haible 2788ef64 2018-09-06T22:44:01 stddef: Override max_align_t on NetBSD 8.0/x86. * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also the value of __alignof__ (max_align_t). * doc/posix-headers/stddef.texi: Mention the issue.
Bruno Haible c4af52ba 2018-09-06T18:36:02 fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku. * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the system fcntl. * doc/posix-functions/fcntl.texi: Document the issue.
Bruno Haible a340c8f8 2018-09-06T14:50:04 count-trailing-zeros tests: Rely on limits-h module. * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback definition. * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
Bruno Haible 57bac80c 2018-09-06T14:49:14 count-leading-zeros tests: Rely on limits-h module. * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback definition. * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
Bruno Haible 2bbce430 2018-09-06T14:48:00 count-one-bits tests: Rely on limits-h module. * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition. * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
Bruno Haible c4b2df3e 2018-09-06T14:46:06 xstrtoll: Rely on limits-h module. * lib/xstrtol.c: Don't include intprops.h. (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions. * modules/xstrtol (Depends-on): Remove 'intprops'. * modules/xstrtoll (Depends-on): Add 'limits-h'.
Bruno Haible 05e49b15 2018-09-06T14:41:00 strtoll, strtoull: Rely on limits-h module. * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros. (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions. * modules/strtoll (Depends-on): Add limits-h. * modules/strtoull (Depends-on): Likewise.
Bruno Haible e6ec31bf 2018-09-06T14:35:29 intprops tests: Fix compilation error with pre-C99 compiler. * tests/test-intprops.c (verify_stmt): New macro. (VERIFY, main): Use it.
Bruno Haible 09b59d28 2018-09-06T14:28:38 limits-h: Provide numerical limits macros. * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for IRIX and for GCC. (WORD_BIT, LONG_BIT): Define. * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when <limits.h> does not define LLONG_MAX or WORD_BIT. * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM, TYPE_MAXIMUM): New macros, from intprops.h. Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX. * doc/posix-headers/limits.texi: Document what the 'limits-h' module provides.
Bruno Haible 8ac1b3f7 2018-09-06T11:23:53 fcntl: Don't access nonexistent optional argument. Reported by Frank Busse <f.busse@imperial.ac.uk> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>. * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument, don't consume an argument. For actions that take an 'int' argument, consume an 'int' argument.
Eric Blake 6afeb7ba 2018-05-31T08:52:40 doc: mention environ pitfall Based on a bug report to the Cygwin list: https://cygwin.com/ml/cygwin/2018-05/msg00321.html * doc/posix-functions/environ.texi (environ): Assigning NULL to environ is a glibc extension. Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible 8b1d4a63 2018-09-03T21:19:16 gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase. Reported by Antoine Luong <antoine.luong@c-s.fr> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>. * gnulib-tool (func_import): For the tests, set a dotfirst flag. (func_emit_lib_Makefile_am): Consider the dotfirst flag. (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
Paul Eggert 1cb440df 2018-09-02T02:53:31 mktime: fix unlikely race+overflow bug Problem reported by Alexandre Oliva in: https://sourceware.org/bugzilla/show_bug.cgi?id=16346 * lib/mktime.c (__mktime_internal): Access *OFFSET only once, to avoid an unlikely race if the compiler delays a load and if this cascades into a signed integer overflow.
Paul Eggert 15343c31 2018-08-31T18:02:48 mktime, timegm: simplify glibc time64_t * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: Now long int, not time_t, since long int is the longstanding type for this in glibc and there is no need to change it even if time_t becomes 64 bits - even int would do, though this would be a change to the glibc generated code. When this change is merged into glibc, it should simplify the time_t vs time64_t situation.
Paul Eggert 65d3c969 2018-08-31T18:02:48 mktime, timegm: simplify merge to glibc Move code around to make a merge to glibc easier to audit. This should not change behavior. * lib/mktime.c: Include more standard files unconditionally. (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS) (NEED_MKTIME_WORKING): Give default values to pacify -Wundef, which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to simplify later conditionals; default the others to zero. In uses of these conditionals, explicitly spell out how _LIBC affects things, so it’s easier to review from a glibc viewpoint. (my_tzset, __tzset) [!_LIBC]: New function and macro, to better compartmentalize tzset issues. Move system-dependent tzsettish code here from mktime. (mktime): Move tzsettish code to my_tzset, and move localtime_offset to within mktime so that it doesn’t need a separate ifdef. * lib/mktime-internal.h (__gmtime_r, __localtime_r, __mktime_internal): Move these macros here from lib/mktime.c and lib/gmtime.c.
Karl Berry 0e67e4f9 2018-08-30T06:27:53 autoupdate
Karl Berry 14df8ea0 2018-08-28T08:20:16 autoupdate
Paul Eggert 5c93a6b6 2018-08-27T18:31:44 intprops: avoid evaluation of some expressions This makes EXPR_SIGNED (e) easier to use, as it no longer evaluates the expression E. Formerly, E was required to be free of side effects. * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT) (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM) (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
Paul Eggert 53e2c179 2018-08-25T20:40:55 autoupdate
Karl Berry 7dc8dd7b 2018-08-25T08:22:51 autoupdate
Karl Berry a05181f4 2018-08-24T08:14:55 autoupdate
Bruno Haible a96d2e67 2018-08-23T21:13:19 getcwd: Add cross-compilation guesses. Reported by Sergio Durigan Junior <sergiodj@redhat.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>. Based on a patch by Paul Eggert. * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation guesses for all GNU systems.
Paul Eggert bbc292e3 2018-08-22T17:59:49 ; autoupdate
Karl Berry a69f3b46 2018-08-20T08:31:12 autoupdate
Bruno Haible 4172747f 2018-08-19T21:00:35 glob-h: Formalize side effects from other modules. * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro. * m4/glob.m4 (gl_GLOB): Invoke it.
Bruno Haible ffb9d1f1 2018-08-19T20:58:58 fnmatch-h: Formalize side effects from other modules. * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro. * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
Bruno Haible 54b258e0 2018-08-19T20:57:24 limits-h: Formalize side effects from other modules. * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro. * m4/stdint.m4 (gl_STDINT_H): Invoke it.
Bruno Haible 3d8634f1 2018-08-19T14:14:17 getpass: Move declaration to <unistd.h>. * lib/unistd.in.h (getpass): New declaration. * lib/getpass.h: Replace with a stub that just includes <unistd.h>. * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE. Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared. (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS. On glibc systems, don't set REPLACE_GETPASS to 1. * modules/getpass (Depends-on): Add 'unistd'. (configure.ac): Test also REPLACE_GETPASS. Define a module indicator. (Include): Specify <unistd.h> instead of "getpass.h". * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'. (configure.ac): Sync with the configure.ac section of modules/getpass. (Include): Specify <unistd.h> instead of "getpass.h". * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared. (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS, REPLACE_GETPASS. * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS, REPLACE_GETPASS. * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'. * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc and musl. * NEWS: Mention the change.
Bruno Haible 4021aac5 2018-08-19T12:03:27 glob: Fix over-optimization due to attribute __nonnull__. * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
Bruno Haible 124d7993 2018-08-19T11:47:06 glob: Fix another compilation error when glob.h is not replaced. Reported by Reuben Thomas <rrt@sc3d.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>. * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed. * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
Bruno Haible 3f1d1d90 2018-08-19T03:00:13 fnmatch: Avoid conflicting macro definitions of 'fnmatch'. Reported by Reuben Thomas <rrt@sc3d.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>. * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro in config.h.
Bruno Haible ed1c87c6 2018-08-18T23:26:06 Avoid -Wcast-function-type warnings from casts after GetProcAddress. Reported by Andy Moreton <andrewjmoreton@gmail.com> in <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>. Solution proposed by Eli Zaretskii. * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first. * lib/gettimeofday.c (GetProcAddress): Likewise. * lib/link.c (GetProcAddress): Likewise. * lib/physmem.c (GetProcAddress): Likewise. * lib/poll.c (GetProcAddress): Likewise. * lib/select.c (GetProcAddress): Likewise. * lib/stat-w32.c (GetProcAddress): Likewise.
Bruno Haible 35d32814 2018-08-18T23:32:14 glob: Fix another compilation error when glob.h is not replaced. Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again. * lib/globfree.c: Include <libc-config.h>.
Bruno Haible c2ec61d9 2018-08-18T22:44:28 glob: Fix compilation error when glob.h is not replaced. Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>. * lib/glob_pattern_p.c: Include <libc-config.h>. * modules/glob (Depends-on): Add libc-config.
Bruno Haible 2c578fe3 2018-08-18T21:37:03 scratch_buffer: Add tests. * tests/test-scratch-buffer.c: New file. * modules/scratch_buffer-tests: New file.
Bruno Haible ba153ed1 2018-08-18T21:35:11 scratch_buffer: Fix include file. Reported by Reuben Thomas <rrt@sc3d.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>. * lib/scratch_buffer.h: Include <libc-config.h> first. Add double-inclusion guard.
Bruno Haible 5fef422c 2018-08-18T21:31:30 glob-h: Revert Paul Eggert's revert. * m4/glob_h.m4: Revert to previous state. * modules/glob-h: Likewise.
Paul Eggert 4ecaa9f2 2018-08-18T00:54:35 glob-h: always build glob.h This works around a problem reported by Reuben Thomas in: http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html This workaround always builds glob.h, even on platforms that do not need it; perhaps this could be improved someday. * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h is always created now. * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
Karl Berry dd1a129e 2018-08-14T08:18:56 autoupdate
Bruno Haible ad2d13ee 2018-08-14T02:34:28 monetary: Simplify m4 code. * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE. (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
Bruno Haible 2ac491cb 2018-08-14T02:29:23 fnmatch-gnu: Revert part of last commit (unneeded).
Bruno Haible ee356814 2018-08-14T02:00:05 fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X. Reported by Jeroen Meijer <jjgmeijer@gmail.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html> and by Paul J. Lucas <paul@lucasmail.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>. * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE. (gl_FNMATCH_H_GNU): New macro. * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Require gl_FNMATCH_H_GNU.
Karl Berry 5ff4c9ba 2018-08-13T06:56:45 autoupdate
Bruno Haible 1945403c 2018-08-11T20:23:37 setlocale: Trivial simplification. * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
Paul Eggert 8635df0a 2018-08-11T18:58:55 Fix ChangeLog typo.
Paul Eggert 3357fb49 2018-08-11T18:56:40 verify: port 'assume' to traditional tools * lib/verify.h (assume): Port better to Oracle Studio 12.6 and other tools that use /*NOTREACHED*/ comments.
Bruno Haible 69ac3f3e 2018-08-11T02:23:48 fnmatch: Fix compilation error in C++ namespace mode on Mac OS X. * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR. * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module 'fnmatch-gnu' is in use.
Paul Eggert 1261513a 2018-08-10T14:28:55 autoupdate
Karl Berry f402ce6e 2018-08-08T10:06:37 autoupdate
Bruno Haible 3bd9c3d7 2018-08-07T10:54:41 glob-h: Add tests. * tests/test-glob-h.c: New file, partially based on tests/test-glob.c. * tests/test-glob.c: Reorder #includes. Remove tests that are moved to tests/test-glob-h.c. * modules/glob-h-tests: New file. * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add conditions. * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests. * modules/glob-tests (Depends-on): Remove glob-c++-tests.
Bruno Haible 490c345b 2018-08-07T10:43:06 glob-h: New module. * lib/glob.in.h: Use nearly the usual gnulib idioms for header file replacements. * lib/glob.c: Include <config.h>. * m4/glob_h.m4: New file. * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P, REPLACE_GLOB_PATTERN_P as appropriate. (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'. * modules/glob-h: New file. * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h. (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config, lstat, sys_stat. Change conditions. (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P, REPLACE_GLOB_PATTERN_P. Set module indicator. (Makefile.am): Remove code that is moved to glob-h. * doc/posix-headers/glob.texi: Mention the 'glob-h' module. * modules/posixcheck (Depends-on): Add glob-h.
Bruno Haible 00ce4c60 2018-08-07T02:00:37 Force generation of substitute .h file when C++ support is enabled. * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro. * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX. * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set FNMATCH_H to non-empty. * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set ICONV_H to non-empty. * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set MONETARY_H to non-empty. * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to non-empty.
Bruno Haible c6d92bd5 2018-08-07T00:25:13 fnmatch-h: Fix test compilation error on mingw (regression from today). * lib/fnmatch.in.h: Fix conditions.
Bruno Haible a768cf09 2018-08-06T15:50:58 sys_resource: Relicense under LGPLv2+. John Malmberg's approval is in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>. * modules/sys_resource (License): Change to LGPLv2+.
Bruno Haible 26c7d71f 2018-08-06T15:07:30 fnmatch-h: Add tests. * tests/test-fnmatch-h.c: New file. * modules/fnmatch-h-tests: New file. * tests/test-fnmatch-h-c++.cc: New file. * modules/fnmatch-h-c++-tests: New file.
Bruno Haible 08096928 2018-08-06T15:00:38 fnmatch-h: New module. * lib/fnmatch.in.h: Use the usual gnulib idioms for header file replacements. (FNM_*): Don't redefine if fnmatch exists and we are not overriding it. (fnmatch): Use the usual gnulib idiom for function declarations. Enable 'posixcheck' warning. * m4/fnmatch_h.m4: New file. * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH as appropriate. * modules/fnmatch-h: New file. * modules/fnmatch (Files): Remove lib/fnmatch.in.h. (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change conditions. (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module indicator. (Makefile.am): Remove code that is moved to fnmatch-h. * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module. * modules/posixcheck (Depends-on): Add fnmatch-h.
Bruno Haible c5222b35 2018-08-06T14:29:57 Enable more C++ tests. * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests. * modules/monetary-tests (Depends-on): Add monetary-c++-tests. * modules/strings-tests (Depends-on): Add strings-c++-tests. * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests. * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
Bruno Haible 2bcd129e 2018-08-06T12:39:04 getopt-posix, utime-h: Ensure the .h file gets regenerated when needed. * modules/getopt-posix (Makefile.am): Add Makefile dependency for getopt.h. * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
Bruno Haible c9d2b6f2 2018-08-06T00:18:17 utime-h: Generate header file when module 'posixcheck' is in use. * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set UTIME_H to non-empty.
Bruno Haible 48b43643 2018-08-06T00:16:43 monetary: Generate header file when module 'posixcheck' is in use. * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in use, set MONETARY_H to non-empty.
Bruno Haible ea15aa4d 2018-08-06T00:15:14 iconv-h: Generate header file when module 'posixcheck' is in use. * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use, set ICONV_H to non-empty.
Bruno Haible 9c34e1b1 2018-08-05T23:25:56 Optimize the "checking whether ... is declared without a macro" checks. Suggested by Paul Eggert in <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>. * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the Gnulib module 'posixcheck' is not in use.
Bruno Haible 0998a7c6 2018-08-05T22:51:45 iconv-h: Enable 'posixcheck' warnings. * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and iconv_open. * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
Bruno Haible efb15adf 2018-08-05T14:06:08 Fix link error regarding 'rpl_environ' (regression from 2012-11-21). * m4/extern-inline.m4: Add more comments. * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro. * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE. * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
Bruno Haible 68bfa44c 2018-08-04T17:25:57 New module 'posixcheck'. * modules/posixcheck: New file. * m4/posixcheck.m4: New file. * doc/gnulib-tool.texi (Finding POSIX substitutes): New section. (Which modules?): Reference it.
Karl Berry 183a4779 2018-08-03T10:36:24 autoupdate
Assaf Gordon c5e76a95 2018-08-01T22:14:21 dfa: fix memory leak * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
Paul Eggert 80d1e862 2018-08-01T16:08:26 ieee754-h: new module It looks like Emacs can use this for some NaN processing. Emacs uses it only on double NaNs so it should be safe. * MODULES.html.sh (func_all_modules): Add ieee754-h. * config/srclist.txt: Mention ieee754.h in a comment. * doc/glibc-headers/ieee754.texi (ieee754.h): Gnulib now has a substitute that should work except for long double and for non-IEEE platforms. * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h: * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
Paul Eggert 66b99e52 2018-08-01T13:26:38 autoupdate
Bruno Haible 755c5ce6 2018-07-27T11:29:17 iswcntrl: Mention minor problem on macOS. * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
Colin Watson 8c0ba82f 2018-07-27T11:33:36 bootstrap, gnulib-tool: fix translations rsync
Colin Watson 900ca5c0 2018-07-26T17:53:37 bootstrap, gnulib-tool: fix translations rsync Previously, we created files such as $pobase/Makefile.in.in and then the subsequent rsync would immediately delete them. * build-aux/bootstrap (po_download_command_format): Avoid deleting non-.po files in target directory when rsyncing translations. * gnulib-tool (func_import): Likewise. * pygnulib/GLImport.py (GLImport.execute): Likewise.
Karl Berry c1599f2f 2018-07-25T08:02:40 autoupdate
Jim Meyering 1688c519 2018-07-25T00:08:39 bootstrap: reinstate definition fo gnulib_mk. That variable is used at least by cppi. * build-aux/bootstrap (gnulib_mk): Restore definition. This reverts the deletion from v0.1-1844-gc66dba9ba.
Bruno Haible b4f88b3c 2018-07-24T03:31:36 doc: For module names, use texinfo markup @code{} or @samp{}. * doc/alloca.texi: Mark gnulib module names with @code. * doc/alloca-opt.texi: Likewise. * doc/quote.texi: Likewise. * doc/posix-functions/freopen.texi: Likewise. * doc/posix-functions/open.texi: Likewise. * doc/posix-functions/readlink.texi: Likewise. * doc/posix-functions/readlinkat.texi: Likewise. * doc/posix-functions/stdout.texi: Likewise. * doc/posix-functions/stderr.texi: Likewise. * doc/posix-functions/unlink.texi: Likewise. * doc/posix-functions/unlinkat.texi: Likewise. * doc/posix-functions/utime.texi: Likewise. * doc/posix-functions/utimensat.texi: Likewise. * doc/posix-functions/utimes.texi: Likewise. * doc/posix-headers/stdint.texi: Likewise. * doc/glibc-functions/futimesat.texi: Likewise. * doc/glibc-functions/lutimes.texi: Likewise. * doc/glibc-functions/memmem.texi: Likewise.
Werner LEMBERG 580b0720 2018-07-24T02:46:14 doc: Avoid some overfull lines in the TeX output. * doc/glibc-functions/futimesat.texi: Replace a long @code with a @example. * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a newline before the long URL. * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise. * doc/relocatable-maint.texi: Use @smallexample instead of @example. Add line breaks in code snippets.
Karl Berry 68df637b 2018-07-19T08:11:38 autoupdate
Paul Eggert 2fe9cab3 2018-07-17T16:13:46 hard-locale: simplify by removing hard-locale.m4 * m4/hard-locale.m4: Remove. * modules/hard-locale (Files): Remove m4/hard-locale.m4. (configure.ac): Do not call gl_HARD_LOCALE.
Paul Eggert a1276e5b 2018-07-17T15:20:39 gnulib-tool: limit line length for git send-email * gnulib-tool (func_import): Break actioncmd log line into multiple lines.
Bruno Haible cdbf3d38 2018-07-17T00:49:06 ffs: Ensure declaration on mingw. Reported by Daniel P. Berrangé <berrange@redhat.com> in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html. * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is also declared.
Karl Berry c3251a57 2018-07-14T08:41:34 autoupdate
Paul Eggert 5b78831d 2018-07-13T00:46:08 autoupdate
Paul Eggert dec70162 2018-07-13T00:42:55 regex-tests: add dependency * modules/regex-tests (Depends-on): Add gettext-h. This is needed given the recent changes to regex, which no longer depends on gettext-h.
Karl Berry f5eb38f1 2018-07-12T09:04:47 autoupdate
Paul Eggert 52b26638 2018-07-10T07:32:25 renameatu: fix ChangeLog typo
Simon Marchi 76b8ad44 2018-07-09T19:03:46 mkancesdirs: Add extern "C" to header * lib/mkancesdirs.h: Add extern "C".
Paul Eggert f876e094 2018-07-06T21:59:14 ; autoupdate
Paul Eggert cd0898c1 2018-07-06T15:55:42 regex: now in sync with glibc * config/srclist.txt: Gnulib and glibc regex code are synchronized again.
Paul Eggert 2522322e 2018-07-05T09:22:09 renameatu: rename from renameat2 It's looking like Glibc will add a renameat2 function that is incompatible with Gnulib renameat2; see: https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html To help avoid future confusion, rename renameat2 to something else. Use the name 'renameatu', as the Gnulib function is close to the Glibc function. Perhaps someday there will also be a renameat2 Gnulib module, which mimicks the future glibc renameat2, but that can wait as nobody seems to need such a module now. * NEWS: Mention this. * lib/renameatu.c: Rename from lib/renameat2.c. * lib/renameatu.h: Rename from lib/renameat2.h. * modules/renameat2: Rename from modules/renameatu. * modules/renameat2-tests: Rename from modules/renameat2-tests. All uses of "renameat2" in identifiers or file name changed to "renameatu", except for two instances in lib/renameatu.c that deal with the Linux kernel's renameat2 syscall.
Paul Eggert 60e8b930 2018-07-04T20:42:07 gnulib-tool: minor tweaks for --gnu-make * gnulib-tool: Do not allow --gnu-make in test modes, since they all require automake. (func_emit_lib_Makefile_am): Don’t emit automake comment if --gnu-make.
Paul Eggert a078b8cd 2018-07-04T20:18:48 regex: work around conditional-dependencies glitch * modules/regex (Depends-on): Add langinfo. Without this change, I had problems building an experimental version of GNU Emacs. The symptom of the bug was a message ‘./configure: line 12726: test: =: unary operator expected’. This was due to a line in gl_FUNC_NL_LANGINFO that invokes ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET was unset. Although gl_FUNC_NL_LANGINFO has ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with --conditional-dependencies sometimes arranges for the gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H code. Since the regex code includes <langinfo.h> it should be depending on the langinfo module anyway, and this happens to work around the bug, so install that as a workaround for now. To reproduce the original problem, run the following shell script on the version of Gnulib just before this patch was installed. rm -fr foo mkdir foo cat >foo/configure.ac <<'EOF' AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/) gl_EARLY gl_INIT AC_OUTPUT EOF ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex ./gnulib-tool --copy build-aux/install-sh foo/install-sh ./gnulib-tool --copy build-aux/config.sub foo/config.sub ./gnulib-tool --copy build-aux/config.guess foo/config.guess cd foo aclocal -I m4 autoconf ./configure --with-included-regex
Karl Berry b324052c 2018-07-04T10:31:36 autoupdate
Karl Berry 0ee5212e 2018-07-03T08:02:14 autoupdate
Paul Eggert 285334ca 2018-07-01T18:57:01 wchar: fix bug when checking for ‘inline’ I discovered this when looking into using the regex module with Emacs. * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in 2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled conftest1.c and conftest2.c but these files were not created. As far as I can see, this check never worked and nobody reported it until now, which is a bit worrisome.
Paul Smith 62d06fd3 2018-07-01T18:00:52 getloadavg: don't redefine WINDOWS32 * lib/getloadavg.c: Only define WINDOWS32 if it's not already defined.
Jim Meyering 8cb31815 2018-06-30T19:57:07 bootstrap: s/--option val/--option=val/ * build-aux/bootstrap (gnulib_tool_options): Change the spelling of "--option val" pairs to "--option=val", for aesthetics, and also so that this file no longer triggers a common help2man syntax-check warning when copied into projects like grep, gzip, etc.