Bruno Haible [Tue, 24 Oct 2006 13:25:28 +0000 (13:25 +0000)]
Pure ANSI C!
Bruno Haible [Tue, 24 Oct 2006 12:12:49 +0000 (12:12 +0000)]
Add back the spaces that Karl removed.
Karl Berry [Mon, 23 Oct 2006 22:37:50 +0000 (22:37 +0000)]
--- instead of --; non-naive naive.
Eric Blake [Mon, 23 Oct 2006 22:31:11 +0000 (22:31 +0000)]
* lib/getaddrinfo.c (includes): Add missing include.
Bruno Haible [Mon, 23 Oct 2006 19:40:24 +0000 (19:40 +0000)]
Make it possible to rename obstack_free.
Bruno Haible [Mon, 23 Oct 2006 12:07:37 +0000 (12:07 +0000)]
Avoid clash with mingw's definition of __argc and __argv as macros.
Bruno Haible [Mon, 23 Oct 2006 11:27:37 +0000 (11:27 +0000)]
Add an introduction.
Bruno Haible [Mon, 23 Oct 2006 11:27:20 +0000 (11:27 +0000)]
Introduction to gnulib.
Bruno Haible [Mon, 23 Oct 2006 11:26:25 +0000 (11:26 +0000)]
Split the chapter "Gnulib" into 3 chapters "Introduction",
"Miscellanous Notes", "Particular Modules".
Bruno Haible [Mon, 23 Oct 2006 11:25:20 +0000 (11:25 +0000)]
Avoid syntax error from bash 2.00 ... 2.05.
Karl Berry [Mon, 23 Oct 2006 07:39:13 +0000 (07:39 +0000)]
.
Jim Meyering [Mon, 23 Oct 2006 06:03:01 +0000 (06:03 +0000)]
* lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
in place of snprintf.
* modules/inttostr (Files): Add lib/uinttostr.c.
* lib/uinttostr.c (inttostr): New file/function.
* lib/inttostr.h (uinttostr): Declare.
* m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
* MODULES.html.sh (Numeric conversion functions <stdlib.h>):
Add uinttostr.
* modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
Jim Meyering [Sun, 22 Oct 2006 08:21:10 +0000 (08:21 +0000)]
remove stray "b" before a date
Paul Eggert [Sun, 22 Oct 2006 07:32:17 +0000 (07:32 +0000)]
* lib/canonicalize.c (ELOOP): Define if not already defined.
Problem reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
Paul Eggert [Sat, 21 Oct 2006 22:10:06 +0000 (22:10 +0000)]
b2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
* lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
Problem reported by Perry Smith and Ville Laurikari.
Paul Eggert [Sat, 21 Oct 2006 21:56:08 +0000 (21:56 +0000)]
* lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
uses.
Bruno Haible [Fri, 20 Oct 2006 19:59:49 +0000 (19:59 +0000)]
Make getndelim2 compile on mingw.
Jim Meyering [Fri, 20 Oct 2006 19:38:02 +0000 (19:38 +0000)]
* lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
Needed for mingw.
Bruno Haible [Fri, 20 Oct 2006 13:51:48 +0000 (13:51 +0000)]
Cache a result.
Bruno Haible [Fri, 20 Oct 2006 13:50:26 +0000 (13:50 +0000)]
Cache a result.
Bruno Haible [Fri, 20 Oct 2006 13:50:26 +0000 (13:50 +0000)]
Cache a result.
Bruno Haible [Fri, 20 Oct 2006 13:42:39 +0000 (13:42 +0000)]
Don't include ftruncate and mountlist by default.
Bruno Haible [Fri, 20 Oct 2006 12:45:19 +0000 (12:45 +0000)]
Include the specification header.
Karl Berry [Fri, 20 Oct 2006 07:39:41 +0000 (07:39 +0000)]
.
Bruno Haible [Thu, 19 Oct 2006 13:24:55 +0000 (13:24 +0000)]
Fix from Charles Wilson.
Bruno Haible [Thu, 19 Oct 2006 12:27:16 +0000 (12:27 +0000)]
Make it usable by a C++ compiler.
Bruno Haible [Thu, 19 Oct 2006 12:23:41 +0000 (12:23 +0000)]
Remove duplicates from the gl_LIBOBJS list.
Bruno Haible [Thu, 19 Oct 2006 12:22:46 +0000 (12:22 +0000)]
Avoid a gcc warning.
Paul Eggert [Thu, 19 Oct 2006 07:51:14 +0000 (07:51 +0000)]
* lib/xstrtol.h: Include gettext.h.
(_STRTOL_ERROR): Wrap English-language formats inside gettext.
Problem reported by Eric Blake.
* modules/xstrtol (Depends-on): Add gettext-h.
Paul Eggert [Thu, 19 Oct 2006 07:33:29 +0000 (07:33 +0000)]
Give credit for patch.
Paul Eggert [Thu, 19 Oct 2006 07:32:18 +0000 (07:32 +0000)]
* lib/strftime.c (advance): New macro.
(add): Use it to avoid adding 0 to a FILE *. FILE can be
an incomplete type, so you can't add 0 to it. Problem reported
by Eelco Dolstra for dietlibc.
Jim Meyering [Wed, 18 Oct 2006 17:51:57 +0000 (17:51 +0000)]
* lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
type for a local, and rename it: s/up/user_proc/.
Sergey Poznyakoff [Wed, 18 Oct 2006 13:24:54 +0000 (13:24 +0000)]
Update
Sergey Poznyakoff [Wed, 18 Oct 2006 13:24:37 +0000 (13:24 +0000)]
(READ_UTMP_USER_PROCESS): New flag
Sergey Poznyakoff [Wed, 18 Oct 2006 13:24:19 +0000 (13:24 +0000)]
(desirable_utmp_entry): Implement new flag: READ_UTMP_USER_PROCESS.
Bruno Haible [Wed, 18 Oct 2006 12:03:51 +0000 (12:03 +0000)]
No need any more to check for setlocale - all systems have it.
Karl Berry [Wed, 18 Oct 2006 07:40:07 +0000 (07:40 +0000)]
.
Eric Blake [Tue, 17 Oct 2006 15:27:32 +0000 (15:27 +0000)]
* lib/sigprocmask.c (sigprocmask): Fix typo.
Eric Blake [Tue, 17 Oct 2006 14:54:07 +0000 (14:54 +0000)]
* m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
Eric Blake [Tue, 17 Oct 2006 13:01:43 +0000 (13:01 +0000)]
* modules/clean-temp (Makefile.am): Don't add to make output...
(configure.ac): ...instead define SIGNAL_SAFE_LIST inside
config.h.
Bruno Haible [Tue, 17 Oct 2006 12:50:48 +0000 (12:50 +0000)]
Introduce DEFAULT_TEXT_DOMAIN.
Bruno Haible [Tue, 17 Oct 2006 12:47:49 +0000 (12:47 +0000)]
Avoid a gcc warning.
Bruno Haible [Tue, 17 Oct 2006 12:45:34 +0000 (12:45 +0000)]
Remove 2003-10-23 hack.
Bruno Haible [Tue, 17 Oct 2006 12:43:12 +0000 (12:43 +0000)]
Use the system's sigset_t if present.
Eric Blake [Tue, 17 Oct 2006 12:16:04 +0000 (12:16 +0000)]
* lib/xvasprintf.c (includes): Assume config.h.
* lib/xasprintf.c (includes): Likewise.
Karl Berry [Tue, 17 Oct 2006 07:43:16 +0000 (07:43 +0000)]
.
Paul Eggert [Mon, 16 Oct 2006 23:43:11 +0000 (23:43 +0000)]
Remove unnecessary part of previous change.
Paul Eggert [Mon, 16 Oct 2006 23:39:20 +0000 (23:39 +0000)]
* lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
at least as wide as intmax_t.
Paul Eggert [Mon, 16 Oct 2006 21:05:39 +0000 (21:05 +0000)]
(Imported from Automake.)
* build-aux/gnupload: Update to version 1.1 of directive file.
Eric Blake [Mon, 16 Oct 2006 17:43:14 +0000 (17:43 +0000)]
* modules/configmake (Makefile.am): Add pkglibexecdir support, to
match Automake 1.10a.
Karl Berry [Mon, 16 Oct 2006 13:59:29 +0000 (13:59 +0000)]
autoupdate
Bruno Haible [Mon, 16 Oct 2006 11:55:35 +0000 (11:55 +0000)]
New module 'sigprocmask'.
Karl Berry [Sun, 15 Oct 2006 22:38:35 +0000 (22:38 +0000)]
(gnupload): get from automake cvs.
Paul Eggert [Sat, 14 Oct 2006 23:40:42 +0000 (23:40 +0000)]
Sync from Automake.
* build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
which incorrectly sets the mode of an existing destination
directory. In some cases the unpatched install-sh could do the
equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
system. We hope this is rare in practice, but it's clearly worth
fixing. Problem reported by Alex Unleashed in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
Also, don't bother to check for -m bugs unless we're using -m;
suggested by Stepan Kasal.
2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Sync from Automake.
* build-aux/depcomp (gcc3): Put dependency extraction flags before the
`-c' flag, so they appear at the same position as in %FASTDEP%
mode in depend2.am. Fixes build failure for FreeBSD's c89,
which ignores unknown options only after the first non-option.
Bug report against M4 by Nelson H. F. Beebe.
Karl Berry [Sat, 14 Oct 2006 14:00:41 +0000 (14:00 +0000)]
gif patents expired
Jim Meyering [Sat, 14 Oct 2006 06:32:48 +0000 (06:32 +0000)]
Fix a bug in yesterday's change.
* lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
p->fts_statp->st_dev would be used uninitialized.
Ensures that we always call fts_stat on the very first entry.
Miklos Szeredi reported that find -xdev stopped working.
Bruno Haible [Fri, 13 Oct 2006 12:44:53 +0000 (12:44 +0000)]
Typo.
Bruno Haible [Fri, 13 Oct 2006 12:40:22 +0000 (12:40 +0000)]
gnulib-tool now synthesizes the EXTRA_DIST line.
Karl Berry [Fri, 13 Oct 2006 07:41:05 +0000 (07:41 +0000)]
.
Paul Eggert [Thu, 12 Oct 2006 21:48:01 +0000 (21:48 +0000)]
* modules/error (Makefile.am): Distribute files through
EXTRA_DIST, not lib_SOURCES.
Bruno Haible [Thu, 12 Oct 2006 20:46:15 +0000 (20:46 +0000)]
Typo.
Eric Blake [Thu, 12 Oct 2006 20:04:19 +0000 (20:04 +0000)]
* modules/error (Makefile.am): Distribute files in /lib.
* modules/obstack (Makefile.am): Likewise.
Bruno Haible [Thu, 12 Oct 2006 18:52:30 +0000 (18:52 +0000)]
Distribute all lib/* source files through EXTRA_DIST.
Jim Meyering [Thu, 12 Oct 2006 13:41:07 +0000 (13:41 +0000)]
remove trailing blank line
Jim Meyering [Thu, 12 Oct 2006 13:26:06 +0000 (13:26 +0000)]
* m4/getloadavg.m4: Revert the change below.
Jim Meyering [Thu, 12 Oct 2006 13:23:10 +0000 (13:23 +0000)]
* m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
lib/getloadavg.c using "ls -L", not "test -f". The latter would
fail with a symlink, which is what coreutils' ./bootstrap now
creates by default.
Jim Meyering [Thu, 12 Oct 2006 13:17:48 +0000 (13:17 +0000)]
s/^ {8}/\t/
Bruno Haible [Thu, 12 Oct 2006 12:55:07 +0000 (12:55 +0000)]
Last patch broke _MSC_VER case.
Bruno Haible [Thu, 12 Oct 2006 12:33:50 +0000 (12:33 +0000)]
Add support for multiple gnulib-tool invocations in the scope of a single
configure.ac file.
Bruno Haible [Thu, 12 Oct 2006 11:45:25 +0000 (11:45 +0000)]
Handle mismatch between latest gettext release and current gnulib.
Bruno Haible [Thu, 12 Oct 2006 11:43:46 +0000 (11:43 +0000)]
--create-testdir without module names now means to use nearly all modules.
Jim Meyering [Thu, 12 Oct 2006 10:36:51 +0000 (10:36 +0000)]
* lib/fts.c (fts_open): Use consistent indentation.
Jim Meyering [Thu, 12 Oct 2006 10:32:32 +0000 (10:32 +0000)]
Big performance improvement for fts-based tools that use FTS_NOSTAT.
Avoid spurious inode-mismatch problems on non-POSIX file systems.
Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
* lib/fts_.h (FTS_DEFER_STAT): Define new flag.
(FTS_OPTIONMASK): Extend the mask to reflect this addition.
* lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
(FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
(fts_set_stat_required): New function.
(fts_open): Defer the calls to fts_stat, if possible or requested.
Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
into fts_stat itself.
(fts_read): Perform any required (deferred) fts_stat call.
(fts_build): Likewise, for the directory we're about to open and read.
In the readdir loop, carefully decide whether each entry will require
an eventual call to fts_stat, using dirent.d_type info if available.
(fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
a command line argument into this function. Update all callers.
Map a return value of FTS_DOT to FTS_D for a command line argument.
* modules/fts (Depends-on): Add d-type. Alphabetize.
Thanks to Miklos Szeredi for his tenacity and for the initial
bug report about "find" failing on a FUSE-based file system.
Paul Eggert [Thu, 12 Oct 2006 08:01:18 +0000 (08:01 +0000)]
* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
reported by Jim Meyering. All uses of cache variables renamed
to match Autoconf's.
(gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
the other one.
Paul Eggert [Thu, 12 Oct 2006 07:35:16 +0000 (07:35 +0000)]
* m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
Fix misspelling in diagnostic.
Paul Eggert [Thu, 12 Oct 2006 06:43:01 +0000 (06:43 +0000)]
* lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
defined. Problem reported by Matthew Woehlke.
Paul Eggert [Thu, 12 Oct 2006 06:17:55 +0000 (06:17 +0000)]
* lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
Add support for Tandem NonStop R series.
(_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
Use new macro.
Paul Eggert [Thu, 12 Oct 2006 05:36:20 +0000 (05:36 +0000)]
* lib/rename-dest-slash.c: Include stdbool.h but not string.h.
(has_trailing_slash): Omit size arg; all callers changed.
Omit 'inline', since it doesn't help performance and we'd
need to configure it.
Don't count //, ///, etc. as having a trailing slash.
As a side effect, this removes a C99ism reported by Matthew Woehlke.
(rpl_rename_dest_slash): On failure, use rename's errno rather
than (in some cases) an incorrect or junk errno.
Simplify code by removing need to compute length; this does
cause it to make two passes instead of one over the file name,
but it's worth it.
Paul Eggert [Wed, 11 Oct 2006 23:12:36 +0000 (23:12 +0000)]
* m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
change, since Autoconf's version may no longer be appropriate now
that we are using CVS Autoconf's version. Add support for Tandem.
2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
Bruno Haible [Wed, 11 Oct 2006 16:09:38 +0000 (16:09 +0000)]
Use HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
Bruno Haible [Wed, 11 Oct 2006 15:37:54 +0000 (15:37 +0000)]
Add comments.
Bruno Haible [Wed, 11 Oct 2006 12:48:10 +0000 (12:48 +0000)]
Make it possible to alias stpcpy and strdup.
Bruno Haible [Wed, 11 Oct 2006 12:40:44 +0000 (12:40 +0000)]
Make it possible to #define gcd to an alias.
Bruno Haible [Wed, 11 Oct 2006 12:39:18 +0000 (12:39 +0000)]
Make it possible to #define c_isascii etc. to aliases.
Bruno Haible [Wed, 11 Oct 2006 12:37:31 +0000 (12:37 +0000)]
Make it possible to #define set_program_name to an alias.
Karl Berry [Wed, 11 Oct 2006 07:43:35 +0000 (07:43 +0000)]
.
Paul Eggert [Wed, 11 Oct 2006 05:58:47 +0000 (05:58 +0000)]
Port to Tandem NSK OSS, which has 64-bit signed int but at most
32-bit unsigned int. Problem reported by Matthew Woehlke in:
http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
More generally, don't assume that 64-bit signed int is available
if unsigned int is, and vice versa.
* lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
unsigned symbols, not on their signed counterparts.
* lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
(UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
(UINT64_C, UINTMAX_C):
Likewise.
* lib/strtoimax.c (strtoll): Depend on signed symbols, not their
unsigned counterparts.
(Have_long_long, Unsigned): New macros.
(Int): Renamed from INT.
(strtoimax): Use the new macros.
* m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
and substitute HAVE_UNSIGNED_LONG_LONG_INT.
* modules/inttypes (inttypes.h): Substitute
HAVE_UNSIGNED_LONG_LONG_INT.
* modules/stdint (stdint.h): Likewise.
(Files): Add m4/ulonglong.m4.
Bruno Haible [Tue, 10 Oct 2006 13:09:59 +0000 (13:09 +0000)]
Reinstall the "tiny change" annotations.
Bruno Haible [Tue, 10 Oct 2006 12:48:57 +0000 (12:48 +0000)]
Avoid using the variable name 'index' for two completely different things.
Karl Berry [Mon, 9 Oct 2006 21:20:20 +0000 (21:20 +0000)]
autoupdate
Bruno Haible [Mon, 9 Oct 2006 20:24:37 +0000 (20:24 +0000)]
Prepend directory to more file names.
Break lines to width 80, where possible.
Paul Eggert [Mon, 9 Oct 2006 19:33:54 +0000 (19:33 +0000)]
* lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
for NetBSD. Problem reported by Bruno Haible.
Paul Eggert [Mon, 9 Oct 2006 18:22:37 +0000 (18:22 +0000)]
Merge the ChangeLogs into one ChangeLog, at the root.
Paul Eggert [Mon, 9 Oct 2006 17:47:14 +0000 (17:47 +0000)]
Fix some dates and names in ChangeLog entries.
Bruno Haible [Mon, 9 Oct 2006 12:26:13 +0000 (12:26 +0000)]
Emphasize the drawbacks of the --symlink option.
Jim Meyering [Mon, 9 Oct 2006 12:15:39 +0000 (12:15 +0000)]
* fts-cycle.c (leave_dir): When "leaving" a top level directory due
to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
Jim Meyering [Mon, 9 Oct 2006 11:50:09 +0000 (11:50 +0000)]
* lchown.c: Include <sys/stat.h> before "stat-macros.h".
Patch from Bruno Haible.
Karl Berry [Sun, 8 Oct 2006 07:41:44 +0000 (07:41 +0000)]
.
Paul Eggert [Sun, 8 Oct 2006 07:29:24 +0000 (07:29 +0000)]
Give credit to bug reporter.
Paul Eggert [Sun, 8 Oct 2006 07:24:56 +0000 (07:24 +0000)]
Don't include <config.h> twice; this doesn't work in some cases,
e.g., when config.h has "#define intmax_t long long int" and
we include <config.h>, <inttypes.h>, <config.h> in that order.
* fprintftime.c: Don't include config.h or fprintftime.h.
* fts-cycle.c: Don't include config.h.
* strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
* xstrtoimax.c: Remove copyright notice since it's short tnow.
Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
inttypes.h.
* xstrtoumax.c: Likewise.
* xstrtol.c: Include config.h and xstrtol.h after defining
__strtol and the like, so that this module is more like its siblings.
(STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
Remove; no longer needed now that we assume gnulib inttypes.h.
2006-10-07 Bruno Haible <bruno@clisp.org>