gnulib.git
19 years agoAdd comment about possible integer overflow.
Bruno Haible [Mon, 11 Apr 2005 11:52:27 +0000 (11:52 +0000)]
Add comment about possible integer overflow.

19 years ago*** empty log message ***
Jim Meyering [Sat, 9 Apr 2005 13:32:20 +0000 (13:32 +0000)]
*** empty log message ***

19 years ago(posixtime) [lint]: Avoid spurious warning from gcc-4's
Jim Meyering [Sat, 9 Apr 2005 13:31:08 +0000 (13:31 +0000)]
(posixtime) [lint]: Avoid spurious warning from gcc-4's
-Wuninitialized: initialize tm0.tm_year.

19 years ago(parser_control): rels_seen is now a boolean, not a
Paul Eggert [Mon, 4 Apr 2005 19:53:39 +0000 (19:53 +0000)]
(parser_control): rels_seen is now a boolean, not a
count, since there's no maximum.  All uses changed.
Add member dsts_seen.
(local_zone): Accumulate dsts_seen rather than relying on tm_isdst
not being INT_MAX.
(get_date): Initialize dsts_seen, and check that it doesn't go over 1.
Use pc_rels_seen to decide whther a date is absolute.

(number): Don't overwrite year.
(get_date): Initialize pc.year.digits to 0, not 4, to enable above
check.

19 years agogetdate.y patch for parsing empty string near DST boundaries.
Paul Eggert [Mon, 4 Apr 2005 19:53:07 +0000 (19:53 +0000)]
getdate.y patch for parsing empty string near DST boundaries.

19 years ago*** empty log message ***
Simon Josefsson [Sat, 2 Apr 2005 08:10:25 +0000 (08:10 +0000)]
*** empty log message ***

19 years agoFix OpenBSD compilation failure, inspired by tiny patch from Yoann
Simon Josefsson [Sat, 2 Apr 2005 08:09:23 +0000 (08:09 +0000)]
Fix OpenBSD compilation failure, inspired by tiny patch from Yoann
Vandoorselaere <yoann@prelude-ids.org>.

19 years agoFix spellings in comment.
Paul Eggert [Sat, 2 Apr 2005 03:54:44 +0000 (03:54 +0000)]
Fix spellings in comment.

19 years ago.
Jim Meyering [Tue, 29 Mar 2005 07:21:54 +0000 (07:21 +0000)]
.

19 years agoReturn success on systems such as Cygwin
Jim Meyering [Tue, 29 Mar 2005 07:21:40 +0000 (07:21 +0000)]
Return success on systems such as Cygwin
where no absolute path name can be longer than PATH_MAX.

19 years agoRemove my never-committed entry from Mar 26.
Jim Meyering [Mon, 28 Mar 2005 07:59:26 +0000 (07:59 +0000)]
Remove my never-committed entry from Mar 26.

19 years ago*** empty log message ***
Jim Meyering [Sun, 27 Mar 2005 16:39:38 +0000 (16:39 +0000)]
*** empty log message ***

19 years ago(argmatch): Clarify comment: null-terminated -> NULL-terminated.
Jim Meyering [Sun, 27 Mar 2005 16:39:26 +0000 (16:39 +0000)]
(argmatch): Clarify comment: null-terminated -> NULL-terminated.

19 years agoautoupdate
Karl Berry [Sun, 27 Mar 2005 14:05:52 +0000 (14:05 +0000)]
autoupdate

19 years ago.
Karl Berry [Sun, 27 Mar 2005 08:33:09 +0000 (08:33 +0000)]
.

19 years agoPropagate intprops.h comment fixes to mktime.c and strftime.c.
Paul Eggert [Sat, 26 Mar 2005 18:08:56 +0000 (18:08 +0000)]
Propagate intprops.h comment fixes to mktime.c and strftime.c.

19 years agoone's complement -> ones' complement
Paul Eggert [Sat, 26 Mar 2005 17:54:33 +0000 (17:54 +0000)]
one's complement -> ones' complement

19 years agoone's complement -> ones' complement (as per Knuth)
Paul Eggert [Sat, 26 Mar 2005 17:53:44 +0000 (17:53 +0000)]
one's complement -> ones' complement (as per Knuth)

19 years ago* intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
Paul Eggert [Sat, 26 Mar 2005 17:48:09 +0000 (17:48 +0000)]
* intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
"value of type" -> "type or expression" in comment.

