lib


Log

Author Commit Date CI Message
Bruno Haible 3c0997af 2019-01-04T12:56:22 bitsetv: Fix module dependencies. * lib/bitsetv.c: Include xalloc.h. * modules/bitsetv (Depends-on): Add 'xalloc'.
Bruno Haible 57555b78 2019-01-04T12:32:14 xmemdup0: Remove redundant code. * lib/xmemdup0.h (xalloc_die): Remove declaration.
Paul Eggert df8874aa 2019-01-03T22:36:21 bitset, crypto/gc: fix conflicts with Solaris 11 * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to avoid clash with Solaris 11 <sys/bitset.h>. * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash with Solaris 11 <xorg/gc.h>.
Bruno Haible 3b8b674c 2019-01-04T06:22:00 safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>. Reported by Andy Fiddaman <andy@omniosce.org>. * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
Paul Eggert 4652c7ba 2018-12-31T18:07:08 autoupdate
Paul Eggert e6633650 2019-01-01T00:25:11 maint: Run 'make update-copyright'
Paul Eggert c8450ce1 2018-12-31T15:19:26 autoupdate
Paul Eggert a8e125d2 2018-12-27T22:24:14 * lib/mknodat.c: Remove incorrect comments.
Paul Eggert 8cb410df 2018-12-27T11:20:42 autoupdate
Jim Meyering 5d6a3cdd 2018-12-20T19:51:48 revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7 v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match): echo '123-x'|LC_ALL=C grep -E '.\bx' The goal is to revert the first, but reverting it requires to restore the function deleted in the second. I ran this to restore the deleted function: git show v0.1-2281-g95cd86dd7 lib/dfa.c \ | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \ | patch -R -p1 * lib/dfa.c (charclass_context): Restore deleted function. Reverting the primary commit removes this change: dfa: Simplify a building state * lib/dfa.c (build_state): Simplify a building state.
Paul Eggert b823b5dc 2018-12-20T16:10:29 version-etc: allow zero authors * lib/version-etc.c (version_etc_arn): If no authors are given, omit authorship info instead of dumping core. No need to include stdlib.h now.
Bruno Haible 55e1fc81 2018-12-18T09:49:42 localename: Fix test failure on AIX 7. Reported by Assaf Gordon in <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>. * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro. (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works instead of ac_cv_func_uselocale. * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of HAVE_USELOCALE. * lib/localename-table.h: Likewise. * lib/localename-table.c: Likewise. * tests/test-localename.c: Likewise. * doc/posix-functions/uselocale.texi: Mention the AIX problem.
Bruno Haible 97212599 2018-12-18T08:53:49 localename: Update comments regarding Cygwin. * lib/localename.c: Update comment. * doc/posix-functions/uselocale.texi: Update platforms list. * doc/posix-functions/newlocale.texi: Likewise. * doc/posix-functions/duplocale.texi: Likewise. * doc/posix-functions/freelocale.texi: Likewise.
Paul Eggert a00bedcc 2018-12-16T07:33:54 autoupdate
Assaf Gordon 5f5cd2ea 2018-12-16T16:24:28 random: Fix build error on native Windows (regression from 2018-06-21). * lib/random.c (__srandom, __initstate, __setstate, __random, __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect to the symbols without '__' prefix.
Bruno Haible 509a0297 2018-12-16T10:46:13 obstack, libc-config: Support HP-UX cc in C99 mode. * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99 compiler, even when in C99 mode. * lib/cdefs.h (__flexarr): Likewise. * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
Bruno Haible 926aced7 2018-12-16T07:11:44 localename: Fix test failure on OpenBSD >= 6.2. * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake locale system. Define HAVE_FAKE_LOCALES in this case. * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of HAVE_USELOCALE. * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of HAVE_NEWLOCALE && HAVE_USELOCALE. * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update platforms list. * doc/posix-functions/newlocale.texi: Likewise. * doc/posix-functions/duplocale.texi: Update platforms list. * doc/posix-functions/freelocale.texi: Likewise.
Bruno Haible 6dce6866 2018-12-16T05:40:53 localename: Update comments. * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
Jim Meyering 95cd86dd 2018-12-15T10:09:35 dfa: avoid new warnings from gcc These would prevent building with -Werror and a Dec snapshot of gcc. * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos". Rename each inner instance to "p". (charclass_context): Remove unused static function.
Paul Eggert 2f5c8474 2018-12-14T16:25:13 mkdir-p: improve diagnostic for FUSE mounts Problem reported by Niklas Hambüchen in: https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat errno to mkdir errno if the stat errno is likely more interesting.
Bruno Haible 9565ca1b 2018-12-14T23:07:58 xmap: New module. * lib/gl_xmap.h: New file. * lib/gl_xmap.c: New file. * modules/xmap: New file.
Bruno Haible 99d064ff 2018-12-14T23:07:53 hash-map: New module. * lib/gl_hash_map.h: New file. * lib/gl_hash_map.c: New file. * modules/hash-map: New file.
Bruno Haible 7b55f2d1 2018-12-14T23:07:49 linkedhash-map: New module. * lib/gl_linkedhash_map.h: New file. * lib/gl_linkedhash_map.c: New file. * lib/gl_anyhash1.h: Update comments. * lib/gl_anyhash2.h: Likewise. * modules/linkedhash-map: New file.
Bruno Haible 970abeef 2018-12-14T23:07:43 array-map: New module. * lib/gl_array_map.h: New file. * lib/gl_array_map.c: New file. * modules/array-map: New file.
Bruno Haible a0a1bcd0 2018-12-14T23:07:39 map: New module. * lib/gl_map.h: New file. * lib/gl_map.c: New file. * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid conflict with gl_map.h. * modules/map: New file.
Bruno Haible 72e936e8 2018-12-13T12:00:22 localtime-buffer: Avoid endless recursion in localtime and gmtime. * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
Bruno Haible 1a833ed0 2018-12-12T01:14:34 omap: Don't dispose the old value when the function returns it. * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn here. * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise. * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise. * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn here.
Bruno Haible 821015b5 2018-12-12T01:03:13 array-omap, avltree-omap, rbtree-omap: Tweak style. * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or false. * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
Bruno Haible 2f4becc3 2018-12-11T20:56:30 xomap: New module. * lib/gl_xomap.h: New file. * lib/gl_xomap.c: New file. * modules/xomap: New file.
Bruno Haible b2e73f8b 2018-12-11T20:56:27 rbtree-omap: New module. * lib/gl_rbtree_omap.h: New file. * lib/gl_rbtree_omap.c: New file. * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c. Parameterize. * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h. * modules/rbtree-omap: New file. * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h. (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
Bruno Haible eaf9a78f 2018-12-11T20:56:25 avltree-omap: New module. * lib/gl_avltree_omap.h: New file. * lib/gl_avltree_omap.c: New file. * lib/gl_avltree_ordered.h: Code moved to here from lib/gl_avltree_oset.c. Parameterize. * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h. * lib/gl_anytree_omap.h: New file. * modules/avltree-omap: New file. * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h. (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
Bruno Haible 83ac717e 2018-12-11T20:56:22 array-omap: New module. * lib/gl_array_omap.h: New file. * lib/gl_array_omap.c: New file. * modules/array-omap: New file.
Bruno Haible ab2f2dee 2018-12-11T20:56:20 omap: New module. * lib/gl_omap.h: New file. * lib/gl_omap.c: New file. * modules/omap: New file.
Bruno Haible e18426e6 2018-12-11T20:44:55 hash-set, linkedhash-set: Reduce code duplication. * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and lib/gl_anyhash_set1.h. * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and lib/gl_anyhash_set2.h. Parameterize. (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h. * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function. * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h. * lib/gl_rbtreehash_list.c: Likewise. * lib/gl_linkedhash_list.c: Likewise. (hash_resize_after_add): Remove function. * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h. * gl_hash_set.c: Likewise. * modules/avltreehash-list (Files, Makefile.am): Update file list. * modules/rbtreehash-list (Files, Makefile.am): Likewise. * modules/linkedhash-list (Files, Makefile.am): Likewise. * modules/linkedhash-set (Files, Makefile.am): Likewise. * modules/hash-set (Files, Makefile.am): Likewise.
Bruno Haible 353348a7 2018-12-11T20:43:22 array-set: Optimize. * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn outside the loop, not inside the loop.
Bruno Haible b457ace1 2018-12-08T15:25:51 Fix comments. * lib/gl_list.h (gl_list_free): Clarify what it does. * lib/gl_oset.h (gl_oset_free): Likewise. * lib/gl_set.h (gl_set_free): Likewise. * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment. * lib/gl_array_oset.c (gl_array_search_atleast): Likewise. * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise. * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
Bruno Haible 5c72ed2b 2018-12-04T00:55:34 xset: New module. * lib/gl_xset.h: New file. * lib/gl_xset.c: New file. * modules/xset: New file.
Bruno Haible 51b22855 2018-12-04T00:54:30 hash-set: New module. * lib/gl_hash_set.h: New file. * lib/gl_hash_set.c: New file. * modules/hash-set: New file.
Bruno Haible 2eaf74bd 2018-12-04T00:53:12 linkedhash-set: New module. * lib/gl_linkedhash_set.h: New file. * lib/gl_linkedhash_set.c: New file. * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h. * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h. * lib/gl_anyhash_primes.h: New file, extracted from lib/gl_anyhash_list2.h. * lib/gl_anyhash_list2.h: Include it. (primes, next_prime): Remove definitions. * modules/linkedhash-set: New file. * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h. (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES. * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h. (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES. * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h. (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
Bruno Haible f51710c0 2018-12-04T00:43:22 array-set: New module. * lib/gl_array_set.h: New file. * lib/gl_array_set.c: New file. * modules/array-set: New file.
Bruno Haible ce223c9b 2018-12-04T00:41:24 set: New module. * lib/gl_set.h: New file. * lib/gl_set.c: New file. * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with gl_set.h. * modules/set: New file.
Paul Eggert 626586a9 2018-11-30T16:25:38 memrchr: port better to clang * lib/memrchr.c (__memrchr): Cast to void * instead of to longword *, to pacify clang -Wcast-align (Bug#33544).
Akim Demaille 22693f63 2018-11-29T05:44:58 bitset: rename ebitset/expandable.* as tbitset/table.* See https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html. * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as... * lib/bitset/table.h, lib/bitset/table.c: these. Rename all the ebitset* symbols as tbitset*. Adjust dependencies.
Akim Demaille 86cd6665 2018-11-28T05:56:21 bitset: check the operations * tests/test-bitset.c (bitset_random): New. Use it. * lib/bitset/expandable.c (ebitset_not): Fix typo.
Akim Demaille 106a4e56 2018-11-28T21:55:00 bitset: properly use false/true instead of 0/1 for Booleans * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not 0/1, as Booleans.
Akim Demaille 1ddcb4be 2018-11-28T07:24:29 bitset: rename BITSET_VARRAY as BITSET_VECTOR For consistency with the name of the file. * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h, * lib/bitset/stats.c, lib/bitset/vector.c (BITSET_VARRAY): Rename as... (BITSET_VECTOR): this.
Paul Eggert d09f113e 2018-11-28T16:10:03 strerror_r-posix: memmove, not memcpy * lib/strerror_r.c (safe_copy): Use memmove, not memcpy, since the source and destination might overlap in the call ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’. Simplify.
Akim Demaille b9ca447b 2018-11-25T18:55:32 bitsetv: new module * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
Akim Demaille de7956e9 2018-10-28T17:32:15 bitset: new module * lib/bitset.c, lib/bitset.h, lib/bitset/array.c, * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c, * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h, * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c, * lib/bitset/vector.h, modules/bitset: New.
Bruno Haible b2b037e3 2018-11-24T02:02:30 localename: Fix gettext test failures on mingw. * lib/localename.c (gl_locale_name_posix): Convert the result of gl_locale_name_environ to XPG syntax.
Paul Eggert 48a6c46b 2018-11-16T08:13:39 autoupdate
Paul Eggert 6ccfbb4c 2018-11-03T23:31:33 parse-datetime: simplify test for mktime failure * lib/parse-datetime.y (mktime_ok): Simplify. Remove args TZ and T; no longer needed. Callers changed.
Paul Eggert 870a155f 2018-11-03T23:04:44 posixtm: simplify test for mktime failure * lib/posixtm.c (posixtime): Simplify.
Paul Eggert c8bc4bf9 2018-11-03T21:51:33 nstrftime: simplify test for mktime failure * lib/nstrftime.c (__strftime_internal): Simplify.
Paul Eggert df396b2c 2018-11-02T14:09:35 gnulib-common.m4: port _Noreturn to C++ Problem reported by Akim Demaille in: https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]]. Merge adjustments from _Noreturn.h and from glibc into the non-C++ version. * lib/_Noreturn.h: Match gnulib-common.
Norihiro Tanaka ae4b73e2 2018-10-23T00:02:16 dfa: Simplify a building state dfa.c (build_state): Simplify a building state.
Norihiro Tanaka 5c7a0371 2018-10-23T00:01:08 dfa: reorder tokens before execution Reorder tokens before execution. It improves efficiency to access memory in building states. For example, A(BCD|E(F|G)|HI) are reorderda as following. (Before reorder) A:1 - B:2 - C:3 - D:4 ` E:5 - F:6 ` G:7 ` H:8 - I:9 (After reorder) A:1 - B:2 - C:5 - D:6 ` E:3 - F:7 ` G:8 ` H:4 - I:9 dfa.c (compare, reorder_tokens): New function. (reorder_tokens): Call them.
Norihiro Tanaka fb03ea32 2018-10-22T23:51:20 dfa: a state has a set of current positions. Up to now, a state had a set of follow-on positions. It is replaced a set of current positions. This change will save memory space. dfa.c (leaf_set): Remove it. (struct dfa): Add new member constraints and separates. (append): New function. (state_index): Bring constraint from pre-calculated. (state_separate_contexts): Bring separate contexts from pre-calculated. Change argument, update callers. (merge_nfa_state): Pre-calculate constraints for END. and remove END. No longer END is not used after here. (dfaoptimize): Initialize added member constraints. (dfaanalyze): Pre-calculate seprate contexts. (build_state): Change for this update. (dfassbuild): Initialize new members . (dfafree): Free memory for new members.
Norihiro Tanaka a37603c6 2018-10-22T23:35:50 dfa: simplify dfa optimization dfa.c (merge_nfa_state, dfaoptimize): Simplify dfa optimization.
Norihiro Tanaka eb8189b3 2018-10-22T23:31:26 dfa: position set sorts increasing order Change the order of position set from decreasing to increaing, then even after dfa is optimized, it is guaranteed that the number of a position is smaller than the subsequent one's number. dfa.c (insert, merged_constrained, delete): Reverse the direction of an inequality sign. (dfaanalyze): Position set sorts increasing order.
Norihiro Tanaka 8ef5a439 2018-10-22T23:22:40 dfa: remove unneeded code By the addition of beg, a code for the initial state is unnecessary, so remove it. dfa.c (epsclosure): Remove a code for the initial state. (dfaanalyze): Print follows for BEG in debug mode.
Paul Eggert 9a712122 2018-10-25T08:25:41 backupfile: tweak for better code * lib/backupfile.c: Sort include directives, and remove unnecessary <limits.h> include. (FALLTHROUGH): New macro, copied from other modules. (backupfile_internal): Use it to avoid code duplication. This lets GCC 8.2.1 generate better code by inlining the call to check_extension.
Paul Eggert 1b01fe40 2018-10-23T19:10:21 backupfile: new dir_fd args New module opendirat with code taken from fts. Use this module to let backupfile use a directory file descriptor. * NEWS: Document the incompatible change. * lib/backup-find.c (find_backup_file_name): * lib/backup-rename.c (backup_file_rename): New arg DIR_FD. * lib/backupfile.c: Include stdint.h, for SIZE_MAX. (SIZE_MAX): Remove. Include opendirat.h rather than dirent--.h. (check_extension): New args DIR_FD and BASE_MAX. All callers changed. (numbered_backup): New args DIR_FD and PNEW_FD. All callers changed. (backupfile_internal): New arg DIR_FD. All callers changed. * lib/fts.c: Include opendirat.h. (opendirat): Move to opendirat.c. * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files. * modules/backupfile (Depends-on): Remove dirfd, opendir. Add opendirat. * modules/fts (Depends-on): Remove fdopendir, openat-safer. Add opendirat.
Bruno Haible 0f0ee4a9 2018-10-23T22:18:24 localename: Simplify support for per-thread locales on Solaris 11.4. * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4. (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES. * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris specific code. * lib/localename-table.h: Update comments. * lib/localename-table.c: Update comments. * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME. Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS. * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test for 'uselocale'. Set HAVE_NAMELESS_LOCALES. (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set HAVE_NAMELESS_LOCALES here. * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove m4/intlsolaris.m4. * modules/gettext (Files): Likewise.
Bruno Haible b7477ef6 2018-10-22T02:58:30 locale: Ease integration with GNU libintl. * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale, GNULIB_defined_freelocale): New macros.
Bruno Haible de62ab01 2018-10-22T02:38:39 localename: Fine-tune support for per-thread locales on Solaris 11.4. * lib/localename-table.h: New file, extracted from lib/localename.c. * lib/localename-table.c: Likewise. * lib/localename.c: Include localename-table.h. (get_locale_t_name, newlocale, duplocale, freelocale): Invoke locale_hash_function instead of pointer_hash. * modules/localename (Files): Add lib/localename-table.h, lib/localename-table.c. (lib_SOURCES): Add localename-table.c. * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test for Solaris 11.4 locale system only on Solaris. Test for it independently whether getlocalename_l exists. * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and 'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set HAVE_NAMELESS_LOCALES. * modules/gettext (Files): Add m4/intlsolaris.m4.
Bruno Haible 1ff0e968 2018-10-16T21:27:45 mountlist: Remove support for Cray with UNICOS 9. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define MOUNTED_LISTMNTENT. * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
Bruno Haible e96dcbcb 2018-10-16T21:25:00 fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix. * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define STAT_STATFS2_FS_DATA. * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define MOUNTED_GETMNT. * lib/mountlist.c: Remove MOUNTED_GETMNT case. * lib/getloadavg.c (decstation): Remove definition and case. * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix. * lib/getgroups.c: Likewise. * doc/posix-functions/getgroups.texi: Likewise. * lib/time.in.h: Update comments.
Bruno Haible a2ae04a0 2018-10-16T21:09:51 getloadavg: Remove support for ConvexOS. * lib/getloadavg.c: Remove convex case.
Bruno Haible 7eb1687c 2018-10-16T21:05:02 getloadavg: Remove support for Sony NEWS. * lib/getloadavg.c: Remove sony_news case.
Bruno Haible 23671eec 2018-10-16T21:02:51 fsusage, mountlist, getloadavg: Remove support for Dynix/ptx. * lib/fsusage.c: Remove _SEQUENT_ case. * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments. * lib/mountlist.c: Don't test for MNTTABNAME. * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq. (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME. * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases. * lib/stat-size.h: Don't mention the Sequent bug. * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
Bruno Haible 8ae091f7 2018-10-16T20:47:03 fsusage: Remove support for AIX 3. * lib/fsusage.c: Remove code for AIX 3. * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
Bruno Haible 4d4877e6 2018-10-16T20:43:03 fsusage, stat-size, getloadavg: Remove support for AIX PS/2. * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h. * lib/fsusage.c: Remove code for AIX PS/2. * lib/stat-size.h (ST_NBLOCKSIZE): Likewise. * lib/getloadavg.c: Likewise.
Bruno Haible bd379715 2018-10-16T20:21:30 getloadavg: Remove support for HP-UX on m68k. * lib/getloadavg.c: Remove hp9000s300 case.
Bruno Haible cbc85bb6 2018-10-16T18:59:25 fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant). * lib/fsusage.c: Remove DOLPHIN case. * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments. * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
Bruno Haible 29e08376 2018-10-16T18:53:05 getloadavg: Remove support for Alliant FX/2800. * lib/getloadavg.c: Remove alliant case.
Bruno Haible d8777bab 2018-10-16T18:51:00 getloadavg: Remove support for tek4300. * lib/getloadavg.c: Remove tek4300 case.
Bruno Haible 15fbefeb 2018-10-16T18:47:19 getloadavg: Remove support for Ardent. * lib/getloadavg.c: Remove ardent case.
Bruno Haible be9e66b3 2018-10-16T18:44:33 mountlist: Remove support for SVR2. Reported by Andrew Borodin <aborodin@vmail.ru> in <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>. * lib/mountlist.c: Remove MOUNTED_FREAD case. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define MOUNTED_FREAD.
Bruno Haible a79f2a28 2018-10-15T10:14:15 assure: Fix comment. * lib/assure.h: Fix typo in comment.
Paul Eggert e8e003da 2018-10-15T00:37:55 libc-config: merge from glibc * lib/cdefs.h (__glibc_has_attribute): New macro.
Paul Eggert 2bf91171 2018-10-14T23:49:00 autoupdate
Bruno Haible 67c16dcb 2018-10-14T17:03:01 localename: Add support for per-thread locales on Solaris 11.4. * lib/locale.in.h (newlocale, freelocale): New declarations. (duplocale): Declare also when the 'localename' module requests it. * lib/localename.c (struniq_hash_node): Renamed from hash_node. (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE. (struniq): Update. (struct locale_categories_names, struct locale_hash_node): New types. (LOCALE_HASH_TABLE_SIZE): New constant. (locale_hash_table, locale_lock): New variables. (pointer_hash, get_locale_t_name): New functions. (newlocale, duplocale, freelocale): New overridden functions. (gl_locale_name_thread_unsafe): Use get_locale_t_name. * m4/intlsolaris.m4: New file. * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE. * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are declared. (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE. * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME, HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE. * modules/localename (Files): Add intlsolaris.m4. (Depends-on): Add 'locale'. (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR. * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking the signatures.
Akim Demaille b159aa5d 2018-10-12T06:46:09 timevar: use gethrxtime to get wall clock time clock_gettime is not portable. gethrxtime takes the best available option to get the wall clock time, including clock_gettime (monotonic clock), and gettime (non monotonic). Also, using xtime_t instead of float preserves the precision. Suggested by Bruno Haible. * lib/xtime.h (xtime_make): Handle overflows of nanoseconds. * modules/timevar (Depends-on): We need gethrxtime. We no longer use times(). (Link): Update. * lib/timevar.h (timevar_time_def): Use xtime_t. * lib/timevar.c (set_to_current_time): Use gethrxtime. (timevar_print): Instead of checking whether the timings themselves are large enough for the timevar to be printed, check the percentages.
Akim Demaille 5ac17e36 2018-10-11T22:15:36 timevar: improve the output format From: Execution times (seconds) reader : 0,01 ( 3%) usr 0,00 (16%) sys 0,00 ( 0%) wall outputting report : 0,03 ( 6%) usr 0,00 (15%) sys 0,00 ( 0%) wall parser action tables : 0,02 ( 4%) usr 0,00 ( 2%) sys 0,00 ( 0%) wall outputting parser : 0,01 ( 2%) usr 0,00 (13%) sys 0,00 ( 0%) wall running m4 : 0,37 (84%) usr 0,00 (50%) sys 0,00 ( 0%) wall total time : 0,44 0,01 0,00 To: Execution times (seconds) CPU user CPU system wall clock reader 0,020 ( 4%) 0,002 ( 9%) 0,000000 ( 0%) outputting report 0,029 ( 6%) 0,002 (11%) 0,000000 ( 0%) parser action tables 0,020 ( 4%) 0,001 ( 6%) 0,000000 ( 0%) outputting parser 0,014 ( 3%) 0,002 (10%) 0,000000 ( 0%) running m4 0,431 (83%) 0,012 (59%) 0,000000 ( 0%) total time 0,522 0,020 0,000000 Suggested by Bruno Haible. See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html. * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for wall, since its resolution is much higher.
Akim Demaille da905bea 2018-10-11T17:54:35 timevar: expect that getrusage is available Don't keep both times and getrusage as backend: both are guaranteed by gnulib, a single one suffices. Using getrusage is open to possibly tracking other types of resources in the future. * modules/timevar (Depends-on): Add getrusage. (configure.ac): Remove gl_TIMEVAR. (Files): Remove m4/timevar.m4. * m4/timevar.m4: Remove, rely on gnulib for getrusage. * lib/timevar.h (timevar_enabled): Clarify documentation. * lib/timevar.c: Remove all the code about times. Remove all the CPP guards about getrusage: expect it to be present (courtesy of gnulib).
Bruno Haible f7a6286e 2018-10-12T11:12:53 mountlist: Improve support for Solaris in 64-bit mode. Reported by David Wood <David.Wood@deshaw.com> in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2. * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
Bruno Haible d1327df1 2018-10-12T11:06:33 mountlist: Add support for Minix. Reported by Assaf Gordon in <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use AC_CHECK_FUNCS to check for 'getmntinfo'. * lib/mountlist.c: Update comments.
Bruno Haible 74c29c68 2018-10-11T23:29:28 mountlist: Modernize platform lists. * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which platforms, deemphasizing the obsolete ones. * lib/mountlist.c: Likewise.
Bruno Haible 32e75188 2018-10-11T20:07:00 getprogname: Add support for 32-bit programs on HP-UX. * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails, try the similar functions 32-bit programs on 64-bit HP-UX.
Bruno Haible 07b97b05 2018-10-11T18:24:51 getprogname: Work around program name truncation when possible. * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated, possibly use pst_cmd instead.
Paul Eggert dce8759f 2018-10-08T16:53:59 fts: cleanup after FTS_NOATIME removal * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY) (FTS_STOP): Shrink to minimal values. We don’t need to worry about binary compatibility in Gnulib, and the old way of doing things had a hole in the user options that caused FTS_OPTIONMASK to not work as desired.
Bernhard Voelker a9c199ed 2018-10-08T16:45:36 fts: remove FTS_NOATIME This reverts commit da4d6974013c822af1498941e32db774b2031765. We cannot guarantee that O_NOATIME works: e.g. openat fails with EPERM if the effective user ID of the caller does not match the owner of the file and the caller is not privileged. Downstream findutils has never picked up FTS_NOATIME. Discussed at <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>. * lib/fts_.h (FTS_NOATIME): Remove bit flag. (FTS_OPTIONMASK): Adjust. * lib/fts.c (diropen, fts_open, fts_build): Likewise. (fd_ring_check): Likewise.
Bruno Haible 744e2d52 2018-10-09T01:44:07 csharpcomp*, csharpexec*: Remove support for pnet. * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set HAVE_CSCC. * build-aux/csharpcomp.sh.in (options_cscc): Remove variable. Don't test HAVE_CSCC. * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function. (compile_csharp_class): Don't invoke it. * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set HAVE_ILRUN. * build-aux/csharpexec.sh.in (options_ilrun): Remove variable. Don't test HAVE_ILRUN. * lib/csharpexec.c (execute_csharp_using_pnet): Remove function. (execute_csharp_program): Don't invoke it. * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet any more.
Paul Eggert fd04e11f 2018-10-08T11:32:09 autoupdate
Andreas Henriksson c50cf67b 2018-10-07T15:01:07 renameatu: prefer renameat2 to syscall * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]: Use renameat2 instead of syscall (Bug#32796). * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
Bruno Haible 4719603f 2018-10-05T21:54:56 strpbrk: Make it possible to namespace the defined symbol. * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
Bruno Haible f6b7c876 2018-10-05T21:54:14 strcspn: Make it possible to namespace the defined symbol. * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
Bruno Haible a50f188c 2018-10-05T21:53:24 raise: Make it possible to namespace the defined symbol. * lib/raise.c (raise): Undefine only after the replacement function has been defined. (raise): Renamed from rpl_raise. (raise_nothrow): Move to the end of the compilation unit.
Bruno Haible a738b735 2018-10-05T21:50:47 memcmp: Make it possible to namespace the defined symbol. * lib/memcmp.c (memcmp): Don't undefine outside of glibc.