]> Savannah Git Hosting - gnulib.git/log
gnulib.git
10 years agogit-version-gen: detect untagged revisions
Mats Erik Andersson [Mon, 13 Apr 2015 21:00:35 +0000 (23:00 +0200)]
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!

10 years agofseeko: fix build failure on NetBSD >= 6
HIRAMATSU Yoshifumi [Tue, 14 Apr 2015 10:16:47 +0000 (11:16 +0100)]
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.

10 years agogitlog-to-changelog: port to MS-Windows
Paul Eggert [Thu, 9 Apr 2015 16:25:12 +0000 (09:25 -0700)]
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

10 years agogendocs: new option --tex for texi2dvi options
Karl Berry [Tue, 7 Apr 2015 21:50:26 +0000 (14:50 -0700)]
gendocs: new option --tex for texi2dvi options

10 years agosync gettext .m4 files from gettext
Karl Berry [Tue, 7 Apr 2015 16:46:17 +0000 (09:46 -0700)]
sync gettext .m4 files from gettext

10 years agouniname/uniname-tests: fix failure due to alias
Daiki Ueno [Tue, 7 Apr 2015 02:09:23 +0000 (11:09 +0900)]
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.

10 years agohash: remove deprecated hash_insert0 function
Giuseppe Scrivano [Fri, 3 Apr 2015 13:58:12 +0000 (14:58 +0100)]
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.

10 years agomountlist: remove dependency on libmount
Pádraig Brady [Thu, 2 Apr 2015 03:18:02 +0000 (04:18 +0100)]
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.

10 years agostddef: port to pre-C11 GCC on x86
Paul Eggert [Thu, 2 Apr 2015 17:35:53 +0000 (10:35 -0700)]
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.

10 years agoquotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
Pádraig Brady [Tue, 24 Mar 2015 12:23:28 +0000 (12:23 +0000)]
quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency

* modules/quotearg-simple-tests: Reference m4/mmap-anon.m4

10 years agoyesno: make EOL optional in ENABLE_NLS case also
Tobias Stoeckmann [Tue, 24 Mar 2015 12:15:27 +0000 (12:15 +0000)]
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).

10 years agofdopendir-tests: test it does not close its arg
Paul Eggert [Mon, 23 Mar 2015 02:47:24 +0000 (19:47 -0700)]
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

10 years agogitlog-to-changelog: trim trailing white space
Paul Eggert [Sat, 21 Mar 2015 01:09:24 +0000 (18:09 -0700)]
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.

10 years agogitlog-to-changelog: new option --ignore-matching
Paul Eggert [Sat, 21 Mar 2015 00:40:37 +0000 (17:40 -0700)]
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.

10 years agofdopendir: port better to MinGW
Paul Eggert [Thu, 19 Mar 2015 19:11:07 +0000 (12:11 -0700)]
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.

10 years agofdopendir: fix typo in comment
Paul Eggert [Wed, 18 Mar 2015 19:47:12 +0000 (12:47 -0700)]
fdopendir: fix typo in comment

* lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.

10 years agoerror: document all entry points provided
Eric Blake [Mon, 9 Mar 2015 15:48:19 +0000 (09:48 -0600)]
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>
10 years agoautoupdate
Karl Berry [Sun, 8 Mar 2015 14:22:10 +0000 (07:22 -0700)]
autoupdate

10 years agoautoupdate
Karl Berry [Fri, 6 Mar 2015 14:09:06 +0000 (06:09 -0800)]
autoupdate

10 years agoautoupdate
Karl Berry [Wed, 4 Mar 2015 14:41:45 +0000 (06:41 -0800)]
autoupdate

10 years agovasnprintf: pacify clang 3.5.0
Paul Eggert [Tue, 3 Mar 2015 15:48:40 +0000 (07:48 -0800)]
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.

10 years agoglob, etc.: port to MSVC v18 on MS-Windows 8.1
Paul Eggert [Wed, 25 Feb 2015 04:44:32 +0000 (20:44 -0800)]
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.

10 years agopoll: port to MSVC v18 on MS-Windows 8.1
Paul Eggert [Wed, 25 Feb 2015 00:16:19 +0000 (16:16 -0800)]
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.

10 years agotests: support stderr verification with returns_()
Pádraig Brady [Mon, 16 Feb 2015 17:20:39 +0000 (17:20 +0000)]
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.

