gnulib.git
25 years ago. SH-UTILS-1_16h
Jim Meyering [Mon, 3 May 1999 02:46:54 +0000 (02:46 +0000)]
.

25 years ago(read_utmp): Ignore the return value from utmpname.
Jim Meyering [Mon, 3 May 1999 02:38:50 +0000 (02:38 +0000)]
(read_utmp): Ignore the return value from utmpname.

25 years ago*** empty log message ***
Jim Meyering [Sat, 1 May 1999 04:13:56 +0000 (04:13 +0000)]
*** empty log message ***

25 years ago(AC_REPLACE_FUNCS): Add dup2.
Jim Meyering [Sat, 1 May 1999 04:13:45 +0000 (04:13 +0000)]
(AC_REPLACE_FUNCS): Add dup2.

25 years ago(utime_null): Don't pass 0666 to open; it's not needed and isn't
Jim Meyering [Mon, 26 Apr 1999 13:25:08 +0000 (13:25 +0000)]
(utime_null): Don't pass 0666 to open; it's not needed and isn't
guaranteed to be portable.

25 years ago(S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined.
Jim Meyering [Mon, 26 Apr 1999 13:22:23 +0000 (13:22 +0000)]
(S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined.
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.

25 years ago(make_node_op_equals, mode_compile, mode_create_from_ref, mode_adjust):
Jim Meyering [Mon, 26 Apr 1999 13:19:37 +0000 (13:19 +0000)]
(make_node_op_equals, mode_compile, mode_create_from_ref, mode_adjust):
Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
modechange.h now includes sys/types.h.
Include xstrtol.h.
(isodigit, oatoi): Remove.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP,
S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXU, S_IRWXG,
S_IRWXO): Define if not defined.
(CHMOD_MODE_BITS): New macro.
(mode_compile): Convert from octal with xstrtoul, not our own routine.

25 years agoInclude <config.h>, <sys/types.h> for mode_t.
Jim Meyering [Mon, 26 Apr 1999 13:13:59 +0000 (13:13 +0000)]
Include <config.h>, <sys/types.h> for mode_t.
(struct mode_change): Members affected and value are now mode_t instead
of unsigned short.

25 years ago<config.h>, <sys/types.h>: Include for mode_t.
Jim Meyering [Mon, 26 Apr 1999 13:13:36 +0000 (13:13 +0000)]
<config.h>, <sys/types.h>: Include for mode_t.
(mode_string): Now takes mode_t.

25 years ago(make_path): Use proper mode_t types and macros.
Jim Meyering [Mon, 26 Apr 1999 13:13:00 +0000 (13:13 +0000)]
(make_path): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRWXU): Define if not defined.

25 years ago(setst, ftypelet, mode_string): Use proper mode_t types and macros.
Jim Meyering [Mon, 26 Apr 1999 13:10:11 +0000 (13:10 +0000)]
(setst, ftypelet, mode_string): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
(S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): Define if not defined.
<config.h>, <sys/types.h>: Include for mode_t.
(mode_string): Now takes mode_t.

25 years ago<inttypes.h>: Include it here instead.
Jim Meyering [Sun, 25 Apr 1999 19:20:18 +0000 (19:20 +0000)]
<inttypes.h>: Include it here instead.
<config.h>: Include it here too.

25 years agoDon't include inttypes.h here.
Jim Meyering [Sun, 25 Apr 1999 19:18:55 +0000 (19:18 +0000)]
Don't include inttypes.h here.

25 years ago. FILEUTILS-4_0g
Jim Meyering [Sat, 24 Apr 1999 12:57:43 +0000 (12:57 +0000)]
.

25 years agoGuard strong_alias and weak_alias with #ifdef _LIBC.
Jim Meyering [Thu, 22 Apr 1999 14:35:59 +0000 (14:35 +0000)]
Guard strong_alias and weak_alias with #ifdef _LIBC.

25 years ago.
Jim Meyering [Wed, 21 Apr 1999 23:17:13 +0000 (23:17 +0000)]
.

25 years ago.
Jim Meyering [Wed, 21 Apr 1999 04:30:22 +0000 (04:30 +0000)]
.

25 years ago.
Jim Meyering [Wed, 21 Apr 1999 04:30:22 +0000 (04:30 +0000)]
.

