]> Savannah Git Hosting - gnulib.git/log
gnulib.git
5 years agodoc: Mention more ISO TS 18661-1 <math.h> functions.
Bruno Haible [Mon, 10 Jun 2019 12:08:29 +0000 (14:08 +0200)]
doc: Mention more ISO TS 18661-1 <math.h> functions.

* doc/posix-functions/roundeven.texi: New file.
* doc/posix-functions/roundevenf.texi: New file.
* doc/posix-functions/roundevenl.texi: New file.
* doc/posix-functions/fromfp.texi: New file.
* doc/posix-functions/fromfpf.texi: New file.
* doc/posix-functions/fromfpl.texi: New file.
* doc/posix-functions/ufromfp.texi: New file.
* doc/posix-functions/ufromfpf.texi: New file.
* doc/posix-functions/ufromfpl.texi: New file.
* doc/posix-functions/fromfpx.texi: New file.
* doc/posix-functions/fromfpxf.texi: New file.
* doc/posix-functions/fromfpxl.texi: New file.
* doc/posix-functions/ufromfpx.texi: New file.
* doc/posix-functions/ufromfpxf.texi: New file.
* doc/posix-functions/ufromfpxl.texi: New file.
* doc/posix-functions/llogb.texi: New file.
* doc/posix-functions/llogbf.texi: New file.
* doc/posix-functions/llogbl.texi: New file.
* doc/posix-functions/fmaxmag.texi: New file.
* doc/posix-functions/fmaxmagf.texi: New file.
* doc/posix-functions/fmaxmagl.texi: New file.
* doc/posix-functions/fminmag.texi: New file.
* doc/posix-functions/fminmagf.texi: New file.
* doc/posix-functions/fminmagl.texi: New file.
* doc/posix-functions/totalorder.texi: New file.
* doc/posix-functions/totalorderf.texi: New file.
* doc/posix-functions/totalorderl.texi: New file.
* doc/posix-functions/totalordermag.texi: New file.
* doc/posix-functions/totalordermagf.texi: New file.
* doc/posix-functions/totalordermagl.texi: New file.
* doc/posix-functions/canonicalize.texi: New file.
* doc/posix-functions/canonicalizef.texi: New file.
* doc/posix-functions/canonicalizel.texi: New file.
* doc/posix-functions/getpayload.texi: New file.
* doc/posix-functions/getpayloadf.texi: New file.
* doc/posix-functions/getpayloadl.texi: New file.
* doc/posix-functions/setpayload.texi: New file.
* doc/posix-functions/setpayloadf.texi: New file.
* doc/posix-functions/setpayloadl.texi: New file.
* doc/posix-functions/setpayloadsig.texi: New file.
* doc/posix-functions/setpayloadsigf.texi: New file.
* doc/posix-functions/setpayloadsigl.texi: New file.
* doc/gnulib.texi (Function Substitutes): Include them.

5 years agodoc: Mention nextdown, nextup.
Bruno Haible [Mon, 10 Jun 2019 12:08:28 +0000 (14:08 +0200)]
doc: Mention nextdown, nextup.

* doc/posix-functions/nextdown.texi: New file.
* doc/posix-functions/nextdownf.texi: New file.
* doc/posix-functions/nextdownl.texi: New file.
* doc/posix-functions/nextup.texi: New file.
* doc/posix-functions/nextupf.texi: New file.
* doc/posix-functions/nextupl.texi: New file.
* doc/gnulib.texi (Function Substitutes): Include them.

5 years agodoc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
Bruno Haible [Mon, 10 Jun 2019 12:08:27 +0000 (14:08 +0200)]
doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.

* doc/glibc-functions/pthread_getattr_default_np.texi: New file.
* doc/glibc-functions/pthread_setattr_default_np.texi: New file.
* doc/gnulib.texi (Glibc pthread.h): Include them.

5 years agodoc: Mention getauxval.
Bruno Haible [Mon, 10 Jun 2019 12:08:26 +0000 (14:08 +0200)]
doc: Mention getauxval.

* doc/glibc-functions/getauxval.texi: New file.
* doc/gnulib.texi (Glibc sys/auxv.h): New section.

5 years agodoc: Mention epoll_create1.
Bruno Haible [Mon, 10 Jun 2019 12:08:25 +0000 (14:08 +0200)]
doc: Mention epoll_create1.

* doc/glibc-functions/epoll_create1.texi: New file.
* doc/gnulib.texi (Glibc sys/epoll.h): Include it.

5 years agodoc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
Bruno Haible [Mon, 10 Jun 2019 12:08:23 +0000 (14:08 +0200)]
doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.

* doc/glibc-functions/timerfd_create.texi: New file.
* doc/glibc-functions/timerfd_gettime.texi: New file.
* doc/glibc-functions/timerfd_settime.texi: New file.
* doc/gnulib.texi (Glibc sys/timerfd.h): New section.

5 years agodoc: Mention signalfd.
Bruno Haible [Mon, 10 Jun 2019 12:08:22 +0000 (14:08 +0200)]
doc: Mention signalfd.

* doc/glibc-functions/signalfd.texi: New file.
* doc/gnulib.texi (Glibc sys/signalfd.h): New section.

5 years agodoc: Mention eventfd, eventfd_read, eventfd_write.
Bruno Haible [Mon, 10 Jun 2019 12:08:20 +0000 (14:08 +0200)]
doc: Mention eventfd, eventfd_read, eventfd_write.