10 years agopassfd: avoid valgrind uninitalised data warning
Pavel Hrdina [Tue, 24 Feb 2015 12:58:46 +0000 (12:58 +0000)]
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.

10 years agouniwbrk/u32-wordbreaks-tests: fix copyright
Paul Eggert [Mon, 23 Feb 2015 23:52:58 +0000 (15:52 -0800)]
uniwbrk/u32-wordbreaks-tests: fix copyright

* tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.

10 years agodup2: doc and test for Android bug
Paul Eggert [Mon, 23 Feb 2015 18:34:40 +0000 (10:34 -0800)]
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.

10 years agoReplace dup2() on Android
Kevin Cernekee [Mon, 23 Feb 2015 17:38:14 +0000 (09:38 -0800)]
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.

10 years agoAndroid doesn't define RLIM_SAVED_*
Paul Eggert [Mon, 23 Feb 2015 03:07:46 +0000 (19:07 -0800)]
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.

10 years agoautoupdate
Karl Berry [Sat, 21 Feb 2015 14:19:32 +0000 (06:19 -0800)]
autoupdate

10 years agovasnprintf-posix-tests: use consistent test
Paul Eggert [Sat, 21 Feb 2015 08:43:33 +0000 (00:43 -0800)]
vasnprintf-posix-tests: use consistent test

* tests/test-vasnprintf-posix.c (test_function):
Use "<" in assert instead of "<=", for consistency with other tests.

10 years agoprintf, isinf, etc.: noncanonical != NaN
Paul Eggert [Sat, 21 Feb 2015 02:09:47 +0000 (18:09 -0800)]
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.

10 years agofts: remove redundant close() (trivial)
Jaroslav Skarvada [Fri, 20 Feb 2015 22:53:52 +0000 (22:53 +0000)]
fts: remove redundant close() (trivial)

* lib/fts.c (fts_read): Remove redundant call to close().
Spotted by coverity.

10 years agogetdtablesize: port better for Android
Paul Eggert [Fri, 20 Feb 2015 18:53:10 +0000 (10:53 -0800)]
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

10 years agopoll: fixes for large fds
Paul Eggert [Fri, 20 Feb 2015 18:37:49 +0000 (10:37 -0800)]
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.

10 years agofcntl: Fix cross compiling
Kevin Cernekee [Thu, 19 Feb 2015 18:11:19 +0000 (10:11 -0800)]
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).

10 years agodup2, fcntl: cross-compiler better for Android
Paul Eggert [Thu, 19 Feb 2015 07:20:55 +0000 (23:20 -0800)]
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).

10 years agogetopt: give accurate ambiguity diagnostic on mem exhaustion
Pádraig Brady [Wed, 18 Feb 2015 22:37:31 +0000 (22:37 +0000)]
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.

10 years agogetopt: don't crash on memory exhaustion
Pádraig Brady [Wed, 18 Feb 2015 02:23:35 +0000 (02:23 +0000)]
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

10 years agotempname: allow compilation with C++ (trivial)
Mike Miller [Wed, 18 Feb 2015 06:04:51 +0000 (22:04 -0800)]
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'.

10 years agodup2, fcntl: port to AIX
Paul Eggert [Wed, 18 Feb 2015 02:34:17 +0000 (18:34 -0800)]
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

10 years agogetdtablesize, dup2, fcntl: port to Android
Paul Eggert [Tue, 17 Feb 2015 05:38:02 +0000 (21:38 -0800)]
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.

10 years agolocalename: Implement gl_locale_name_thread_unsafe for Android
Kevin Cernekee [Tue, 17 Feb 2015 01:26:49 +0000 (17:26 -0800)]
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.

10 years agoMore changelog fixes
Kevin Cernekee [Tue, 17 Feb 2015 05:38:56 +0000 (21:38 -0800)]
More changelog fixes

10 years agofts: avoid crash when a cycle is added while traversing
Kamil Dudka [Wed, 11 Feb 2015 17:41:43 +0000 (18:41 +0100)]
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.

10 years agouniname/uniname: support character alias
Daiki Ueno [Mon, 16 Feb 2015 06:44:14 +0000 (15:44 +0900)]
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.

10 years agoFix ChangeLog botches in my recent commits
Paul Eggert [Thu, 12 Feb 2015 06:19:01 +0000 (22:19 -0800)]
Fix ChangeLog botches in my recent commits

10 years agoduplocale: Fix Android build of duplocale-tests
Kevin Cernekee [Wed, 11 Feb 2015 23:22:58 +0000 (15:22 -0800)]
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.

