gnulib.git
18 years agoSupport programs like Emacs that use gnulib but not gettext.
Paul Eggert [Wed, 6 Jul 2005 15:58:47 +0000 (15:58 +0000)]
Support programs like Emacs that use gnulib but not gettext.
* MODULES.html.sh (Internationalization functions): Add gettext-h.
* modules/gettext-h: New file.
* modules/gettext (Files): Remove lib/gettext.h.
(Depends-on): Add gettext-h.
(Makefile.am): Remove lib_SOURCES.
* modules/argmatch, modules/c-stack, modules/closeout:
* modules/copy-file, modules/csharpcomp, modules/csharpexec:
* modules/execute, modules/file-type, modules/getaddrinfo:
* modules/getopt, modules/human, modules/javacomp:
* modules/javaexec, modules/mkdir-p, modules/obstack:
* modules/openat, modules/pagealign_alloc, modules/pipe:
* modules/quotearg, modules/regex, modules/rpmatch:
* modules/unicodeio, modules/userspec, modules/version-etc:
* modules/wait-process, modules/xalloc-die, modules/xmemcoll:
* modules/xsetenv:
Depend on gettext-h, not gettext.

18 years agoAvoid false positive on mingw.
Bruno Haible [Wed, 6 Jul 2005 10:33:04 +0000 (10:33 +0000)]
Avoid false positive on mingw.

18 years ago* gnulib-tool (func_import): Add support for 'public domain' license.
Paul Eggert [Tue, 5 Jul 2005 07:14:00 +0000 (07:14 +0000)]
* gnulib-tool (func_import): Add support for 'public domain' license.
* modules/alloca, modules/atexit, modules/memmove:
Now public domain, not GPL.
* modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
* modules/realloc, modules/strerror, modules/strtod:
Now LGPL, not GPL.

18 years agoautoupdate
Karl Berry [Mon, 4 Jul 2005 12:51:47 +0000 (12:51 +0000)]
autoupdate

18 years ago.
Karl Berry [Mon, 4 Jul 2005 07:33:22 +0000 (07:33 +0000)]
.

