gnulib.git
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.

19 years ago(gl_PREREQ): Require gt_FUNC_SETENV.
Paul Eggert [Thu, 11 Nov 2004 04:58:05 +0000 (04:58 +0000)]
(gl_PREREQ): Require gt_FUNC_SETENV.

19 years ago* mktime.c (SHR): New macro.
Paul Eggert [Thu, 11 Nov 2004 04:39:19 +0000 (04:39 +0000)]
* mktime.c (SHR): New macro.

19 years ago(SHR): New macro, which is a portable
Paul Eggert [Thu, 11 Nov 2004 04:37:32 +0000 (04:37 +0000)]
(SHR): New macro, which is a portable
substitute for >> that should work even on Crays.
(TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
Problem reported by Mark D. Baushke in
<http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.

19 years agoAdd getaddrinfo.
Simon Josefsson [Wed, 10 Nov 2004 14:53:00 +0000 (14:53 +0000)]
Add getaddrinfo.

19 years ago.
Karl Berry [Wed, 10 Nov 2004 09:02:14 +0000 (09:02 +0000)]
.

19 years ago(Depends-on): Remove fpending.
Jim Meyering [Wed, 10 Nov 2004 08:49:39 +0000 (08:49 +0000)]
(Depends-on): Remove fpending.

19 years ago*** empty log message ***
Jim Meyering [Wed, 10 Nov 2004 08:48:50 +0000 (08:48 +0000)]
*** empty log message ***

19 years agoEnsure that no close failure goes unreported.
Jim Meyering [Wed, 10 Nov 2004 08:48:41 +0000 (08:48 +0000)]
Ensure that no close failure goes unreported.

(close_stdout): Always close stdout.  I.e., don't
return early when it seems there's nothing to flush.
Don't include __fpending.h.

19 years ago* strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
Paul Eggert [Tue, 9 Nov 2004 20:55:29 +0000 (20:55 +0000)]
* strftime.c (DO_MULTIBYTE): Check for wchar.h, too.

19 years ago(DO_MULTIBYTE): Check for wchar.h, too.
Paul Eggert [Tue, 9 Nov 2004 20:55:12 +0000 (20:55 +0000)]
(DO_MULTIBYTE): Check for wchar.h, too.

19 years ago* strftime.m4: Check for wchar.h and clean up a bit.
Paul Eggert [Tue, 9 Nov 2004 20:54:49 +0000 (20:54 +0000)]
* strftime.m4: Check for wchar.h and clean up a bit.

19 years ago(_gl_STRFTIME_PREREQS): Remove. Move its body to
Paul Eggert [Tue, 9 Nov 2004 20:53:49 +0000 (20:53 +0000)]
(_gl_STRFTIME_PREREQS): Remove.  Move its body to
gl_FUNC_STRFTIME.
(gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
and AC_REQUIRE when possible, to avoid duplicate checks.
Check for <wchar.h>.

19 years agoDetect support for IPv4 and IPv6 protocol families.
Bruno Haible [Tue, 9 Nov 2004 12:56:41 +0000 (12:56 +0000)]
Detect support for IPv4 and IPv6 protocol families.

19 years agoupdate from texinfo
Karl Berry [Tue, 9 Nov 2004 00:09:09 +0000 (00:09 +0000)]
update from texinfo

19 years agoUse British English, not German English.
Bruno Haible [Mon, 8 Nov 2004 12:54:48 +0000 (12:54 +0000)]
Use British English, not German English.

19 years agoMake sure size_t is defined.
Bruno Haible [Fri, 5 Nov 2004 21:57:55 +0000 (21:57 +0000)]
Make sure size_t is defined.

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

19 years agoDistribute allocsa.valgrind.
Bruno Haible [Thu, 4 Nov 2004 13:34:20 +0000 (13:34 +0000)]
Distribute allocsa.valgrind.

19 years agoUpgrade allocsa module from GNU gettext.
Bruno Haible [Thu, 4 Nov 2004 13:32:03 +0000 (13:32 +0000)]
Upgrade allocsa module from GNU gettext.

19 years agoUpdate serial number.
Paul Eggert [Wed, 3 Nov 2004 23:26:03 +0000 (23:26 +0000)]
Update serial number.