gnulib.git
19 years ago(Depends-on): Add strdup.
Paul Eggert [Sun, 5 Dec 2004 06:52:12 +0000 (06:52 +0000)]
(Depends-on): Add strdup.

19 years agoImport chamges from coreutils, so that the code now assumes
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.

19 years agomodules/getaddrinfo (License): Add LGPL, reported by Yoann
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>.

19 years ago.
Paul Eggert [Fri, 3 Dec 2004 06:36:56 +0000 (06:36 +0000)]
.

19 years ago* mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
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.)

19 years ago(__mktime_internal): If SEC_REQUESTED != SEC,
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.)

19 years agoImport getcwd and readutmp changes from coreutils.
Paul Eggert [Wed, 1 Dec 2004 07:31:23 +0000 (07:31 +0000)]
Import getcwd and readutmp changes from coreutils.

19 years agoImport readutmp and getcwd changes from gnulib.
Paul Eggert [Wed, 1 Dec 2004 07:31:00 +0000 (07:31 +0000)]
Import readutmp and getcwd changes from gnulib.

19 years ago(gl_READUTMP): Don't check for sys/param.h.
Paul Eggert [Wed, 1 Dec 2004 07:30:25 +0000 (07:30 +0000)]
(gl_READUTMP): Don't check for sys/param.h.

19 years agoDon't include <errno.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.

19 years agoInclude readutmp.h first.
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.

19 years ago(gl_FUNC_GETCWD_PATH_MAX):
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.

19 years ago(is_ENAMETOOLONG): New macro.
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.

19 years agoAdd base64.
Simon Josefsson [Tue, 30 Nov 2004 20:46:52 +0000 (20:46 +0000)]
Add base64.

19 years ago(License): Change to LGPL.
Simon Josefsson [Tue, 30 Nov 2004 20:45:22 +0000 (20:45 +0000)]
(License): Change to LGPL.

19 years agoAdd copyright and copying conditions.
Simon Josefsson [Tue, 30 Nov 2004 20:43:32 +0000 (20:43 +0000)]
Add copyright and copying conditions.

19 years agoupdate from gnustandards
Karl Berry [Mon, 29 Nov 2004 18:37:47 +0000 (18:37 +0000)]
update from gnustandards

19 years ago* getcwd.h: New file, which I forgot to check in on 2004-11-25.
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.

19 years agoInitial revision, imported from coreutils.
Paul Eggert [Sun, 28 Nov 2004 06:02:21 +0000 (06:02 +0000)]
Initial revision, imported from coreutils.

19 years agoupdate from texinfo
Karl Berry [Fri, 26 Nov 2004 13:34:22 +0000 (13:34 +0000)]
update from texinfo

19 years agoMerge from coreutils for getcwd and HP-UX 11.
Paul Eggert [Fri, 26 Nov 2004 08:35:29 +0000 (08:35 +0000)]
Merge from coreutils for getcwd and HP-UX 11.

19 years ago*** empty log message ***
Jim Meyering [Tue, 23 Nov 2004 21:43:35 +0000 (21:43 +0000)]
*** empty log message ***

19 years agoremove trailing blanks
Jim Meyering [Tue, 23 Nov 2004 21:43:14 +0000 (21:43 +0000)]
remove trailing blanks

19 years ago(gl_UTIMENS): Check for futimes function.
Paul Eggert [Tue, 23 Nov 2004 21:00:28 +0000 (21:00 +0000)]
(gl_UTIMENS): Check for futimes function.