* doc/glibc-functions/eventfd.texi: New file.
* doc/glibc-functions/eventfd_read.texi: New file.
* doc/glibc-functions/eventfd_write.texi: New file.
* doc/gnulib.texi (Glibc sys/eventfd.h): New section.

5 years agodoc: Mention epoll_pwait.
Bruno Haible [Mon, 10 Jun 2019 12:08:19 +0000 (14:08 +0200)]
doc: Mention epoll_pwait.

* doc/glibc-functions/epoll_pwait.texi: New file.
* doc/gnulib.texi (Glibc sys/epoll.h): Include it.

5 years agodoc: Mention sync_file_range.
Bruno Haible [Mon, 10 Jun 2019 12:08:17 +0000 (14:08 +0200)]
doc: Mention sync_file_range.

* doc/glibc-functions/sync_file_range.texi: New file.
* doc/gnulib.texi (Glibc fcntl.h): Include it.

5 years agodoc: Mention sched_getcpu.
Bruno Haible [Mon, 10 Jun 2019 12:08:16 +0000 (14:08 +0200)]
doc: Mention sched_getcpu.

* doc/glibc-functions/sched_getcpu.texi: New file.
* doc/gnulib.texi (Glibc sched.h): Include it.

5 years agodoc: Mention ppoll.
Bruno Haible [Mon, 10 Jun 2019 12:08:14 +0000 (14:08 +0200)]
doc: Mention ppoll.

* doc/glibc-functions/ppoll.texi: New file.
* doc/gnulib.texi (Glibc poll.h): New section.

5 years agodoc: Mention inotify_* functions.
Bruno Haible [Mon, 10 Jun 2019 12:08:13 +0000 (14:08 +0200)]
doc: Mention inotify_* functions.

* doc/glibc-functions/inotify_add_watch.texi: New file.
* doc/glibc-functions/inotify_init.texi: New file.
* doc/glibc-functions/inotify_init1.texi: New file.
* doc/glibc-functions/inotify_rm_watch.texi: New file.
* doc/gnulib.texi (Glibc sys/inotify.h): New section.

5 years agodoc: Add references to glibc documentation.
Bruno Haible [Mon, 10 Jun 2019 12:08:10 +0000 (14:08 +0200)]
doc: Add references to glibc documentation.

