Log

Author Commit Date CI Message
Paul Eggert e20e3451 2017-07-26T11:57:37 maint: bring MODULES.html.sh up to date Somehow a few months ago we stopped updating MODULES.html.sh. I don’t recall explicitly deciding this, so I updated it now. Alternatively I suppose we could remove it. * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero, localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes, truncate, utime, utime-h, windows-stat-inodes, windows-stat-override, windows-stat-timespec, year2038. Sort.
Jim Meyering e8b8e656 2017-07-26T11:33:49 fprintftime: fix build-break caused by recent renaming * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed "strftime.c". * modules/fprintftime: Depend directly on nstrftime.
Paul Eggert f7795760 2017-07-26T09:12:29 regex: work with GCC7's -Werror=implicit-fallthrough= * lib/regex_internal.h (FALLTHROUGH): New macro. * lib/regcomp.c (peek_token_bracket, parse_expression): * lib/regexec.c (check_node_accept): Use it.
Paul Eggert e66b0b94 2017-07-25T00:00:19 fts: simplify fts_build * lib/fts.c (fts_build): Simplify, and be lazier about calling leaf_optimization.
Paul Eggert b446700e 2017-07-24T23:54:00 fts: three levels of leaf optimization * lib/fts.c (enum leaf_optimization): New type with three values. (S_MAGIC_AFS): New macro. Sort them. (leaf_optimization): Rename from leaf_optimization_applies, and return enum leaf_optimization instead of bool. All uses changed. Add cases for unknown type and for AFS. (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
Paul Eggert 2649851d 2017-07-24T23:44:05 fts: cache dirent_inode_sort_may_be_useful too * lib/fts.c (struct dev_type): New struct. (DEV_TYPE_HT_INITIAL_SIZE): New constant. (dev_type_hash, dev_type_compare, filesystem_type): New functions. (dirent_inode_sort_may_be_useful, leaf_optimization_applies): Now takes FTSENT const *, not int. All uses changed. Use filesystem_type to cache. (link_count_optimize_ok): Remove. Caller changed to use leaf_optimization_applies, which now uses shared cache.
Paul Eggert 9c7ef4ee 2017-07-24T23:21:57 fts: nlink_t signedness fixups * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1 so that root need not be a special case later. (fts_read): Remove now-redundant test for fts_level. Do not assume that nlink_t is signed. (fts_build): Remove useless decrement of nlinks. (fts_stat): Avoid unlikely signed integer overflow later, if nlink_t is signed.
Paul Eggert b7363b49 2017-07-24T23:12:59 fts-tests: new module * modules/fts-tests, tests/test-fts.c: New files.
Paul Eggert f7eb1b99 2017-07-24T23:28:26 fts: introduce MIN_DIR_NLINK * lib/fts.c (MIN_DIR_NLINK): New constant. Use it instead of 2, whenever we are talking about link counts.
Bruno Haible 06c7d3b6 2017-07-24T10:34:25 Rename module 'strftime' to 'nstrftime'. * NEWS: Mention the change.
Bruno Haible a742bdb3 2017-07-24T01:19:36 Rename module 'strftime' to 'nstrftime'. * m4/nstrftime.m4: Renamed from m4/strftime.m4. * lib/nstrftime.c: Renamed from lib/strftime.c. * modules/nstrftime: Renamed from modules/strftime. (Files, Makefile.am): Update. * tests/test-nstrftime.c: Renamed from tests/test-strftime.c. Fix comment. * modules/nstrftime-tests: Renamed from modules/strftime-tests. (Files, Makefile.am): Update. * modules/strftime: New file, an obsolete indirection. * doc/posix-functions/strftime.texi: Update reference. * config/srclist.txt: Update info.
Tim Rühsen fe5d8154 2017-07-21T23:18:21 malloca: Silence a warning from clang's memory sanitizer. * lib/malloca.c (NO_SANITIZE_MEMORY): New macro. (freea): Use it.
Karl Berry f014f540 2017-07-19T07:56:20 autoupdate
Bruno Haible 10ccf901 2017-07-19T02:35:23 host-cpu-c-abi: Fix detection of MIPS ABI. * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the ABI, not the CPU instruction set.
Paul Eggert 276416a1 2017-07-16T07:26:16 explicit_bzero: new module The explicit_bzero function has been added to glibc. This module is intended to supports its use in GNU programs. * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c: * m4/explicit_bzero.m4, modules/explicit_bzero: New files. * doc/gnulib.texi (Glibc string.h): Link to new doc. * lib/string.in.h (explicit_bzero): Declare. * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it. * modules/string (string.h): Substitute its vars.
Bruno Haible 7d71a30f 2017-07-16T14:49:21 threadlib: Support static linking. * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use, set gl_cv_have_weak to 'no'.
Bruno Haible d6be976d 2017-07-16T14:21:55 unicase/locale-language: Fix link dependencies. * modules/unicase/locale-language (Link): New section. * modules/unicase/locale-language-tests (Makefile.am): Link test-locale-language program with $(LIBTHREAD).
John E. Malmberg 418a494e 2017-07-15T23:11:44 sys_socket: Add support for OpenVMS. * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN. * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
John E. Malmberg 4abebc63 2017-07-15T17:30:13 sys_resource: Add support for OpenVMS. * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN. * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
John E. Malmberg 9d63a16e 2017-07-15T17:10:51 math: Add support for OpenVMS. * lib/math.in.h [__VMS]: Include <fp.h>. * doc/posix-headers/math.texi: Mention OpenVMS issues.
Bruno Haible 231fb8c8 2017-07-15T17:00:37 getdtablesize: Add minimal support for OpenVMS. Reported by John E. Malmberg <wb8tyw@qsl.net>. * modules/getdtablesize (Description): Fix. * lib/getdtablesize.c: Fix comment. * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the getdtablesize() function, even though the test fails. * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe limitation on OpenVMS.
Bruno Haible 7cfff172 2017-07-13T19:49:38 Revisit cross-compilation guesses. * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
Bruno Haible a9b04535 2017-07-13T21:06:02 Improve cross-compilation guesses for native Windows. * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native Windows. * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise. * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise. * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise. * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise. * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise. * m4/ceil.m4 (gl_FUNC_CEIL): Likewise. * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise. * m4/ceill.m4 (gl_FUNC_CEILL): Likewise. * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise. * m4/dup.m4 (gl_FUNC_DUP): Likewise. * m4/expl.m4 (gl_FUNC_EXPL): Likewise. * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise. * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise. * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise. * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise. * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise. * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise. * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise. * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise. * m4/float_h.m4 (gl_FLOAT_H): Likewise. * m4/floor.m4 (gl_FUNC_FLOOR): Likewise. * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise. * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise. * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise. * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise. * m4/fmod.m4 (gl_FUNC_FMOD): Likewise. * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise. * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise. * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise. * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise. * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise. * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise. * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise. * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise. * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise. * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise. * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise. * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise. * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise. * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise. * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise. * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise. * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise. * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise. * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise. * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise. * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise. * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise. * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise. * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise. * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise. * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise. * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise. * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise. * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise. * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise. * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise. * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise. * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise. * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise. * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise. * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise. * m4/modf.m4 (gl_FUNC_MODF): Likewise. * m4/modff.m4 (gl_FUNC_MODFF): Likewise. * m4/modfl.m4 (gl_FUNC_MODFL): Likewise. * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise. * m4/perror.m4 (gl_FUNC_PERROR): Likewise. * m4/popen.m4 (gl_FUNC_POPEN): Likewise. * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise. * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise. * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise. * m4/regex.m4 (gl_REGEX): Likewise. * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise. * m4/remainderf.m4 (gl_FUNC_REMAINDERF, gl_FUNC_REMAINDERF_WORKS): Likewise. * m4/remainderl.m4 (gl_FUNC_REMAINDERL, gl_FUNC_REMAINDERL_WORKS): Likewise. * m4/rename.m4 (gl_FUNC_RENAME): Likewise. * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise. * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise. * m4/round.m4 (gl_FUNC_ROUND): Likewise. * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise. * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise. * m4/signbit.m4 (gl_SIGNBIT): Likewise. * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise. * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise. * m4/stdint.m4 (gl_STDINT_H): Likewise. * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise. * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise. * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise. * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise. * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise. * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise. * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise. * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise. * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise. * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise. * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise. * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise. * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise. * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise. * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise. * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL): Likewise. * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise. * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native Windows. Enable also on Autoconf 2.70. * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N, gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess for native Windows. (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
Bruno Haible abc08a26 2017-07-13T19:46:33 Improve cross-compilation guesses for native Windows. * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native Windows. * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of memchr.m4. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
Bruno Haible fd5ca537 2017-07-13T19:42:10 Improve cross-compilation guesses for native Windows. * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for native Windows. (gl_FUNC_FFLUSH): Update accordingly. * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise. * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
Bruno Haible 95af6e04 2017-07-11T13:58:01 More systematic m4 quoting and indentation. * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically. * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise. * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise. * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise. * m4/host-os.m4 (gl_HOST_OS): Likewise. * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H, gl_WINSIZE_IN_PTEM): Likewise. * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise. * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise. * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise. * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically. Correct indentation. * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise. * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise. * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise. * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise. * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise. * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
Bruno Haible f12a7bbb 2017-07-11T03:52:48 round, roundf: Avoid compiler warning in configure test. * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit(). * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
Bruno Haible 7f1ef184 2017-07-11T00:53:04 getlogin tests: Avoid #ifdefs when sharing code between modules. * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h. * modules/getlogin-tests (Files): Likewise. Remove tests/test-getlogin_r.c. * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c. * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c. * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests getlogin().
Paul Eggert 24605b2f 2017-07-10T11:56:48 getlogin: don’t assume one name per uid Problem reported by Wolfgang F. Muthmann (Bug#27640). * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c. (ttyname): Remove test. * modules/getlogin_r-tests (ttyname): Remove test. * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’. * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test getlogin rather than getlogin_r. This avoids code duplication. (main): Use isatty and fstat rather than ttyname and stat. Use getpwnam instead of getpwuid, to be portable to test platforms that have multiple login names for the same uid.
Tim Rühsen 8cb994d1 2017-07-10T19:02:19 glob: Fix more memory leaks. * lib/glob.c (glob): Use 'goto out' in order to free dirname before returning. Reported by Tim Rühsen.
Bruno Haible 3b1faeb2 2017-07-10T12:35:06 Make sure $host and $host_os are defined when used. * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST. * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise. * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise. * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise. * m4/expl.m4 (gl_FUNC_EXPL): Likewise. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise. * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise. * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise. * m4/poll.m4 (gl_FUNC_POLL): Likewise. * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise. * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise. * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise. * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise. * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the m4_ifdef block.
Bruno Haible c7711db8 2017-07-10T02:20:20 *printf: Fix cross-compilation guess for Solaris. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from 2010-12-21.
Bruno Haible 7df04f9b 2017-07-07T23:35:32 vasnprintf: port to macOS 10.13 Improve comments in last commit.
Paul Eggert c41f233c 2017-07-07T14:10:20 vasnprintf: port to macOS 10.13 Problem reported by comex in: http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00056.html * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
Bruno Haible a0018024 2017-07-07T01:40:07 imaxdiv tests: Fix logic. * tests/test-imaxdiv.c (main): Use == instead of =. Reported by Coverity.
Bruno Haible 144896dd 2017-07-07T00:14:53 uninorm/filter: Fix use-after-free bug. * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain sortbuf == filter->sortbuf invariant. Reported by Coverity.
Bruno Haible b19cb256 2017-07-06T23:21:49 glob: Fix more memory leaks. * lib/glob.c (glob): Free dirname before returning. Reported by Coverity and Tim Rühsen.
Paul Eggert f7c9441d 2017-07-06T14:08:24 parse-datetime: fix uninit var bug Reported by Bruno Haible in: http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00038.html * lib/parse-datetime.y (parse_datetime2): Do not use uninitialized.
Bruno Haible 8fb59b8f 2017-07-06T01:10:39 doc: Update for MSVC 14. * doc/posix-headers/*.texi: Add info about MSVC 14. * doc/posix-functions/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-headers/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise.
Bruno Haible d93b7cb5 2017-07-06T00:02:32 sched: Fix build failure on native Windows (regression from 2017-06-19). * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
Karl Berry 3824bd79 2017-07-05T09:03:45 autoupdate
John Malmberg cb634d40 2017-07-03T08:05:19 stdioext: Port to OpenVMS. * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information. * lib/fpending.c (fpending): Remove non-working VMS specific code. * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro. * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments. * lib/fpurge.c (fpurge): Likewise. * lib/freadable.c (freadable): Likewise. * lib/freadahead.c (freadahead): Likewise. * lib/freading.c (freading): Likewise. * lib/freadptr.c (freadptr): Likewise. * lib/freadseek.c (freadseek): Likewise. * lib/fseeko.c (fseeko): Likewise. * lib/fseterr.c (fseterr): Likewise. * lib/fwritable.c (fwriteable): Likewise. * lib/fwriting.c (fwriting): Likewise.
Benno Schulenberg e29357c8 2017-07-01T18:05:00 glob: Declare variables at the very start of their scope. * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment its separate scope, so the functions will compile on Haiku.
Bruno Haible 990643f1 2017-07-01T17:10:31 logbl: Work around a glibc bug on PowerPC64LE. * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal numbers. * doc/posix-functions/logbl.texi: Update.
Bruno Haible 8f706af3 2017-06-29T17:36:28 stat, fstat: Compile stat-w32.c only on platforms that need it. Suggested by Paul Eggert. * modules/stat (configure.ac): Request stat-w32.o only on native Windows. * modules/fstat (configure.ac): Likewise.
Bruno Haible 9ae75d14 2017-06-25T11:09:42 stat: Improve last change. * lib/stat-w32.c: Revert last change. Use generic idiom instead.
Paul Eggert 736844e3 2017-06-25T00:06:15 stat: port to xlc 12.01 * lib/stat-w32.c: Always include <sys/types.h>. Otherwise, xlc 12.01 complains "Compilation unit is empty."
Paul Eggert 153daefe 2017-06-24T23:48:31 xalloc-oversized: port to icc * lib/xalloc-oversized.h (xalloc_oversized): Do not use __builtin_mul_overflow if ICC is defined, as this results in "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2 20170213.
Bruno Haible 40f8a19b 2017-06-19T17:09:30 classpath: Avoid including config.h twice, as it produces warnings. Reported by John E. Malmberg <wb8tyw@gmail.com>. * lib/classpath.h: Conditionalize the include of config.h.
Bruno Haible 7e09770c 2017-06-19T16:54:55 sched: Fix compilation failure on OpenVMS. * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS, test whether <pthread.h> exists and defines struct sched_param. * lib/sched.in.h: On OpenVMS, include <pthread.h>.
Paul Eggert 002ac8b1 2017-06-17T12:16:27 diffseq: port to GCC 7 with --enable-gcc-warnings * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the heuristic check. This way, GCC 7 with --enable-gcc-warnings does not complain about big_snake being defined but not used.
Bruno Haible a750b78e 2017-06-15T22:58:28 gettext-h: Update theoretical condition for use of variable size arrays. Reported by Paul Eggert. * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment to include the theoretical condition for availability of variable size arrays, if we could trust the value of __STDC_VERSION__.
Bruno Haible ce4ee4cb 2017-06-12T10:40:29 Relicense some modules under LGPLv2+. Daiki Ueno's approval is in https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00058.html. * modules/uniwidth/base (License): Change to LGPLv2+. * modules/uniwidth/width (License): Likewise.
Bruno Haible f3a96ba2 2017-06-12T02:05:17 localename: Fix test failure on DragonFly BSD. * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD like FreeBSD.
Bruno Haible b5f087b1 2017-06-12T01:57:02 float: Fix 'float' and 'isinf' failures on DragonFly BSD. * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
Bruno Haible 2b5ff566 2017-06-12T01:45:46 float: Fix 'float' and 'isinf' failures on DragonFly BSD. * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD. * lib/float.in.h: Likewise.
Bruno Haible 87d14d35 2017-06-12T01:38:57 gnulib-tool: Clean up after autotools. * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove useless directory left over by the Autotools.
Paul Eggert e3461d1c 2017-06-11T15:53:09 getopt-posix: port to glibc 2.25.90 Problem reported by Daniel P. Berrange in: http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00003.html * lib/getopt-pfx-core.h (_GETOPT_CORE_H): * lib/getopt-pfx-ext.h (_GETOPT_EXT_H): #undef if __GETOPT_PREFIX is defined.
Bruno Haible 9611fb9f 2017-06-11T13:09:47 strtod-obsolete: Fix license. * modules/strtod-obsolete (License): Change to LGPL.
Jim Meyering b47afb14 2017-06-10T10:11:47 maint: update to work with GCC7's -Werror=implicit-fallthrough= * lib/savewd.c (FALLTHROUGH): Define. (savewd_save, savewd_restore): Use this, rather than a comment, whenever one switch case falls through into the next.
Bruno Haible 50549d90 2017-06-09T01:26:28 host-cpu-c-abi: Support for aarch64 ILP32 ABI. * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32 ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this case.
Paul Eggert 371d8f6e 2017-06-08T09:27:36 * doc/build-automation.texi: Mention DEPENDENCIES.
Paul Eggert 93e11f30 2017-06-08T07:34:47 doc: remove robots, add prereqs * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for builds. Simon's robot site does not seem to be up, so remove mentions of it for now.
Bruno Haible 30459fe1 2017-06-08T15:09:31 gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13. * gnulib-tool (func_symlink_target): New function, extracted from func_symlink. (func_symlink, func_symlink_if_changed): Use it.
Bruno Haible c09c2493 2017-06-08T14:45:39 gnulib-tool: Fix bug in func_ln_s, from 2016-01-15. * gnulib-tool (func_ln_s): Determine cp_src correctly.
Bruno Haible b55a085b 2017-06-07T15:23:38 canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS. Reported by John E. Malmberg <wb8tyw@gmail.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00029.html>. * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd override, pass 2 arguments to getcwd, not 3.
Karl Berry f516db4f 2017-06-05T06:46:00 autoupdate
Paul Eggert 5a02f1ab 2017-06-04T14:25:43 same-inode: port better to VMS 8.2 and later Problem reported by John E. Malmberg in: http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00005.html * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]: Use the usual POSIX definition. * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
Paul Eggert aad5573e 2017-06-01T14:08:00 error: fix POSIX violation for va_end Problem reported by Bruno Haible in: http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00001.html * lib/error.c (error_tail): Do not call va_end here. (error, error_at_line): Call it here instead.
Karl Berry 6ec17baf 2017-05-28T08:43:13 autoupdate
Bruno Haible de142a82 2017-05-28T13:51:08 c-strtod: Make it usable in C++ mode. * lib/c-strtod.h: Add 'extern "C"' marker for C++.
Jim Meyering 6c720446 2017-05-25T21:25:37 quotearg: fix compilation failure due to FALLTHROUGH misuse * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH macro back to /* fall through */ comment. The macro can apply only to a following case statement. Reported by Assaf Gordon.
Paul Eggert d41bb613 2017-05-25T00:08:09 intprops: port to recent icc Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5 but does not support __builtin_add_overflow etc. * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]: Define to 0.
Karl Berry df7bead3 2017-05-23T14:39:55 iconv.m4 sync broken
Bruno Haible 3658b734 2017-05-23T18:56:39 iconv: Update copyright year. Reported by Karl Berry.
Bruno Haible abdd68df 2017-05-22T22:26:29 Fix ChangeLog formatting.
Bjarni Ingi Gislason 2b10299b 2017-05-22T18:02:35 Remove repeated words in comments. Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Bernhard Voelker 949b6cc6 2017-05-22T12:45:45 fallthrough: reinstate a FALLTHROUGH instance in quotearg quotearg.c: Reinstate this instance which is significant when the if branch is not taken.
Bruno Haible 306be564 2017-05-22T01:39:59 gnulib-tool: Add options to create hard links. * gnulib-tool (func_usage): Document options --hardlink, --local-hardlink, --more-hardlinks. (func_symlink): Renamed from func_ln. (func_symlink_if_changed): Renamed from func_ln_if_changed. (func_hardlink): New function. (copymode, lcopymode): New variables. (symbolic, lsymbolic): Remove variables. (Options): Implement options --hardlink, --local-hardlink, --more-hardlinks. (func_should_link): Renamed from func_should_symlink. Set copyaction. (func_add_file, func_update_file): Update invocation of func_should_link. Invoke func_hardlink when appropriate. (func_import): Update comments. (func_create_testdir): Update invocation of func_should_link. Invoke func_hardlink when appropriate. Finally, invoke 'git update-index --refresh' to mitigate the effects of the hard links on git.
Bruno Haible 88033d37 2017-05-21T02:46:18 argp: Simplify bit manipulation. * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts on a signed integer type.
Bruno Haible 9c6d8d0b 2017-05-20T15:26:26 Avoid wrong configure results with gcc -fsanitize=address. This completes the work done on 2016-02-06 on this topic. * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning. * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise. * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise. * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before returning. * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise. * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise. * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise. * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise. * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise. * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise. * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and free allocated memory before returning. * m4/getline.m4 (gl_FUNC_GETLINE): Likewise. * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR objects before returning. * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before returning.
Bruno Haible f5142421 2017-05-20T13:24:37 gnulib-tool: Don't create hard links between gnulib and its testdirs. * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
Bruno Haible 4cb5b9b4 2017-05-20T12:15:04 argp, tsearch tests: Fix file list. * modules/argp-tests (Files): Add tests/macros.h. * modules/tsearch-tests (Files): Likewise.
Bruno Haible 2c9d4191 2017-05-20T12:12:16 getopt-posix tests: Remove redundant include. * tests/test-getopt.h: Don't include "macros.h". It's already included by tests/test-getopt-main.h.
Jim Meyering 809f19db 2017-05-19T17:02:56 dfa: two small simplifications * lib/dfa.c (build_state): Avoid repeating longer expressions.
Jim Meyering 11fdf80b 2017-05-18T08:36:27 fallthrough: update for GCC 7/8 * lib/quotearg.c (FALLTHROUGH): New macro. Use it whenever one switch case falls through into the next, replacing "/* Fall through */" comments. This exposed one instance of an unwarranted "fall through" comment: unwarranted because it preceded a "goto" label not a case statement. * lib/freopen-safer.c (freopen_safer): Likewise. * lib/fts.c (leaf_optimization_applies): Likewise. * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise. * tests/test-getopt_long.h (getopt_long_loop): Likewise. * tests/test-tsearch.c (mangle_tree): Likewise. Also include tests/macros.h for the definition. * tests/test-argp.c (group1_parser): Likewise. * tests/test-getopt.h (getopt_loop): Likewise.
Paul Eggert 06094e39 2017-05-19T15:39:06 argp: fix shift bug * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined behavior on shift overflow, caught by gcc -fsanitize=undefined.
Paul Eggert a50e906c 2017-05-19T15:35:24 argp: fix pointer-subtraction bug * lib/argp-help.c (hol_append): Don’t subtract pointers to different arrays, as this can run afoul of -fcheck-pointer-bounds. See the thread containing Bruno Haible’s report in: http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00171.html
Bruno Haible 5e0faf88 2017-05-19T19:27:51 printf-posix tests: Avoid test failure with "gcc --coverage". Reported by Tim Rühsen <tim.ruehsen@gmx.de>. * tests/test-printf-posix2.c (main): Test a width of 10000000 rather than 5000000. * tests/test-fprintf-posix2.c (main): Likewise.
Paul Eggert 105ff450 2017-05-19T08:52:38 closeout: don’t close stderr when sanitizing * NEWS: Document this. * lib/closeout.c (__has_feature): New macro, if not already defined. (SANITIZE_ADDRESS): New constant. (close_stdout): Don’t close stderr if sanitizing addresses.
Bruno Haible fa529e84 2017-05-19T09:06:39 get-rusage-data tests: Avoid failure on Linux/glibc. * tests/test-get-rusage-data.c (main): Don't expect a strict increase on glibc systems.
Bruno Haible c1322451 2017-05-19T00:50:38 localename: Include necessary header files on Cygwin. * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is where NL_LOCALE_NAME is defined.
Bruno Haible 05daec7d 2017-05-18T22:49:58 gettext: Update macros from gettext git. * m4/intldir.m4: Require Autoconf >= 2.60. * m4/progtest.m4: Fix typos in copyright notice.
Bruno Haible a85305cb 2017-05-18T22:20:58 copy-file tests: Fix link error (regression from 2017-05-01). Reported by Tom G. Christensen <tgc@jupiterrise.com>. * modules/copy-file-tests (Makefile.am): Link test-copy-file with $(LIB_CLOCK_GETTIME).
Bruno Haible 4be48808 2017-05-18T12:54:51 unicase/special-casing: Fix incompatibility with gperf-3.0.4. * lib/unicase/special-casing.in.h: Renamed from lib/unicase/special-casing.h. * modules/unicase/special-casing (Files): Add lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h. (Makefile.am): Add rule for generating unicase/special-casing.h. Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly. * lib/unicase/special-casing.c: Include "unicase/special-casing.h", not "special-casing.h". * lib/unicase/u*.c: Likewise.
Bruno Haible ac5fcbdf 2017-05-17T10:14:07 README: Don't ask people to read a TeXinfo file. Reported by Tim Rühsen <tim.ruehsen@gmx.de>. * README: Tell people how to read the HTML formatted manual.
Tim Rühsen 99eb8415 2017-05-17T10:02:39 parse-datetime: Fix memleak * lib/parse-datetime.y (parse_datetime2): Cleanup on localtime_rz() failure.
Bruno Haible b82b3835 2017-05-16T21:29:32 javacomp: Fix handle leak. Found by Coverity. * lib/javacomp.c (get_classfile_version): Close fd before returning.
Bruno Haible 3a285f29 2017-05-16T20:57:23 relocate: Make it easier to reclaim allocated memory. * lib/relocatable.h (relocate2): New declaration/macro. * lib/relocatable.c (relocate2): New function. * doc/relocatable-maint.texi (Supporting Relocation): Mention the relocate2 function. * lib/localcharset.c (relocate2): Define fallback. (get_charset_aliases): Invoke relocate2 instead of relocate. Free the allocated memory. * lib/javaversion.c (relocate2): Define fallback. (javaexec_version): Invoke relocate2 instead of relocate. Free the allocated memory.
Bruno Haible 88fdf7f8 2017-05-16T20:02:20 relocate: Simplify EMX specific code. * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use ISSLASH macro consistently. Avoid dangerous string concatenation idiom.