gnulib.git
17 years ago* m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
Paul Eggert [Sat, 25 Nov 2006 19:29:08 +0000 (19:29 +0000)]
* m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
Don't close an fd more than once. Identical atimes indicate
success, not failure.

17 years ago* lib/sincosl.c (kernel_sinl): Fix typo in threshold.
Bruno Haible [Thu, 23 Nov 2006 20:18:34 +0000 (20:18 +0000)]
* lib/sincosl.c (kernel_sinl): Fix typo in threshold.

17 years ago* build-aux/announce-gen: New file. From coreutils.
Jim Meyering [Thu, 23 Nov 2006 15:22:51 +0000 (15:22 +0000)]
* build-aux/announce-gen: New file.  From coreutils.

17 years agoWork around a compile-time error from the HP-UX 11.00 /bin/cc.
Jim Meyering [Wed, 22 Nov 2006 23:48:30 +0000 (23:48 +0000)]
Work around a compile-time error from the HP-UX 11.00 /bin/cc.
* lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
(fts_read): Use a temporary to narrow the overused st_size member
before using it in a switch statement.  Reported by Matthew Woehlke.

17 years ago* m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
Jim Meyering [Wed, 22 Nov 2006 13:40:25 +0000 (13:40 +0000)]
* m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
* m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.

17 years agoFix bug that caused AM_GNU_GETTEXT([external], [need-formatstring-macros])
Bruno Haible [Tue, 21 Nov 2006 12:38:14 +0000 (12:38 +0000)]
Fix bug that caused AM_GNU_GETTEXT([external], [need-formatstring-macros])
to not recognize glibc or external libintl.

17 years ago* lib/fts.c (fts_safe_changedir): Move a declaration "up",
Jim Meyering [Tue, 21 Nov 2006 09:15:22 +0000 (09:15 +0000)]
* lib/fts.c (fts_safe_changedir): Move a declaration "up",
so as to remain compatible with older compilers.
Patch from Michael Deutschmann.

17 years ago.
Karl Berry [Tue, 21 Nov 2006 09:04:15 +0000 (09:04 +0000)]
.

17 years agoThe beginnings of syntax-related checks for gnulib.
Jim Meyering [Mon, 20 Nov 2006 23:33:31 +0000 (23:33 +0000)]
The beginnings of syntax-related checks for gnulib.
* lib/Makefile: New file.
* lib/t-idcache: New script.  Ensure that the two halves of
idcache.c stay in sync.

17 years ago* MODULES.html.sh (File system functions): Add openat.
Paul Eggert [Mon, 20 Nov 2006 22:07:27 +0000 (22:07 +0000)]
* MODULES.html.sh (File system functions): Add openat.

