Log

Author Commit Date CI Message
Karl Berry fddc6dcf 2015-05-05T16:14:12 gendocs.sh: document new htmlarg default
Paul Eggert 44f73b8d 2015-04-29T19:47:12 extern-inline: no need for workaround in GCC 5.1 * doc/extern-inline.texi (extern inline): * m4/extern-inline.m4 (gl_EXTERN_INLINE): GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work around these bugs in GCC 5.1 and later. Maybe in a decade or two we can remove these workarounds.
Karl Berry 23741e57 2015-04-29T12:36:59 update from texinfo
Pádraig Brady 3690e01f 2015-04-28T22:24:45 eealloc, pagealign_alloc, xalloc: avoid clang warnings Avoid [-Wunknown-attributes] warnings like: warning: unknown attribute '__alloc_size__' ignored * lib/xalloc.h: Don't use the __alloc_size__ attribute with clang, as support has been fully removed as of clang 3.5: https://github.com/llvm-mirror/clang/commit/c047507a * lib/eealloc.h: Likewise. * lib/pagealign_alloc.h: Likewise.
Paul Eggert 2aea2c72 2015-04-27T01:23:29 tests: pacify GCC 5.1's stricter printf checking * tests/test-dirname.c (main): * tests/test-getaddrinfo.c (simple): * tests/test-getlogin.c (main): * tests/test-getndelim2.c (main): * tests/test-inttostr.c (CK): * tests/test-md5.c (main): * tests/test-read-file.c (main): * tests/test-sha1.c (main): Fix mismatches between printf format and value signedness. * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max): Remove, as CAST_VAL always returned a value of type uintmax_t.
Paul Eggert e4584a9e 2015-04-27T01:19:03 fts: port to GCC 5.1 with --enable-gcc-warnings Without this fix, GCC 5.1 (correctly) warns about a subscript error on the fts_name component of FTSENT. It's actually a flexible member, so define it that way on C99 or later hosts. * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a structure that now has a flexible array member. * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro. (FTSENT): fts_name is now flexible on C99-or-later platforms. * modules/fts (Depends-on): Add flexmember.
Paul Eggert ff714c0a 2015-04-26T09:20:34 file-has-acl: port to CentOS 6 Problem reported by Tom G. Christensen in: http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and HAVE_GETXATTR. * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS, and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what what file-has-acl.c actually needs.
Pádraig Brady 496c2cf0 2015-04-25T21:49:43 file-has-acl: always return false when ACLs aren't supported * lib/file-has-acl.c (file_has_acl): Consistent with other paths, change the GNU/Linux getxattr path, to transform "not supported" errors to a false return rather than an error. This is handled within file_has_acl() due to the platform specific tests to determine if ACLs are not supported.
Paul Eggert f2f69809 2015-04-25T17:28:45 gettext: propagate po/Makefile.in.in too * build-aux/po/Makefile.in.in: Copy from latest gettext. * config/srclist.txt: In build-aux/po, copy Makefile.in.in and remove-potcdate.sin from $GETTEXT. This fixes a version mismatch between Makefile.in.in and the gettext-runtime m4 files.
Paul Eggert 80080702 2015-04-24T22:07:56 file-has-acl: new module, split from acl And add a new module file-has-acl-tests to match. I ran into a problem with the recent changes to the acl module, as they introduced a typo 'test use_xattrs = 0' into 'configure'. When using the fixed version with Emacs, I discovered that file-has-acl wasn't separated out well enough for Emacs (e.g., it had multiple libraries, but needed only one), so I fixed that too. * NEWS: Document this incompatible change. * modules/file-has-acl, modules/file-has-acl-tests: New files. * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL. Initialize gl_need_lib_has_acl. (gl_FUNC_ACL): Require it. Simplify use of 'test'. Set LIB_HAS_ACL if gl_need_lib_has_acl. Move the file-has-acl.c-relevant stuff to ... (gl_FILE_HAS_ACL): ... this new macro. Rewrite to fix 'test use_xattrs = 0' typo, and omit some needless work. Set gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set when gl_FUNC_ACL is called. * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c. (Link): Remove $(LIB_HAS_ACL). * modules/acl-tests (Files, Depends-on, configure.ac, TESTS) (check_PROGRAMS): Move stuff relevant to file-has-acl to modules/file-has-acl-tests. (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
Paul Eggert df82ac05 2015-04-24T12:58:46 manywarnings: add GCC 5.1 warnings * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds, -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat, -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation, -Wsuggest-override, -Wuse-without-only. Change -Wnormalized=... operands to match 5.1. * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare, -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers, -Wdiscarded-qualifiers, -Wformat-signedness, -Wincompatible-pointer-types, -Wint-conversion, -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr, -Wshift-count-negative, -Wshift-count-overflow, -Wsizeof-array-argument, -Wsuggest-final-methods, -Wsuggest-final-types, -Wswitch-bool. Remove -Warray-bounds, and add -Warray-bounds=2 as a special case.
Karl Berry 74fa2c04 2015-04-24T07:44:45 autoupdate
Simon Josefsson abb0d2e0 2015-04-21T10:40:50 doc: update FDL template to match FDL examples. * doc/alloca-opt.texi: * doc/alloca.texi: * doc/c-ctype.texi: * doc/c-strcase.texi: * doc/c-strcaseeq.texi: * doc/c-strcasestr.texi: * doc/c-strstr.texi: * doc/c-strtod.texi: * doc/c-strtold.texi: * doc/ctime.texi: * doc/error.texi: * doc/gcd.texi: * doc/gnulib-tool.texi: * doc/inet_ntoa.texi: * doc/intprops.texi: * doc/lib-symbol-visibility.texi: * doc/maintain.texi: * doc/parse-datetime.texi: * doc/quote.texi: * doc/regexprops-generic.texi: * doc/standards.texi: Remove spurious 'with' in FDL license template.
Paul Eggert a1e6bbdc 2015-04-21T00:22:00 lstat: fix cross-compilation 'ln -s' problem * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Have the test program call 'symlink' rather than a separate script run 'ln -s'; this is more likely to work in cross-compilation environments. Reported by Pavel Fedin in: http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
Ludovic Courtès 3bafb583 2014-12-11T16:49:21 gendocs.sh: default to a common CSS style sheet for HTML output * build-aux/gendocs.sh (htmlarg): Change default value.
Mats Erik Andersson 75d1743a 2015-04-15T18:31:46 gnulib-tool: output bold attribute more portably * gnulib-tool (func_show_module_list): Change hexadecimal numbers to octal in BOLD_ON and BOLD_OFF. The use of hex encoded numbers as arguments to `printf' is not portable, and is not claimed by POSIX. This is the case with FreeBSD.
Andreas Gruenbacher 2653a301 2015-04-12T16:36:38 qacl: Simplify HP-UX acl_nontrivial check * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of acl_nontrivial. Check if the acl has at most three entries instead (it must have exactly three entries according to the HP-UX documentation). Ignore uids and gids as long as an entry is either for a user (i.e., the owner), a group (i.e., the owning group), or others. * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype. * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the source file.
Andreas Gruenbacher da6ebc94 2015-04-12T16:36:37 acl: On Linux, check for acls without libacl On Linux, use the getxattr syscall instead of the acl_extended_file libacl library function to check for the presence of acls, avoiding a library dependency. * lib/file-has-acl.c: Include xattr headers if we have them. (file_has_acl): On Linux, use getxattr(). * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for file_has_acl(). Check for xattr headers and getxattr(). * modules/acl: Add a dep on the stdbool module which was already needed. Add the new reduced dependency LIB_HAS_ACL reference.
Andreas Gruenbacher a09a0344 2015-04-12T16:36:36 acl, qacl: split off shared functions into separate object file Some of the helper functions in file-has-acl.c are used from qcopy-acl.c while file_has_acl() isn't needed there. Split the shared functions off into acl-internal.c. * lib/file-has-acl.c: Remove helper functions here. * lib/acl-internal.c: Add helper functions here. * modules/qacl: Use acl-internal.c instead of file-has-acl.c here. * modules/acl: Add file-has-acl.c now that qacl doesn't use it anymore.
Mats Erik Andersson 6c4ac1b6 2015-04-14T21:25:59 git-version-gen: revert "detect untagged revisions" Revert commit bedd7833 as it breaks `make dist` in Inetutils at least, due to the interdependencies with top/GNUMakefile, which depend on the tag prefixes. This results in `make dist` inducing a new call to autoconf where a simple tar-ball build would be expected.
Ángel González 35a0bf1d 2015-04-14T11:47:52 tempname: avoid unused parameter warnings * lib/tempname.c (try_dir): Tag with __GL_UNUSED. (try_nocreate): Likewise.
Mats Erik Andersson bedd7833 2015-04-13T23:00:35 git-version-gen: detect untagged revisions * build-aux/git-version-gen: If fallback string is empty, but git is available, use "git describe --always" to extract a revision, and prefix it with "g". This is much better than responding "UNKNOWN" and it applies to shallow clones!
HIRAMATSU Yoshifumi f2c88dc1 2015-04-14T11:16:47 fseeko: fix build failure on NetBSD >= 6 * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
Paul Eggert 261ba83a 2015-04-09T09:25:12 gitlog-to-changelog: port to MS-Windows * build-aux/gitlog-to-changelog (git_dir_option): Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in MS-Windows Perl. Reported by Eli Zaretskii in: http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
Karl Berry 1627a8a2 2015-04-07T14:50:26 gendocs: new option --tex for texi2dvi options
Karl Berry 3e2dcf7b 2015-04-07T09:46:17 sync gettext .m4 files from gettext
Daiki Ueno e830fc25 2015-04-07T11:09:23 uniname/uniname-tests: fix failure due to alias Reported by Jack Howarth in: <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>. * tests/uniname/test-uninames.c (name_has_alias): New function. (test_inverse_lookup): Exclude character name with valid alias, from randomly generated character names. (main): Fill unicode_aliases before calling test functions.
Giuseppe Scrivano 634ddcf8 2015-04-03T14:58:12 hash: remove deprecated hash_insert0 function * lib/hash.h (hash_insert0): Remove deprecated function. * lib/hash.c (hash_insert0): Likewise. * NEWS: Document the interface change.
Pádraig Brady 3fb6e360 2015-04-02T04:18:02 mountlist: remove dependency on libmount * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo directly, rather than depending on libmount, which has many dependencies due to its dependence on libselinux, as detailed at: http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html Note we restrict this to __linux__ as that's probably where this interface will remain. If ever porting, it would be best to first pull the makedev() wrapper from coreutils to a gnulib module. Note also we don't add a getline dependency to the mountlist module, as all Linux versions are sufficient.
Paul Eggert e2e66692 2015-04-02T10:35:53 stddef: port to pre-C11 GCC on x86 On this platform, max_align_t should have an alignment of 8 even though the storage alignments of double, long, etc. max out at 4. Inspired by a comment of Andreas Schwab's here: https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro. (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it. * tests/test-stddef.c: Test __alignof__ too, if available.
Pádraig Brady 106a3866 2015-03-24T12:23:28 quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
Tobias Stoeckmann 386315b3 2015-03-24T12:15:27 yesno: make EOL optional in ENABLE_NLS case also yesno behaves differently in a corner case depending on ENABLE_NLS. With an input of "y" followed by an EOF the input is considered to be "no", because the last character is replaced with '\0'. It was assumed that there is a newline, which doesn't have to be true. If ENABLE_NLS is not set, getchar() reads y and accepts it as "yes", looping through more getchar() calls until reaching newline or EOF. * lib/yesno.c (yesno): Check for EOL before replacing. * tests/test-yesno.sh: Add a test case (test along with gettext).
Paul Eggert d164bf67 2015-03-22T19:47:24 fdopendir-tests: test it does not close its arg * tests/test-fdopendir.c (main): Test that fdopendir does not close its argument. From a suggestion by David Grayson in: http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
Paul Eggert 2b93079a 2015-03-20T18:09:24 gitlog-to-changelog: trim trailing white space * build-aux/gitlog-to-changelog (main): Trim trailing white space from commit message lines. This is helpful for processing the GNU Emacs repository, which dates back to 1985 and contains a lot of such lines.
Paul Eggert 84f5241b 2015-03-20T17:40:37 gitlog-to-changelog: new option --ignore-matching * build-aux/gitlog-to-changelog (usage, git_dir_option, main): Support new option --ignore-matching=PAT, which ignores all commit messages whose first line matches PAT.
Paul Eggert a277f536 2015-03-19T12:11:07 fdopendir: port better to MinGW * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]: Use 'dup' if dirfd fails. Suggested by Eli Zaretskii in: http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html * modules/fdopendir (Depends-on): Add dirfd.
Paul Eggert b89aa0ed 2015-03-18T12:47:12 fdopendir: fix typo in comment * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
Eric Blake 0f4fa16d 2015-03-09T09:48:19 error: document all entry points provided Based on a report by Mohammad Akhlaghi. * doc/glibc-functions/error_print_progname.texi (error_print_progname): Mention the error module. * doc/glibc-functions/error_at_line.texi (error_at_line): Likewise. * doc/glibc-functions/error_message_count.texi (error_message_count): Likewise. * doc/glibc-functions/error_one_per_line.texi (error_one_per_line): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
Karl Berry 5a4d0884 2015-03-08T07:22:10 autoupdate
Karl Berry c2bfaa58 2015-03-06T06:09:06 autoupdate
Karl Berry 8d739f42 2015-03-04T06:41:45 autoupdate
Paul Eggert 4fed9c82 2015-03-03T07:48:40 vasnprintf: pacify clang 3.5.0 Problem reported by Werner Lemberg in: http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to. The casts aren't needed, since the characters in question are ASCII.
Paul Eggert ecc5d3e1 2015-02-24T20:44:32 glob, etc.: port to MSVC v18 on MS-Windows 8.1 * lib/dirent--.h (GNULIB_defined_opendir): * lib/dirent.in.h (GNULIB_defined_opendir) (GNULIB_defined_closedir): * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir): #undef only if Gnulib defined it.
Paul Eggert 17f1e64f 2015-02-24T16:16:19 poll: port to MSVC v18 on MS-Windows 8.1 Problem reported by Gisle Vanem in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>. * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]: Add sys_socket.
Pádraig Brady 0d302454 2015-02-16T17:20:39 tests: support stderr verification with returns_() * tests/init.sh (returns_): Disable tracing for this wrapper function, so that stderr of the wrapped command is unchanged, allowing for verification of the contents.
Pavel Hrdina 8be5f2c1 2015-02-24T12:58:46 passfd: avoid valgrind uninitalised data warning Running libvirt using valgrind produced: Syscall param sendmsg(msg.msg_control) points to uninitialised byte(s) at ??? (in /lib64/libpthread-2.19.so) by sendfd (passfd.c:86) by virNetSocketSendFD (virnetsocket.c:1766) by virNetServerClientDispatchWrite (virnetserverclient.c:1271) by virNetServerClientDispatchEvent (virnetserverclient.c:1371) by virEventPollDispatchHandles (vireventpoll.c:508) by virEventPollRunOnce (vireventpoll.c:657) by virEventRunDefaultImpl (virevent.c:308) by virNetServerRun (virnetserver.c:1139) by main (libvirtd.c:1491) Address 0xffefff3f4 is on thread 1's stack in frame #1, created by sendfd (passfd.c:51) * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr, to include just the fd we've initialised, rather than including the extra space used for alignment.
Paul Eggert ee3e3ec9 2015-02-23T15:52:58 uniwbrk/u32-wordbreaks-tests: fix copyright * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
Paul Eggert a39fbed3 2015-02-23T10:34:40 dup2: doc and test for Android bug Reported by Kevin Cernekee in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html * doc/posix-functions/dup2.texi (dup2): Document the bug. * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
Kevin Cernekee 2f1a88d4 2015-02-23T09:38:14 Replace dup2() on Android * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3(). Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2 fails. Using rpl_dup2() fixes this because it has an explicit test for this condition.
Paul Eggert cc0a1a96 2015-02-22T19:07:46 Android doesn't define RLIM_SAVED_* Portability problem reported by Kevin Cernekee in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html * doc/posix-headers/sys_resource.texi (sys/resource.h): Mention the portability problem. * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX): Define if not defined. * m4/dup2.m4 (gl_FUNC_DUP2): * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
Karl Berry 52203482 2015-02-21T06:19:32 autoupdate
Paul Eggert 61922366 2015-02-21T00:43:33 vasnprintf-posix-tests: use consistent test * tests/test-vasnprintf-posix.c (test_function): Use "<" in assert instead of "<=", for consistency with other tests.
Paul Eggert bd38edc8 2015-02-20T18:09:47 printf, isinf, etc.: noncanonical != NaN Do not require that isinf, printf, etc. treat noncanonical values as NaNs. Instead, require only that they do not crash. Problem reported by Joseph Myers in: https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html * doc/posix-functions/dprintf.texi (dprintf): * doc/posix-functions/fprintf.texi (fprintf): * doc/posix-functions/isfinite.texi (isfinite): * doc/posix-functions/isinf.texi (isinf): * doc/posix-functions/isnan.texi (isnan): * doc/posix-functions/printf.texi (printf): * doc/posix-functions/snprintf.texi (snprintf): * doc/posix-functions/sprintf.texi (sprintf): * doc/posix-functions/vdprintf.texi (vdprintf): * doc/posix-functions/vfprintf.texi (vfprintf): * doc/posix-functions/vprintf.texi (vprintf): * doc/posix-functions/vsnprintf.texi (vsnprintf): * doc/posix-functions/vsprintf.texi (vsprintf): Document this. * m4/isfinite.m4 (gl_ISFINITEL_WORKS): * m4/isinf.m4 (gl_ISINFL_WORKS): * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): * tests/test-isfinite.c (test_isfinitel): * tests/test-isinf.c (test_isinfl): * tests/test-isnan.c (test_long_double): * tests/test-isnanl.h (main): * tests/test-snprintf-posix.h (test_function): * tests/test-sprintf-posix.h (test_function): * tests/test-vasnprintf-posix.c (test_function): * tests/test-vasprintf-posix.c (test_function): o Test only that noncanonical values do not cause crashes, not that they are treated as NaNs. In some cases this means a larger output buffer is needed.
Jaroslav Skarvada 12d27cac 2015-02-20T22:53:52 fts: remove redundant close() (trivial) * lib/fts.c (fts_read): Remove redundant call to close(). Spotted by coverity.
Paul Eggert 62667e38 2015-02-20T10:53:10 getdtablesize: port better for Android Problem reported by Kevin Cernekee in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug. * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX. Instead, just use getrlimit, taking care to avoid Cygwin bug. dup2, fcntl: cross-compile better for Android
Paul Eggert d42461c3 2015-02-20T10:37:49 poll: fixes for large fds * lib/poll.c (poll): Don't check directly for NFD too large. Don't rely on undefined behavior in FD_SET when an arg exceeds FD_SETSIZE. Always set revents afterwards, even if to zero. * tests/test-poll.c (poll1): Set revents to -1 instead of 0, as that makes the test a bit stricter.
Kevin Cernekee 119aeef6 2015-02-19T10:11:19 fcntl: Fix cross compiling * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the correct variable name (gl_cv_func_fcntl_f_dupfd_works).
Paul Eggert f9fa7159 2015-02-18T23:20:55 dup2, fcntl: cross-compiler better for Android Problem reported by Kevin Cernekee in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling for a Linux kernel. That kernel bug was fixed on 2009-05-11, and there's little need to cross-compile for older kernels nowadays. * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only for systems where the bug is known to occur (AIX, Cygwin, Haiku).
Pádraig Brady 4ad02492 2015-02-18T22:37:31 getopt: give accurate ambiguity diagnostic on mem exhaustion * lib/getopt.c (_getopt_internal_r): The previous commit broke out the loop too early, which could give a false indication of ambiguous options under memory exhaustion.
Pádraig Brady 6fa31e52 2015-02-18T02:23:35 getopt: don't crash on memory exhaustion * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on memory exhaustion. In the _LIBC case we use alloca() as is already done in glibc, so we don't need to consider the separate error path in that awkward case. Also fix a memory leak when ambiguous options are present. Reported by Tobias Stoeckmann
Mike Miller 4f2e9100 2015-02-17T22:04:51 tempname: allow compilation with C++ (trivial) * lib/tempname.h [C++]: Specify extern "C" linkage. * lib/tempname.h (try_tempname): * lib/tempname.c (__try_tempname, __gen_tempname): Rename 'try' to 'tryfunc'.
Paul Eggert c74a873b 2015-02-17T18:34:17 dup2, fcntl: port to AIX * m4/dup2.m4 (gl_FUNC_DUP2): * m4/fcntl.m4 (gl_FUNC_FCNTL): Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX). The former works on AIX 7.1 but the latter does not. Also, this may work better with Android; see: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
Paul Eggert 5e2516d4 2015-02-16T21:38:02 getdtablesize, dup2, fcntl: port to Android Problem reported by Kevin Cernekee in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention that getdtablesize doesn't work on Android. * lib/getdtablesize.c: Use getrlimit substitute only if getdtablesize is declared. This should suffice for Cygwin while not breaking Android. * m4/dup2.m4 (gl_FUNC_DUP2): * m4/fcntl.m4 (gl_FUNC_FCNTL): Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is standardized but the latter is not, and sysconf works on Android. * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Also check that getdtablesize is declared. This removes the need for a special case for Android.
Kevin Cernekee 7bf9a5ee 2015-02-16T17:26:49 localename: Implement gl_locale_name_thread_unsafe for Android * lib/localename.c: Android API level >= 21 supports two hardcoded locales: C (POSIX) and C.UTF-8. Distinguish them by checking the internal __locale_t struct.
Kevin Cernekee 81ac748f 2015-02-16T21:38:56 More changelog fixes
Kamil Dudka 60af6a36 2015-02-11T18:41:43 fts: avoid crash when a cycle is added while traversing This could be triggered by auto-mounting a recursive bind mount. Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498 * lib/fts.c (fts_read): Avoid removing the original hash table item when leaving a directory that caused a cycle, and preserve the FTS_DC flag.
Daiki Ueno 784023c9 2015-02-16T15:44:14 uniname/uniname: support character alias * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE. Generate one-way mapping from aliases to codepoints in the generated tables. Special case variation selectors to reduce table size. * lib/uniname/uniname.c (unicode_character_name): Special case variation selectors. (unicode_name_character): Special case variation selectors and their aliases. * lib/uniname/uninames.h: Regenerate. * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0. * modules/uniname/uniname-tests (Files): Add tests/uniname/NameAliases.txt. * tests/uniname/test-uninames.c: Mark as static. (ALIASLEN): Define. (struct unicode_alias): New struct. (unicode_aliases): New variable. (fill_aliases): New function. (test_alias_lookup): New test function. (main): Run the 'test_alias_lookup' test if the second argument is given. * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the second argument.
Paul Eggert 3ca9a533 2015-02-11T22:19:01 Fix ChangeLog botches in my recent commits
Kevin Cernekee 52f74ee1 2015-02-11T15:22:58 duplocale: Fix Android build of duplocale-tests * modules/duplocale-tests (Depends-on): Add langinfo, as the header is included by test-duplocale.c (but not by duplocale.c). * modules/duplocale-tests (configure.ac): Check for monetary.h. * tests/test-duplocale.c: Skip test if monetary.h is absent. * doc/posix-headers/monetary.texi: Add Android to the list of platforms missing monetary.h.
Kevin Cernekee 92f4ac3a 2015-02-11T15:22:57 signal_h: Fix Android build * lib/signal.in.h: Add Android to the list of platforms that declare pthread_sigmask() in <pthread.h> instead of <signal.h>.
Kevin Cernekee 14acd1e1 2015-02-11T15:22:56 net_if: Handle content-free <net/if.h> system headers * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines struct if_nameindex. If not, enable the replacement header.
Kevin Cernekee f1514e59 2015-02-11T15:22:55 linkat_nofollow: Add fallback case for cross compiling * m4/linkat.m4: Guess no for Darwin, yes otherwise.
Kevin Cernekee d46768c0 2015-02-11T15:22:54 euidaccess: Fix Android build * modules/euidaccess (Depends-on): Add fcntl-h to ensure that AT_EACCESS gets declared.
Kevin Cernekee 30ea03fe 2015-02-11T15:22:53 getugroups: Fix Android build * lib/getugroups.c: Don't reference unsupported {get,set,end}grent functions.
Kevin Cernekee b21929c0 2015-02-11T15:22:52 localename: Fix Android build * modules/localename (Depends-on): Add langinfo.
Kevin Cernekee 7434c476 2015-02-11T15:22:51 getdtablesize: Fix Android build * m4/getdtablesize.m4: Add Android case to host OS check. Recent NDK versions have this symbol in the .so library (at least 32-bit platforms) but are missing the declaration in the header file, causing the m4 logic to guess incorrectly.
Kevin Cernekee 60f0efb1 2015-02-11T15:22:50 Assume unbroken ungetc() on Android * m4/ungetc.m4: Add Android case to host OS check. The ungetc() test case passed when running on an Android host, and the code hasn't really changed since 2009.
Kevin Cernekee 8e19825e 2015-02-11T15:22:49 Fix FILE struct compatibility with Android API level >= 21 * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of __sferror. Recent versions of Bionic's stdio.h no longer define __sferror. * lib/fbufmode.c: Likewise. * lib/fflush.c: Likewise. * lib/fpurge.c: Likewise. * lib/freadable.c: Likewise. * lib/freadahead.c: Likewise. * lib/freading.c: Likewise. * lib/freadptr.c: Likewise. * lib/freadseek.c: Likewise. * lib/fseeko.c: Likewise. * lib/fseterr.c: Likewise. * lib/fwritable.c: Likewise. * lib/fwriting.c: Likewise.
Pádraig Brady 6e0e31c3 2015-02-11T03:52:57 tests: avoid recent -Werror=unused-variable regression in test-locale * tests/test-locale.c (main): Reference the variable to avoid the "unused variable" warning.
Pádraig Brady 63d2d195 2015-02-11T02:46:28 maint: various whitespace cleanups in tempname Recent changes to the tempname module, introduced whitespace inconsistencies that are triggering issues in coreutils diffs generated against the new files. * lib/tempname.c: Normalize spacing and line length. * lib/tempname.h: Likewise. * modules/tempname: Likewise.
Pádraig Brady c61e31c4 2015-02-11T00:16:55 tests: provide returns_() to simplify exit status checking * tests/init.sh (returns_): A new function for use in tests, to allow for easier checking of return values, where you expect a command to exit with failure status. By checking for a particular exit code, you don't hide any crashes for example.
Pádraig Brady de1cbdd4 2015-01-20T01:40:54 mountlist: only use libmount when specified libmount can propagate device IDs provided by Linux in /proc/self/mountinfo. However there are currently many shared libs dependencies introduced by libmount with associated runtime and virt mem overhead. Therefore don't enable by default. * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time. Note the ac_cv_lib_libmount_mnt_table_parse_stream cache variable had a typo and so was ineffective, thus there is no backwards compatibility issue.
Daiki Ueno ffe64673 2015-02-08T17:38:03 uniname/unimame-tests: don't link with -lunistring * modules/uniname/uniname-tests (Makefile.am): Don't link against $(LIBUNISTRING). Document the rationale why we need to conditionalize the test.
Paul Eggert 1c6a3cf4 2015-02-07T18:09:00 fstrcmp: don't assume strlen < INT_MAX * lib/fstrcmp.c: Include stddef.h and stdint.h. (uintptr_t): Remove, as we're now assuming stdint. (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded): Prefer ptrdiff_t to int when the value could exceed INT_MAX if the input string is long. (fstrcmp_bounded): Check for size-calculation overflow. Prefer uintptr_t to size_t when the underlying value is a pointer casted to an unsigned integer. Avoid unnecessary 'buffer != NULL' test. * modules/fstrcmp (Depends-on): Add stdint.
Paul Eggert 59ebba1d 2015-02-07T18:02:42 diffseq: prefer ptrdiff_t to ssize_t * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t. ptrdiff_t is the natural type for signed indexes. On a few older platforms, ssize_t is narrower than size_t.
Paul Eggert d85acc4a 2015-02-07T17:27:03 xalloc: fix typo that suppressed warnings * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END. This typo, introduced a couple of years ago, mistakenly suppressed some -Wsuggest-attribute=const, -Wmissing-prototypes, and -Wmissing-declarations warnings.
Paul Eggert b2c48c1e 2015-02-07T15:15:31 full-read: fix license notice typo * lib/full-read.h: Remove a stray line in the license notice. Reported by Sam Ellis in: http://bugs.gnu.org/19808
Paul Eggert bf729b48 2015-02-07T15:09:00 crypto/gc: fix a -Wswitch warning Reported by Bruce Korb in: http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
Karl Berry ffb30163 2015-02-06T07:09:18 autoupdate
Karl Berry aa902b69 2015-02-05T17:00:22 update from texinfo
Andreas Gruenbacher 56e31f06 2015-01-31T23:49:13 tempname: new try_tempname function The way how gen_tempname() creates files is not always sufficient. For example, it may make sense to create directories when creating the temporary file or directory fails with errno set to ENOENT. Add a try_tempname() variant of gen_tempname() that allows that. Implement gen_tempname() on top of it. * lib/tempname.c (try_tempname): New function and backend of gen_tempname(). (try_file, try_dir, try_nocreate): Callbacks to use for the different kinds that gen_tempname supports (GT_FILE, GT_DIR, GT_NOCREATE). * lib/tempname.h (try_tempname): Declare here. * modules/tempname: Mention try_tempname.
Pádraig Brady 6c8f206b 2015-02-03T10:27:38 gnulib-tool: fix handling of patch(1) diagnostics * gnulib-tool: Send diagnostics from patch(1) to stderr, as otherwise gnulib-tool will reparse that output and attempt to lookup modules.
Pádraig Brady dd929bcb 2015-02-03T03:55:48 bootstrap: exit immediately upon gnulib-tool failure * build-aux/bootstrap: Exit immediately if gnulib-tool fails. This was noticed when gnulib-tool exited early due to failure to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233, but various confusing errors were then given as the build proceeded.
Andreas Gruenbacher b650986c 2015-02-01T21:40:11 symlinkat: include all required header files Following on from commit 032bd151, include header files required on OS X 10.10 (Yosemite) at least. * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(), and string.h for strlen(). Reported at https://savannah.gnu.org/bugs/index.php?44151 and by Jack Howarth.
Karl Berry 9c1f45e0 2015-01-31T10:18:51 update from texinfo
Karl Berry 751cd554 2015-01-30T16:07:17 update from texinfo
Karl Berry 94125cd2 2015-01-30T15:55:58 update from texinfo
Pádraig Brady 387c214c 2015-01-29T16:44:48 localename: support Solaris 12 and illumos * lib/localename.c (gl_locale_name_thread_unsafe): call getlocalename_l() on newer __sun platforms. Reported by Alexander Pyhalov. Fix suggested by Rich Burridge.
Alexander Pyhalov dfe49c94 2015-01-29T16:35:24 locale: fix tests on illumos * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos, so move from global scope to main().
Daiki Ueno bb41ff0b 2015-01-24T11:11:34 unictype: avoid undefined left-shift behavior * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with gcc's -fsanitize=shift and running its tests triggered: unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \ places cannot be represented in type 'int' Cast LHS to 'unsigned int' after integer promotion. * lib/unictype/categ_of.c (lookup_withtable): Likewise. * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.