19 years ago* utimens.m4 (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.

19 years ago(futimens): New decl.
Paul Eggert [Tue, 23 Nov 2004 20:59:50 +0000 (20:59 +0000)]
(futimens): New decl.

19 years ago(__attribute__, ATTRIBUTE_UNUSED): New macros.
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.

19 years agoAdd comment.
Paul Eggert [Tue, 23 Nov 2004 20:59:12 +0000 (20:59 +0000)]
Add comment.

19 years agoMerge from coreutils.
Paul Eggert [Tue, 23 Nov 2004 20:58:57 +0000 (20:58 +0000)]
Merge from coreutils.

19 years agoupdate from texinfo
Karl Berry [Tue, 23 Nov 2004 13:13:20 +0000 (13:13 +0000)]
update from texinfo

19 years ago.
Karl Berry [Tue, 23 Nov 2004 08:59:44 +0000 (08:59 +0000)]
.

19 years ago* modules/canonicalize (Depends-on): Add xreadlink.
Paul Eggert [Tue, 23 Nov 2004 06:19:22 +0000 (06:19 +0000)]
* modules/canonicalize (Depends-on): Add xreadlink.

19 years ago(Depends-on): Add xreadlink.
Paul Eggert [Tue, 23 Nov 2004 06:19:11 +0000 (06:19 +0000)]
(Depends-on): Add xreadlink.

19 years ago(gl_GETOPT): Check if GETOPT_H is already set, in
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.

19 years ago(gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
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.

19 years agoRe-addition of __getopt_argv_const caused
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.

19 years agoUpdated
Sergey Poznyakoff [Tue, 23 Nov 2004 02:50:02 +0000 (02:50 +0000)]
Updated

19 years agoUpdate log to match latest getopt checkin.
Paul Eggert [Sun, 21 Nov 2004 07:22:23 +0000 (07:22 +0000)]
Update log to match latest getopt checkin.

19 years agoFix brain cramp in previous checkin.
Paul Eggert [Sun, 21 Nov 2004 07:22:02 +0000 (07:22 +0000)]
Fix brain cramp in previous checkin.

19 years ago* getopt_.h: Use __CONCAT rather than ## directly.
Paul Eggert [Sun, 21 Nov 2004 05:11:14 +0000 (05:11 +0000)]
* getopt_.h: Use __CONCAT rather than ## directly.

19 years ago(__CONCAT): New macro.
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.

19 years agoMove comments from strtok_r.c to strtok_r.h.
Bruno Haible [Fri, 19 Nov 2004 13:46:41 +0000 (13:46 +0000)]
Move comments from strtok_r.c to strtok_r.h.

19 years agocannot sync getopt_int.h any more
Karl Berry [Fri, 19 Nov 2004 13:18:58 +0000 (13:18 +0000)]
cannot sync getopt_int.h any more

19 years agoupdate from texinfo
Karl Berry [Fri, 19 Nov 2004 12:55:36 +0000 (12:55 +0000)]
update from texinfo

19 years agorealloc, calloc portability fixes.
Paul Eggert [Wed, 17 Nov 2004 23:07:53 +0000 (23:07 +0000)]
realloc, calloc portability fixes.

19 years ago* calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc implementations
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.

19 years ago(_AC_FUNC_CALLOC_IF): Check for buggy calloc implementations
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.

19 years ago(rpl_calloc): Defend against buggy calloc implementations
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.

19 years agoFix header comment to match module title.
Paul Eggert [Wed, 17 Nov 2004 23:05:02 +0000 (23:05 +0000)]
Fix header comment to match module title.

19 years ago(rpl_realloc): Call 'free' if n==0, since realloc might fail.
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.

19 years ago.
Karl Berry [Wed, 17 Nov 2004 13:17:00 +0000 (13:17 +0000)]
.

19 years ago.
Karl Berry [Wed, 17 Nov 2004 08:52:44 +0000 (08:52 +0000)]
.

19 years agoAdd log for human.h, xgetcwd.c (import from coreutils).
Paul Eggert [Wed, 17 Nov 2004 07:32:27 +0000 (07:32 +0000)]
Add log for human.h, xgetcwd.c (import from coreutils).

19 years agoImport from coreutils.
Paul Eggert [Wed, 17 Nov 2004 07:18:27 +0000 (07:18 +0000)]
Import from coreutils.

19 years agoFurther getopt changes to make it more acceptable to glibc.
Paul Eggert [Wed, 17 Nov 2004 01:54:16 +0000 (01:54 +0000)]
Further getopt changes to make it more acceptable to glibc.

19 years ago(__getopt_argv_const): Bring it back.
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.

19 years ago(getopt_long, getopt_long_only): Arg is char * const *
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.

19 years ago(POSIXLY_CORRECT): New constant.
Paul Eggert [Wed, 17 Nov 2004 01:52:35 +0000 (01:52 +0000)]
(POSIXLY_CORRECT): New constant.

19 years agoMerge from coreutils to support a more-standard getopt.
Paul Eggert [Wed, 17 Nov 2004 01:13:54 +0000 (01:13 +0000)]
Merge from coreutils to support a more-standard getopt.

19 years ago*** empty log message ***
Jim Meyering [Tue, 16 Nov 2004 13:46:34 +0000 (13:46 +0000)]
*** empty log message ***

19 years ago(Depends-on): Add fpending.
Jim Meyering [Tue, 16 Nov 2004 13:44:34 +0000 (13:44 +0000)]
(Depends-on): Add fpending.

19 years ago* getdate.y (tORDINAL): New token.
Paul Eggert [Tue, 16 Nov 2004 08:25:50 +0000 (08:25 +0000)]
* getdate.y (tORDINAL): New token.

19 years ago(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.

19 years ago* getdate.texi (General date syntax): "next" is 1, not 2.
Paul Eggert [Tue, 16 Nov 2004 08:25:13 +0000 (08:25 +0000)]
* getdate.texi (General date syntax): "next" is 1, not 2.

19 years agogetdate.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.

19 years ago.
Jim Meyering [Mon, 15 Nov 2004 17:46:17 +0000 (17:46 +0000)]
.

19 years agoInclude "__fpending.h" once again.
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.

19 years ago.
Karl Berry [Sun, 14 Nov 2004 13:09:13 +0000 (13:09 +0000)]
.

19 years agoMore caveats, taken from strtok_r.c.
Bruno Haible [Fri, 12 Nov 2004 16:55:30 +0000 (16:55 +0000)]
More caveats, taken from strtok_r.c.

19 years agoRevert doc, suggested by Bruno.
Simon Josefsson [Fri, 12 Nov 2004 16:18:49 +0000 (16:18 +0000)]
Revert doc, suggested by Bruno.

19 years ago.
Karl Berry [Fri, 12 Nov 2004 14:18:08 +0000 (14:18 +0000)]
.

19 years agoAdd a cross-reference to strtok_r.
Bruno Haible [Fri, 12 Nov 2004 13:06:40 +0000 (13:06 +0000)]
Add a cross-reference to strtok_r.

19 years ago.
Karl Berry [Fri, 12 Nov 2004 09:07:35 +0000 (09:07 +0000)]
.

19 years agoRemove buggy ChangeLog entry (sorry!).
Simon Josefsson [Fri, 12 Nov 2004 00:09:08 +0000 (00:09 +0000)]
Remove buggy ChangeLog entry (sorry!).

19 years agoAdd strtok_r.
Simon Josefsson [Fri, 12 Nov 2004 00:07:20 +0000 (00:07 +0000)]
Add strtok_r.

19 years agoAdd strtok_r.c.
Simon Josefsson [Fri, 12 Nov 2004 00:05:45 +0000 (00:05 +0000)]
Add strtok_r.c.

19 years agoSync with glibc CVS.
Simon Josefsson [Fri, 12 Nov 2004 00:04:22 +0000 (00:04 +0000)]
Sync with glibc CVS.

19 years agoAdd strtok_r.
Simon Josefsson [Fri, 12 Nov 2004 00:00:47 +0000 (00:00 +0000)]
Add strtok_r.

19 years agoAdd jas.
Simon Josefsson [Thu, 11 Nov 2004 23:49:55 +0000 (23:49 +0000)]
Add jas.

19 years ago* getopt_.h: Add __getopt_argv_const. Include <stdlib.h> and <stdio.h>
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>.

19 years ago(_getopt_internal, _getopt_internal_r, _getopt_long_r, _getopt_long_only_r):
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.

19 years ago(getopt_long, _getopt_long_r, getopt_long_only, _getopt_long_only_r):
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.

19 years ago(_getopt_initialize, _getopt_internal_r, _getopt_internal, getopt):
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.

19 years ago(__getopt_argv_const): New macro, to be used so that
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.

19 years ago(gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
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.

19 years ago* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth
Paul Eggert [Thu, 11 Nov 2004 20:30:14 +0000 (20:30 +0000)]
* getopt_.h: rename getopt to __GETOPT_PREFIX##getopt, and so forth

19 years ago(gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
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.

19 years ago[defined __GETOPT_PREFIX && !defined __need_getopt]:
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.

19 years agoReplace opterr.
Simon Josefsson [Thu, 11 Nov 2004 15:32:19 +0000 (15:32 +0000)]
Replace opterr.

19 years ago*** empty log message ***
Jim Meyering [Thu, 11 Nov 2004 11:04:13 +0000 (11:04 +0000)]
*** empty log message ***

19 years agoRemove trailing blanks.
Jim Meyering [Thu, 11 Nov 2004 09:40:45 +0000 (09:40 +0000)]
Remove trailing blanks.

19 years agoremove blank lines at end of file
Jim Meyering [Thu, 11 Nov 2004 09:29:44 +0000 (09:29 +0000)]
remove blank lines at end of file

19 years agoRemove trailing blanks.
Jim Meyering [Thu, 11 Nov 2004 09:26:43 +0000 (09:26 +0000)]
Remove trailing blanks.

19 years agoRemove trailing blank.
Jim Meyering [Thu, 11 Nov 2004 09:25:55 +0000 (09:25 +0000)]
Remove trailing blank.

19 years ago.
Karl Berry [Thu, 11 Nov 2004 08:55:03 +0000 (08:55 +0000)]
.

19 years agoFix >> problems in getdate.y, strftime.c, quotearg.c.
Paul Eggert [Thu, 11 Nov 2004 06:09:40 +0000 (06:09 +0000)]
Fix >> problems in getdate.y, strftime.c, quotearg.c.

19 years ago(struct quoting_options): Use unsigned int for quote_these_too, so
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.

19 years ago(SHR): New macro, which is a portable
Paul Eggert [Thu, 11 Nov 2004 05:57:27 +0000 (05:57 +0000)]
(SHR): New macro, which is a portable
substitute for >> that should work even on Crays.
(tm_diff): Use it.

19 years agoSync from coreutils.
Paul Eggert [Thu, 11 Nov 2004 04:59:09 +0000 (04:59 +0000)]
Sync from coreutils.

19 years ago(gl_MACROS): Don't require gl_FUNC_FPENDING.
Paul Eggert [Thu, 11 Nov 2004 04:58:52 +0000 (04:58 +0000)]
(gl_MACROS): Don't require gl_FUNC_FPENDING.