gnulib.git
20 years agoBump serial number, for last change.
Bruno Haible [Wed, 23 Jul 2003 11:08:01 +0000 (11:08 +0000)]
Bump serial number, for last change.

20 years ago.
Karl Berry [Wed, 23 Jul 2003 07:10:38 +0000 (07:10 +0000)]
.

20 years agoCorrect SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert [Tue, 22 Jul 2003 22:56:34 +0000 (22:56 +0000)]
Correct SunOS and Solaris version number notation to match Sun's usage.

20 years agoSync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
Paul Eggert [Tue, 22 Jul 2003 22:10:55 +0000 (22:10 +0000)]
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.

20 years ago.
Karl Berry [Mon, 21 Jul 2003 07:19:28 +0000 (07:19 +0000)]
.

20 years ago(Depends-on): Add exitfail.
Jim Meyering [Sun, 20 Jul 2003 15:51:26 +0000 (15:51 +0000)]
(Depends-on): Add exitfail.

20 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:50:17 +0000 (15:50 +0000)]
*** empty log message ***

20 years ago(close_stdout_set_status, close_stdout_status): Remove.
Jim Meyering [Sun, 20 Jul 2003 15:49:59 +0000 (15:49 +0000)]
(close_stdout_set_status, close_stdout_status): Remove.
Include "closeout.h" right after config.h,
to test that it can stand by itself.  Include "exitfail.h".
Clients should set exit_failure instead.
(EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.

20 years ago(close_stdout_set_status, close_stdout_status): Remove.
Jim Meyering [Sun, 20 Jul 2003 15:49:08 +0000 (15:49 +0000)]
(close_stdout_set_status, close_stdout_status): Remove.

20 years agoconfig.sub update from prep
Karl Berry [Sat, 19 Jul 2003 12:39:23 +0000 (12:39 +0000)]
config.sub update from prep

20 years ago.
Karl Berry [Sat, 19 Jul 2003 07:15:55 +0000 (07:15 +0000)]
.

20 years agomemcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert [Fri, 18 Jul 2003 17:51:30 +0000 (17:51 +0000)]
memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.

20 years ago(memcoll) [!HAVE_STRCOLL]: Clear errno.
Paul Eggert [Fri, 18 Jul 2003 17:49:25 +0000 (17:49 +0000)]
(memcoll) [!HAVE_STRCOLL]: Clear errno.

20 years agoNew module 'getndelim2'.
Bruno Haible [Fri, 18 Jul 2003 16:58:06 +0000 (16:58 +0000)]
New module 'getndelim2'.

20 years ago.
Karl Berry [Fri, 18 Jul 2003 07:11:53 +0000 (07:11 +0000)]
.

20 years agoRemove obsolete Makefile.
Bruno Haible [Thu, 17 Jul 2003 16:44:39 +0000 (16:44 +0000)]
Remove obsolete Makefile.

20 years agoNew module 'getnline'.
Bruno Haible [Thu, 17 Jul 2003 16:23:52 +0000 (16:23 +0000)]
New module 'getnline'.

20 years agoupdate from prep
Karl Berry [Thu, 17 Jul 2003 13:09:27 +0000 (13:09 +0000)]
update from prep

20 years agoRemove obsolete files.
Bruno Haible [Thu, 17 Jul 2003 10:53:03 +0000 (10:53 +0000)]
Remove obsolete files.

20 years agoFix an HTML bug.
Bruno Haible [Thu, 17 Jul 2003 10:48:32 +0000 (10:48 +0000)]
Fix an HTML bug.

20 years agoNew module 'mempcpy'.
Bruno Haible [Thu, 17 Jul 2003 10:46:31 +0000 (10:46 +0000)]
New module 'mempcpy'.

20 years agodo not run fixlicense twice, it messed up texinfo.tex.
Karl Berry [Wed, 16 Jul 2003 12:47:48 +0000 (12:47 +0000)]
do not run fixlicense twice, it messed up texinfo.tex.

20 years ago.
Karl Berry [Wed, 16 Jul 2003 07:10:14 +0000 (07:10 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jul 2003 06:06:07 +0000 (06:06 +0000)]
*** empty log message ***

20 years agoDepend on xgetcwd. From Derek Price.
Jim Meyering [Wed, 16 Jul 2003 06:05:59 +0000 (06:05 +0000)]
Depend on xgetcwd.  From Derek Price.

20 years agosrclist.txt: Gettext files from other directory.
Paul Eggert [Tue, 15 Jul 2003 20:21:27 +0000 (20:21 +0000)]
srclist.txt: Gettext files from other directory.
srclist-update: Fix grep pattern again.

20 years agoGet the following files from gettext-runtime/intl
Paul Eggert [Tue, 15 Jul 2003 20:21:02 +0000 (20:21 +0000)]
Get the following files from gettext-runtime/intl
instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
ref-del.sin.  From Bruno Haible.

20 years ago(fixfile): Change grep pattern again, since the
Paul Eggert [Tue, 15 Jul 2003 20:20:39 +0000 (20:20 +0000)]
(fixfile): Change grep pattern again, since the
previous fix didn't work (there was another trailing $).  Use
'[$]' to escape the $s.

20 years ago*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 19:27:49 +0000 (19:27 +0000)]
*** empty log message ***

20 years agoDon't depend on error. From Derek Price.
Jim Meyering [Tue, 15 Jul 2003 19:27:40 +0000 (19:27 +0000)]
Don't depend on error.  From Derek Price.

20 years ago.
Karl Berry [Tue, 15 Jul 2003 12:47:54 +0000 (12:47 +0000)]
.

20 years ago(fixfile): grep for $Id:, not $Id$, since the
Karl Berry [Tue, 15 Jul 2003 12:47:27 +0000 (12:47 +0000)]
(fixfile): grep for $Id:, not $Id$, since the
latter gets expanded.

20 years agokarl srclist envvars, vasnprintf
Karl Berry [Tue, 15 Jul 2003 12:42:06 +0000 (12:42 +0000)]
karl srclist envvars, vasnprintf

20 years ago.
Karl Berry [Tue, 15 Jul 2003 07:29:47 +0000 (07:29 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Tue, 15 Jul 2003 07:02:15 +0000 (07:02 +0000)]
*** empty log message ***

20 years ago(make_path): Enclose diagnostic in _(...).
Jim Meyering [Tue, 15 Jul 2003 07:01:49 +0000 (07:01 +0000)]
(make_path): Enclose diagnostic in _(...).

20 years agoUpdate gettext source files from gettext automatically, using srclist-update.
Paul Eggert [Mon, 14 Jul 2003 22:44:04 +0000 (22:44 +0000)]
Update gettext source files from gettext automatically, using srclist-update.

20 years ago*** empty log message ***
Jim Meyering [Mon, 14 Jul 2003 18:58:43 +0000 (18:58 +0000)]
*** empty log message ***

20 years ago(restore_cwd): Update prototype.
Jim Meyering [Mon, 14 Jul 2003 18:57:53 +0000 (18:57 +0000)]
(restore_cwd): Update prototype.

20 years agoDon't emit diagnostics. Let callers do that.
Jim Meyering [Mon, 14 Jul 2003 18:54:52 +0000 (18:54 +0000)]
Don't emit diagnostics.  Let callers do that.

Don't include "error.h".
(save_cwd): Don't call error.  Ensure that errno is valid
when returning nonzero.

(restore_cwd): Remove two parameters.
Simplify.  Don't call error upon failure.  Let callers do that.
(save_cwd): Mention that Irix 5.3 has the same problem as SunOS4
when auditing is enabled.  But don't bother updating the #if.

20 years agoNew module 'mempcpy'.
Bruno Haible [Mon, 14 Jul 2003 18:50:59 +0000 (18:50 +0000)]
New module 'mempcpy'.

20 years agoSwitch from LGPL to GPL.
Paul Eggert [Mon, 14 Jul 2003 16:36:07 +0000 (16:36 +0000)]
Switch from LGPL to GPL.

20 years ago* modules/getdate, modules/posixtm: Depend on mktime.
Paul Eggert [Mon, 14 Jul 2003 16:31:05 +0000 (16:31 +0000)]
* modules/getdate, modules/posixtm: Depend on mktime.

20 years ago* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
Paul Eggert [Fri, 11 Jul 2003 23:34:03 +0000 (23:34 +0000)]
* obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
it breaks C++ compilation.
[!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.

20 years ago(__INT_TO_PTR): Revert change of 2003-03-13; it breaks C++ compilation.
Paul Eggert [Fri, 11 Jul 2003 23:33:34 +0000 (23:33 +0000)]
(__INT_TO_PTR): Revert change of 2003-03-13; it breaks C++ compilation.
[!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.

20 years ago*** empty log message ***
Jim Meyering [Thu, 10 Jul 2003 20:11:35 +0000 (20:11 +0000)]
*** empty log message ***

20 years ago(Makefile.am): Add strchrnul.h.
Jim Meyering [Thu, 10 Jul 2003 20:11:28 +0000 (20:11 +0000)]
(Makefile.am): Add strchrnul.h.

20 years ago*** empty log message ***
Jim Meyering [Thu, 10 Jul 2003 11:17:46 +0000 (11:17 +0000)]
*** empty log message ***

20 years agoRemove trailing blanks.
Jim Meyering [Thu, 10 Jul 2003 11:17:36 +0000 (11:17 +0000)]
Remove trailing blanks.
Make cpp indentation consistent.

20 years ago*** empty log message ***
Jim Meyering [Thu, 10 Jul 2003 09:42:42 +0000 (09:42 +0000)]
*** empty log message ***

20 years agoRemove trailing blank.
Jim Meyering [Thu, 10 Jul 2003 09:42:11 +0000 (09:42 +0000)]
Remove trailing blank.

20 years agoThis file is now automatically regenerated from libc; regenerate it.
Paul Eggert [Thu, 10 Jul 2003 05:08:48 +0000 (05:08 +0000)]
This file is now automatically regenerated from libc; regenerate it.

20 years agoSort sublists. Add $LIBCSRC/sysdeps/generic/strtoul.c.
Paul Eggert [Thu, 10 Jul 2003 05:07:45 +0000 (05:07 +0000)]
Sort sublists.  Add $LIBCSRC/sysdeps/generic/strtoul.c.
In comments, add more libc files that differ from gnulib for one
reason or another; we'd like this list to be smaller but for now
let's document what we have.

20 years ago* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
Paul Eggert [Wed, 9 Jul 2003 23:46:58 +0000 (23:46 +0000)]
* alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
posixver.c, strftime.c, strnlen.c, strverscmp.c:
Switch from LGPL to GPL.

20 years agoSwitch from LGPL to GPL.
Paul Eggert [Wed, 9 Jul 2003 22:48:52 +0000 (22:48 +0000)]
Switch from LGPL to GPL.

20 years agoremove trailing blanks
Jim Meyering [Wed, 9 Jul 2003 17:52:55 +0000 (17:52 +0000)]
remove trailing blanks

20 years ago* srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding the
Paul Eggert [Tue, 8 Jul 2003 23:33:45 +0000 (23:33 +0000)]
* srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding the
use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
and sweeter "eval x=$x".

20 years agoGet lib/argp* from glibc.
Paul Eggert [Tue, 8 Jul 2003 23:25:13 +0000 (23:25 +0000)]
Get lib/argp* from glibc.

20 years ago* mktime.c: Fix some boundary cases and remove need for floating point.
Paul Eggert [Mon, 7 Jul 2003 23:12:25 +0000 (23:12 +0000)]
* mktime.c: Fix some boundary cases and remove need for floating point.

20 years agoFix some boundary cases and remove need for floating point.
Paul Eggert [Mon, 7 Jul 2003 23:11:52 +0000 (23:11 +0000)]
Fix some boundary cases and remove need for floating point.

Issue a compile-time diagnostic if time_t is floating point, or if
two's complement arithmetic is not in effect, or if arithmetic
right shift does not propagate the sign.  These assumptions were
all in the original code but they weren't checked.

(TIME_T_MIDPOINT, verify): New macros.
(__isleap): Remove; it has integer overflow problems.
(leapyear): New function, without those problems.
(ydhms_tm_diff): Remove; splitting into two parts.
(ydhms_diff): New function, containing the arithmetic part of
the old ydhms_tm_diff function.  Issue a compile-time
diagnostic if we are not using C99 integer division.
Avoid casts when possible.
(guess_time_tm): New function, containing the checking part of
the old ydhms_tm_diff function.  Return the new value, rather than
the difference between it and the old.  Accept a new argument T
so that *T specifies the old value.  Check for overflow in the result.

(__mktime_internal): Use a time_t offset, not a long int offset.
This undoes the 2003-06-04 change, which is no longer needed now
that we have better overflow checking.
(localtime_offset): Likewise.

(__mktime_internal): Avoid harmful overflow on hosts where time_t
and long are 64-bit but int is only 32-bit.
(ydhms_diff): Use long int to store year1 and yday1.
Issue a compile-time diagnostic if long int is not wide enough.

(__mktime_internal): Use long int to store adjusted year and yday.
Use plain C rather than preprocessor commands, if that doesn't
affect efficiency.
Check for overflow (and try to repair) after each probe
rather than checking only at the very end.  This avoids some bugs
(e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
does not equal GMT offset at maximum time).
Use integer to check for overflow rather than floating point; this
is more portable to non-IEEE hosts, and is a tad faster.
When we detect that we are oscillating between two values,
don't check whether tm_isdst has the requested value, since
we already know the answer.  When tm_isdst has the wrong value,
use a different heuristic to find the right one, based on the
extreme values actually observed in practice in tz2003a,
rather than the (overly optimistic) "previous 3 calendar quarters".

(not_equal_tm, print_tm, check_result): Use "const T" rather than
"T const" to accommodate glibc style.
(check_result): Use less-confusing report format.  "long" -> "long int.
(main): Likewise.
Don't loop if the iteration overflows time_t.
Allow a negative step in the iteration.

20 years agoupdate
Karl Berry [Sun, 6 Jul 2003 21:36:06 +0000 (21:36 +0000)]
update

20 years agospelling.
Bruno Haible [Fri, 4 Jul 2003 14:27:29 +0000 (14:27 +0000)]
spelling.

20 years agoconfig.guess from prep
Karl Berry [Thu, 3 Jul 2003 12:23:08 +0000 (12:23 +0000)]
config.guess from prep

20 years ago* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
Paul Eggert [Tue, 1 Jul 2003 21:07:13 +0000 (21:07 +0000)]
* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
having it depend on HAVE_SYS_TYPES_H.
* m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
xreadlink.c now includes it unconditionally.

Patch proposed in
<http://mail.gnu.org/archive/html/bug-gnulib/2003-06/msg00167.html>.

20 years agoIgnore <unistd.h>.
Bruno Haible [Tue, 1 Jul 2003 10:28:31 +0000 (10:28 +0000)]
Ignore <unistd.h>.

20 years agoPartial doc of xalloc module, taken from GSS project.
Bruno Haible [Mon, 30 Jun 2003 09:52:51 +0000 (09:52 +0000)]
Partial doc of xalloc module, taken from GSS project.

20 years ago.
Karl Berry [Fri, 27 Jun 2003 07:19:35 +0000 (07:19 +0000)]
.

20 years agocopyright update from automake
Karl Berry [Thu, 26 Jun 2003 12:22:18 +0000 (12:22 +0000)]
copyright update from automake

20 years agoProvide the correct errno.
Bruno Haible [Thu, 26 Jun 2003 11:03:35 +0000 (11:03 +0000)]
Provide the correct errno.

20 years agoModule 'human' now depends on module 'stdbool'.
Bruno Haible [Thu, 26 Jun 2003 10:36:04 +0000 (10:36 +0000)]
Module 'human' now depends on module 'stdbool'.

20 years ago.
Karl Berry [Thu, 26 Jun 2003 07:12:21 +0000 (07:12 +0000)]
.

20 years agoNew module 'readlink'.
Bruno Haible [Wed, 25 Jun 2003 20:54:21 +0000 (20:54 +0000)]
New module 'readlink'.

20 years agoTest for ssize_t. Needed for portability to mingw32.
Bruno Haible [Wed, 25 Jun 2003 20:33:15 +0000 (20:33 +0000)]
Test for ssize_t. Needed for portability to mingw32.

20 years agoTest for ssize_t. Needed for portability to mingw32.
Bruno Haible [Wed, 25 Jun 2003 09:20:53 +0000 (09:20 +0000)]
Test for ssize_t. Needed for portability to mingw32.

20 years agoupdate mkinstalldirs from automake
Karl Berry [Sun, 22 Jun 2003 22:47:40 +0000 (22:47 +0000)]
update mkinstalldirs from automake

20 years agoAssume ANSI C.
Bruno Haible [Fri, 20 Jun 2003 20:55:34 +0000 (20:55 +0000)]
Assume ANSI C.

20 years agoupdate from prep
Karl Berry [Wed, 18 Jun 2003 12:27:31 +0000 (12:27 +0000)]
update from prep

20 years ago*** empty log message ***
Jim Meyering [Wed, 18 Jun 2003 06:03:55 +0000 (06:03 +0000)]
*** empty log message ***

20 years agoMerge changes from coreutils.
Jim Meyering [Wed, 18 Jun 2003 06:03:29 +0000 (06:03 +0000)]
Merge changes from coreutils.

Include <string.h> and <stdlib.h> unconditionally.
Remove explicit declarations of xmalloc and realloc.
Include xalloc.h.
(read_utmp): Remove anachronistic cast of xmalloc.

20 years agoAssume C89, so PARAMS isn't needed.
Paul Eggert [Wed, 18 Jun 2003 05:52:19 +0000 (05:52 +0000)]
Assume C89, so PARAMS isn't needed.

20 years agoAdd a note about empty files.
Bruno Haible [Thu, 12 Jun 2003 11:12:14 +0000 (11:12 +0000)]
Add a note about empty files.

20 years ago.
Karl Berry [Thu, 12 Jun 2003 07:12:13 +0000 (07:12 +0000)]
.

20 years agoFix typo in Makefile.am snippet.
Bruno Haible [Wed, 11 Jun 2003 18:57:06 +0000 (18:57 +0000)]
Fix typo in Makefile.am snippet.

20 years agoAdd a section "how to add a new module", suggested by Simon Josefsson.
Bruno Haible [Wed, 11 Jun 2003 10:57:36 +0000 (10:57 +0000)]
Add a section "how to add a new module", suggested by Simon Josefsson.

20 years agoNew module 'sysexits'.
Bruno Haible [Wed, 11 Jun 2003 10:42:09 +0000 (10:42 +0000)]
New module 'sysexits'.

20 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jun 2003 08:50:42 +0000 (08:50 +0000)]
*** empty log message ***

20 years ago[LSTAT]: Compile/use slash_aware_lstat only if it is necessary.
Jim Meyering [Wed, 11 Jun 2003 08:50:33 +0000 (08:50 +0000)]
[LSTAT]: Compile/use slash_aware_lstat only if it is necessary.

20 years ago.
Karl Berry [Wed, 11 Jun 2003 07:11:11 +0000 (07:11 +0000)]
.

20 years agoNew modules strchrnul, argp.
Bruno Haible [Tue, 10 Jun 2003 12:21:16 +0000 (12:21 +0000)]
New modules strchrnul, argp.

20 years agoNew module strchrnul.
Bruno Haible [Tue, 10 Jun 2003 12:13:31 +0000 (12:13 +0000)]
New module strchrnul.

20 years agoNew module argp.
Bruno Haible [Tue, 10 Jun 2003 11:29:45 +0000 (11:29 +0000)]
New module argp.

20 years agoargp facility from glibc-20030610.
Bruno Haible [Tue, 10 Jun 2003 11:19:46 +0000 (11:19 +0000)]
argp facility from glibc-20030610.

20 years agoMake .h file creation more reliable.
Bruno Haible [Sat, 7 Jun 2003 16:41:48 +0000 (16:41 +0000)]
Make .h file creation more reliable.

20 years agoAvoid passive voice in comment.
Bruno Haible [Sat, 7 Jun 2003 16:18:09 +0000 (16:18 +0000)]
Avoid passive voice in comment.

20 years agoupdate from prep
Karl Berry [Sat, 7 Jun 2003 13:08:19 +0000 (13:08 +0000)]
update from prep

20 years ago*** empty log message ***
Jim Meyering [Sat, 7 Jun 2003 10:30:30 +0000 (10:30 +0000)]
*** empty log message ***

20 years agoPut `Free Software Foundation, Inc.'
Jim Meyering [Sat, 7 Jun 2003 10:30:19 +0000 (10:30 +0000)]
Put `Free Software Foundation, Inc.'
in place of my name in the copyright comment.
Remove definition and uses of __P.

20 years ago*** empty log message ***
Jim Meyering [Sat, 7 Jun 2003 10:19:24 +0000 (10:19 +0000)]
*** empty log message ***

20 years agoDon't declare xmalloc explicitly.
Jim Meyering [Sat, 7 Jun 2003 10:19:12 +0000 (10:19 +0000)]
Don't declare xmalloc explicitly.
Instead, include "xalloc.h".

20 years ago*** empty log message ***
Jim Meyering [Sat, 7 Jun 2003 10:16:37 +0000 (10:16 +0000)]
*** empty log message ***