25 years agoRemove the temporary strtoumax replacement;
Jim Meyering [Wed, 21 Apr 1999 04:28:36 +0000 (04:28 +0000)]
Remove the temporary strtoumax replacement;
we now have a true replacement in strtoumax.c.
(__strtol): Always define to strtoumax.
(<stdlib.h>): No need to include.
(PARAMS): Remove.
(my_strtoumax): Move this to strtoumax.c,
rename it to strtoumax, and simplify.

25 years agoUpdate to glibc 2.1.1 version.
Jim Meyering [Wed, 21 Apr 1999 04:27:24 +0000 (04:27 +0000)]
Update to glibc 2.1.1 version.

25 years ago.
Jim Meyering [Wed, 21 Apr 1999 04:24:39 +0000 (04:24 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:22:15 +0000 (04:22 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:21:50 +0000 (04:21 +0000)]
*** empty log message ***

25 years ago(jm_CHECK_ALL_TYPES): Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
Jim Meyering [Wed, 21 Apr 1999 04:21:44 +0000 (04:21 +0000)]
(jm_CHECK_ALL_TYPES): Require jm_AC_TYPE_UNSIGNED_LONG_LONG.

25 years ago(AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
Jim Meyering [Wed, 21 Apr 1999 04:14:59 +0000 (04:14 +0000)]
(AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.

25 years ago*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:04:20 +0000 (04:04 +0000)]
*** empty log message ***

25 years ago(jm_AC_TYPE_UINTMAX_T): Move unsigned long
Jim Meyering [Wed, 21 Apr 1999 04:04:04 +0000 (04:04 +0000)]
(jm_AC_TYPE_UINTMAX_T): Move unsigned long
long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.

25 years agoRequire jm_AC_TYPE_UNSIGNED_LONG_LONG.
Jim Meyering [Wed, 21 Apr 1999 04:00:38 +0000 (04:00 +0000)]
Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
Replace xstroull if necessary.

25 years ago*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 03:58:57 +0000 (03:58 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Wed, 21 Apr 1999 02:29:50 +0000 (02:29 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 02:21:57 +0000 (02:21 +0000)]
*** empty log message ***

25 years agoPort to AIX and HP-UX. Support cross-compilation.
Jim Meyering [Wed, 21 Apr 1999 02:21:47 +0000 (02:21 +0000)]
Port to AIX and HP-UX.  Support cross-compilation.

25 years ago(my_strtoumax): Fix typo in computing
Jim Meyering [Tue, 20 Apr 1999 13:24:14 +0000 (13:24 +0000)]
(my_strtoumax): Fix typo in computing
whether overflow occurred.  Improve overflow-detection to use
only one conditional branch total, rather than 2N+1
conditional branches for an N-digit number.

25 years ago. TEXTUTILS-1_22j
Jim Meyering [Mon, 19 Apr 1999 04:20:57 +0000 (04:20 +0000)]
.

25 years agoRequire jm_AC_PREREQ_XSTRTOUMAX.
Jim Meyering [Mon, 19 Apr 1999 02:54:48 +0000 (02:54 +0000)]
Require jm_AC_PREREQ_XSTRTOUMAX.

25 years ago*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 02:53:36 +0000 (02:53 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Mon, 19 Apr 1999 02:42:58 +0000 (02:42 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 00:20:36 +0000 (00:20 +0000)]
*** empty log message ***

25 years agoInclude xstrtol.h, not xstrtoul.h, since xstrtol.h now defines all the
Jim Meyering [Sun, 18 Apr 1999 23:18:32 +0000 (23:18 +0000)]
Include xstrtol.h, not xstrtoul.h, since xstrtol.h now defines all the
xstrto... functions.

25 years ago<stdlib.h>: Include if HAVE_STDLIB_H, since bison 1.27 invokes "free".
Jim Meyering [Sun, 18 Apr 1999 23:17:30 +0000 (23:17 +0000)]
<stdlib.h>: Include if HAVE_STDLIB_H, since bison 1.27 invokes "free".
(LookupWord, yylex): Don't pass negative char to ctype macros.

25 years ago(xalloc_fail): Pass xalloc_msg_memory_exhausted through gettext.
Jim Meyering [Sun, 18 Apr 1999 23:17:05 +0000 (23:17 +0000)]
(xalloc_fail): Pass xalloc_msg_memory_exhausted through gettext.

25 years ago(libfu_a_SOURCES): Add xstrtoumax.c.
Jim Meyering [Sun, 18 Apr 1999 23:16:49 +0000 (23:16 +0000)]
(libfu_a_SOURCES): Add xstrtoumax.c.
(noinst_HEADERS): Remove xstrtoul.h.

25 years ago(__xstrtol, __strtol, __unsigned): Remove macro decls.
Jim Meyering [Sun, 18 Apr 1999 23:16:23 +0000 (23:16 +0000)]
(__xstrtol, __strtol, __unsigned): Remove macro decls.
<inttypes.h>: Include if HAVE_INTTYPES_H.
(_DECLARE_XSTRTOL): New macro.
(xstrtol, xstrtoul, xstrtoumax): Declare all three functions, so that
we need only one include file, not three.
(_STRTOL_ERROR): Do not undef, as this is no longer needed.
Reword overflow message so that it's independent of type.

25 years ago(__strtol, __strtol_t, __xstrtol):
Jim Meyering [Sun, 18 Apr 1999 23:15:34 +0000 (23:15 +0000)]
(__strtol, __strtol_t, __xstrtol):
New macros to specify the
underlying function, its returned type, and our function.  Default to
values suitable for xstrtol.

Include <ctype.h>, since we use its macros.

(ULONG_MAX, LONG_MAX, ISBLANK): Remove: no longer needed.
(ISSPACE): New macro.

(bkm_scale, bkm_scale_by_power, __xstrtol, main): __unsigned long int
-> __strtol_t.

(__xstrtol): Depend on whether __strtol_t is an unsigned type, not on
whether STRING_TO_UNSIGNED is defined.  Skip isspace chars, not
isblank chars, to match strtol.  When returning
LONGINT_INVALID_SUFFIX_CHAR, store the value that we computed into
*val.

25 years ago(STRING_TO_UNSIGNED): Remove.
Jim Meyering [Sun, 18 Apr 1999 23:15:02 +0000 (23:15 +0000)]
(STRING_TO_UNSIGNED): Remove.
(__strtol, __strtol_t, __xstrtol): New macros.

25 years ago.
Jim Meyering [Thu, 15 Apr 1999 14:09:04 +0000 (14:09 +0000)]
.

25 years ago(readtoken, readtokens): Protoize. TEXTUTILS-1_22i
Jim Meyering [Sun, 11 Apr 1999 13:25:52 +0000 (13:25 +0000)]
(readtoken, readtokens): Protoize.

25 years ago(difftm): Protoize. FILEUTILS-4_0f
Jim Meyering [Wed, 7 Apr 1999 17:43:36 +0000 (17:43 +0000)]
(difftm): Protoize.

25 years ago.
Jim Meyering [Wed, 7 Apr 1999 17:41:57 +0000 (17:41 +0000)]
.

25 years agoUpdate from master source in libc, removing %f.
Jim Meyering [Tue, 6 Apr 1999 14:22:06 +0000 (14:22 +0000)]
Update from master source in libc, removing %f.

25 years ago*** empty log message ***
Jim Meyering [Tue, 6 Apr 1999 14:15:04 +0000 (14:15 +0000)]
*** empty log message ***

25 years agoRemove test for %f.
Jim Meyering [Tue, 6 Apr 1999 14:14:58 +0000 (14:14 +0000)]
Remove test for %f.

25 years agofix comments FILEUTILS-4_0e
Jim Meyering [Sun, 4 Apr 1999 14:30:30 +0000 (14:30 +0000)]
fix comments
add FIXME

25 years ago.
Jim Meyering [Wed, 31 Mar 1999 15:21:00 +0000 (15:21 +0000)]
.

25 years ago.
Jim Meyering [Tue, 30 Mar 1999 04:52:57 +0000 (04:52 +0000)]
.

25 years ago(make_node_op_equals): New function.
Jim Meyering [Tue, 30 Mar 1999 04:51:08 +0000 (04:51 +0000)]
(make_node_op_equals): New function.
(mode_append_entry): Likewise.
(mode_compile): When none of [ugoa] is specified in an `=OP' change
mode request, insert a `=0' entry into the linked list so that all
bits are cleared first.  Use the new functions.

25 years ago(rmdir): Use pid_t instead of int; check status
Jim Meyering [Tue, 30 Mar 1999 04:48:41 +0000 (04:48 +0000)]
(rmdir): Use pid_t instead of int; check status
against zero.  This is to improve portability.

25 years ago(rename): Use pid_t instead of int; check status
Jim Meyering [Tue, 30 Mar 1999 04:48:17 +0000 (04:48 +0000)]
(rename): Use pid_t instead of int; check status
against zero.  This is to improve portability.

25 years ago(mkdir): Use pid_t instead of int; check status
Jim Meyering [Tue, 30 Mar 1999 04:47:52 +0000 (04:47 +0000)]
(mkdir): Use pid_t instead of int; check status
against zero.  This is to improve portability.

25 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 1999 04:36:00 +0000 (04:36 +0000)]
*** empty log message ***

25 years ago(jm_CHECK_ALL_TYPES): New macro.
Jim Meyering [Tue, 30 Mar 1999 04:29:19 +0000 (04:29 +0000)]
(jm_CHECK_ALL_TYPES): New macro.

25 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 1999 04:39:56 +0000 (04:39 +0000)]
*** empty log message ***

25 years agoDefine GNU_PACKAGE here.
Jim Meyering [Mon, 29 Mar 1999 04:39:50 +0000 (04:39 +0000)]
Define GNU_PACKAGE here.
Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
replaced e.g., in the *.sh files of the sh-utils.

25 years ago(get_date): Reuse tm_isdst of first localtime
Jim Meyering [Sun, 28 Mar 1999 20:58:51 +0000 (20:58 +0000)]
(get_date): Reuse tm_isdst of first localtime
call; this is an improvement on a bug fix suggested by
martin@dresden.nacamar.de.  Do not assume that localtime and
gmtime return non-null.
From Paul Eggert.

25 years ago(mode_compile): Upon allocation failure, free
Jim Meyering [Sun, 28 Mar 1999 05:44:33 +0000 (05:44 +0000)]
(mode_compile): Upon allocation failure, free
everything starting with the head, not the tail.

25 years ago.
Jim Meyering [Sat, 27 Mar 1999 23:08:02 +0000 (23:08 +0000)]
.

25 years ago.
Jim Meyering [Fri, 26 Mar 1999 14:27:18 +0000 (14:27 +0000)]
.

25 years ago.
Jim Meyering [Fri, 26 Mar 1999 04:23:01 +0000 (04:23 +0000)]
.

25 years ago(libfu_a_SOURCES): Add version-etc.c.
Jim Meyering [Fri, 26 Mar 1999 04:20:23 +0000 (04:20 +0000)]
(libfu_a_SOURCES): Add version-etc.c.
(noinst_HEADERS): Add version-etc.h.

25 years ago(parse_long_options): Remove version-, copyright-,
Jim Meyering [Fri, 26 Mar 1999 04:19:07 +0000 (04:19 +0000)]
(parse_long_options): Remove version-, copyright-,
and author-printing code.  Do it via version_etc.

25 years ago*** empty log message ***
Jim Meyering [Fri, 26 Mar 1999 04:17:33 +0000 (04:17 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Sat, 20 Mar 1999 23:25:35 +0000 (23:25 +0000)]
.

25 years ago.
Jim Meyering [Sat, 20 Mar 1999 23:24:55 +0000 (23:24 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Mar 1999 23:24:23 +0000 (23:24 +0000)]
*** empty log message ***

25 years agos/jm_WITH_REGEX/jm_INCLUDED_REGEX/
Jim Meyering [Sat, 20 Mar 1999 23:24:15 +0000 (23:24 +0000)]
s/jm_WITH_REGEX/jm_INCLUDED_REGEX/

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Mar 1999 23:23:20 +0000 (23:23 +0000)]
*** empty log message ***

25 years ago(jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
Jim Meyering [Sat, 20 Mar 1999 23:23:14 +0000 (23:23 +0000)]
(jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Mar 1999 04:02:37 +0000 (04:02 +0000)]
*** empty log message ***

25 years ago(jm_WINSIZE_IN_PTEM): New macro.
Jim Meyering [Sat, 20 Mar 1999 04:02:23 +0000 (04:02 +0000)]
(jm_WINSIZE_IN_PTEM): New macro.

25 years ago.
Jim Meyering [Wed, 17 Mar 1999 21:16:01 +0000 (21:16 +0000)]
.

25 years ago(is_prime): Return bool rather than int.
Jim Meyering [Wed, 17 Mar 1999 14:07:34 +0000 (14:07 +0000)]
(is_prime): Return bool rather than int.

25 years agotweak comments
Jim Meyering [Mon, 15 Mar 1999 16:52:22 +0000 (16:52 +0000)]
tweak comments
add curlies
use assert(0) in place of abort

25 years agoRevamp to allow fine-tuning to control when and by how
Jim Meyering [Mon, 15 Mar 1999 15:50:31 +0000 (15:50 +0000)]
Revamp to allow fine-tuning to control when and by how
much the table grows and shrinks.
(next_prime): Don't assert.
(hash_reset_tuning): New function.
(check_tuning): New function.
(hash_initialize): Accept and use new tuning parameter.
(hash_rehash): Rewrite, updating for tuning.
(hash_insert): Honor tuning semantics.
(hash_delete): Likewise.
From François Pinard.

25 years ago(struct hash_tuning): Define.
Jim Meyering [Mon, 15 Mar 1999 15:41:59 +0000 (15:41 +0000)]
(struct hash_tuning): Define.
(struct hash_table) [tuning]: Add member.
(hash_initialize): Add `tuning' parameter.

25 years ago(hash_insert): Update prototype.
Jim Meyering [Mon, 15 Mar 1999 15:33:21 +0000 (15:33 +0000)]
(hash_insert): Update prototype.

25 years ago(hash_insert): Remove last parameter and change semantics.
Jim Meyering [Mon, 15 Mar 1999 15:33:01 +0000 (15:33 +0000)]
(hash_insert): Remove last parameter and change semantics.

(hash_insert): Don't increment n_entries unconditionally --
otherwise, we'd do so even when the insertion failed.
From François Pinard.

25 years ago*** empty log message ***
Jim Meyering [Sat, 13 Mar 1999 16:19:18 +0000 (16:19 +0000)]
*** empty log message ***

25 years ago(base_name): If NAME is all slashes, return `/' (in
Jim Meyering [Sat, 13 Mar 1999 16:09:00 +0000 (16:09 +0000)]
(base_name): If NAME is all slashes, return `/' (in
conformance with the single unix spec).  Reported by Peter Moulder.

25 years ago*** empty log message ***
Jim Meyering [Fri, 12 Mar 1999 15:11:29 +0000 (15:11 +0000)]
*** empty log message ***

25 years agoUse AC_FUNC_SETVBUF_REVERSED.
Jim Meyering [Fri, 12 Mar 1999 15:11:06 +0000 (15:11 +0000)]
Use AC_FUNC_SETVBUF_REVERSED.

25 years ago(canon_host): Don't use he->h_addr directly.
Jim Meyering [Wed, 10 Mar 1999 15:39:02 +0000 (15:39 +0000)]
(canon_host): Don't use he->h_addr directly.
Based on a patch from Savochkin Andrey Vladimirovich.

25 years ago(getugroups): Take new parameter, gid.
Jim Meyering [Wed, 10 Mar 1999 15:35:47 +0000 (15:35 +0000)]
(getugroups): Take new parameter, gid.
Add gid to the list of groups.
From Ulrich Drepper.

25 years agofix typo in comment.
Jim Meyering [Tue, 9 Mar 1999 18:53:54 +0000 (18:53 +0000)]
fix typo in comment.

25 years agofix small thinko
Jim Meyering [Tue, 9 Mar 1999 16:10:30 +0000 (16:10 +0000)]
fix small thinko

25 years ago(getugroups): Take new parameter, gid.
Jim Meyering [Tue, 9 Mar 1999 16:07:49 +0000 (16:07 +0000)]
(getugroups): Take new parameter, gid.
Add gid to the list of groups.
From Ulrich Drepper.

25 years agoprotoize
Jim Meyering [Tue, 9 Mar 1999 16:07:16 +0000 (16:07 +0000)]
protoize

25 years ago(xalloc_fail): Use "%s" format so the message doesn't
Jim Meyering [Mon, 8 Mar 1999 02:43:14 +0000 (02:43 +0000)]
(xalloc_fail): Use "%s" format so the message doesn't
have to be scanned for % signs.  Suggestion from François Pinard.

25 years agorestore blank lines in --version output
Jim Meyering [Sun, 7 Mar 1999 17:48:10 +0000 (17:48 +0000)]
restore blank lines in --version output

25 years ago*** empty log message ***
Jim Meyering [Sun, 7 Mar 1999 16:59:29 +0000 (16:59 +0000)]
*** empty log message ***

25 years agoUse only those *_unlocked macros that are declared.
Jim Meyering [Sun, 7 Mar 1999 16:59:21 +0000 (16:59 +0000)]
Use only those *_unlocked macros that are declared.