17 years ago* lib/openat.h (rpl_fstatat): New macro, if
Paul Eggert [Mon, 20 Nov 2006 22:01:30 +0000 (22:01 +0000)]
* lib/openat.h (rpl_fstatat): New macro, if
[HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
(fstatat): Define to rpl_fstatat under the same conditions,
unless COMPILING_FSTATAT.
* m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
seems to have the bug.
* lib/fstatat.c: New file.
* modules/openat (Files): Add it.

17 years agoBeginnings of a Makefile for the gnulib maintainers.
Bruno Haible [Mon, 20 Nov 2006 18:13:41 +0000 (18:13 +0000)]
Beginnings of a Makefile for the gnulib maintainers.

17 years ago* lib/idcache.c: Adjust comments in user- and group- portions to
Jim Meyering [Mon, 20 Nov 2006 13:08:38 +0000 (13:08 +0000)]
* lib/idcache.c: Adjust comments in user- and group- portions to
be more accurate, and to be consistent with one another.

17 years agoAvoid syntax error in test program.
Jim Meyering [Mon, 20 Nov 2006 12:59:11 +0000 (12:59 +0000)]
Avoid syntax error in test program.
* m4/gettext.m4 (AM_GNU_GETTEXT): When inside a [...] context,
quote with "[...]", not "[[...]]".

17 years ago* lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
Jim Meyering [Mon, 20 Nov 2006 10:54:06 +0000 (10:54 +0000)]
* lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
continue using the flexible array member (thus, this module performs
half as many malloc calls), with the addition that...
(getgroup, getuser): Consistently record a non-match via an empty
"name" string, and map an empty string match to a NULL return value.
* modules/idcache (Depends-on): Re-add flexmember.

17 years ago* lib/idcache.c (getuser): Remove all uses of the register keyword.
Jim Meyering [Mon, 20 Nov 2006 09:30:51 +0000 (09:30 +0000)]
* lib/idcache.c (getuser): Remove all uses of the register keyword.
(getuidbyname, getgroup, getgidbyname): Likewise.

17 years agoUse cleaner syntax: NULL rather than 0.
Jim Meyering [Mon, 20 Nov 2006 09:25:38 +0000 (09:25 +0000)]
Use cleaner syntax: NULL rather than 0.
* lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.

17 years ago* lib/idcache.c: Undo most recent patch, dated 2006-11-06.
Paul Eggert [Mon, 20 Nov 2006 09:10:18 +0000 (09:10 +0000)]
* lib/idcache.c: Undo most recent patch, dated 2006-11-06.
It mishandled the case where the group was missing.
Problem reported by Greg Schafer.
* modules/idcache: Likewise.

17 years ago.
Karl Berry [Sun, 19 Nov 2006 09:04:21 +0000 (09:04 +0000)]
.

17 years ago* check-module (%exempt_header): Add exception for some
Jim Meyering [Sat, 18 Nov 2006 11:16:55 +0000 (11:16 +0000)]
* check-module (%exempt_header): Add exception for some
conditionally-included headers.

17 years ago* modules/i-ring (Depends-on): Add verify.
Jim Meyering [Sat, 18 Nov 2006 11:14:13 +0000 (11:14 +0000)]
* modules/i-ring (Depends-on): Add verify.
(License): Change to LGPL.

17 years agoRevert Jim's 2006-10-23 patch.
Simon Josefsson [Fri, 17 Nov 2006 13:47:43 +0000 (13:47 +0000)]
Revert Jim's 2006-10-23 patch.

17 years ago* modules/inline (License): Change from GPL to LGPL.
Paul Eggert [Fri, 17 Nov 2006 08:02:24 +0000 (08:02 +0000)]
* modules/inline (License): Change from GPL to LGPL.

17 years ago* modules/d-type (License): Switch to LGPL.
Jim Meyering [Thu, 16 Nov 2006 23:41:22 +0000 (23:41 +0000)]
* modules/d-type (License): Switch to LGPL.

17 years agoautoupdate
Karl Berry [Thu, 16 Nov 2006 14:22:26 +0000 (14:22 +0000)]
autoupdate

17 years agoFix alloca.m4 message.
Bruno Haible [Wed, 15 Nov 2006 20:54:48 +0000 (20:54 +0000)]
Fix alloca.m4 message.

17 years agoNo need to invoke gl_FUNC_ALLOCA more than once. But using AC_REQUIRE would
Bruno Haible [Wed, 15 Nov 2006 20:50:54 +0000 (20:50 +0000)]
No need to invoke gl_FUNC_ALLOCA more than once. But using AC_REQUIRE would
be wrong here, since gl_FUNC_ALLOCA calls AC_FUNC_ALLOCA which has an effect
on @ALLOCA@.

17 years agoAdd license compatibility check in --create-testdir.
Bruno Haible [Wed, 15 Nov 2006 20:47:08 +0000 (20:47 +0000)]
Add license compatibility check in --create-testdir.

17 years ago* m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
Eric Blake [Wed, 15 Nov 2006 18:13:04 +0000 (18:13 +0000)]
* m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
random "(cached)" in configure output.

17 years agoReindent for consistency.
Paul Eggert [Tue, 14 Nov 2006 22:27:06 +0000 (22:27 +0000)]
Reindent for consistency.

17 years ago* m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
Ralf Wildenhues [Tue, 14 Nov 2006 22:07:11 +0000 (22:07 +0000)]
* m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
test for conforming inttypes.h is both announced and cached.

17 years ago* MODULES.html.sh (seen_modules, seen_files): New variables.
Ralf Wildenhues [Tue, 14 Nov 2006 22:01:14 +0000 (22:01 +0000)]
* MODULES.html.sh (seen_modules, seen_files): New variables.
(func_module): Rewrite to use a few less gnulib-tool and sed
invocations.  Avoid a couple of quadratic algorithms for ...
(missed_modules, missed_files): ... these, with ...
(func_append, func_tmpdir): ... these new functions, from
gnulib-tool.  Analogously, install traps for cleanup.

17 years ago* tests/test-gc.c (main): Remove unused variables.
Ralf Wildenhues [Tue, 14 Nov 2006 20:31:04 +0000 (20:31 +0000)]
* tests/test-gc.c (main): Remove unused variables.
* tests/test-read-file.c: Include stdlib.h, for 'free'.

17 years ago* modules/inttostr (License): Change to LGPL.
Paul Eggert [Tue, 14 Nov 2006 17:52:58 +0000 (17:52 +0000)]
* modules/inttostr (License): Change to LGPL.

17 years ago* modules/tempname (License): Change to LGPL.
Eric Blake [Tue, 14 Nov 2006 14:12:03 +0000 (14:12 +0000)]
* modules/tempname (License): Change to LGPL.

17 years ago* doc/functions.texi (Function Portability): *printf functions on
Eric Blake [Tue, 14 Nov 2006 13:32:22 +0000 (13:32 +0000)]
* doc/functions.texi (Function Portability): *printf functions on
Cygwin now understand all POSIX size specifiers.

17 years agoRelicense under LGPL.
Bruno Haible [Tue, 14 Nov 2006 11:07:51 +0000 (11:07 +0000)]
Relicense under LGPL.

17 years agoMore support for GNOME libraries.
Bruno Haible [Tue, 14 Nov 2006 10:30:06 +0000 (10:30 +0000)]
More support for GNOME libraries.

17 years agoSupport for library names with dots.
Bruno Haible [Tue, 14 Nov 2006 10:22:12 +0000 (10:22 +0000)]
Support for library names with dots.

17 years ago.
Karl Berry [Tue, 14 Nov 2006 09:44:46 +0000 (09:44 +0000)]
.

17 years agoFix --create-testdir --with-tests.
Bruno Haible [Tue, 14 Nov 2006 09:37:20 +0000 (09:37 +0000)]
Fix --create-testdir --with-tests.

17 years agoOverride also AC_LIBSOURCES. Works around an automake error
Bruno Haible [Mon, 13 Nov 2006 19:07:29 +0000 (19:07 +0000)]
Override also AC_LIBSOURCES. Works around an automake error
"automatically discovered file `error.c' should not be explicitly mentioned"
in some circumstances.

17 years ago* lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
Eric Blake [Mon, 13 Nov 2006 14:30:13 +0000 (14:30 +0000)]
* lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
element, not its node.

17 years agoReplace build-aux/ also in the Makefile snippet.
Bruno Haible [Mon, 13 Nov 2006 12:35:41 +0000 (12:35 +0000)]
Replace build-aux/ also in the Makefile snippet.

17 years agoNew option --local-symlink.
Bruno Haible [Mon, 13 Nov 2006 12:35:01 +0000 (12:35 +0000)]
New option --local-symlink.

17 years agoFix the symlinks installed by the --symlink option.
Bruno Haible [Mon, 13 Nov 2006 12:34:33 +0000 (12:34 +0000)]
Fix the symlinks installed by the --symlink option.

17 years agoFinish support for source files in subdirectories.
Bruno Haible [Mon, 13 Nov 2006 12:33:43 +0000 (12:33 +0000)]
Finish support for source files in subdirectories.

17 years agoSynthesize also an EXTRA_lib_SOURCES augmentation.
Bruno Haible [Mon, 13 Nov 2006 12:33:07 +0000 (12:33 +0000)]
Synthesize also an EXTRA_lib_SOURCES augmentation.

17 years agoMake fts (in FTS_CWDFD mode) more efficient by caching a few open
Jim Meyering [Sun, 12 Nov 2006 17:35:38 +0000 (17:35 +0000)]
Make fts (in FTS_CWDFD mode) more efficient by caching a few open
file descriptors.  This also averts a failure on systems with
native openat support when a traversed directory lacks "x" access.
* lib/fts_.h: Include "i-ring.h"
(struct FTS) [fts_fd_ring]: New member.
* lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
(FCHDIR): Add parentheses.
(fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
(cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
When descending, rather than simply closing the previous
fts_cwd_fd value, push that file descriptor onto the ring.
(same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
(fts_open): Initialize the new fd_ring member.
(fts_close): Clear the ring.
(fts_safe_changedir): When possible, use our new fd_ring to skip
the diropen and fstat and dev/ino comparison that would normally
accompany a virtual `chdir ("..")'.

* modules/fts (Depends-on): Add i-ring.
* modules/i-ring: New module.
* lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
* m4/i-ring.m4: New file.

17 years ago* gnulib-tool (func_create_testdir): Fix replacement of
Ralf Wildenhues [Sun, 12 Nov 2006 09:53:16 +0000 (09:53 +0000)]
* gnulib-tool (func_create_testdir): Fix replacement of
`build-aux' in configure.ac.  Run autotools in gltests
subdirectory.
(func_create_testdir, func_create_megatestdir, test): There is
no need for '--force' in most autotool invocations in a new
tree.  Actually fail the whole test if any of the tools, or the
configure or make stages fail.

17 years agoSync from Automake.
Ralf Wildenhues [Sun, 12 Nov 2006 09:50:10 +0000 (09:50 +0000)]
Sync from Automake.
* build-aux/gnupload: Revert last change.  Add pointer to upload
instructions of the GNU Maintenance Instructions.
Suggestion by Karl Berry.

17 years ago.
Karl Berry [Sat, 11 Nov 2006 09:05:23 +0000 (09:05 +0000)]
.

17 years ago* lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
Jim Meyering [Fri, 10 Nov 2006 22:22:31 +0000 (22:22 +0000)]
* lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.

17 years agoAvoid unused variable warnings with gcc.
Bruno Haible [Fri, 10 Nov 2006 14:49:09 +0000 (14:49 +0000)]
Avoid unused variable warnings with gcc.

17 years agoUse a command that uses $CC $CFLAGS, not $CPP, to test whether inline is
Bruno Haible [Fri, 10 Nov 2006 14:37:40 +0000 (14:37 +0000)]
Use a command that uses $CC $CFLAGS, not $CPP, to test whether inline is
effective. From Jim.

17 years ago* modules/inline: New file/module.
Jim Meyering [Fri, 10 Nov 2006 11:00:52 +0000 (11:00 +0000)]
* modules/inline: New file/module.
* modules/xalloc (Files): Remove m4/inline.m4.
(Depends-on): Add inline, instead.
* modules/oset: Likewise.
* modules/list: Likewise.

17 years ago* lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
Paul Eggert [Fri, 10 Nov 2006 01:03:39 +0000 (01:03 +0000)]
* lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
Problem reported by Matthew Woehlke.

17 years ago* lib/tempname.c (gen_tempname): Remove variant that invokes
Eric Blake [Thu, 9 Nov 2006 18:49:46 +0000 (18:49 +0000)]
* lib/tempname.c (gen_tempname): Remove variant that invokes
__gen_tempname.
* m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
__gen_tempname.

17 years agoupdate from texinfo
Karl Berry [Thu, 9 Nov 2006 01:23:33 +0000 (01:23 +0000)]
update from texinfo

17 years ago* m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
Paul Eggert [Wed, 8 Nov 2006 21:41:27 +0000 (21:41 +0000)]
* m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
to 'yes' instead of 'cross-compiling'.

17 years ago* lib/quotearg.h (quotearg_free): New decl.
Paul Eggert [Wed, 8 Nov 2006 20:13:12 +0000 (20:13 +0000)]
* lib/quotearg.h (quotearg_free): New decl.
* lib/quotearg.c (quotearg_free): New function.
(slot0, nslots, slotvec0, slotvec):
Now file-scope so that quotearg_free can get at them.

17 years agoSync from Automake.
Ralf Wildenhues [Wed, 8 Nov 2006 18:58:42 +0000 (18:58 +0000)]
Sync from Automake.
* build-aux/gnupload: Add missing 'gnu' to example URL.
Report by Karl Berry.

17 years agoautoupdate
Karl Berry [Wed, 8 Nov 2006 16:07:50 +0000 (16:07 +0000)]
autoupdate

17 years agoNotice when GCC doesn't do inlining.
Bruno Haible [Wed, 8 Nov 2006 14:03:04 +0000 (14:03 +0000)]
Notice when GCC doesn't do inlining.

17 years ago* lib/fts.c (fts_safe_changedir): Add a comment.
Jim Meyering [Wed, 8 Nov 2006 13:49:24 +0000 (13:49 +0000)]
* lib/fts.c (fts_safe_changedir): Add a comment.

17 years ago.
Karl Berry [Wed, 8 Nov 2006 09:05:19 +0000 (09:05 +0000)]
.

17 years ago* lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
Jim Meyering [Wed, 8 Nov 2006 07:42:26 +0000 (07:42 +0000)]
* lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
It's already included if !_LIBC.

17 years ago* m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
Paul Eggert [Wed, 8 Nov 2006 06:21:38 +0000 (06:21 +0000)]
* m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
Matthew Woehlke.

17 years ago* lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
Paul Eggert [Wed, 8 Nov 2006 00:22:30 +0000 (00:22 +0000)]
* lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
definitions up, to avoid colliding with change below.
(static_inline) [HAVE_INLINE]: New macro.
(xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
Provide extern decls when !HAVE_INLINE.  Do not define unless
static_inline is defined, either by us or by xmalloc.c.  Use
static_inline rather than static inline.
(XCALLOC): Optimize sizeof(T) = 1 case.
* lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.

2006-11-07  Bruno Haible  <bruno@clisp.org>

* lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
* m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
AC_C_INLINE.
* modules/xalloc (Files): Add m4/inline.m4.

17 years ago* README: Fix typo.
Ralf Wildenhues [Tue, 7 Nov 2006 19:51:40 +0000 (19:51 +0000)]
* README: Fix typo.
* doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
(Miscellanous Notes): ...from this.

17 years ago* m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
Paul Eggert [Tue, 7 Nov 2006 17:20:07 +0000 (17:20 +0000)]
* m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
Mention that offsetof should be used instead of sizeof.
From Bruno Haible.

17 years agoautoupdate
Karl Berry [Tue, 7 Nov 2006 14:57:19 +0000 (14:57 +0000)]
autoupdate

17 years agoMore uses of XMALLOC, XNMALLOC and XCALLOC.
Bruno Haible [Tue, 7 Nov 2006 14:24:05 +0000 (14:24 +0000)]
More uses of XMALLOC, XNMALLOC and XCALLOC.

17 years agoANSI C comment style.
Bruno Haible [Tue, 7 Nov 2006 13:53:52 +0000 (13:53 +0000)]
ANSI C comment style.

17 years agoNew macro gl_INLINE.
Bruno Haible [Tue, 7 Nov 2006 13:46:03 +0000 (13:46 +0000)]
New macro gl_INLINE.

17 years ago.
Karl Berry [Tue, 7 Nov 2006 10:31:33 +0000 (10:31 +0000)]
.

17 years ago* lib/idcache.c: Include <stddef.h>, for offsetof.
Paul Eggert [Mon, 6 Nov 2006 22:02:53 +0000 (22:02 +0000)]
* lib/idcache.c: Include <stddef.h>, for offsetof.
(struct userid.name): Change from char * to a flexible array member.
All uses changed.
* modules/idcache (Depends-on): Add flexmember.

17 years ago* MODULES.html.sh (Core language properties): New module flexmember.
Paul Eggert [Mon, 6 Nov 2006 21:58:29 +0000 (21:58 +0000)]
* MODULES.html.sh (Core language properties): New module flexmember.
* modules/flexmember, m4/flexmember.m4: New files.

17 years ago* m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
Paul Eggert [Mon, 6 Nov 2006 21:38:27 +0000 (21:38 +0000)]
* m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
captures the dependency in AC_C_INLINE.

17 years ago* lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
Paul Eggert [Mon, 6 Nov 2006 21:24:35 +0000 (21:24 +0000)]
* lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
inline functions that are identical with the old xnmalloc_inline,
xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
that we can avoid some unnecessary integer multiplications and
divisions in the common case where the element size is known at
compile time.
(XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
needed.
(xnboundedmalloc): Remove.
(XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
arguments, for consistency with rest of this header.
(xcharalloc): Rewrite using XNMALLOC.
* lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
(xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
versions have been moved to lib/xalloc.h and renamed to be the
non-*_inline versions.
(xmalloc, xrealloc): Implement without reference to the xnmalloc
and xnrealloc functions, since those functions are now inline and
now call us.
(x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
renaming described above.

17 years agoGive credit to Charles Wilson.
Paul Eggert [Mon, 6 Nov 2006 18:25:01 +0000 (18:25 +0000)]
Give credit to Charles Wilson.

17 years ago* MODULES.html.sh (File system functions): New module
Paul Eggert [Mon, 6 Nov 2006 18:21:34 +0000 (18:21 +0000)]
* MODULES.html.sh (File system functions): New module
canonicalize-lgpl.
* lib/canonicalize.h: Add comments for canonicalize_filename_mode
and canonicalize_file_name.
* lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
* modules/canonicalize-lgpl: New files.

17 years agoCreate also all needed subdirectories.
Bruno Haible [Mon, 6 Nov 2006 13:04:37 +0000 (13:04 +0000)]
Create also all needed subdirectories.

17 years agoANSI C compliance.
Bruno Haible [Mon, 6 Nov 2006 13:03:51 +0000 (13:03 +0000)]
ANSI C compliance.

17 years agoSimplify xmalloc expressions. Add overflow check in xmalloc arguments.
Bruno Haible [Mon, 6 Nov 2006 13:03:10 +0000 (13:03 +0000)]
Simplify xmalloc expressions. Add overflow check in xmalloc arguments.

17 years agoAvoid name mangling in C++ mode.
Bruno Haible [Mon, 6 Nov 2006 12:55:16 +0000 (12:55 +0000)]
Avoid name mangling in C++ mode.

17 years ago* lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
Paul Eggert [Fri, 3 Nov 2006 23:17:27 +0000 (23:17 +0000)]
* lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
(CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
* m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
Check for functions and headers just once.
Check for declaration of canonicalize_file_name.
Define PROVIDE_CANONICALIZE_FILENAME_MODE.

17 years agoFix typo in actioncmd. From Charles WIlson.
Bruno Haible [Thu, 2 Nov 2006 14:47:36 +0000 (14:47 +0000)]
Fix typo in actioncmd. From Charles WIlson.

17 years agoInterpret a backslash-newline sequence in the Makefile.am snippet as a space.
Bruno Haible [Thu, 2 Nov 2006 13:59:13 +0000 (13:59 +0000)]
Interpret a backslash-newline sequence in the Makefile.am snippet as a space.

17 years agoFix clash of strncasecmp prototypes in C++ mode.
Bruno Haible [Wed, 1 Nov 2006 20:48:47 +0000 (20:48 +0000)]
Fix clash of strncasecmp prototypes in C++ mode.

17 years agoAvoid conflict declaration in <string.h> (in C++ mode).
Bruno Haible [Wed, 1 Nov 2006 20:42:35 +0000 (20:42 +0000)]
Avoid conflict declaration in <string.h> (in C++ mode).

17 years agoMake it compile in C++ mode.
Bruno Haible [Wed, 1 Nov 2006 20:30:39 +0000 (20:30 +0000)]
Make it compile in C++ mode.

17 years ago* lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
Eric Blake [Wed, 1 Nov 2006 16:49:05 +0000 (16:49 +0000)]
* lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.

17 years ago* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
Eric Blake [Wed, 1 Nov 2006 16:32:50 +0000 (16:32 +0000)]
* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.

17 years agoMake it compile in C++ mode.
Bruno Haible [Wed, 1 Nov 2006 13:29:23 +0000 (13:29 +0000)]
Make it compile in C++ mode.

17 years ago2006-10-29 Bruno Haible <bruno@clisp.org>
Bruno Haible [Wed, 1 Nov 2006 13:29:08 +0000 (13:29 +0000)]
2006-10-29  Bruno Haible  <bruno@clisp.org>

        Make it compile in C++ mode.
        * lib/full-write.c (full_rw): Add a cast.

17 years agoChange a sed expression to be POSIX compliant.
Bruno Haible [Wed, 1 Nov 2006 13:20:07 +0000 (13:20 +0000)]
Change a sed expression to be POSIX compliant.

17 years ago* lib/getopt_.h: Fix comments.
Eric Blake [Wed, 1 Nov 2006 13:14:15 +0000 (13:14 +0000)]
* lib/getopt_.h: Fix comments.

17 years ago.
Karl Berry [Wed, 1 Nov 2006 08:40:51 +0000 (08:40 +0000)]
.

17 years ago* modules/tmpdir (Depends-on): Add sys_stat.
Eric Blake [Wed, 1 Nov 2006 03:46:10 +0000 (03:46 +0000)]
* modules/tmpdir (Depends-on): Add sys_stat.
* modules/mkdtemp (Depends-on): Add tempname, drop unistd.
* lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
* lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
* m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
tempname.