18 years agoRemove the dependency of the strftime module on the tzset module.
Paul Eggert [Mon, 4 Jul 2005 04:40:46 +0000 (04:40 +0000)]
Remove the dependency of the strftime module on the tzset module.
* modules/strftime (Depends-on): Remove dependency on tzset.
* lib/strftime.c (my_strftime) [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
Copy the input structure, to work around some of the bug with
Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
Solaris releases, you should also use the tzset module, but we won't
require it as a dependency any more since we don't want LGPLed code
to depend on GPLed code.
* m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require gl_FUNC_TZSET_CLOBBER.

18 years agoupdate from texinfo
Karl Berry [Sat, 2 Jul 2005 13:04:43 +0000 (13:04 +0000)]
update from texinfo

18 years ago*** empty log message ***
Jim Meyering [Sat, 2 Jul 2005 10:24:00 +0000 (10:24 +0000)]
*** empty log message ***

18 years ago(backup_args): Change a `0' to NULL.
Jim Meyering [Sat, 2 Jul 2005 10:23:43 +0000 (10:23 +0000)]
(backup_args): Change a `0' to NULL.

18 years agoDon't check for fcntl.h, and don't test for HAVE_FCNTL_H.
Jim Meyering [Sat, 2 Jul 2005 09:58:35 +0000 (09:58 +0000)]
Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.

18 years agoAssume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
Jim Meyering [Sat, 2 Jul 2005 09:45:07 +0000 (09:45 +0000)]
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
and don't include <sys/file.h>).

18 years ago* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
Paul Eggert [Fri, 1 Jul 2005 17:25:01 +0000 (17:25 +0000)]
* xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
declares only 'struct timespec;' (!).

18 years agoautoupdate
Karl Berry [Fri, 1 Jul 2005 13:17:41 +0000 (13:17 +0000)]
autoupdate

18 years agoupdate from texinfo
Karl Berry [Fri, 1 Jul 2005 13:15:27 +0000 (13:15 +0000)]
update from texinfo

18 years agoautoupdate
Karl Berry [Thu, 30 Jun 2005 12:22:34 +0000 (12:22 +0000)]
autoupdate

18 years ago*** empty log message ***
Jim Meyering [Wed, 29 Jun 2005 21:29:18 +0000 (21:29 +0000)]
*** empty log message ***

18 years ago(getuser, getuidbyname, getgroup, getgidbyname):
Jim Meyering [Wed, 29 Jun 2005 21:29:09 +0000 (21:29 +0000)]
(getuser, getuidbyname, getgroup, getgidbyname):
Don't apply sizeof to a hard-coded type name.
Use the variable name instead.

18 years ago(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Jim Meyering [Wed, 29 Jun 2005 21:28:00 +0000 (21:28 +0000)]
(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Use the variable name instead.

18 years ago.
Karl Berry [Wed, 29 Jun 2005 07:35:09 +0000 (07:35 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Tue, 28 Jun 2005 11:59:49 +0000 (11:59 +0000)]
*** empty log message ***

18 years ago.
Jim Meyering [Tue, 28 Jun 2005 11:56:10 +0000 (11:56 +0000)]
.

18 years ago(find_included_lib_files): Hard-code another
Jim Meyering [Tue, 28 Jun 2005 11:55:41 +0000 (11:55 +0000)]
(find_included_lib_files): Hard-code another
pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
but the fts-lgpl (correctly) does not list those files.

18 years ago(Files): Add lib/pathmax.h.
Jim Meyering [Tue, 28 Jun 2005 11:21:07 +0000 (11:21 +0000)]
(Files): Add lib/pathmax.h.

18 years agoTypo.
Simon Josefsson [Tue, 28 Jun 2005 10:05:23 +0000 (10:05 +0000)]
Typo.

18 years ago2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson [Tue, 28 Jun 2005 10:02:08 +0000 (10:02 +0000)]
2005-06-28  Simon Josefsson  <jas@extundo.com>

* modules/check-version (Files): Add check-version.m4.

18 years ago2005-06-25 Simon Josefsson <jas@extundo.com>
Simon Josefsson [Tue, 28 Jun 2005 09:50:35 +0000 (09:50 +0000)]
2005-06-25  Simon Josefsson  <jas@extundo.com>

* modules/check-version: New file.

18 years ago2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson [Tue, 28 Jun 2005 08:17:31 +0000 (08:17 +0000)]
2005-06-28  Simon Josefsson  <jas@extundo.com>

* check-version.m4: New file, suggested by Jim Meyering
<jim@meyering.net>.

18 years ago2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson [Mon, 27 Jun 2005 22:36:50 +0000 (22:36 +0000)]
2005-06-28  Simon Josefsson  <jas@extundo.com>

* gnulib.texi (Library version handling): New section.

18 years agoOops, back out unrelated entry.
Simon Josefsson [Mon, 27 Jun 2005 22:06:28 +0000 (22:06 +0000)]
Oops, back out unrelated entry.

18 years ago2005-06-28 Simon Josefsson <jas@extundo.com>
Simon Josefsson [Mon, 27 Jun 2005 22:05:57 +0000 (22:05 +0000)]
2005-06-28  Simon Josefsson  <jas@extundo.com>

* base64.c (base64_encode): Indent.  Rename 'b64' to avoid
collision with global variable.  Better indentation.  Don't
increment buffer pointer beyond buffer end.  Based on comments
from Paul Eggert <eggert@cs.ucla.edu>.

* base64.h: Indent.

18 years ago.
Karl Berry [Sat, 25 Jun 2005 07:33:28 +0000 (07:33 +0000)]
.

18 years ago* canon-host.c (canon-host): Append trailing "," to 0 in
Paul Eggert [Fri, 24 Jun 2005 17:30:33 +0000 (17:30 +0000)]
* canon-host.c (canon-host): Append trailing "," to 0 in
initializer of struct addrinfo, as an indication that we don't
care how many members the structure has.

18 years agoRemove stat module & update lstat.
Derek R. Price [Fri, 24 Jun 2005 14:53:03 +0000 (14:53 +0000)]
Remove stat module & update lstat.
* MODULES.html.sh (stat): Remove.
* MODULES.html: Regenerated.
* config/srclist.txt (GLIBC sources): Remove stat.
* lib/stat.c: Remove this file...
(slash_aware_lstat): ...moving this content and its support...
* lib/lstat.c (rpl_lstat): ...into here.
* lib/lstat.h: New file.
* m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
* m4/stat.m4: Remove this file.
* modules/lstat (Description): Correct function name.
(Files): Add "lstat.h".
(Depends-on): Remove stat, add xalloc, stat-macros.
* modules/stat: Remove this file.
(Include): Add "lstat.h", remove <sys/stat.h>.

18 years ago* mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
Paul Eggert [Thu, 23 Jun 2005 07:14:09 +0000 (07:14 +0000)]
* mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
(ranged_convert): Don't save conversion in a temporary struct.
This causes a warning with GCC 4.0.0, and anyway in the typical
case it's not worth the extra 100 bytes or so of code.
(ranged_convert, __mktime_internal): When calling a function via a
pointer P, use P () rather than (*P) (), as we now assume C89 or
better.

18 years ago(desirable_utmp_entry): Fix bug where "who -b" and "who -r"
Paul Eggert [Wed, 22 Jun 2005 18:27:44 +0000 (18:27 +0000)]
(desirable_utmp_entry): Fix bug where "who -b" and "who -r"
failed to give output.

18 years ago* xmalloc.c (HAVE_GNU_CALLOC): New constant.
Paul Eggert [Wed, 22 Jun 2005 07:12:04 +0000 (07:12 +0000)]
* xmalloc.c (HAVE_GNU_CALLOC): New constant.
(xcalloc): Use it to avoid needless tests.

19 years ago* bison.m4: Note that precious decls of YACC & YFLAGS will be
Derek R. Price [Mon, 20 Jun 2005 15:03:36 +0000 (15:03 +0000)]
* bison.m4: Note that precious decls of YACC & YFLAGS will be
unnecessary for Autoconfs > 2.59c.

19 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jun 2005 14:49:31 +0000 (14:49 +0000)]
*** empty log message ***

19 years ago(rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
Jim Meyering [Thu, 16 Jun 2005 14:49:03 +0000 (14:49 +0000)]
(rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
when either N or S is zero.

19 years ago* bison.m4: Declare YACC & YFLAGS precious.
Derek R. Price [Thu, 16 Jun 2005 13:00:54 +0000 (13:00 +0000)]
* bison.m4: Declare YACC & YFLAGS precious.

19 years agoUpdated
Sergey Poznyakoff [Thu, 16 Jun 2005 11:53:10 +0000 (11:53 +0000)]
Updated

19 years ago(__option_is_short): Check upper limit of __key.
Sergey Poznyakoff [Thu, 16 Jun 2005 11:52:34 +0000 (11:52 +0000)]
(__option_is_short): Check upper limit of __key.
Isprint() requires its argument to have the value of an
unsigned char or EOF.

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 15:36:03 +0000 (15:36 +0000)]
*** empty log message ***

19 years agoautoupdate
Karl Berry [Sat, 11 Jun 2005 12:34:39 +0000 (12:34 +0000)]
autoupdate

19 years agoupdate from texinfo
Karl Berry [Sat, 11 Jun 2005 12:29:45 +0000 (12:29 +0000)]
update from texinfo

19 years agoUpdate copyright date.
Paul Eggert [Fri, 10 Jun 2005 19:52:33 +0000 (19:52 +0000)]
Update copyright date.

19 years ago* fnmatch.c (fnmatch): If there is an encoding error in a
Paul Eggert [Fri, 10 Jun 2005 19:52:19 +0000 (19:52 +0000)]
* fnmatch.c (fnmatch): If there is an encoding error in a
multibyte string or pattern, fall back on unibyte matching.
Problem reported by James Youngman.

19 years agoautoupdate
Karl Berry [Thu, 9 Jun 2005 12:07:48 +0000 (12:07 +0000)]
autoupdate

19 years ago.
Karl Berry [Thu, 9 Jun 2005 07:32:32 +0000 (07:32 +0000)]
.

19 years agoAvoid gcc warning on mingw.
Bruno Haible [Wed, 8 Jun 2005 19:32:15 +0000 (19:32 +0000)]
Avoid gcc warning on mingw.

19 years agoautoupdate
Karl Berry [Wed, 8 Jun 2005 13:28:54 +0000 (13:28 +0000)]
autoupdate

19 years agoauotupdate
Karl Berry [Wed, 8 Jun 2005 12:12:10 +0000 (12:12 +0000)]
auotupdate

19 years agoNew module 'csharpcomp'.
Bruno Haible [Wed, 8 Jun 2005 12:10:25 +0000 (12:10 +0000)]
New module 'csharpcomp'.

19 years agoSync from CVS.
Derek R. Price [Tue, 7 Jun 2005 14:58:46 +0000 (14:58 +0000)]
Sync from CVS.
* glob_.h: Indent nested #ifdef.

19 years agoneed terminating */ for argz.c; what about others?
Karl Berry [Sat, 4 Jun 2005 11:44:47 +0000 (11:44 +0000)]
need terminating */ for argz.c; what about others?

19 years agoOops again: fix use of classpath.c.
Bruno Haible [Fri, 3 Jun 2005 14:42:32 +0000 (14:42 +0000)]
Oops again: fix use of classpath.c.

19 years agotypos
Karl Berry [Fri, 3 Jun 2005 12:40:34 +0000 (12:40 +0000)]
typos

19 years ago.
Karl Berry [Fri, 3 Jun 2005 07:30:28 +0000 (07:30 +0000)]
.

19 years agoSync from coreutils.
Paul Eggert [Thu, 2 Jun 2005 20:41:04 +0000 (20:41 +0000)]
Sync from coreutils.
Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.

* MODULES.html.sh: mkdir-p renamed from makepath.
filenamecat renamed from path-concat.
* modules/filenamecat: Renamed from modules/path-concat.
(Files): filenamecat.h and filenamecat.c renamed from
path-concat.h and path-concat.c.
(configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
(Include): filenamecat.h, not path-concat.h.
* modules/mkdir-p: Renamed from modules/makepath.
(Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and makepath.c.
(configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
(Include): mkdir-p.h, not makepath.h.
* lib/mkdir-p.c: Renamed from makepath.c.
(make_dir_parents): Renamed from make_path.  All callers changed.
* lib/mkdir-p.h: Likewise.  All includers changed.
* lib/filenamecat.c: Renamed from path-concat.c.
(file_name_concat): Renamed from path_concat.  All callers changed.
[TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
* lib/filenamecat.h: Likewise.  All includers changed.
* lib/acl.c: Don't use "path" or "filename" to mean "file name"
in comments or local variable names.
* lib/basename.c: Likewise.
* lib/canonicalize.c, canonicalize.h: Likewise.
* lib/dirname.c, dirname.h: Likewise.
* lib/euidaccess.c: Likewise.
* lib/exclude.c: Likewise
* lib/fnmatch_.h, fnmatch_loop.c: Likewise.
* lib/fsusage.c, fsuage.h: Likewise.
* lib/fts.c, fts_.h: Likewise.
* lib/getcwd.c: Likewise.
* lib/getloadavg.c: Likewise.
* lib/mkstemp.c: Likewise.
* lib/mountlist.c, mountlist.h: Likewise.
* lib/openat.c, openat.h: Likewise.
* lib/readlink-stub.c: Likewise.
* lib/readutmp.c, readutmp.h: Likewise.
* lib/rename.c: Likewise.
* lib/rmdir.c: Likewise.
* lib/same.c: Likewise.
* lib/savedir.c: Likewise.
* lib/stripslash.c: Likewise.
* lib/tempname.c: Likewise.
* lib/xreadlink.c: Likewise.
* lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
All uses changed.
* lib/exclude.h: Likewise.
* m4/mkdir-p.m4: Renamed from makepath.m4.
(gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
Rename files from makepath.c to mkdir-p.c, and from
makepath.h to mkdir-p.h.
* m4/filenamecat.m4: Renamed from path-concat.m4.
(gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
Rename files from path-concat.c to filenamecat.c,
and from path-concat.h to filenamecat.h.
* m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
"file name" in local variables or comments.
* rename.m4: Likewise.

* lib/euidaccess.c (getuid, getgid, getuid, getegid)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
* lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
* lib/pathmax.h: Include <limits.h> unconditionally, since other
files have been getting away with it for years (MORE/BSD 4.3
is extinct now).
* lib/userspec.c (getpwnam, getgrnam, getgrgid)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.

* lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
Define to 256, not 255, as per modern POSIX.

19 years ago* bison.m4: Back out inadvertant change.
Derek R. Price [Thu, 2 Jun 2005 17:01:41 +0000 (17:01 +0000)]
* bison.m4: Back out inadvertant change.

19 years agoautoupdate
Karl Berry [Thu, 2 Jun 2005 13:06:56 +0000 (13:06 +0000)]
autoupdate

19 years ago.
Karl Berry [Thu, 2 Jun 2005 07:30:24 +0000 (07:30 +0000)]
.

19 years agoOops, csharpexec uses the classpath source code, but not its object file
Bruno Haible [Wed, 1 Jun 2005 10:39:15 +0000 (10:39 +0000)]
Oops, csharpexec uses the classpath source code, but not its object file
classpath.o.

19 years agoNew module 'csharpexec'.
Bruno Haible [Wed, 1 Jun 2005 10:25:07 +0000 (10:25 +0000)]
New module 'csharpexec'.

19 years agoSync from cvs.
Derek R. Price [Tue, 31 May 2005 21:01:36 +0000 (21:01 +0000)]
Sync from cvs.
* glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.

19 years agoSync from cvs.
Derek R. Price [Tue, 31 May 2005 21:01:15 +0000 (21:01 +0000)]
Sync from cvs.
* glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.

19 years ago.
Karl Berry [Mon, 30 May 2005 07:31:01 +0000 (07:31 +0000)]
.

19 years ago* MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
Derek R. Price [Sun, 29 May 2005 16:56:02 +0000 (16:56 +0000)]
* MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
* modules/glob: New file.
* modules/getlogin_r: Add link to POSIX spec in description.
* config/srclist.txt (glob_.h, glob.c): Add these files.
* lib/glob_.h, lib/glob.c: New files.
* gm4/lob.m4: New file.

19 years ago.
Karl Berry [Sat, 28 May 2005 07:31:17 +0000 (07:31 +0000)]
.

19 years ago(getlogin_r): Don't set errno to 0 on return.
Paul Eggert [Sat, 28 May 2005 06:11:39 +0000 (06:11 +0000)]
(getlogin_r): Don't set errno to 0 on return.

19 years ago* getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
Paul Eggert [Sat, 28 May 2005 06:11:18 +0000 (06:11 +0000)]
* getlogin_r.c (getlogin_r): Don't set errno to 0 on return.

19 years ago* modules/fts (Files): Remove m4/inttypes-pri.m4.
Paul Eggert [Fri, 27 May 2005 23:59:20 +0000 (23:59 +0000)]
* modules/fts (Files): Remove m4/inttypes-pri.m4.
* modules/fts-lgpl (Depends-on): Remove gettext.
* lib/fts.c: Don't worry about debugging on pre-C99-comopatible hosts;
the configuration hassle isn't worth it.
Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
(LONGEST_MODIFIER, PRIuMAX): Remove.
* m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
and don't require gt_INTTYPES_PRI.

19 years agoautoupdate
Karl Berry [Fri, 27 May 2005 12:43:30 +0000 (12:43 +0000)]
autoupdate

19 years agoRemove redundant include.
Bruno Haible [Fri, 27 May 2005 12:30:08 +0000 (12:30 +0000)]
Remove redundant include.

19 years ago* extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
Derek R. Price [Thu, 26 May 2005 17:33:40 +0000 (17:33 +0000)]
* extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
_POSIX_PTHREAD_SEMANTICS for Solaris.

19 years ago.
Karl Berry [Thu, 26 May 2005 07:29:54 +0000 (07:29 +0000)]
.

19 years ago* MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
Derek R. Price [Wed, 25 May 2005 19:30:08 +0000 (19:30 +0000)]
* MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.

19 years ago* getlogin_r.h: Simplify API documentation.
Derek R. Price [Wed, 25 May 2005 19:29:14 +0000 (19:29 +0000)]
* getlogin_r.h: Simplify API documentation.

19 years agoFix a few glitches in getlogin_r.
Paul Eggert [Wed, 25 May 2005 19:14:06 +0000 (19:14 +0000)]
Fix a few glitches in getlogin_r.

19 years agoSlight change in wording about C89 support modules.
Bruno Haible [Wed, 25 May 2005 17:38:35 +0000 (17:38 +0000)]
Slight change in wording about C89 support modules.

19 years ago* lib/getlogin_r.c, lib/getlogin_r.h, m4/getlogin_r.m4,
Derek R. Price [Wed, 25 May 2005 14:21:20 +0000 (14:21 +0000)]
* lib/getlogin_r.c, lib/getlogin_r.h, m4/getlogin_r.m4,
modules/getlogin_r: New files.

19 years ago.
Karl Berry [Tue, 24 May 2005 07:30:28 +0000 (07:30 +0000)]
.

19 years agoAdd "Include ordering", based on e-mail from Bruno.
Simon Josefsson [Mon, 23 May 2005 11:05:53 +0000 (11:05 +0000)]
Add "Include ordering", based on e-mail from Bruno.

19 years agoAdd autoconf tests for the 'minmax' module.
Bruno Haible [Mon, 23 May 2005 10:26:24 +0000 (10:26 +0000)]
Add autoconf tests for the 'minmax' module.

19 years agoautoconf tests for the 'minmax' module.
Bruno Haible [Mon, 23 May 2005 10:25:53 +0000 (10:25 +0000)]
autoconf tests for the 'minmax' module.

19 years agoSimplify the #ifdefs.
Bruno Haible [Mon, 23 May 2005 10:22:39 +0000 (10:22 +0000)]
Simplify the #ifdefs.

19 years agoRename NEED_SIGNED_INT_TYPES macro.
Bruno Haible [Mon, 23 May 2005 10:22:11 +0000 (10:22 +0000)]
Rename NEED_SIGNED_INT_TYPES macro.

19 years agoRename HAVE_SYSTEM_INTTYPES macro.
Bruno Haible [Mon, 23 May 2005 10:21:48 +0000 (10:21 +0000)]
Rename HAVE_SYSTEM_INTTYPES macro.

19 years ago* fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
Paul Eggert [Sun, 22 May 2005 17:29:16 +0000 (17:29 +0000)]
* fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
so that unistd-safer.h (GPL'ed code) need not be included.

19 years agoupdate from texinfo
Karl Berry [Sun, 22 May 2005 12:46:31 +0000 (12:46 +0000)]
update from texinfo

19 years ago.
Karl Berry [Sun, 22 May 2005 07:30:07 +0000 (07:30 +0000)]
.

19 years ago(Files): Add m4/inttypes-pri.m4.
Jim Meyering [Sat, 21 May 2005 08:39:21 +0000 (08:39 +0000)]
(Files): Add m4/inttypes-pri.m4.
(Depends-on): Add lstat and remove gettext.  Alphabetize.

19 years agoRegenerate.
Paul Eggert [Fri, 20 May 2005 23:10:05 +0000 (23:10 +0000)]
Regenerate.

19 years agoNew fts module.
Paul Eggert [Fri, 20 May 2005 23:07:53 +0000 (23:07 +0000)]
New fts module.
* MODULES.html.sh (File system functions): Add fts, fts-lgpl.
* lib/fts.c: Don't include "cycle-check.h" or "hash.h".
(setup_dir, free_dir): New functions.
(enter_dir, leave_dir): Define trivial
alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
(HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
(LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
(struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
Move to fts-cycle.c.
(fts_open): Use setup_dir.
(fts_close): Use free_dir.
(fts_read): Have just one copy of the ENTER_DIR code rather than three.
This adds a label and some gotos, but the alternatives were messier.
Check for memory allocation failure when entering a dir.
(fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
* lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
(FTS): New member fts_cycle, that is a union that contains the
old active_dir_ht and cycle_state.  All uses changed to mention
fts_cycle.ht and fts_cycle.state.
* lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
fts.c, with the following changes:
(setup_dir, free_dir): New functions.
(enter_dir): Now returns bool.  Return true if successful, false
if memory exhausted.  All callers changed.
Do not bother partly cleaning up on
memory allocation failure; that is free_dir's job.
However, free ad if hash_insert fails, to avoid memory leak.
(enter_dir, leave_dir): Accommodate change to FTS by inspecting
fts->fts_options to see which union member to use.
* m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
(gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.

* lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
Now a macro, to pacify GCC.

19 years ago* lib/chown.c (rpl_chown): Return -1 on failure.
Paul Eggert [Fri, 20 May 2005 20:57:40 +0000 (20:57 +0000)]
* lib/chown.c (rpl_chown): Return -1 on failure.
* m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs of -1.

19 years agotypos etc.
Karl Berry [Thu, 19 May 2005 13:17:34 +0000 (13:17 +0000)]
typos etc.

19 years agoSync from coreutils.
Paul Eggert [Wed, 18 May 2005 19:47:47 +0000 (19:47 +0000)]
Sync from coreutils.

19 years ago(AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
Paul Eggert [Wed, 18 May 2005 19:47:30 +0000 (19:47 +0000)]
(AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.

19 years ago* fts.c: Include fts_.h first, to check interface.
Paul Eggert [Wed, 18 May 2005 19:47:06 +0000 (19:47 +0000)]
* fts.c: Include fts_.h first, to check interface.
Do not include intprops.h; no longer needed.
Include cycle-check.h and hash.h, since fts_.h no longer does.
Remove unnecessary casts of closedir to void.
(fts_build): Use a simpler method (not involving TYPE_SIGNED) to
decide whether to decrement nlinks.
* fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
(FTS): Use struct hash_table * instead of Hash_table, so that
we no longer need to include hash.h here.
* fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
don't use its results.
Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
since we include them unconditionally.  Don't require
AM_STDBOOL_H, since stdbool is a prerequisite.
Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
since we assume C89 or better.
Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
as we don't use their results.
Don't check for fchdir, memmove, memset, strrchr, as we use
them unconditionally.

19 years ago* lib/canonicalize.c: Include canonicalize.h first, to test interface.
Paul Eggert [Wed, 18 May 2005 19:46:16 +0000 (19:46 +0000)]
* lib/canonicalize.c: Include canonicalize.h first, to test interface.
Include <stddef.h> unconditionally, since we assume C89 now.
All uses of PTR_INT_TYPE replaced by ptrdiff_t.
* m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
Don't check for stddef.h.