Karl Berry [Mon, 6 Dec 2004 21:45:21 +0000 (21:45 +0000)]
autoupdate
Karl Berry [Mon, 6 Dec 2004 09:30:29 +0000 (09:30 +0000)]
.
Paul Eggert [Sun, 5 Dec 2004 06:52:28 +0000 (06:52 +0000)]
* modules/hard-locale (Depends-on): Add strdup.
Paul Eggert [Sun, 5 Dec 2004 06:52:12 +0000 (06:52 +0000)]
(Depends-on): Add strdup.
Paul Eggert [Sun, 5 Dec 2004 06:50:15 +0000 (06:50 +0000)]
Import chamges from coreutils, so that the code now assumes
that <locale.h> and its functions exist.
Simon Josefsson [Sat, 4 Dec 2004 19:00:45 +0000 (19:00 +0000)]
modules/getaddrinfo (License): Add LGPL, reported by Yoann
Vandoorselaere <yoann@prelude-ids.org>.
Paul Eggert [Fri, 3 Dec 2004 06:36:56 +0000 (06:36 +0000)]
.
Paul Eggert [Fri, 3 Dec 2004 06:35:48 +0000 (06:35 +0000)]
* mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
convert T2, not T. (Imported from libc.)
Paul Eggert [Fri, 3 Dec 2004 06:35:31 +0000 (06:35 +0000)]
(__mktime_internal): If SEC_REQUESTED != SEC,
convert T2, not T. (Imported from libc.)
Paul Eggert [Wed, 1 Dec 2004 07:31:23 +0000 (07:31 +0000)]
Import getcwd and readutmp changes from coreutils.
Paul Eggert [Wed, 1 Dec 2004 07:31:00 +0000 (07:31 +0000)]
Import readutmp and getcwd changes from gnulib.
Paul Eggert [Wed, 1 Dec 2004 07:30:25 +0000 (07:30 +0000)]
(gl_READUTMP): Don't check for sys/param.h.
Paul Eggert [Wed, 1 Dec 2004 07:30:05 +0000 (07:30 +0000)]
Don't include <errno.h>,
<sys/param.h>, <time.h>; not needed to establish interface.
(errno): Remove decl.
(HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
(UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
Paul Eggert [Wed, 1 Dec 2004 07:29:45 +0000 (07:29 +0000)]
Include readutmp.h first.
Include <errno.h>, since readutmp.h no longer does that.
Paul Eggert [Wed, 1 Dec 2004 07:27:18 +0000 (07:27 +0000)]
(gl_FUNC_GETCWD_PATH_MAX):
Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
Paul Eggert [Wed, 1 Dec 2004 07:26:53 +0000 (07:26 +0000)]
(is_ENAMETOOLONG): New macro.
(__getcwd.c): Don't restore errno; glibc doesn't.
[HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
first, falling back to our code only if its results look suspicious.
Ensure that the resulting buffer is only as large as necessary.
Simon Josefsson [Tue, 30 Nov 2004 20:46:52 +0000 (20:46 +0000)]
Add base64.
Simon Josefsson [Tue, 30 Nov 2004 20:45:22 +0000 (20:45 +0000)]
(License): Change to LGPL.
Simon Josefsson [Tue, 30 Nov 2004 20:43:32 +0000 (20:43 +0000)]
Add copyright and copying conditions.
Karl Berry [Mon, 29 Nov 2004 18:37:47 +0000 (18:37 +0000)]
update from gnustandards
Paul Eggert [Sun, 28 Nov 2004 06:09:06 +0000 (06:09 +0000)]
* getcwd.h: New file, which I forgot to check in on 2004-11-25.
Paul Eggert [Sun, 28 Nov 2004 06:02:21 +0000 (06:02 +0000)]
Initial revision, imported from coreutils.
Karl Berry [Fri, 26 Nov 2004 13:34:22 +0000 (13:34 +0000)]
update from texinfo
Paul Eggert [Fri, 26 Nov 2004 08:35:29 +0000 (08:35 +0000)]
Merge from coreutils for getcwd and HP-UX 11.
Jim Meyering [Tue, 23 Nov 2004 21:43:35 +0000 (21:43 +0000)]
*** empty log message ***
Jim Meyering [Tue, 23 Nov 2004 21:43:14 +0000 (21:43 +0000)]
remove trailing blanks
Paul Eggert [Tue, 23 Nov 2004 21:00:28 +0000 (21:00 +0000)]
(gl_UTIMENS): Check for futimes function.
Paul Eggert [Tue, 23 Nov 2004 21:00:04 +0000 (21:00 +0000)]
* utimens.m4 (gl_UTIMENS): Check for futimes function.
Paul Eggert [Tue, 23 Nov 2004 20:59:50 +0000 (20:59 +0000)]
(futimens): New decl.
Paul Eggert [Tue, 23 Nov 2004 20:59:33 +0000 (20:59 +0000)]
(__attribute__, ATTRIBUTE_UNUSED): New macros.
(futimens): New function, which uses futimes if available.
(futimens, utimens): Support timespec==NULL, with same semantics
as utime and utimens.
Paul Eggert [Tue, 23 Nov 2004 20:59:12 +0000 (20:59 +0000)]
Add comment.
Paul Eggert [Tue, 23 Nov 2004 20:58:57 +0000 (20:58 +0000)]
Merge from coreutils.
Karl Berry [Tue, 23 Nov 2004 13:13:20 +0000 (13:13 +0000)]
update from texinfo
Karl Berry [Tue, 23 Nov 2004 08:59:44 +0000 (08:59 +0000)]
.
Paul Eggert [Tue, 23 Nov 2004 06:19:22 +0000 (06:19 +0000)]
* modules/canonicalize (Depends-on): Add xreadlink.
Paul Eggert [Tue, 23 Nov 2004 06:19:11 +0000 (06:19 +0000)]
(Depends-on): Add xreadlink.
Sergey Poznyakoff [Tue, 23 Nov 2004 02:52:44 +0000 (02:52 +0000)]
(gl_GETOPT): Check if GETOPT_H is already set, in
order not to spoil the result of an eventual previous invocation
of gl_GETOPT_SUBSTITUTE.
Sergey Poznyakoff [Tue, 23 Nov 2004 02:52:07 +0000 (02:52 +0000)]
(gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
argp-parse.c depends on getopt internals, that means we should
always use our getopt, to be on the safe side.
Sergey Poznyakoff [Tue, 23 Nov 2004 02:50:54 +0000 (02:50 +0000)]
Re-addition of __getopt_argv_const caused
redefinition warnings. To avoid them, include the defines
in `#if !defined __need_getopt ... #endif'. The only place
where __getopt_argv_const is used is in definitions
of getopt_long and getopt_long_only below, which are as well
protected by `#ifndef __need_getopt'.
[defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
__need_getopt after including <stdio.h> and <unistd.h> These
headers might have defined it.
Sergey Poznyakoff [Tue, 23 Nov 2004 02:50:02 +0000 (02:50 +0000)]
Updated
Paul Eggert [Sun, 21 Nov 2004 07:22:23 +0000 (07:22 +0000)]
Update log to match latest getopt checkin.
Paul Eggert [Sun, 21 Nov 2004 07:22:02 +0000 (07:22 +0000)]
Fix brain cramp in previous checkin.
Paul Eggert [Sun, 21 Nov 2004 05:11:14 +0000 (05:11 +0000)]
* getopt_.h: Use __CONCAT rather than ## directly.
Paul Eggert [Sun, 21 Nov 2004 05:10:10 +0000 (05:10 +0000)]
(__CONCAT): New macro.
(getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
optopt): Use it instead of invoking ## directly; otherwise, the
symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
Bruno Haible [Fri, 19 Nov 2004 13:46:41 +0000 (13:46 +0000)]
Move comments from strtok_r.c to strtok_r.h.
Karl Berry [Fri, 19 Nov 2004 13:18:58 +0000 (13:18 +0000)]
cannot sync getopt_int.h any more
Karl Berry [Fri, 19 Nov 2004 12:55:36 +0000 (12:55 +0000)]
update from texinfo
Paul Eggert [Wed, 17 Nov 2004 23:07:53 +0000 (23:07 +0000)]
realloc, calloc portability fixes.
Paul Eggert [Wed, 17 Nov 2004 23:07:37 +0000 (23:07 +0000)]
* calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc implementations
that mishandle size_t overflow.
Paul Eggert [Wed, 17 Nov 2004 23:07:25 +0000 (23:07 +0000)]
(_AC_FUNC_CALLOC_IF): Check for buggy calloc implementations
that mishandle size_t overflow.
Paul Eggert [Wed, 17 Nov 2004 23:05:47 +0000 (23:05 +0000)]
(rpl_calloc): Defend against buggy calloc implementations
that mishandle size_t overflow.
Paul Eggert [Wed, 17 Nov 2004 23:05:02 +0000 (23:05 +0000)]
Fix header comment to match module title.
Paul Eggert [Wed, 17 Nov 2004 22:48:23 +0000 (22:48 +0000)]
(rpl_realloc): Call 'free' if n==0, since realloc might fail.
Problem reported by Yoann Vandoorselaere.
Karl Berry [Wed, 17 Nov 2004 13:17:00 +0000 (13:17 +0000)]
.
Karl Berry [Wed, 17 Nov 2004 08:52:44 +0000 (08:52 +0000)]
.
Paul Eggert [Wed, 17 Nov 2004 07:32:27 +0000 (07:32 +0000)]
Add log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert [Wed, 17 Nov 2004 07:18:27 +0000 (07:18 +0000)]
Import from coreutils.
Paul Eggert [Wed, 17 Nov 2004 01:54:16 +0000 (01:54 +0000)]
Further getopt changes to make it more acceptable to glibc.
Paul Eggert [Wed, 17 Nov 2004 01:53:27 +0000 (01:53 +0000)]
(__getopt_argv_const): Bring it back.
(getopt_long, getopt_long_only): Use it.
Paul Eggert [Wed, 17 Nov 2004 01:52:50 +0000 (01:52 +0000)]
(getopt_long, getopt_long_only): Arg is char * const *
when compiling for libc.
Paul Eggert [Wed, 17 Nov 2004 01:52:35 +0000 (01:52 +0000)]
(POSIXLY_CORRECT): New constant.
Paul Eggert [Wed, 17 Nov 2004 01:13:54 +0000 (01:13 +0000)]
Merge from coreutils to support a more-standard getopt.
Jim Meyering [Tue, 16 Nov 2004 13:46:34 +0000 (13:46 +0000)]
*** empty log message ***
Jim Meyering [Tue, 16 Nov 2004 13:44:34 +0000 (13:44 +0000)]
(Depends-on): Add fpending.
Paul Eggert [Tue, 16 Nov 2004 08:25:50 +0000 (08:25 +0000)]
* getdate.y (tORDINAL): New token.
Paul Eggert [Tue, 16 Nov 2004 08:25:37 +0000 (08:25 +0000)]
(tORDINAL): New token.
(day, relunit): Allow it for relative times.
(relative_time_table): Use tORDINAL for ordinals.
Paul Eggert [Tue, 16 Nov 2004 08:25:13 +0000 (08:25 +0000)]
* getdate.texi (General date syntax): "next" is 1, not 2.
Paul Eggert [Tue, 16 Nov 2004 08:25:01 +0000 (08:25 +0000)]
getdate.texi (General date syntax): "next" is 1, not 2.
Document that "second" isn't allowed as an ordinal number.
Jim Meyering [Mon, 15 Nov 2004 17:46:17 +0000 (17:46 +0000)]
.
Jim Meyering [Mon, 15 Nov 2004 17:45:32 +0000 (17:45 +0000)]
Include "__fpending.h" once again.
Include <stdbool.h>.
(close_stdout): Don't fail just because stdout was closed initially,
since some programs don't write to stdout in the normal course of
operation (other than --version and --help), and we don't want this
function to make e.g. `touch file >&-' fail.
But do fail if it was closed and someone has tried to write to it.
E.g., `printf foo >&-' must fail.
Karl Berry [Sun, 14 Nov 2004 13:09:13 +0000 (13:09 +0000)]
.
Bruno Haible [Fri, 12 Nov 2004 16:55:30 +0000 (16:55 +0000)]
More caveats, taken from strtok_r.c.
Simon Josefsson [Fri, 12 Nov 2004 16:18:49 +0000 (16:18 +0000)]
Revert doc, suggested by Bruno.
Karl Berry [Fri, 12 Nov 2004 14:18:08 +0000 (14:18 +0000)]
.
Bruno Haible [Fri, 12 Nov 2004 13:06:40 +0000 (13:06 +0000)]
Add a cross-reference to strtok_r.
Karl Berry [Fri, 12 Nov 2004 09:07:35 +0000 (09:07 +0000)]
.
Simon Josefsson [Fri, 12 Nov 2004 00:09:08 +0000 (00:09 +0000)]
Remove buggy ChangeLog entry (sorry!).
Simon Josefsson [Fri, 12 Nov 2004 00:07:20 +0000 (00:07 +0000)]
Add strtok_r.
Simon Josefsson [Fri, 12 Nov 2004 00:05:45 +0000 (00:05 +0000)]
Add strtok_r.c.
Simon Josefsson [Fri, 12 Nov 2004 00:04:22 +0000 (00:04 +0000)]
Sync with glibc CVS.
Simon Josefsson [Fri, 12 Nov 2004 00:00:47 +0000 (00:00 +0000)]
Add strtok_r.
Simon Josefsson [Thu, 11 Nov 2004 23:49:55 +0000 (23:49 +0000)]
Add jas.
Paul Eggert [Thu, 11 Nov 2004 21:23:56 +0000 (21:23 +0000)]
* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
along with <unistd.h>.
Paul Eggert [Thu, 11 Nov 2004 21:16:28 +0000 (21:16 +0000)]
(_getopt_internal, _getopt_internal_r, _getopt_long_r, _getopt_long_only_r):
Use __getopt_argv_count.
Paul Eggert [Thu, 11 Nov 2004 21:16:03 +0000 (21:16 +0000)]
(getopt_long, _getopt_long_r, getopt_long_only, _getopt_long_only_r):
Use __getopt_argv_const.
Paul Eggert [Thu, 11 Nov 2004 21:15:33 +0000 (21:15 +0000)]
(_getopt_initialize, _getopt_internal_r, _getopt_internal, getopt):
Use __getopt_argv_const.
Paul Eggert [Thu, 11 Nov 2004 21:14:57 +0000 (21:14 +0000)]
(__getopt_argv_const): New macro, to be used so that
we can stop lying to compilers about the constness of argv when we
are compiled outside glibc.
(getopt, getopt_long, getopt_long_only): Use it.
[defined __GETOPT_PREFIX && !defined __need_getopt]:
Include <stdlib.h> and <stdio.h>, too.
Paul Eggert [Thu, 11 Nov 2004 21:00:47 +0000 (21:00 +0000)]
(gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
of replacing opterr, getopt, etc. This should handle the
powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
Paul Eggert [Thu, 11 Nov 2004 20:30:14 +0000 (20:30 +0000)]
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert [Thu, 11 Nov 2004 20:27:32 +0000 (20:27 +0000)]
(gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
of replacing opterr, getopt, etc.
Paul Eggert [Thu, 11 Nov 2004 20:24:58 +0000 (20:24 +0000)]
[defined __GETOPT_PREFIX && !defined __need_getopt]:
Include <unistd.h> if available.
Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
the other external symbols.
(getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
declaration, since the above renaming now works around collisions.
Simon Josefsson [Thu, 11 Nov 2004 15:32:19 +0000 (15:32 +0000)]
Replace opterr.
Jim Meyering [Thu, 11 Nov 2004 11:04:13 +0000 (11:04 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 Nov 2004 09:40:45 +0000 (09:40 +0000)]
Remove trailing blanks.
Jim Meyering [Thu, 11 Nov 2004 09:29:44 +0000 (09:29 +0000)]
remove blank lines at end of file
Jim Meyering [Thu, 11 Nov 2004 09:26:43 +0000 (09:26 +0000)]
Remove trailing blanks.
Jim Meyering [Thu, 11 Nov 2004 09:25:55 +0000 (09:25 +0000)]
Remove trailing blank.
Karl Berry [Thu, 11 Nov 2004 08:55:03 +0000 (08:55 +0000)]
.
Paul Eggert [Thu, 11 Nov 2004 06:09:40 +0000 (06:09 +0000)]
Fix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert [Thu, 11 Nov 2004 05:58:47 +0000 (05:58 +0000)]
(struct quoting_options): Use unsigned int for quote_these_too, so
that right shifts are well defined. All uses changed.