19 years ago(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
Paul Eggert [Sat, 26 Mar 2005 17:47:53 +0000 (17:47 +0000)]
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
"value of type" -> "type or expression" in comment.

19 years ago*** empty log message ***
Jim Meyering [Sat, 26 Mar 2005 16:07:26 +0000 (16:07 +0000)]
*** empty log message ***

19 years agorename from modules/check-include-files
Jim Meyering [Sat, 26 Mar 2005 16:07:23 +0000 (16:07 +0000)]
rename from modules/check-include-files

19 years agorename to ../check-module
Jim Meyering [Sat, 26 Mar 2005 16:05:42 +0000 (16:05 +0000)]
rename to ../check-module

19 years ago*** empty log message ***
Jim Meyering [Sat, 26 Mar 2005 11:11:16 +0000 (11:11 +0000)]
*** empty log message ***

19 years agoComment nits.
Jim Meyering [Sat, 26 Mar 2005 11:10:52 +0000 (11:10 +0000)]
Comment nits.
Add the apostrophe in `(one|two)'s complement'.
Correct typos: s/or/of/.

19 years ago*** empty log message ***
Jim Meyering [Fri, 25 Mar 2005 16:59:23 +0000 (16:59 +0000)]
*** empty log message ***

19 years ago(Files): Add xalloc.h.
Jim Meyering [Fri, 25 Mar 2005 16:58:46 +0000 (16:58 +0000)]
(Files): Add xalloc.h.

19 years agoconfig/config.rpath -> build-aux/config.rpath
Paul Eggert [Wed, 23 Mar 2005 20:47:04 +0000 (20:47 +0000)]
config/config.rpath -> build-aux/config.rpath

19 years agoconfig -> build-aux
Paul Eggert [Wed, 23 Mar 2005 20:45:54 +0000 (20:45 +0000)]
config -> build-aux

19 years ago*** empty log message ***
Jim Meyering [Wed, 23 Mar 2005 14:11:35 +0000 (14:11 +0000)]
*** empty log message ***

19 years agoClean up comments.
Jim Meyering [Wed, 23 Mar 2005 14:11:19 +0000 (14:11 +0000)]
Clean up comments.

19 years agodon't `use Coda;'
Jim Meyering [Wed, 23 Mar 2005 13:38:08 +0000 (13:38 +0000)]
don't `use Coda;'

19 years agoNew script to check for missing dependencies, multiple includes, etc.
Jim Meyering [Wed, 23 Mar 2005 13:37:40 +0000 (13:37 +0000)]
New script to check for missing dependencies, multiple includes, etc.

19 years ago*** empty log message ***
Jim Meyering [Wed, 23 Mar 2005 13:09:31 +0000 (13:09 +0000)]
*** empty log message ***

19 years ago(Depends-on): Add xalloc.
Jim Meyering [Wed, 23 Mar 2005 13:08:53 +0000 (13:08 +0000)]
(Depends-on): Add xalloc.
(Files): Remove lib/xalloc.h.

19 years agowhoops. alphabetize
Jim Meyering [Wed, 23 Mar 2005 13:08:10 +0000 (13:08 +0000)]
whoops. alphabetize

19 years ago(Depends-on): Add xalloc.
Jim Meyering [Wed, 23 Mar 2005 13:07:44 +0000 (13:07 +0000)]
(Depends-on): Add xalloc.

19 years ago*** empty log message ***
Jim Meyering [Wed, 23 Mar 2005 12:47:18 +0000 (12:47 +0000)]
*** empty log message ***

19 years agoRemove duplicate `#include "stat-macros.h"'.
Jim Meyering [Wed, 23 Mar 2005 12:47:03 +0000 (12:47 +0000)]
Remove duplicate `#include "stat-macros.h"'.

19 years ago(Files): Add lib/gethrxtime.h.
Jim Meyering [Wed, 23 Mar 2005 11:51:30 +0000 (11:51 +0000)]
(Files): Add lib/gethrxtime.h.

19 years ago(Files): Add lib/inttostr.h.
Jim Meyering [Wed, 23 Mar 2005 11:51:18 +0000 (11:51 +0000)]
(Files): Add lib/inttostr.h.

19 years agoMoved most files to build-aux/.
Bruno Haible [Tue, 22 Mar 2005 15:12:21 +0000 (15:12 +0000)]
Moved most files to build-aux/.

19 years agoMoved here from config/texinfo.tex.
Bruno Haible [Tue, 22 Mar 2005 15:05:23 +0000 (15:05 +0000)]
Moved here from config/texinfo.tex.

19 years agoMove to build-aux/texinfo.tex.
Bruno Haible [Tue, 22 Mar 2005 15:04:57 +0000 (15:04 +0000)]
Move to build-aux/texinfo.tex.

19 years agoMoved here from config/mkinstalldirs.
Bruno Haible [Tue, 22 Mar 2005 15:04:31 +0000 (15:04 +0000)]
Moved here from config/mkinstalldirs.

19 years agoMove to build-aux/mkinstalldirs.
Bruno Haible [Tue, 22 Mar 2005 15:04:17 +0000 (15:04 +0000)]
Move to build-aux/mkinstalldirs.

19 years agoMoved here from config/missing.
Bruno Haible [Tue, 22 Mar 2005 15:03:50 +0000 (15:03 +0000)]
Moved here from config/missing.

19 years agoMove to build-aux/missing.
Bruno Haible [Tue, 22 Mar 2005 15:03:35 +0000 (15:03 +0000)]
Move to build-aux/missing.

19 years agoMoved here from config/mdate-sh.
Bruno Haible [Tue, 22 Mar 2005 15:03:09 +0000 (15:03 +0000)]
Moved here from config/mdate-sh.

19 years agoMove to build-aux/mdate-sh.
Bruno Haible [Tue, 22 Mar 2005 15:02:53 +0000 (15:02 +0000)]
Move to build-aux/mdate-sh.

19 years agoMoved here from config/install-sh.
Bruno Haible [Tue, 22 Mar 2005 15:02:27 +0000 (15:02 +0000)]
Moved here from config/install-sh.

19 years agoMove to build-aux/install-sh.
Bruno Haible [Tue, 22 Mar 2005 15:02:09 +0000 (15:02 +0000)]
Move to build-aux/install-sh.

19 years agoMoved here from config/depcomp.
Bruno Haible [Tue, 22 Mar 2005 15:01:47 +0000 (15:01 +0000)]
Moved here from config/depcomp.

19 years agoMove to build-aux/depcomp.
Bruno Haible [Tue, 22 Mar 2005 15:01:30 +0000 (15:01 +0000)]
Move to build-aux/depcomp.

19 years agoMoved here from config/config.sub.
Bruno Haible [Tue, 22 Mar 2005 15:01:09 +0000 (15:01 +0000)]
Moved here from config/config.sub.

19 years agoMove to build-aux/config.sub.
Bruno Haible [Tue, 22 Mar 2005 15:00:53 +0000 (15:00 +0000)]
Move to build-aux/config.sub.

19 years agoMoved here from config/config.rpath.
Bruno Haible [Tue, 22 Mar 2005 15:00:31 +0000 (15:00 +0000)]
Moved here from config/config.rpath.

19 years agoMove to build-aux/config.rpath.
Bruno Haible [Tue, 22 Mar 2005 15:00:13 +0000 (15:00 +0000)]
Move to build-aux/config.rpath.

19 years agoMoved here from config/config.guess.
Bruno Haible [Tue, 22 Mar 2005 14:59:43 +0000 (14:59 +0000)]
Moved here from config/config.guess.

19 years agoMove to build-aux/config.guess.
Bruno Haible [Tue, 22 Mar 2005 14:59:25 +0000 (14:59 +0000)]
Move to build-aux/config.guess.

19 years ago.
Karl Berry [Tue, 22 Mar 2005 08:35:24 +0000 (08:35 +0000)]
.

19 years ago.
Jim Meyering [Tue, 22 Mar 2005 07:45:25 +0000 (07:45 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 22 Mar 2005 07:44:50 +0000 (07:44 +0000)]
*** empty log message ***

19 years ago(gl_STAT_MACROS): New file/macro.
Jim Meyering [Tue, 22 Mar 2005 07:44:41 +0000 (07:44 +0000)]
(gl_STAT_MACROS): New file/macro.

19 years agoDepend on new stat-macros module
Jim Meyering [Tue, 22 Mar 2005 07:44:16 +0000 (07:44 +0000)]
Depend on new stat-macros module
rather than listing lib/stat-macros.h manually.
Don't add stat-macros.h to lib_SOURCES or list it in Files: section.

19 years agoNew module.
Jim Meyering [Tue, 22 Mar 2005 07:43:56 +0000 (07:43 +0000)]
New module.

19 years agoupdate from texinfo
Karl Berry [Tue, 22 Mar 2005 01:31:43 +0000 (01:31 +0000)]
update from texinfo

19 years agoImport changes from coreutils.
Paul Eggert [Mon, 21 Mar 2005 22:07:57 +0000 (22:07 +0000)]
Import changes from coreutils.

19 years agoRemove lib_SOURCES line from Makefile.am section of modules where this
Paul Eggert [Mon, 21 Mar 2005 22:07:25 +0000 (22:07 +0000)]
Remove lib_SOURCES line from Makefile.am section of modules where this
is now done automatically by the corresponding Autoconf macro.

19 years agoUse AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files.
Paul Eggert [Mon, 21 Mar 2005 22:06:27 +0000 (22:06 +0000)]
Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files.

19 years ago(Depends-on): Add mempcpy.
Paul Eggert [Mon, 21 Mar 2005 20:50:10 +0000 (20:50 +0000)]
(Depends-on): Add mempcpy.

19 years ago(gl_FUNC_MEMRCHR): Check for memrchr decl.
Paul Eggert [Mon, 21 Mar 2005 20:49:41 +0000 (20:49 +0000)]
(gl_FUNC_MEMRCHR): Check for memrchr decl.

19 years ago(gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
Paul Eggert [Mon, 21 Mar 2005 20:49:26 +0000 (20:49 +0000)]
(gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.

19 years ago* path-concat.c: Don't include assert.h.
Paul Eggert [Mon, 21 Mar 2005 20:49:01 +0000 (20:49 +0000)]
* path-concat.c: Don't include assert.h.
(path_concat): Remove assertion that would have triggered
for ABASE starting with more than one slash.
Reported by Andreas Schwab.

* path-concat.c (path_concat): Set *BASE_IN_RESULT
properly when ABASE is an absolute file name.
Correct the description of this function.
Include <assert.h>.
Add an assertion and a test driver.
This fixes a bug introduced on 2004-07-02.
Andreas Schwab reported the resulting failure of cp --parents:
http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html

19 years agoDon't include xalloc.h.
Paul Eggert [Mon, 21 Mar 2005 20:48:44 +0000 (20:48 +0000)]
Don't include xalloc.h.

19 years ago* strftime.c (my_strftime): If the underlying strftime returns 0
Paul Eggert [Sat, 19 Mar 2005 05:34:47 +0000 (05:34 +0000)]
* strftime.c (my_strftime): If the underlying strftime returns 0
(which shouldn't happen), generate nothing instead of returning 0
immediately, so that nstrftime (NULL, ...) doesn't return 0.

19 years ago(my_strftime): If the underlying strftime returns 0
Paul Eggert [Sat, 19 Mar 2005 05:34:28 +0000 (05:34 +0000)]
(my_strftime): If the underlying strftime returns 0
(which shouldn't happen), generate nothing instead of returning 0
immediately, so that nstrftime (NULL, ...) doesn't return 0.

19 years agoRename HAVE_LONGLONG_64BIT to HAVE_LONG_LONG_64BIT.
Bruno Haible [Thu, 17 Mar 2005 18:31:09 +0000 (18:31 +0000)]
Rename HAVE_LONGLONG_64BIT to HAVE_LONG_LONG_64BIT.

19 years ago* strftime.c (my_strftime): Prepend space to format.
Paul Eggert [Wed, 16 Mar 2005 01:05:10 +0000 (01:05 +0000)]
* strftime.c (my_strftime): Prepend space to format.

19 years ago(my_strftime): Prepend space to format so that we can
Paul Eggert [Wed, 16 Mar 2005 01:02:49 +0000 (01:02 +0000)]
(my_strftime): Prepend space to format so that we can
reliably distinguish strftime failure from empty output on POSIX
hosts.

19 years agoSync with libc.
Simon Josefsson [Tue, 15 Mar 2005 22:31:05 +0000 (22:31 +0000)]
Sync with libc.

19 years agoconfig.rpath update
Karl Berry [Tue, 15 Mar 2005 22:08:36 +0000 (22:08 +0000)]
config.rpath update

19 years agoCast the malloc/realloc results. Needed when CC=g++.
Bruno Haible [Tue, 15 Mar 2005 12:04:08 +0000 (12:04 +0000)]
Cast the malloc/realloc results. Needed when CC=g++.

19 years agoAvoid goto-ing inside the scope of a local variable. Needed when CC=g++.
Bruno Haible [Tue, 15 Mar 2005 12:01:41 +0000 (12:01 +0000)]
Avoid goto-ing inside the scope of a local variable. Needed when CC=g++.

19 years agoRename local variable 'not'. Needed when CC=g++.
Bruno Haible [Tue, 15 Mar 2005 12:00:04 +0000 (12:00 +0000)]
Rename local variable 'not'. Needed when CC=g++.

19 years agoFix comments and indenting.
Paul Eggert [Tue, 15 Mar 2005 00:43:37 +0000 (00:43 +0000)]
Fix comments and indenting.

19 years ago* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
Paul Eggert [Tue, 15 Mar 2005 00:39:17 +0000 (00:39 +0000)]
* mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
intprops.h.
* strtol.c: Likewise.

19 years ago*** empty log message ***
Simon Josefsson [Mon, 14 Mar 2005 23:52:27 +0000 (23:52 +0000)]
*** empty log message ***

19 years agoUse proper prototype CPP guards, reported by Dave Love <fx@gnu.org>.
Simon Josefsson [Mon, 14 Mar 2005 23:51:24 +0000 (23:51 +0000)]
Use proper prototype CPP guards, reported by Dave Love <fx@gnu.org>.

19 years ago* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
Paul Eggert [Mon, 14 Mar 2005 23:23:43 +0000 (23:23 +0000)]
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
&& HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[].

19 years agoUpgrade to GNU gettext 0.14.3.
Bruno Haible [Mon, 14 Mar 2005 21:57:31 +0000 (21:57 +0000)]
Upgrade to GNU gettext 0.14.3.

19 years agomktime.c unsync
Karl Berry [Sun, 13 Mar 2005 14:22:21 +0000 (14:22 +0000)]
mktime.c unsync

19 years ago*** empty log message ***
Jim Meyering [Thu, 10 Mar 2005 08:55:50 +0000 (08:55 +0000)]
*** empty log message ***

19 years ago(gl_SAVE_CWD): Check for fchdir.
Jim Meyering [Thu, 10 Mar 2005 08:55:38 +0000 (08:55 +0000)]
(gl_SAVE_CWD): Check for fchdir.

19 years ago.
Karl Berry [Thu, 10 Mar 2005 08:32:52 +0000 (08:32 +0000)]
.

19 years agoreplace leading spaces with TABs
Jim Meyering [Wed, 9 Mar 2005 23:23:58 +0000 (23:23 +0000)]
replace leading spaces with TABs

19 years agoAdd TYPE_ONES_COMPLEMENT and TYPE_SIGNED_MAGNITUDE, and use
Paul Eggert [Wed, 9 Mar 2005 23:22:50 +0000 (23:22 +0000)]
Add TYPE_ONES_COMPLEMENT and TYPE_SIGNED_MAGNITUDE, and use
less-tricky TYPE_MINIMUM and TYPE_MAXIMUM.

19 years ago*** empty log message ***
Jim Meyering [Wed, 9 Mar 2005 23:22:24 +0000 (23:22 +0000)]
*** empty log message ***

19 years ago[!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
Jim Meyering [Wed, 9 Mar 2005 23:22:08 +0000 (23:22 +0000)]
[!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
so that this module works on systems without fchdir.

19 years agoFactor int-properties macros into a single file, except for
Paul Eggert [Wed, 9 Mar 2005 19:11:23 +0000 (19:11 +0000)]
Factor int-properties macros into a single file, except for
glibc-related files.
* lib/intprops.h: New file.
* lib/getloadavg.c: Include it instead of limits.h.
(INT_STRLEN_BOUND): Remove.
* lib/human.c: Include intprops.h.
(group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
* lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000.
* lib/inttostr.h: Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
* lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
for consistency with intprops.h.
(time_t_is_integer, twos_complement_arithmetic): Use them.
* lib/sig2str.h: Include <signal.h>, intprops.h.
(INT_STRLEN_BOUND): Remove.
* lib/strftime.c (TYPE_SIGNED): Remove.
(INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
* lib/strtol.c: Adjust comments to match intprops.h.
* lib/userspec.c: Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
* lib/utimecmp.c, lib/xnanosleep.c, lib/xstrtol.c: Likewise.
* lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
instead of rolling our own expressions.
* lib/xstrtol.c: Include xstrtol.h first, to test interface.
* modules/getloadavg (Files): Add lib/intprops.h.
* modules/human (Files): Likewise.
* modules/inttostr (Files): Likewise.
* modules/sig2str (Files): Likewise.
* modules/userspec (Files): Likewise.
* modules/utimecmp (Files): Likewise.
* modules/xnanosleep (Files): Likewise.
* modules/xstrtol (Files): Likewise.