10 years agosignal_h: Fix Android build
Kevin Cernekee [Wed, 11 Feb 2015 23:22:57 +0000 (15:22 -0800)]
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>.

10 years agonet_if: Handle content-free <net/if.h> system headers
Kevin Cernekee [Wed, 11 Feb 2015 23:22:56 +0000 (15:22 -0800)]
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.

10 years agolinkat_nofollow: Add fallback case for cross compiling
Kevin Cernekee [Wed, 11 Feb 2015 23:22:55 +0000 (15:22 -0800)]
linkat_nofollow: Add fallback case for cross compiling

* m4/linkat.m4: Guess no for Darwin, yes otherwise.

10 years agoeuidaccess: Fix Android build
Kevin Cernekee [Wed, 11 Feb 2015 23:22:54 +0000 (15:22 -0800)]
euidaccess: Fix Android build

* modules/euidaccess (Depends-on): Add fcntl-h to ensure that
AT_EACCESS gets declared.

10 years agogetugroups: Fix Android build
Kevin Cernekee [Wed, 11 Feb 2015 23:22:53 +0000 (15:22 -0800)]
getugroups: Fix Android build

* lib/getugroups.c: Don't reference unsupported {get,set,end}grent
functions.

10 years agolocalename: Fix Android build
Kevin Cernekee [Wed, 11 Feb 2015 23:22:52 +0000 (15:22 -0800)]
localename: Fix Android build

* modules/localename (Depends-on): Add langinfo.

10 years agogetdtablesize: Fix Android build
Kevin Cernekee [Wed, 11 Feb 2015 23:22:51 +0000 (15:22 -0800)]
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.

10 years agoAssume unbroken ungetc() on Android
Kevin Cernekee [Wed, 11 Feb 2015 23:22:50 +0000 (15:22 -0800)]
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.

10 years agoFix FILE struct compatibility with Android API level >= 21
Kevin Cernekee [Wed, 11 Feb 2015 23:22:49 +0000 (15:22 -0800)]
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.

10 years agotests: avoid recent -Werror=unused-variable regression in test-locale
Pádraig Brady [Wed, 11 Feb 2015 03:52:57 +0000 (03:52 +0000)]
tests: avoid recent -Werror=unused-variable regression in test-locale

* tests/test-locale.c (main): Reference the variable to avoid the
"unused variable" warning.

10 years agomaint: various whitespace cleanups in tempname
Pádraig Brady [Wed, 11 Feb 2015 02:46:28 +0000 (02:46 +0000)]
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.

10 years agotests: provide returns_() to simplify exit status checking
Pádraig Brady [Wed, 11 Feb 2015 00:16:55 +0000 (00:16 +0000)]
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.

10 years agomountlist: only use libmount when specified
Pádraig Brady [Tue, 20 Jan 2015 01:40:54 +0000 (01:40 +0000)]
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.

10 years agouniname/unimame-tests: don't link with -lunistring
Daiki Ueno [Sun, 8 Feb 2015 08:38:03 +0000 (17:38 +0900)]
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.

10 years agofstrcmp: don't assume strlen < INT_MAX
Paul Eggert [Sun, 8 Feb 2015 02:09:00 +0000 (18:09 -0800)]
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.

10 years agodiffseq: prefer ptrdiff_t to ssize_t
Paul Eggert [Sun, 8 Feb 2015 02:02:42 +0000 (18:02 -0800)]
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.

10 years agoxalloc: fix typo that suppressed warnings
Paul Eggert [Sun, 8 Feb 2015 01:27:03 +0000 (17:27 -0800)]
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.

10 years agofull-read: fix license notice typo
Paul Eggert [Sat, 7 Feb 2015 23:15:31 +0000 (15:15 -0800)]
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

10 years agocrypto/gc: fix a -Wswitch warning
Paul Eggert [Sat, 7 Feb 2015 23:09:00 +0000 (15:09 -0800)]
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.

10 years agoautoupdate
Karl Berry [Fri, 6 Feb 2015 15:09:18 +0000 (07:09 -0800)]
autoupdate

10 years agoupdate from texinfo
Karl Berry [Fri, 6 Feb 2015 01:00:22 +0000 (17:00 -0800)]
update from texinfo

10 years agotempname: new try_tempname function
Andreas Gruenbacher [Sat, 31 Jan 2015 22:49:13 +0000 (23:49 +0100)]
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.

