Jim Meyering [Sun, 4 Jul 1999 08:34:31 +0000 (08:34 +0000)]
(__strtol): Remove decl; it doesn't work if __strtol
expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
(strtol, strtoul): New decls (for pre-ANSI hosts), to replace
the above decl.
Jim Meyering [Sun, 23 May 1999 21:06:36 +0000 (21:06 +0000)]
.
Jim Meyering [Sun, 23 May 1999 20:44:48 +0000 (20:44 +0000)]
.
Jim Meyering [Sun, 23 May 1999 20:40:59 +0000 (20:40 +0000)]
(libfu_a_SOURCES): Add same.c.
(noinst_HEADERS): Add same.h.
Jim Meyering [Sun, 23 May 1999 19:43:10 +0000 (19:43 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 19:42:59 +0000 (19:42 +0000)]
New file (function extracted from ln.c).
Jim Meyering [Sat, 22 May 1999 22:02:00 +0000 (22:02 +0000)]
*** empty log message ***
Jim Meyering [Sat, 22 May 1999 22:00:42 +0000 (22:00 +0000)]
(AC_REPLACE_FUNCS): Add memchr.
Jim Meyering [Sat, 22 May 1999 04:24:10 +0000 (04:24 +0000)]
.
Jim Meyering [Fri, 21 May 1999 20:47:18 +0000 (20:47 +0000)]
remove trailing newline
Jim Meyering [Thu, 20 May 1999 20:12:17 +0000 (20:12 +0000)]
.
Jim Meyering [Thu, 20 May 1999 20:12:12 +0000 (20:12 +0000)]
[AC_SEARCH_LIBS]: Quote name in undefine.
Add a colon after each `then' in case $4 is empty.
Jim Meyering [Thu, 20 May 1999 03:49:25 +0000 (03:49 +0000)]
add the comment to go with last change
Jim Meyering [Thu, 20 May 1999 03:47:24 +0000 (03:47 +0000)]
(get_date): Let mktime deduce tm_isdst if we
have an absolute timestamp, or if the relative timestamp
mentions days, months, or years.
Jim Meyering [Mon, 17 May 1999 13:03:46 +0000 (13:03 +0000)]
(human_readable): Allow from_block_size to be zero.
Jim Meyering [Sun, 16 May 1999 16:54:01 +0000 (16:54 +0000)]
.
Jim Meyering [Sun, 16 May 1999 15:48:43 +0000 (15:48 +0000)]
.
Jim Meyering [Sun, 16 May 1999 15:48:11 +0000 (15:48 +0000)]
New file to override autoconf's AC_SEARCH_LIBS.
Jim Meyering [Sat, 15 May 1999 05:46:45 +0000 (05:46 +0000)]
.
Jim Meyering [Sat, 15 May 1999 04:50:26 +0000 (04:50 +0000)]
(getugroups): Don't dereference a null pointer when
running `id USER' for some USER that is listed on the RHS in /etc/group.
From Sander van Malssen.
Add some curly braces, use STREQ, reverse the sense of a test
and use `continue' to save a level of nesting.
Jim Meyering [Fri, 14 May 1999 17:11:03 +0000 (17:11 +0000)]
(version_etc): Put version info and author names
on the first two lines respectively rather than putting the three
lines of copyright info between them.
Jim Meyering [Thu, 13 May 1999 20:48:44 +0000 (20:48 +0000)]
Include <string.h> or <strings.h> for strlen prototype.
Jim Meyering [Thu, 13 May 1999 20:44:45 +0000 (20:44 +0000)]
[__GLIBC__ >= 2]: #if-out prototypes.
Jim Meyering [Wed, 12 May 1999 02:10:38 +0000 (02:10 +0000)]
*** empty log message ***
Jim Meyering [Tue, 11 May 1999 16:30:03 +0000 (16:30 +0000)]
*** empty log message ***
Jim Meyering [Tue, 11 May 1999 16:29:33 +0000 (16:29 +0000)]
Fix typos in config.h comments.
Jim Meyering [Mon, 10 May 1999 05:18:30 +0000 (05:18 +0000)]
Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
Jim Meyering [Mon, 10 May 1999 05:17:38 +0000 (05:17 +0000)]
Require 2.14.1, since we use newly-renamed AC_FUNC_MKTIME.
Jim Meyering [Mon, 10 May 1999 04:24:49 +0000 (04:24 +0000)]
Update from libc.
Jim Meyering [Sun, 9 May 1999 15:04:17 +0000 (15:04 +0000)]
.
Jim Meyering [Fri, 7 May 1999 18:52:35 +0000 (18:52 +0000)]
.
Jim Meyering [Thu, 6 May 1999 02:10:34 +0000 (02:10 +0000)]
(make_dir): When reporting a mkdir failure and the
target cannot be `stat'ed, use the errno from the failed mkdir call,
not the one from the stat call. Before this change, running
`mkdir -p /no-dir/no-dir' as an unprivileged user would wrongly
elicit `No such file or directory' instead of `Permission denied'.
Jim Meyering [Wed, 5 May 1999 13:34:18 +0000 (13:34 +0000)]
(read_utmp): Use the new definitions.
Jim Meyering [Wed, 5 May 1999 13:34:02 +0000 (13:34 +0000)]
Add definitions to help read utmpx on systems with utmpname.
(UTMP_NAME_FUNCTION): Define.
(SET_UTMP_ENT): Likewise.
(GET_UTMP_ENT): Likewise.
(END_UTMP_ENT): Likewise.
Jim Meyering [Wed, 5 May 1999 13:21:29 +0000 (13:21 +0000)]
(TYPE_SIGNED, TYPE_MAXIMUM, TYPE_MINIMUM): Define.
(ULONG_LONG_MAX, LONG_LONG_MAX, LONG_LONG_MIN): Define if not defined.
Based on a patch from Kaveh Ghazi.
Jim Meyering [Wed, 5 May 1999 03:05:11 +0000 (03:05 +0000)]
Include makepath.h libintl.h, not after it.
Otherwise, we'd get the wrong definition of PARAMS from libintl.h.
(The method of defining PARAMS in libintl.h doesn't check PROTOTYPES,
which is necessary on Irix4 since cc doesn't define __STDC__.)
From Kaveh Ghazi.
Jim Meyering [Tue, 4 May 1999 21:13:54 +0000 (21:13 +0000)]
*** empty log message ***
Jim Meyering [Tue, 4 May 1999 21:13:47 +0000 (21:13 +0000)]
(AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
not CPPFLAGS, so that linking works correctly in IRIX.
Jim Meyering [Mon, 3 May 1999 02:46:54 +0000 (02:46 +0000)]
.
Jim Meyering [Mon, 3 May 1999 02:38:50 +0000 (02:38 +0000)]
(read_utmp): Ignore the return value from utmpname.
Jim Meyering [Sat, 1 May 1999 04:13:56 +0000 (04:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 May 1999 04:13:45 +0000 (04:13 +0000)]
(AC_REPLACE_FUNCS): Add dup2.
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.
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.
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.
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.
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.
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.
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.
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.
Jim Meyering [Sun, 25 Apr 1999 19:18:55 +0000 (19:18 +0000)]
Don't include inttypes.h here.
Jim Meyering [Sat, 24 Apr 1999 12:57:43 +0000 (12:57 +0000)]
.
Jim Meyering [Thu, 22 Apr 1999 14:35:59 +0000 (14:35 +0000)]
Guard strong_alias and weak_alias with #ifdef _LIBC.
Jim Meyering [Wed, 21 Apr 1999 23:17:13 +0000 (23:17 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 04:30:22 +0000 (04:30 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 04:30:22 +0000 (04:30 +0000)]
.
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.
Jim Meyering [Wed, 21 Apr 1999 04:27:24 +0000 (04:27 +0000)]
Update to glibc 2.1.1 version.
Jim Meyering [Wed, 21 Apr 1999 04:24:39 +0000 (04:24 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 04:22:15 +0000 (04:22 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:21:50 +0000 (04:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 04:21:44 +0000 (04:21 +0000)]
(jm_CHECK_ALL_TYPES): Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
Jim Meyering [Wed, 21 Apr 1999 04:14:59 +0000 (04:14 +0000)]
(AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
Jim Meyering [Wed, 21 Apr 1999 04:04:20 +0000 (04:04 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 21 Apr 1999 04:00:38 +0000 (04:00 +0000)]
Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
Replace xstroull if necessary.
Jim Meyering [Wed, 21 Apr 1999 03:58:57 +0000 (03:58 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 02:29:50 +0000 (02:29 +0000)]
.
Jim Meyering [Wed, 21 Apr 1999 02:21:57 +0000 (02:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Apr 1999 02:21:47 +0000 (02:21 +0000)]
Port to AIX and HP-UX. Support cross-compilation.
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.
Jim Meyering [Mon, 19 Apr 1999 04:20:57 +0000 (04:20 +0000)]
.
Jim Meyering [Mon, 19 Apr 1999 02:54:48 +0000 (02:54 +0000)]
Require jm_AC_PREREQ_XSTRTOUMAX.
Jim Meyering [Mon, 19 Apr 1999 02:53:36 +0000 (02:53 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Apr 1999 02:42:58 +0000 (02:42 +0000)]
.
Jim Meyering [Mon, 19 Apr 1999 00:20:36 +0000 (00:20 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Sun, 18 Apr 1999 23:17:05 +0000 (23:17 +0000)]
(xalloc_fail): Pass xalloc_msg_memory_exhausted through gettext.
Jim Meyering [Sun, 18 Apr 1999 23:16:49 +0000 (23:16 +0000)]
(libfu_a_SOURCES): Add xstrtoumax.c.
(noinst_HEADERS): Remove xstrtoul.h.
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.
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.
Jim Meyering [Sun, 18 Apr 1999 23:15:02 +0000 (23:15 +0000)]
(STRING_TO_UNSIGNED): Remove.
(__strtol, __strtol_t, __xstrtol): New macros.
Jim Meyering [Thu, 15 Apr 1999 14:09:04 +0000 (14:09 +0000)]
.
Jim Meyering [Sun, 11 Apr 1999 13:25:52 +0000 (13:25 +0000)]
(readtoken, readtokens): Protoize.
Jim Meyering [Wed, 7 Apr 1999 17:43:36 +0000 (17:43 +0000)]
(difftm): Protoize.
Jim Meyering [Wed, 7 Apr 1999 17:41:57 +0000 (17:41 +0000)]
.
Jim Meyering [Tue, 6 Apr 1999 14:22:06 +0000 (14:22 +0000)]
Update from master source in libc, removing %f.
Jim Meyering [Tue, 6 Apr 1999 14:15:04 +0000 (14:15 +0000)]
*** empty log message ***
Jim Meyering [Tue, 6 Apr 1999 14:14:58 +0000 (14:14 +0000)]
Remove test for %f.
Jim Meyering [Sun, 4 Apr 1999 14:30:30 +0000 (14:30 +0000)]
fix comments
add FIXME
Jim Meyering [Wed, 31 Mar 1999 15:21:00 +0000 (15:21 +0000)]
.
Jim Meyering [Tue, 30 Mar 1999 04:52:57 +0000 (04:52 +0000)]
.
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.
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.
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.
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.
Jim Meyering [Tue, 30 Mar 1999 04:36:00 +0000 (04:36 +0000)]
*** empty log message ***
Jim Meyering [Tue, 30 Mar 1999 04:29:19 +0000 (04:29 +0000)]
(jm_CHECK_ALL_TYPES): New macro.
Jim Meyering [Mon, 29 Mar 1999 04:39:56 +0000 (04:39 +0000)]
*** empty log message ***