summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* timespec: new function make_timespec, and new constantsPaul Eggert2013-09-197-36/+50
| | | | | | | | | | | | * lib/timespec.h: Incorporate recent changes on the Emacs trunk. (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants. (make_timespec): New function. * lib/dtotimespec.c (dtotimespec): * lib/timespec-add.c (timespec_add): * lib/timespec-sub.c (timespec_sub): * lib/utimens.c (validate_timespec): * lib/utimensat.c (rpl_utimensat): Use these new constants and functions.
* stdio: OS X port of putc_unlocked + extern inlinePaul Eggert2013-09-194-0/+23
| | | | | | | * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms. * doc/posix-functions/putc_unlocked.texi: * doc/posix-functions/putchar_unlocked.texi: Document this portability problem.
* signal: OS X port of sigaddset etc. + extern inlinePaul Eggert2013-09-197-0/+44
| | | | | | | | | | | * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset) (sigismember): #undef on problematic Apple platforms. * doc/posix-functions/sigaddset.texi: * doc/posix-functions/sigdelset.texi: * doc/posix-functions/sigemptyset.texi: * doc/posix-functions/sigfillset.texi: * doc/posix-functions/sigismember.texi: Document this portability problem.
* extern-inline: do not always suppress extern inline on OS XPaul Eggert2013-09-192-4/+21
| | | | | | | | | * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of extern inline on Apple only if the particular compile-time configuration is known to have the problem. (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this. (_GL_EXTERN_LNLINE_IN_USE): New macro, intended for use by other Gnulib modules.
* extern-inline: document fixes for ctype and wctype macrosPaul Eggert2013-09-1940-0/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi: * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi: * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi: * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi: * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi: * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi: * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi: * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi: * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi: * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi: * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi: * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi: * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi: * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi: * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi: * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi: * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi: * doc/posix-functions/strncpy.texi: * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi: * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi: Document that Gnulib fixes portability problems with these functions on OS X 10.8 and earlier when called from plain inline or extern inline functions.
* fflush, freadahead, fseeko: Fix for AndroidKevin Cernekee2013-09-192-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/stdio-impl.h: Use local __sfileext definition. Suggested by Bruno Haible in: <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html> fflush, freadahead, and fseeko have trouble compiling on Android[1] because they need access to internal elements of the FILE struct. Bionic libc[2], like OpenBSD libc[3], puts the ungetc buffer "_ub" at the beginning of the __sfileext struct. Therefore we can reuse the existing OpenBSD implementation for Android. Test results (Android 4.2.2, ARMv7, NDK r9): root@android:/data/local/tmp # export srcdir=`pwd` root@android:/data/local/tmp # ./test-fflush2.sh ; echo $? 0 root@android:/data/local/tmp # ./test-freadahead.sh ; echo $? 0 root@android:/data/local/tmp # ./test-fseeko.sh ; echo $? 0 root@android:/data/local/tmp # ./test-fseeko2.sh ; echo $? Skipping test: ungetc cannot handle arbitrary bytes 77 root@android:/data/local/tmp # ./test-fseeko3.sh ; echo $? 0 root@android:/data/local/tmp # ./test-fseeko4.sh ; echo $? 0 [1] http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00295.html [2] https://android.googlesource.com/platform/bionic/+/android-4.3_r2.2/libc/stdio/fileext.h [3] http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdio/fileext.h?rev=1.2;content-type=text%2Fplain
* pmccabe2html: fix portability issuesMats Erik Andersson2013-09-192-4/+21
| | | | | Allow awk versions other than Gawk. Correct wrong HTML tag closures.
* getgroups: statement without effectMats Erik Andersson2013-09-182-1/+7
| | | | | * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]: Change equality conditional to expected assignment.
* autoupdateKarl Berry2013-09-133-6/+20
|
* update from texinfoKarl Berry2013-09-131-2/+28
|
* update from texinfoKarl Berry2013-09-111-19/+35
|
* glob: fix compilationEric Blake2013-09-092-0/+6
| | | | | | | | Sometimes, it just isn't my day. The previous patch missed an #endif. * lib/glob.in.h (__THROW): Fix missing line in previous commit. Signed-off-by: Eric Blake <eblake@redhat.com>
* glob: fix build for platforms without __THROWEric Blake2013-09-072-0/+7
| | | | | | | | | | | | The previous fix for glibc broke builds on non-glibc platforms that don't pre-define __THROW. Perhaps we could make the code more optimal by using gcc attributes instead of expanding to nothing, to match the glibc usage; but for now this fixes the build. Reproted by Tom G. Christensen. * lib/glob.in.h (__THROW): Add definition again. Signed-off-by: Eric Blake <eblake@redhat.com>
* autoupdateKarl Berry2013-09-061-2/+2
|
* regex-quote: fix buffer access out of boundsAnton Ovchinnikov2013-09-042-1/+8
| | | | | | http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html * lib/regex-quote.c (regex_quote_spec_pcre): Fix typo that resulted in an out-of-bounds read.
* glob: avoid -Wattribute warnings on glibcEric Blake2013-09-043-5/+13
| | | | | | | | | | | | | Colin Watson reported that some versions of gcc warn about the use of attribute((leaf)) on static functions, since it is documented to have an effect only on external functions. * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use __THROWNL, not __THROW, on static functions. * lib/glob.in.h (__THROW): Adjust... (__THROWNL): ...accordingly. Signed-off-by: Eric Blake <eblake@redhat.com>
* headers: check that _GL_INLINE_HEADER_BEGIN is definedPaul Eggert2013-08-2842-0/+150
| | | | | | | | | | | | | | | | | | | | Suggested by Bruce Korb in: http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html * doc/extern-inline.texi (extern inline): Suggest checking that _GL_INLINE_HEADER_BEGIN is defined. * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h: * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h: * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h: * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h: * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h: * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h: * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h: * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h: * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h: * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h: * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h: * lib/xtime.h: Check that _GL_INLINE_HEADER_BEGIN is defined.
* bootstrap: remove the --version requirement from ancillary toolsPádraig Brady2013-08-292-8/+20
| | | | | | | | * build-aux/bootstrap (check_exists): A new refactored function to determine if a command exists. (find_tool): Use the new function which does not require the --version option to be supported. (check_versions): Use the new function.
* gc: support HMAC-SHA256 and HMAC-SHA512.Simon Josefsson2013-08-2625-4/+881
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512. * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New functions. (gc_hmac_md5): Use symbolic constant. * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too. (gc_hmac_sha256, gc_hmac_sha512): New functions. * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes. * m4/sha256.m4: Protect against empty expansion. * m4/sha512.m4: Likewise. * lib/hmac-sha256.c: New file. * lib/hmac-sha512.c: Likewise. * m4/gc-hmac-sha256.m4: Likewise. * m4/gc-hmac-sha512.m4: Likewise. * m4/gc-sha256.m4: Likewise. * m4/gc-sha512.m4: Likewise. * modules/crypto/gc-hmac-sha256: Likewise. * modules/crypto/gc-hmac-sha256-tests: Likewise. * modules/crypto/gc-hmac-sha512: Likewise. * modules/crypto/gc-hmac-sha512-tests: Likewise. * modules/crypto/hmac-sha256: Likewise. * modules/crypto/hmac-sha256-tests: Likewise. * modules/crypto/hmac-sha512: Likewise. * modules/crypto/hmac-sha512-tests: Likewise. * tests/test-gc-hmac-sha256.c: Likewise. * tests/test-gc-hmac-sha512.c: Likewise * tests/test-hmac-sha256.c: Likewise. * tests/test-hmac-sha512.c: Likewise
* gettext: update to version 0.18.3.1Daiki Ueno2013-08-242-3/+8
| | | | | * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse of AC_CHECK_DECLS.
* selinux-at: omit unnecessary includePaul Eggert2013-08-232-1/+7
| | | | | | * lib/selinux-at.c: Don't include dosname.h; not needed, since this source file doesn't use its macros, and subsidiary files that use the macros already include it.
* autoupdateKarl Berry2013-08-221-9/+12
|
* d-ino: avoid false negative on symlinkEric Blake2013-08-212-2/+8
| | | | | | | | | | | If the first entry listed in a directory is a symlink, we had a spurious mismatch between d_ino (which should match the symlink) and stat() results (which chases the symlink). Reported by Stephane Chazelas <stephane.chazelas@gmail.com>. * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat. Signed-off-by: Eric Blake <eblake@redhat.com>
* update from texinfoKarl Berry2013-08-201-5/+5
|
* autoupdateKarl Berry2013-08-161-6/+11
|
* bootstrap: port to OpenBSD sedMike Miller2013-08-152-2/+8
| | | | | | | * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which does not interpret `-' as a file argument to mean stdin. Signed-off-by: Eric Blake <eblake@redhat.com>
* warnings: minor optimizationEric Blake2013-08-152-2/+5
| | | | | | | | Paul Eggert suggested that expr is more efficient than echo|sed. * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes. Signed-off-by: Eric Blake <eblake@redhat.com>
* warnings: check -Wfoo rather than -Wno-fooEric Blake2013-08-152-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As reported by Christophe Fergeau and others, use of the warnings modules is awkward when probing for negative warning flags. For example, clang recognizes -Wno-unused-command-line-argument, but gcc does not; gcc silently ignores unknown warnings in isolation, but when something else also causes a compilation problem, gcc then compounds the overall message by also complaining about the unrecongized command line option at that time. The gcc manual documents that this behavior is intentional so that someone can add a -Wno-foo silencer to CFLAGS for a warning that older gcc does not understand, and where the warning is undesired under newer gcc; it also documents that probing for the -Wfoo positive form of the error is a reliable way to tell if the negative form will actually suppress anything. Clang will warn for both positive and negative forms of an unknown option. Since common usage includes: for w in $list; do gl_WARN_ADD([$w]) done the solution must be polymorphic to work on both m4 literals and shell variables (similar to AS_VAR_SET polymorphism). * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with -Wno-, test if the compiler recognizes the positive form instead. Signed-off-by: Eric Blake <eblake@redhat.com>
* accept doclicense optionKarl Berry2013-08-151-2/+2
|
* accept doclicense optionKarl Berry2013-08-152-0/+23
|
* xvasprintf-tests: port to GCC with hardening flagsPaul Eggert2013-08-132-2/+11
| | | | | | * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to xasprintf, to pacify GCC. Reported by Santiago Vila in: http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
* fpending: port to recent Cygwin change to stdio_ext.hPaul Eggert2013-08-114-15/+33
| | | | | | | | | | | | | Reported by LRN in <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>. * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING; just declare __fpending unless it's a macro. A duplicate decl shouldn't hurt. * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending call compiles and links, instead of separately checking for decl and lib function. * modules/fpending (configure-ac): Adjust to fpending.m4's renaming of shell variable.
* no need for tendentious commentKarl Berry2013-08-111-1/+1
|
* regenerateKarl Berry2013-08-113-6/+6
|
* autoupdateKarl Berry2013-08-111-1/+2
|
* sys_time: port to OpenBSDPaul Eggert2013-08-104-6/+19
| | | | | | | | | * lib/sys_time.in.h: Simply delegate to the system's header in the BSDish cases as well. Problem reported by Mike Miller in <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>. * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type): Allow platforms like 64-bit OpenBSD where timeval's tv_sec is wider than time_t.
* autoupdateKarl Berry2013-08-101-3/+3
|
* bootstrap: support checksum utils without a --status optionPádraig Brady2013-08-102-18/+34
| | | | | | | | | | | | | | | | * build-aux/bootstrap: Only look for sha1sum if updating po files. Add sha1 to the list of supported checksum utils since it's now supported through adjustments below. (update_po_files): Remove the use of --status in a way that will suppress all error messages, but since this is only used to minimize updates, it shouldn't cause an issue. Exit early if there is a problem updating the po file checksums. (find_tool): Remove the check for --version support as this is optional as per commit 86186b17. Don't even check for the presence of the command as if that is needed, it's supported through configuring prerequisites in bootstrap.conf. Prompt that when a tool isn't found, one can define an environment variable to add to the hardcoded search list.
* update from texinfoKarl Berry2013-08-091-2/+4
|
* Fix ChangeLog typo.Paul Eggert2013-08-091-1/+1
|
* autoupdateKarl Berry2013-08-091-3/+6
|
* regex: port to non-glibc/lock-using systemsJim Meyering2013-08-063-0/+14
| | | | | | | | | | | Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc system with GNULIB_LOCK would fail due to absence of the included "glthread/lock.h". This would affect any package for which the "lock" module is used only by the regex module, and not explicitly used. * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21. * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]: Add a dependency on the "lock" module.
* update from texinfoKarl Berry2013-08-061-2/+4
|
* autoupdateKarl Berry2013-07-201-5/+7
|
* localecharset: make locale_charset thread-safe on Mac OS XDaiki Ueno2013-07-202-2/+13
| | | | | * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L instead of MB_CUR_MAX.
* gettext: update to version 0.18.3Daiki Ueno2013-07-193-34/+13
| | | | | | * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3. In particular, require AC_PROG_SED to allow user to specify custom sed command when generating en@quot PO file.
* autoupdateKarl Berry2013-07-192-38/+24
|
* bootstrap: use correct source when copying build-aux filesWerner LEMBERG2013-07-182-6/+12
| | | | | | | | | | | | | | | | | | in my setup for ttfautohint (http://repo.or.cz/w/ttfautohint.git) I have the following assignment in `bootstrap.conf': build_aux=gnulib It seems that the patch below is necessary to make this really work (at least it works for me): if I understand the issue correctly, $build_aux is a *destination* variable, so it must not be used for the files listed in $gnulib_extra_files which uses the directory structure of the `gnulib' repository. * build-aux/bootstrap (gnulib_extra_files): This variable is relative to upstream gnulib layout, not downstream. Signed-off-by: Eric Blake <eblake@redhat.com>
* tmpdir: fix bug in VMS portPaul Eggert2013-07-172-3/+10
| | | | | | * lib/tmpdir.c (path_search) [__VMS]: Never add slash. See Steven M. Schweda in <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
* tmpdir: fix typo in previous changePaul Eggert2013-07-151-1/+1
|