* doc/glibc-functions/add-links.sh: Renamed from
doc/glibc-functions/add-manpage-link.sh. Emit also a link to the Glibc manual.
* doc/glibc-functions/*.texi: Add references to the glibc manual.

5 years agodoc: Add references to Linux man pages.
Bruno Haible [Mon, 10 Jun 2019 12:08:09 +0000 (14:08 +0200)]
doc: Add references to Linux man pages.

* doc/glibc-functions/add-manpage-link.sh: New file.
* doc/glibc-functions/*.texi: Add reference to man page on kernel.org when it
exists.
* doc/posix-functions/aligned_alloc.texi: Likewise.

5 years agodoc: Mention eaccess.
Bruno Haible [Mon, 10 Jun 2019 12:08:08 +0000 (14:08 +0200)]
doc: Mention eaccess.

* doc/glibc-functions/eaccess.texi: New file.
* doc/gnulib.texi (Glibc unistd.h): Include it.

5 years agodoc: Mention the availability of specific functions in glibc versions.
Bruno Haible [Mon, 10 Jun 2019 12:08:06 +0000 (14:08 +0200)]
doc: Mention the availability of specific functions in glibc versions.

* doc/glibc-functions/accept4.texi: Add info about glibc.
* doc/glibc-functions/dup3.texi: Likewise.
* doc/glibc-functions/fallocate.texi: Likewise.
* doc/glibc-functions/mkostemp.texi: Likewise.
* doc/glibc-functions/pipe2.texi: Likewise.
* doc/posix-functions/futimens.texi: Likewise.
* doc/posix-functions/pthread_barrierattr_getpshared.texi: Likewise.
* doc/posix-functions/pthread_condattr_getclock.texi: Likewise.
* doc/posix-functions/pthread_condattr_setclock.texi: Likewise.
* doc/posix-functions/pthread_setschedprio.texi: Likewise.
* doc/posix-functions/strerror_l.texi: Likewise.
* doc/posix-functions/utimensat.texi: Likewise.

5 years agodoc: Mention that glibc no longer provides h_errno.
Bruno Haible [Mon, 10 Jun 2019 12:08:05 +0000 (14:08 +0200)]
doc: Mention that glibc no longer provides h_errno.

* doc/pastposix-functions/h_errno.texi: Mention as missing on glibc 2.29.

5 years agodoc: Remove mention of functions that are gone from glibc.
Bruno Haible [Mon, 10 Jun 2019 12:08:04 +0000 (14:08 +0200)]
doc: Remove mention of functions that are gone from glibc.

* doc/glibc-functions/xdr_mapname.texi: Remove file.
* doc/glibc-functions/xdr_peername.texi: Remove file.
* doc/glibc-functions/xdr_yp_buf.texi: Remove file.
* doc/glibc-functions/xdr_ypall.texi: Remove file.
* doc/glibc-functions/xdr_ypbind_binding.texi: Remove file.
* doc/glibc-functions/xdr_ypbind_resp.texi: Remove file.
* doc/glibc-functions/xdr_ypbind_setdom.texi: Remove file.
* doc/glibc-functions/xdr_ypdelete_args.texi: Remove file.
* doc/glibc-functions/xdr_yppush_status.texi: Remove file.
* doc/glibc-functions/xdr_ypupdate_args.texi: Remove file.
* doc/glibc-functions/yp_update.texi: Remove file.
* doc/gnulib.texi (Glibc rpcsvc/yp.h): Remove 6 functions.
(Glibc rpcsvc/ypclnt.h): Remove 1 function.
(Glibc rpcsvc/yp_prot.h, Glibc rpcsvc/ypupd.h): Remove nodes.

5 years agodoc: Remove mention of function vm86 (does not exist on x86_64).
Bruno Haible [Mon, 10 Jun 2019 12:08:03 +0000 (14:08 +0200)]
doc: Remove mention of function vm86 (does not exist on x86_64).

* doc/glibc-functions/vm86.texi: Remove file.
* doc/gnulib.texi (Glibc sys/vm86.h): Remove node.

5 years agodoc: Update after removal of crypt functions from glibc 2.28.
Bruno Haible [Mon, 10 Jun 2019 12:08:02 +0000 (14:08 +0200)]
doc: Update after removal of crypt functions from glibc 2.28.

* doc/posix-functions/crypt.texi: Mention as missing on glibc 2.29.
* doc/posix-functions/setkey.texi: Likewise.
* doc/glibc-functions/cbc_crypt.texi: Remove file.
* doc/glibc-functions/crypt_r.texi: Remove file.
* doc/glibc-functions/des_setparity.texi: Remove file.
* doc/glibc-functions/ecb_crypt.texi: Remove file.
* doc/glibc-functions/encrypt_r.texi: Remove file.
* doc/glibc-functions/setkey_r.texi: Remove file.
* doc/gnulib.texi (Glibc crypt.h, Glibc rpc/des_crypt.h): Remove nodes.

5 years agocopy-file: fix typo
Paul Eggert [Thu, 6 Jun 2019 22:45:14 +0000 (15:45 -0700)]
copy-file: fix typo

* lib/copy-file.c (qcopy_file_preserving): Remove unused label.

5 years agocopy-file-range: simplify into a stub
Paul Eggert [Thu, 6 Jun 2019 22:44:33 +0000 (15:44 -0700)]
copy-file-range: simplify into a stub

Based on a comment by Florian Weimer in:
https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
It turns out that Emacs (which will use this module) won’t need an
emulation and I suspect other programs won’t either, because these
programs will need to fall back on read+write anyway.  Perhaps I
am wrong and other programs will be able to use an emulation; if
so, this patch can be reverted.
* lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
Just call it copy_file_range.
* m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
Check via AC_LINK_IFELSE.
* modules/copy-file-range (Depends-on): Remove modules no longer used.

5 years agocopy-file: prefer copy_file_range
Paul Eggert [Wed, 5 Jun 2019 02:58:23 +0000 (19:58 -0700)]
copy-file: prefer copy_file_range

* lib/copy-file.c: Do not include xalloc.h.
(qcopy_file_preserving): Allocate a buffer only if
copy_file_range does not suffice.  If the allocation fails
don't give up; just use a small stack-based buffer.
Prefer copy_file_range if it works.
* modules/copy-file (Depends-on): Add copy-file-range.
Remove xalloc.

5 years agocopy-file-range: new module
Paul Eggert [Wed, 5 Jun 2019 02:54:09 +0000 (19:54 -0700)]
copy-file-range: new module

* MODULES.html.sh: Add copy-file-range.
* lib/copy-file-range.c, m4/copy-file-range.m4:
* modules/copy-file-range: New files.
* lib/unistd.in.h (copy_file_range): Declare.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
* modules/unistd (unistd.h): Substitute them.

5 years agoautoupdate
Karl Berry [Sun, 2 Jun 2019 14:50:44 +0000 (07:50 -0700)]
autoupdate

5 years agobinary-io: Attempted use of O_BINARY on consoles no longer fails.
Bruno Haible [Wed, 29 May 2019 00:44:52 +0000 (02:44 +0200)]
binary-io: Attempted use of O_BINARY on consoles no longer fails.

Reported by KO Myung-Hun <komh78@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.

* lib/binary-io.h (__gl_setmode_check): Remove function.
(set_binary_mode): Declare as notinline on DJGPP and EMX.
* lib/binary-io.c (__gl_setmode_check): Remove function.
(set_binary_mode): Define here on DJGPP and EMX. Inline
__gl_setmode_check. In case of a tty, don't return an error code.

5 years agoautoupdate
Karl Berry [Wed, 29 May 2019 14:48:43 +0000 (07:48 -0700)]
autoupdate

5 years agoautoupdate
Karl Berry [Tue, 28 May 2019 22:21:26 +0000 (15:21 -0700)]
autoupdate

5 years agodirent-safer: Make opendir_safer usable from C++.
James Youngman [Tue, 28 May 2019 12:35:28 +0000 (13:35 +0100)]
dirent-safer: Make opendir_safer usable from C++.

* lib/dirent-safer.h: use extern "C".

5 years agocanonicalize: Make canonicalize_filename_mode usable from C++.
James Youngman [Tue, 28 May 2019 12:21:16 +0000 (13:21 +0100)]
canonicalize: Make canonicalize_filename_mode usable from C++.

* lib/canonicalize.h: use extern "C".

5 years agoautoupdate
Karl Berry [Tue, 28 May 2019 13:27:57 +0000 (06:27 -0700)]
autoupdate

5 years agoprefix-gnulib-mk: Fix CPPFLAGS migration
Akim Demaille [Sat, 25 May 2019 17:40:10 +0000 (19:40 +0200)]
prefix-gnulib-mk: Fix CPPFLAGS migration

* build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
_a part of the library name.

5 years agoflexmember: update comments again
Paul Eggert [Sat, 25 May 2019 00:31:34 +0000 (17:31 -0700)]
flexmember: update comments again

* lib/flexmember.h, m4/flexmember.m4: Improve comments further.

5 years agoflexmember: update comment
Paul Eggert [Fri, 24 May 2019 21:59:11 +0000 (14:59 -0700)]
flexmember: update comment

* m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.

5 years agoautoupdate
Karl Berry [Thu, 23 May 2019 15:53:42 +0000 (08:53 -0700)]
autoupdate

5 years agosetlocale: Improve fallback on macOS.
Bruno Haible [Mon, 20 May 2019 19:25:01 +0000 (21:25 +0200)]
setlocale: Improve fallback on macOS.

* lib/setlocale.c (search): Optimize away a redundant strcmp()
invocation.
(locales_with_principal_territory): New array.
(langcmp, get_main_locale_with_same_language): New functions.
(locales_with_principal_language): New array.
(terrcmp, get_main_locale_with_same_territory): New functions.
(rpl_setlocale): When setlocale_single failed, try again with a locale
that is more likely to exist. Don't warn if the environment variable
SETLOCALE_VERBOSE is not set.

5 years agolocalename: Fix default on macOS.
Bruno Haible [Mon, 20 May 2019 00:56:53 +0000 (02:56 +0200)]
localename: Fix default on macOS.

* m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
* lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
(gl_locale_name_environ, gl_locale_name_default): Remove code for
HAVE_CFLOCALECOPYCURRENT.
* lib/localename.h (gl_locale_name_default): Update.

5 years agosync texinfo.tex with file on ftp.gnu.org
Karl Berry [Sun, 19 May 2019 16:57:11 +0000 (09:57 -0700)]
sync texinfo.tex with file on ftp.gnu.org

5 years agomaintainer-makefile: catch uses of $< in non-implicit rules
Akim Demaille [Sat, 18 May 2019 06:46:00 +0000 (08:46 +0200)]
maintainer-makefile: catch uses of $< in non-implicit rules

* top/maint.mk (sc_prohibit_magic_number_exit): New.

5 years agothreadlib: Provide an easy way to avoid mingw's winpthreads library.
Bruno Haible [Sat, 18 May 2019 16:22:45 +0000 (18:22 +0200)]
threadlib: Provide an easy way to avoid mingw's winpthreads library.

* m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
(gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
gl_use_threads accordingly.

5 years agopthread_sigmask: Fix compilation error with --enable-threads=windows.
Bruno Haible [Sat, 18 May 2019 12:36:33 +0000 (14:36 +0200)]
pthread_sigmask: Fix compilation error with --enable-threads=windows.

Reported by Tim Rühsen in
<https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
and Michele Locati in
<https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.

* m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
2015-06-01. Test whether pthread_sigmask is a macro, regardless of
$LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
in use and regardless which threads API is chosen.

6 years agoclose-stream, closein, closeout: simplify
Paul Eggert [Tue, 14 May 2019 15:20:29 +0000 (08:20 -0700)]
close-stream, closein, closeout: simplify

I noticed this opportunity for simplification while drafting a
new, related module that I haven’t had time to finish yet.
* m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
* modules/close-stream (Files): Remove m4/close-stream.m4.
(configure.ac): Omit gl_CLOSE_STREAM.
* modules/closein (Files): Remove m4/closein.m4
(configure.ac): Omit gl_CLOSEIN.
* modules/closeout (Files): Remove m4/closeout.m4.
(configure.ac): Omit gl_CLOSEOUT.

6 years agolibtool-next-version: New program.
Bruno Haible [Sun, 12 May 2019 14:10:30 +0000 (16:10 +0200)]
libtool-next-version: New program.

* build-aux/libtool-next-version: New file.

6 years agodeclared.sh: Fix comment.
Bruno Haible [Sun, 12 May 2019 09:16:19 +0000 (11:16 +0200)]
declared.sh: Fix comment.

* build-aux/declared.sh: Fix typo in comment.

6 years agoversion-etc: Ease translation.
John Darrington [Sat, 11 May 2019 22:42:36 +0000 (00:42 +0200)]
version-etc: Ease translation.

* lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
URLs and formatting newlines out of translatable string.

6 years agognupload: Explain how to create symlinks.
Bruno Haible [Sat, 11 May 2019 18:49:22 +0000 (20:49 +0200)]
gnupload: Explain how to create symlinks.

* build-aux/gnupload (usage): Add an example that creates symlinks.

6 years agofpucw: port to gcc -pedantic
Paul Eggert [Sat, 11 May 2019 15:29:50 +0000 (08:29 -0700)]
fpucw: port to gcc -pedantic

* lib/fpucw.h (GET_FPUCW, SET_FPUCW):
Use __extension__ if using ({ ... }).

6 years agocrypto/af_alg: port to strict C compilers
Paul Eggert [Sat, 11 May 2019 15:25:32 +0000 (08:25 -0700)]
crypto/af_alg: port to strict C compilers

* lib/af_alg.c: Include af_alg.h regardless, so that the
compilation unit is nonempty.

6 years agobase64: Avoid false positive warning from Coverity.
Bruno Haible [Fri, 10 May 2019 14:08:38 +0000 (16:08 +0200)]
base64: Avoid false positive warning from Coverity.

Reported by Kamil Dudka <kdudka@redhat.com>.

Idea by Paul Eggert.

* lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
'& 0x3f' to the array index expressions. This convinces Coverity that
there is no out-of-bounds array reference, regardless of the input.

6 years agogettext: Update to gettext 0.20.
Bruno Haible [Thu, 9 May 2019 23:27:41 +0000 (01:27 +0200)]
gettext: Update to gettext 0.20.

* modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
(configure.ac): Request infrastructure compatible with gettext 0.20.
* m4/glibc2.m4: Remove file.
* m4/intdiv0.m4: Remove file.
* m4/intl.m4: Remove file.
* m4/intldir.m4: Remove file.
* m4/intmax.m4: Remove file.
* m4/printf-posix.m4: Remove file.
* m4/uintmax_t.m4: Remove file.
* m4/gettext.m4: Update from gettext 0.20.
* m4/po.m4: Likewise.

6 years agoverify: remove verify_true
Paul Eggert [Thu, 9 May 2019 16:06:26 +0000 (09:06 -0700)]
verify: remove verify_true

* NEWS: Mention this.
* lib/verify.h (verify_true): Remove.
* tests/test-verify.c (item): Test verify_expr, not verify_true.

6 years agoSupport C2X and C++17 static_assert
Paul Eggert [Thu, 9 May 2019 15:57:56 +0000 (08:57 -0700)]
Support C2X and C++17 static_assert

C2X and C++17 finally added support for a simple, single-argument
‘static_assert’ that implements what the Gnulib ‘verify’ macro was
doing back in 2005.  Implement static_assert on older platforms.
The only remaining advantage of ‘verify’ is a shorter name.
* doc/posix-headers/assert.texi (assert.h):
* doc/verify.texi (Compile-time Assertions):
Modernize for C2X and C++17.
* lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
New macros.
(_GL_HAVE__STATIC_ASSERT): Remove.
(_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
(_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
string.  All callers changed.
(_GL_VERIFY): Require 3 or more args, of which only the first 2
are used.  All callers changed.
(_Static_assert): Allow either 1 or 2 args, and define if
!_GL_HAVE__STATIC_ASSERT1 instead of defining if
!_GL_HAVE__STATIC_ASSERT.
(static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
of defining if !_GL_HAVE_STATIC_ASSERT.
(verify_expr, verify): Don’t bother trying to copy the expression
into the diagnostic, since 1-argument static_assert doesn’t.
(verify): Prefer 1-argument _Static_assert if it works.
* m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.

6 years agoFix _GL_HAVE__STATIC_ASSERT typo
Paul Eggert [Wed, 8 May 2019 19:46:27 +0000 (12:46 -0700)]
Fix _GL_HAVE__STATIC_ASSERT typo

* lib/verify.h (_Static_assert): For the FreeBSD workaround,
use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.

6 years agowcwidth: Ensure width 1, not 2, for ambiguous characters.
Bruno Haible [Sun, 5 May 2019 11:18:23 +0000 (13:18 +0200)]
wcwidth: Ensure width 1, not 2, for ambiguous characters.

Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
via Akim Demaille <akim.demaille@gmail.com>.

* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
en_US.UTF-8 locale, since that is more likely to be present than an
fr_FR.UTF-8 locale.
* tests/test-wcwidth.c (main): Check the width of U+2202.
* doc/posix-functions/wcwidth.texi: Mention the issue.

6 years agoPort manywarnings to GCC 9
Paul Eggert [Fri, 3 May 2019 17:55:25 +0000 (10:55 -0700)]
Port manywarnings to GCC 9

* build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
-Wc11-c2x-compat, -Wcast-result (for the D programming language),
-Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
-Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
-Wredundant-move.  Adjust to minor wording changes in GCC 9’s
--help=warnings output.
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
-Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
-Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.

6 years agoSync lib/mktime-internal.h from glibc
Paul Eggert [Tue, 30 Apr 2019 16:33:23 +0000 (09:33 -0700)]
Sync lib/mktime-internal.h from glibc

* config/srclist.txt: Add entry for lib/mktime-internal.h.
* lib/mktime-internal.h: Autoupdate.

6 years agoautoupdate (removing trailing white space from config.guess)
Paul Eggert [Tue, 30 Apr 2019 16:18:18 +0000 (09:18 -0700)]
autoupdate (removing trailing white space from config.guess)

6 years agotls tests: Prevent that the test takes too long.
Bruno Haible [Sun, 28 Apr 2019 09:21:41 +0000 (11:21 +0200)]
tls tests: Prevent that the test takes too long.

* tests/test-tls.c: Include <signal.h>, <unistd.h>.
(main): Let the test fail if it takes more than 10 minutes.
* modules/tls-tests (configure.ac): Test whether 'alarm' is declared.

6 years agolock tests: Prevent that the test takes too long.
Bruno Haible [Sat, 27 Apr 2019 22:19:33 +0000 (00:19 +0200)]
lock tests: Prevent that the test takes too long.

* tests/test-lock.c: Include <signal.h>, <unistd.h>.
(main): Let the test fail if it takes more than 10 minutes.
* modules/lock-tests (configure.ac): Test whether 'alarm' is declared.

6 years agolocalename: Fix crash on mingw (regression from 2018-11-23).
Bruno Haible [Sat, 27 Apr 2019 18:00:29 +0000 (20:00 +0200)]
localename: Fix crash on mingw (regression from 2018-11-23).

* lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
locale name that is null.

6 years agoFix gcc warnings on 64-bit mode mingw.
Bruno Haible [Sat, 27 Apr 2019 14:23:15 +0000 (16:23 +0200)]
Fix gcc warnings on 64-bit mode mingw.

* lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
* lib/gl_array_list.c: Likewise.
* lib/gl_array_map.c: Likewise.
* lib/gl_array_set.c: Likewise.
* lib/gl_carray_list.c: Likewise.
* lib/gl_sublist.c: Likewise.
* lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
* lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
* lib/gl_hash_map.c (uintptr_t): Likewise.
* lib/gl_hash_set.c (uintptr_t): Likewise.
* lib/gl_linkedhash_list.c (uintptr_t): Likewise.
* lib/gl_linkedhash_map.c (uintptr_t): Likewise.
* lib/gl_linkedhash_set.c (uintptr_t): Likewise.
* lib/iconv.c (uintptr_t): Likewise.
* lib/iconv_close.c (uintptr_t): Likewise.
* tests/test-lock.c: Include <stdint.h>.
(once_contender_thread, test_once): Cast through 'intptr_t' instead of
'long'.
* modules/clean-temp (Depends-on): Add stdint.
* modules/array-list (Depends-on): Likewise.
* modules/array-map (Depends-on): Likewise.
* modules/array-set (Depends-on): Likewise.
* modules/carray-list (Depends-on): Likewise.
* modules/sublist (Depends-on): Likewise.
* modules/lock-tests (Depends-on): Likewise.

6 years agoerror: Tweak indentation.
Bruno Haible [Sat, 27 Apr 2019 08:34:53 +0000 (10:34 +0200)]
error: Tweak indentation.

* lib/error.c: Correct indentation.

6 years agoterm-style-control: Fix gcc warning on mingw.
Bruno Haible [Sat, 27 Apr 2019 02:00:17 +0000 (04:00 +0200)]
term-style-control: Fix gcc warning on mingw.

* lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
of i.

6 years agopipe-filter-gi, pipe-filter-ii: Fix gcc warning.
Bruno Haible [Fri, 26 Apr 2019 23:15:25 +0000 (01:15 +0200)]
pipe-filter-gi, pipe-filter-ii: Fix gcc warning.

* lib/pipe-filter-aux.h (read): Undefine before redefinition.

6 years agorelocatable-prog: Fix gcc warning on mingw.
Bruno Haible [Fri, 26 Apr 2019 23:09:31 +0000 (01:09 +0200)]
relocatable-prog: Fix gcc warning on mingw.

* lib/progreloc.c (maybe_executable): Don't define on native Windows and
on EMX.

6 years agogitsub.sh: New file.
Bruno Haible [Mon, 1 Apr 2019 21:15:56 +0000 (23:15 +0200)]
gitsub.sh: New file.

* top/gitsub.sh: New file.

6 years agoargmatch: use void* for raw memory pointers
Akim Demaille [Thu, 18 Apr 2019 20:23:02 +0000 (22:23 +0200)]
argmatch: use void* for raw memory pointers

* lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
(__xargmatch_internal, argmatch_to_argument): Use void* for pointers
to "values", keep char* for strings.

6 years agoprefix-gnulib-mk: fix the support for gnulib-po
Akim Demaille [Sun, 21 Apr 2019 16:17:14 +0000 (18:17 +0200)]
prefix-gnulib-mk: fix the support for gnulib-po

* build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
Don't touch HAVE_* variables.
Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.

6 years agodi-set: allow free with 'ino_map' being NULL
Bernhard Voelker [Thu, 18 Apr 2019 21:04:26 +0000 (23:04 +0200)]
di-set: allow free with 'ino_map' being NULL

* lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
is NULL.  Bug introduced in commit 3703dbbe88dd.
* tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
as a test.

6 years agoautoupdate
Karl Berry [Mon, 15 Apr 2019 15:49:29 +0000 (08:49 -0700)]
autoupdate

6 years ago* lib/str-two-way.h: Fix comment typo.
Paul Eggert [Sun, 14 Apr 2019 23:56:41 +0000 (16:56 -0700)]
* lib/str-two-way.h: Fix comment typo.

6 years agox-to-1: Restore ability to use original calling convention.
Bruno Haible [Sun, 14 Apr 2019 01:31:10 +0000 (03:31 +0200)]
x-to-1: Restore ability to use original calling convention.

* build-aux/x-to-1.in: Add comments. Accept the original form of
HELP2MAN argument as well as the form expected since 2012-12-12.

6 years agogettext: Prepare for next gettext release.
Bruno Haible [Sat, 13 Apr 2019 19:40:26 +0000 (21:40 +0200)]
gettext: Prepare for next gettext release.

* m4/gettext.m4: Bump gettext version number in comment.
* m4/intl.m4: Likewise.
* m4/intldir.m4: Likewise.
* m4/intlmacosx.m4: Likewise.

6 years agox-to-1: Avoid failure due to missing perl modules.
Bruno Haible [Sat, 13 Apr 2019 13:12:15 +0000 (15:12 +0200)]
x-to-1: Avoid failure due to missing perl modules.

* build-aux/x-to-1.in: Test whether all the perl modules that help2man
needs are installed.

6 years agoopenmp-init: New module.
Bruno Haible [Sat, 13 Apr 2019 09:03:25 +0000 (11:03 +0200)]
openmp-init: New module.

* modules/openmp-init: New file.
* modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
the changes from 2019-04-09.

6 years agosignbit: Fix compilation error when gnulib's math.h exists twice.
Bruno Haible [Fri, 12 Apr 2019 22:17:58 +0000 (00:17 +0200)]
signbit: Fix compilation error when gnulib's math.h exists twice.

* lib/math.in.h (GNULIB_defined_signbit): New macro.

6 years agoopenmp: Fix compilation error on platforms without OpenMP.
Bruno Haible [Fri, 12 Apr 2019 19:39:49 +0000 (21:39 +0200)]
openmp: Fix compilation error on platforms without OpenMP.

* lib/omp-init.c: Include <omp.h> only if _OPENMP.

6 years agomountlist: make parsing /proc/self/mountinfo more robust
Bernhard Voelker [Tue, 9 Apr 2019 20:30:16 +0000 (22:30 +0200)]
mountlist: make parsing /proc/self/mountinfo more robust

Cater for the following issues with mountinfo parsing (the first
one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
in <https://bugs.gnu.org/35137>).

1. The fields source, target, mntroot and fstype may contain characters
like '\r'; sscanf(3) fails to read such values with the %s format
specifier because it would stop at such characters.
Example: "mount -t tmpfs tmpfs /foo^Mbar".
The only true separator in that file is the ' ' character.

2. The source field may be an empty string, which happens e.g. with
"mount -t tmpfs '' /target".

3. The fstype field may contain mangled characters as well which need
unescaping.

* lib/mountlist.c (terminate_at_blank): Add utility function.
(read_file_system_list): In the block trying to read the mountinfo file,
avoid using sscanf(3) with %s format; instead, parse the above fields
separated by spaces one by one.
This also handles the case when the source field is an empty string.
Unescape the fstype field.

6 years agoopenmp: Add workaround for 32-bit programs on AIX.
Bruno Haible [Tue, 9 Apr 2019 19:02:35 +0000 (21:02 +0200)]
openmp: Add workaround for 32-bit programs on AIX.

* lib/omp.in.h: New file.
* lib/omp-init.c: New file, based on lib/nproc.c.
* m4/omp_h.m4: New file.
* modules/openmp (Files): Add them.
(Depends-on): Add include_next, c-ctype, setenv.
(configure.ac): Invoke gl_OMP_H.
(Makefile.am): Add rules to create omp.h and compile omp-init.c.
(Include): Mention <omp.h>.

6 years agonproc: Fix return value for privileged processes.
Bruno Haible [Tue, 9 Apr 2019 18:44:46 +0000 (20:44 +0200)]
nproc: Fix return value for privileged processes.

* lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
getpid().

6 years agoAdd copyright notices in several files.
Bruno Haible [Sun, 7 Apr 2019 11:37:02 +0000 (13:37 +0200)]
Add copyright notices in several files.

Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.

* lib/_Noreturn.h: Add LGPLv2+ copyright notice.
* lib/libunistring.valgrind: Likewise.
* lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
* lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
* lib/memchr.valgrind: Likewise.
* lib/memchr2.valgrind: Likewise.
* lib/rawmemchr.valgrind: Likewise.
* lib/relocatable.valgrind: Likewise.
* lib/strchrnul.valgrind: Likewise.

6 years agorevert texinfo.tex to 2019-03-03.15 per Gavin
Karl Berry [Sun, 31 Mar 2019 22:21:09 +0000 (15:21 -0700)]
revert texinfo.tex to 2019-03-03.15 per Gavin

6 years agoautoupdate
Karl Berry [Fri, 29 Mar 2019 14:53:21 +0000 (07:53 -0700)]
autoupdate

6 years agoterm-style-control tests: Fix link error.
Bruno Haible [Tue, 26 Mar 2019 01:22:31 +0000 (02:22 +0100)]
term-style-control tests: Fix link error.

Reported by Tom G. Christensen in
<https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.

* modules/term-style-control-tests (Makefile.am): Link
test-term-style-control-hello and test-term-style-control-yes against
LIBINTL.

6 years agoterm-style-control: Fix typo in comment.
Bruno Haible [Mon, 25 Mar 2019 01:45:40 +0000 (02:45 +0100)]
term-style-control: Fix typo in comment.

6 years agoterm-style-control: Add tests.
Bruno Haible [Sun, 24 Mar 2019 22:12:09 +0000 (23:12 +0100)]
term-style-control: Add tests.

* tests/test-term-style-control-hello.c: New file.
* tests/test-term-style-control-yes.c: New file.
* modules/term-style-control-tests: New file.

6 years agoterm-style-control: New module.
Bruno Haible [Sun, 24 Mar 2019 22:12:03 +0000 (23:12 +0100)]
term-style-control: New module.

* lib/term-style-control.h: New file, based on libtextstyle's
term-ostream.oo.h and term-ostream.oo.c.
* lib/term-style-control.c: New file, based on libtextstyle's
term-ostream.oo.c.
* modules/term-style-control: New file.

6 years agoautoupdate
Karl Berry [Sun, 24 Mar 2019 17:48:35 +0000 (10:48 -0700)]
autoupdate

6 years ago_Noreturn: beware of C's _Noreturn in C++ pre C++11
Akim Demaille [Fri, 22 Mar 2019 07:25:53 +0000 (08:25 +0100)]
_Noreturn: beware of C's _Noreturn in C++ pre C++11

* lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
C++98 appears to be supported by Clang, but not by GCC nor ICC.

6 years agoSupport cross-compilation to musl libc.
Bruno Haible [Sat, 23 Mar 2019 22:00:52 +0000 (23:00 +0100)]
Support cross-compilation to musl libc.

Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.

* m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
musl libc.
* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
* m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
* m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
* m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
* m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
* m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
* m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
* m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
* m4/expl.m4 (gl_FUNC_EXPL): Likewise.
* m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
* m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
* m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
* m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
* m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
* m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
* m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
* m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
* m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
* m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
* m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
* m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
* m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
* m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
* m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
* m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
* m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
* m4/log.m4 (gl_FUNC_LOG): Likewise.
* m4/logf.m4 (gl_FUNC_LOGF): Likewise.
* m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
* m4/log10.m4 (gl_FUNC_LOG10): Likewise.
* m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
* m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
* m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
* m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
* m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
* m4/log2.m4 (gl_FUNC_LOG2): Likewise.
* m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
* m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
* m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
* m4/modf.m4 (gl_FUNC_MODF): Likewise.
* m4/modff.m4 (gl_FUNC_MODFF): Likewise.
* m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
* m4/perror.m4 (gl_FUNC_PERROR): Likewise.
* m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
* m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
* m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
* m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
* m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
* m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
* m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
* m4/round.m4 (gl_FUNC_ROUND): Likewise.
* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
* m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
* m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
* m4/signbit.m4 (gl_SIGNBIT): Likewise.
* m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
* m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
* m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
* m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
* m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
* m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
* m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
* m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
* m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
* m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
* m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.

6 years agoposix_spawn_file_actions_*: Document musl libc bugs.
Bruno Haible [Sat, 23 Mar 2019 20:45:54 +0000 (21:45 +0100)]
posix_spawn_file_actions_*: Document musl libc bugs.

* doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
the bug.
* doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
* doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
cross-compiling to a musl system, guess no.
(gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
(gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.

6 years agoautoupdate
Karl Berry [Sat, 23 Mar 2019 20:44:17 +0000 (13:44 -0700)]
autoupdate

6 years agofutimens: Document musl libc bug.
Bruno Haible [Sat, 23 Mar 2019 20:39:37 +0000 (21:39 +0100)]
futimens: Document musl libc bug.

* doc/posix-functions/futimens.texi: Mention the bug.
* m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
cross-compiling, guess no on glibc and musl systems.

6 years agoClarify that cross-compilation guesses are guesses.
Bruno Haible [Sat, 23 Mar 2019 20:24:50 +0000 (21:24 +0100)]
Clarify that cross-compilation guesses are guesses.

* m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
* m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
* m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
* m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
gl_cv_glob_lists_symlinks.
* m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
'guessing ' to ac_cv_func_malloc_0_nonnull.
* m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
'guessing ' to ac_cv_func_realloc_0_nonnull.
* m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
'guessing ' to gl_cv_func_poll.
* m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
* m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.

6 years agostrtold: Fix typo.
Bruno Haible [Sat, 23 Mar 2019 19:20:44 +0000 (20:20 +0100)]
strtold: Fix typo.

* m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.

6 years agonoreturn: In C++ mode with clang, use _Noreturn as fallback.
Bruno Haible [Sat, 23 Mar 2019 18:53:22 +0000 (19:53 +0100)]
noreturn: In C++ mode with clang, use _Noreturn as fallback.

Reported by Akim Demaille.

* lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
[[noreturn]] would not work, use _Noreturn instead.

6 years agolibtextstyle-optional: Fix compiler warnings
Akim Demaille [Fri, 22 Mar 2019 19:05:46 +0000 (20:05 +0100)]
libtextstyle-optional: Fix compiler warnings

* lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
as unused.

6 years agobitset: fix memory leaks
Akim Demaille [Tue, 19 Mar 2019 20:38:00 +0000 (21:38 +0100)]
bitset: fix memory leaks

Reported by Bruno Haible.
https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html

* lib/bitset/vector.c (vbitset_free): New.
(vbitset_vtable): Use it.

6 years agobitset: minor changes
Akim Demaille [Tue, 19 Mar 2019 20:26:35 +0000 (21:26 +0100)]
bitset: minor changes

* lib/bitset/base.h (bitset_alloc_type): Remove, unused.
* lib/bitset/table.c: Formatting changes.
Remove useless braces.
Prefer using else in cascades of if/else-if with returns.
* lib/bitset/vector.c: Reduce scopes.