10 years agognulib-tool: fix handling of patch(1) diagnostics
Pádraig Brady [Tue, 3 Feb 2015 10:27:38 +0000 (10:27 +0000)]
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.

10 years agobootstrap: exit immediately upon gnulib-tool failure
Pádraig Brady [Tue, 3 Feb 2015 03:55:48 +0000 (03:55 +0000)]
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.

10 years agosymlinkat: include all required header files
Andreas Gruenbacher [Sun, 1 Feb 2015 20:40:11 +0000 (21:40 +0100)]
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.

10 years agoupdate from texinfo
Karl Berry [Sat, 31 Jan 2015 18:18:51 +0000 (10:18 -0800)]
update from texinfo

10 years agoupdate from texinfo
Karl Berry [Sat, 31 Jan 2015 00:07:17 +0000 (16:07 -0800)]
update from texinfo

10 years agoupdate from texinfo
Karl Berry [Fri, 30 Jan 2015 23:55:58 +0000 (15:55 -0800)]
update from texinfo

10 years agolocalename: support Solaris 12 and illumos
Pádraig Brady [Thu, 29 Jan 2015 16:44:48 +0000 (16:44 +0000)]
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.

10 years agolocale: fix tests on illumos
Alexander Pyhalov [Thu, 29 Jan 2015 16:35:24 +0000 (16:35 +0000)]
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().

10 years agounictype: avoid undefined left-shift behavior
Daiki Ueno [Sat, 24 Jan 2015 02:11:34 +0000 (11:11 +0900)]
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.

10 years agolibunistring: bump version of unitypes dependants
Daiki Ueno [Tue, 20 Jan 2015 09:09:03 +0000 (18:09 +0900)]
libunistring: bump version of unitypes dependants

Due to the header file search order, all the headers which depend
on unitypes.h need to be generated, when the preinstalled
libunistring is older.
* modules/unicase/base (configure.ac): Bump minimum version to
0.9.4.
* modules/uniconv/base (configure.ac): Likewise.
* modules/unilbrk/base (configure.ac): Likewise.
* modules/uninorm/base (configure.ac): Likewise.
* modules/unistdio/base (configure.ac): Likewise.
* modules/unistr/base (configure.ac): Likewise.
* modules/uniwbrk/base (configure.ac): Likewise.
* modules/uniwidth/base (configure.ac): Likewise.

10 years agounictype/category-none: fix link with libunistring
Daiki Ueno [Tue, 20 Jan 2015 06:46:54 +0000 (15:46 +0900)]
unictype/category-none: fix link with libunistring

Since _UC_CATEGORY_NONE is not a public symbol, it will be
prefixed with "libstring_" when compiled as part of libunistring.
To avoid undefined symbol at link time, increase the minimum
version when the dependant modules are updated.
* modules/unictype/category-none (configure.ac): Bump minimum
version to 0.9.5.

10 years agounitypes: fix build with installed libunistring
Daiki Ueno [Tue, 20 Jan 2015 06:34:36 +0000 (15:34 +0900)]
unitypes: fix build with installed libunistring

The minimum version was not bumped after _UC_ATTRIBUTE_CONST and
_UC_ATTRIBUTE_PURE were added to unitypes.in.h.
* modules/unitypes (configure.ac): Bump minimum version to 0.9.4.

10 years agotime: port to MinGW32 3.21
Paul Eggert [Fri, 16 Jan 2015 01:37:14 +0000 (17:37 -0800)]
time: port to MinGW32 3.21

Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
* lib/time.in.h:
* m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
* modules/time (Depends-on):
Fall back on unistd.h if the other include files don't define
struct timespec.

10 years agoupdate-copyright: apply to self
Paul Eggert [Thu, 15 Jan 2015 20:57:10 +0000 (12:57 -0800)]
update-copyright: apply to self

* build-aux/update-copyright: Fix copyright date.  How ironic!

10 years agolibunistring: update to Unicode 7.0.0
Daiki Ueno [Thu, 15 Jan 2015 03:44:00 +0000 (12:44 +0900)]
libunistring: update to Unicode 7.0.0

* lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
Manichaean names.
* lib/unictype/joininggroup_name.h: Likewise.
* lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
(UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
* lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
(UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
(fill_arabicshaping, joining_group_as_c_identifier): Support those
enum values.
(is_property_alphabetic): Accept newly added characters to
cuneiform numeric signs.
(is_property_default_ignorable_code_point): Reject U+0605.
(FIELDLEN): Increase from 120 to 160.
* lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
U+1E8D0..U+1E8D6.
(uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
* tests/uniwidth/test-uc_width2.sh: Same updates as in
lib/uniwidth/width.c.
* all generated files under lib/uni* and tests/uni*: Regenerate.

10 years agolibunistring: update to Unicode 6.3.0
Daiki Ueno [Thu, 15 Jan 2015 03:16:53 +0000 (12:16 +0900)]
libunistring: update to Unicode 6.3.0

* lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
* lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
* lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
* lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
Update WB5, WB9, WB10, WB13a, and WB13b.
* tests/uniwbrk/test-uc-wordbreaks.c
(wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
* lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
(UC_BIDI_PDI): New enumeration values.
(bidi_category_byname): Support those enum values.
(is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
dedicated property assigned.
(is_property_case_ignorable): Check 0x0027.
(WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
(get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
(output_wbp): Support those enum values.
* lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
(UC_BIDI_PDI): New enumeration values.
* lib/unictype/bidi_byname.gperf: Add those property names.
* lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
U+180E, U+1A1B, and U+2066..U+2069.
* tests/uniwidth/test-uc_width2.sh: Same updates as in
lib/uniwidth/width.c.
* all generated files under lib/uni* and tests/uni*: Regenerate.

10 years agolibunistring: update to Unicode 6.2.0
Daiki Ueno [Thu, 15 Jan 2015 03:14:14 +0000 (12:14 +0900)]
libunistring: update to Unicode 6.2.0

* lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
(unilbrk_table): Adjust table size.
* lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
for LBP_RI.
* lib/uniwbrk.in.h (WBP_RI): New enumeration value.
* lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
Normalize table index skipping ignored properties.
* lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
WBP_EXTEND and WBP_FORMAT, which are now computed without using
the table.
* lib/uniwbrk/wbrktable.h: Adjust table size.
* lib/unigbrk.in.h (GBP_RI): New enumeration value.
* lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
Support rule GB8a.
(UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
* tests/unigbrk/test-uc-is-grapheme-break.c
(graphemebreakproperty_to_string): Support GBP_RI.
* lib/gen-uni-tables.c (LBP_RI): New enumeration value.
(get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
(output_lbp): Support LBP_RI.  Adjust some characters changed from
LBP_AL to LBP_ID.
(output_lbp): Support LBP_RI.
(WBP_RI): New enumeration value.
(debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
(output_wbp): Support WBP_RI.
(GBP_RI): New enumeration value.
(output_gbp_test, fill_org_gbp): Support GBP_RI.
* all generated files under lib/uni* and tests/uni*: Regenerate.

10 years agolibunistring: update to Unicode 6.1.0
Daiki Ueno [Thu, 15 Jan 2015 03:08:17 +0000 (12:08 +0900)]
libunistring: update to Unicode 6.1.0

* lib/gen-uni-tables.c (output_joining_group): Switch to
3-level table to accommodate joining groups defined with higher
codepoint value.  Since there are only 88 groups defined in
Unicode 7.0.0, use 7-bit packed format for level3 entries.
(get_lbp): Update for Unicode 6.1.0.
* lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
3-level table.
* lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
joining group name.
* lib/unictype/joininggroup_name.h: Likewise.
* lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
(unilbrk_table): Adjust table size.
* lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
for LBP_HL.
* lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
U+302E..U+302F.
* tests/uniwidth/test-uc_width2.sh: Same updates as in
lib/uniwidth/width.c.
* all generated files under lib/uni* and tests/uni*: Regenerate.
* modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.

10 years agouniwbrk/u32-wordbreaks-tests: add conformance test
Daiki Ueno [Thu, 15 Jan 2015 03:06:30 +0000 (12:06 +0900)]
uniwbrk/u32-wordbreaks-tests: add conformance test

* modules/uniwbrk/u32-wordbreaks-tests (Files): Add
tests/uniwbrk/test-uc-wordbreaks.c,
tests/uniwbrk/test-uc-wordbreaks.sh, and
tests/uniwbrk/WordBreakTest.txt.
(Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
test-uc-wordbreaks to $(check_PROGRAMS), and define
test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
* tests/uniwbrk/test-uc-wordbreaks.sh: New file.
* tests/uniwbrk/test-uc-wordbreaks.c: New file.

10 years agouniwbrk: ignore Extended/Format characters at BOL
Daiki Ueno [Thu, 15 Jan 2015 03:03:09 +0000 (12:03 +0900)]
uniwbrk: ignore Extended/Format characters at BOL

* lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
characters if the previous character property is one of
WBP_NEWLINE, WBP_CR, and WBP_LF.

10 years agotest-strstr.c: avoid a trivial leak
Jim Meyering [Mon, 12 Jan 2015 00:47:11 +0000 (16:47 -0800)]
test-strstr.c: avoid a trivial leak

* tests/test-strstr.c (main): Free haystack.

10 years agoupdate-copyright: recognize groff's \(co marker
Jim Meyering [Mon, 12 Jan 2015 00:44:35 +0000 (16:44 -0800)]
update-copyright: recognize groff's \(co marker

* build-aux/update-copyright (circle_c_re): Also accept
uses of \(co, as found in gzip.1.

10 years agomaint.mk: fix compatibility with OS X nm
Pádraig Brady [Thu, 8 Jan 2015 12:18:54 +0000 (12:18 +0000)]
maint.mk: fix compatibility with OS X nm

* top/maint.mk (_gl_tight_scope): Use the -g option to
show exported items rather than the -e option which is
ignored on all platforms except OS X where it gives an error.
Reported by Assaf Gordon.

10 years agolocalcharset: improve charset detection on OS/2
KO Myung-Hun [Wed, 7 Jan 2015 05:36:52 +0000 (14:36 +0900)]
localcharset: improve charset detection on OS/2

Use system codepage when appropriate.  Map OS/2 codepages to
GNU canonical charset names if possible.

* lib/config.charset: Don't output aliases if "$os" is os2*.
* lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
result for OS/2.
(locale_charset) [OS2]: Use system codepage if codeset is omitted
from the locale name which is neither "C" nor "POSIX".

10 years agocount-leading-zeros: use 64-bit intrinsics on 32-bit Windows
Paul Eggert [Tue, 6 Jan 2015 17:05:22 +0000 (09:05 -0800)]
count-leading-zeros: use 64-bit intrinsics on 32-bit Windows

This reverts the last patch but one, as it shouldn't be needed now
that the typo is fixed.
* lib/count-leading-zeros.h (count_leading_zeros_ll):
* lib/count-trailing-zeros.h:
* lib/count-one-bits.h:
Go back to using 64-bit intrinsics.

10 years agocount-leading-zeros: fix pragma typos
Paul Eggert [Tue, 6 Jan 2015 16:50:04 +0000 (08:50 -0800)]
count-leading-zeros: fix pragma typos

* lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
Fix typos in declaration of intrinsics when _MSC_VER.

10 years agoautoupdate
Karl Berry [Tue, 6 Jan 2015 13:53:30 +0000 (05:53 -0800)]
autoupdate

10 years agocount-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
Pádraig Brady [Tue, 6 Jan 2015 02:27:16 +0000 (02:27 +0000)]
count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows

* lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
intrinsics in this case.
* lib/count-trailing-zeros.h: Likewise.
* lib/count-one-bits.h: Likewise.

10 years agouniname/uniname: update to Unicode 7.0.0
Daiki Ueno [Tue, 6 Jan 2015 09:53:40 +0000 (18:53 +0900)]
uniname/uniname: update to Unicode 7.0.0

To accommodate new characters added since Unicode 5.1.0, this
changes the internal representation of codepoint ranges.
Previously, we grouped codepoint ranges by manually assigned 4-bit
tag, which only allowed 16 groups.  This removes the limitation by
switching to binary search on a table.  For the detail rationale and the
benchmark results, see:
https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html

* lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
to INDEX, as it no longer represents a codepoint.
(range): New struct.
(main): Switch to intervals list from a bit-pattern based
classification.
* lib/uniname/uninames.h: Regenerate.
* tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
* modules/uniname/base (configure.ac): Bump minimum version to
0.9.5.
* modules/uniname/uniname (configure.ac): Bump minimum version to
0.9.5.

10 years agodoc: update INSTALL from autoconf
Eric Blake [Mon, 5 Jan 2015 23:15:44 +0000 (16:15 -0700)]
doc: update INSTALL from autoconf

Picks up the copyright year, and also the fact that newer texinfo
uses '' instead of `' for quoting.

* doc/install.texi: Resync from autoconf.
* doc/INSTALL: Reflect recent autoconf update.
* doc/INSTALL.ISO: Likewise.
* doc/INSTALL.UTF-8: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>