gnulib.git
17 years ago* lib/stat-time.h (USE_BIRTHTIME): Remove.
Paul Eggert [Tue, 27 Mar 2007 18:51:17 +0000 (18:51 +0000)]
* lib/stat-time.h (USE_BIRTHTIME): Remove.
(get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
(get_stat_birthtime_ns): Do not try to use "spare" fields.
(get_stat_birthtime_ns): Simplify compile-time tests.
(get_stat_birthtime): Change the API to look like
get_stat_mtime etc., except return a negative tv_nsec on error.
* m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
Don't check for "spare" fields.
(gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
or for struct stat.st_birthtime, as these tests aren't used.
* tests/test-stat-time.c (test_birthtime): Adjust to new API.

17 years agoFix signal handler.
Bruno Haible [Tue, 27 Mar 2007 16:53:53 +0000 (16:53 +0000)]
Fix signal handler.

17 years ago2007-03-27 Bruno Haible <bruno@clisp.org>
Bruno Haible [Tue, 27 Mar 2007 11:01:11 +0000 (11:01 +0000)]
2007-03-27  Bruno Haible  <bruno@clisp.org>
        * lib/stat-time.h: Include <sys/stat.h>.
2007-03-27  James Youngman  <jay@gnu.org>
        * lib/stat-time.h (get_stat_birthtime): New function for
          retrieving st_birthtime as provided by UFS2 (hence *BSD).
        * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
          and its variants.
        * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
        * modules/stat-time-test: New file.
        * tests/test-stat-time.c: New test, devised by Bruno Haible.

17 years agoDepend on isnanl now.
Bruno Haible [Mon, 26 Mar 2007 22:27:16 +0000 (22:27 +0000)]
Depend on isnanl now.

17 years agoBetter support of signalling NaNs.
Bruno Haible [Mon, 26 Mar 2007 22:26:05 +0000 (22:26 +0000)]
Better support of signalling NaNs.

17 years agoNo tabs please.
Bruno Haible [Mon, 26 Mar 2007 20:59:46 +0000 (20:59 +0000)]
No tabs please.

17 years ago* m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
Eric Blake [Mon, 26 Mar 2007 18:25:16 +0000 (18:25 +0000)]
* m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
regression in logic sense of previous patch.

17 years ago* m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
Eric Blake [Mon, 26 Mar 2007 18:25:16 +0000 (18:25 +0000)]
* m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
regression in logic sense of previous patch.

17 years agoUpdate after utf8-ucs4-unsafe.h and utf16-ucs4-unsafe.h were removed.
Bruno Haible [Mon, 26 Mar 2007 11:20:01 +0000 (11:20 +0000)]
Update after utf8-ucs4-unsafe.h and utf16-ucs4-unsafe.h were removed.

17 years agoDon't use unportable shell statement.
Bruno Haible [Mon, 26 Mar 2007 10:24:24 +0000 (10:24 +0000)]
Don't use unportable shell statement.

17 years agoIf <sysexits.h> exists but is missing values, fill in the missing values.
Bruno Haible [Mon, 26 Mar 2007 10:16:08 +0000 (10:16 +0000)]
If <sysexits.h> exists but is missing values, fill in the missing values.

17 years agoDon't access hints->ai_flags when hints is NULL.
Bruno Haible [Mon, 26 Mar 2007 10:13:27 +0000 (10:13 +0000)]
Don't access hints->ai_flags when hints is NULL.

17 years agoAvoid compiler warnings.
Bruno Haible [Mon, 26 Mar 2007 10:10:44 +0000 (10:10 +0000)]
Avoid compiler warnings.

17 years agoPrefer nl_langinfo over localeconv.
Bruno Haible [Mon, 26 Mar 2007 02:15:46 +0000 (02:15 +0000)]
Prefer nl_langinfo over localeconv.

17 years agoAdd support for the SH CPU. Reported by Ben Pfaff.
Bruno Haible [Mon, 26 Mar 2007 00:28:46 +0000 (00:28 +0000)]
Add support for the SH CPU. Reported by Ben Pfaff.

17 years agoOops, typo in compiler option.
Bruno Haible [Mon, 26 Mar 2007 00:16:46 +0000 (00:16 +0000)]
Oops, typo in compiler option.

17 years agoSupport 'j' size specifier on all platforms.
Bruno Haible [Mon, 26 Mar 2007 00:14:00 +0000 (00:14 +0000)]
Support 'j' size specifier on all platforms.

17 years agoNew module 'fpieee'.
Bruno Haible [Sun, 25 Mar 2007 23:59:54 +0000 (23:59 +0000)]
New module 'fpieee'.

17 years agoAvoid the completely broken frexpl() function of AIX 5.1.
Bruno Haible [Sun, 25 Mar 2007 22:21:06 +0000 (22:21 +0000)]
Avoid the completely broken frexpl() function of AIX 5.1.

17 years agoAvoid test failures on IRIX MIPS.
Bruno Haible [Sun, 25 Mar 2007 21:46:38 +0000 (21:46 +0000)]
Avoid test failures on IRIX MIPS.

17 years agoProvide a replacement for frexpl() if the system has it but it doesn't work.
Bruno Haible [Sun, 25 Mar 2007 21:35:38 +0000 (21:35 +0000)]
Provide a replacement for frexpl() if the system has it but it doesn't work.

17 years agoCheck against a bug of frexp() on IRIX 6.5.
Bruno Haible [Sun, 25 Mar 2007 21:25:35 +0000 (21:25 +0000)]
Check against a bug of frexp() on IRIX 6.5.

17 years agoWork around IRIX 6.5 cc compiler bug, which simplifies x != x to false.
Bruno Haible [Sun, 25 Mar 2007 20:58:03 +0000 (20:58 +0000)]
Work around IRIX 6.5 cc compiler bug, which simplifies x != x to false.

17 years agoFix indentation.
Bruno Haible [Sun, 25 Mar 2007 20:36:17 +0000 (20:36 +0000)]
Fix indentation.

17 years agoWork around a DEC C compiler bug.
Bruno Haible [Sun, 25 Mar 2007 19:56:22 +0000 (19:56 +0000)]
Work around a DEC C compiler bug.

17 years agoWork around DEC C 6.4 compiler bug.
Bruno Haible [Sun, 25 Mar 2007 19:45:26 +0000 (19:45 +0000)]
Work around DEC C 6.4 compiler bug.

17 years agoMake sure 'struct stat' is defined before glob-libc.h uses it. Fixes a warning
Bruno Haible [Sun, 25 Mar 2007 19:36:17 +0000 (19:36 +0000)]
Make sure 'struct stat' is defined before glob-libc.h uses it. Fixes a warning
on AIX 5.1.

17 years agoAvoid HP-UX cc warning.
Bruno Haible [Sun, 25 Mar 2007 18:07:11 +0000 (18:07 +0000)]
Avoid HP-UX cc warning.

17 years agoAvoid HP-UX cc compiler warning.
Bruno Haible [Sun, 25 Mar 2007 18:03:15 +0000 (18:03 +0000)]
Avoid HP-UX cc compiler warning.

17 years agoAvoid compiler warning.
Bruno Haible [Sun, 25 Mar 2007 17:58:06 +0000 (17:58 +0000)]
Avoid compiler warning.

17 years agoAvoid circular definition restrict -> __restrict -> restrict on BeOS.
Bruno Haible [Sun, 25 Mar 2007 17:53:39 +0000 (17:53 +0000)]
Avoid circular definition restrict -> __restrict -> restrict on BeOS.

17 years agoEnsure rule action lines start with a tab.
Bruno Haible [Sun, 25 Mar 2007 15:34:55 +0000 (15:34 +0000)]
Ensure rule action lines start with a tab.

17 years agoOops, fix ANSI C syntax error introduced in last patch.
Bruno Haible [Sun, 25 Mar 2007 12:00:37 +0000 (12:00 +0000)]
Oops, fix ANSI C syntax error introduced in last patch.

17 years agoTests for module 'tsearch'.
Bruno Haible [Sun, 25 Mar 2007 02:48:08 +0000 (02:48 +0000)]
Tests for module 'tsearch'.

17 years agoTests for module 'search'.
Bruno Haible [Sun, 25 Mar 2007 02:46:43 +0000 (02:46 +0000)]
Tests for module 'search'.

17 years agoNew module 'search'.
Bruno Haible [Sun, 25 Mar 2007 02:45:24 +0000 (02:45 +0000)]
New module 'search'.

17 years agoNew module 'fpucw'.
Bruno Haible [Sun, 25 Mar 2007 02:29:46 +0000 (02:29 +0000)]
New module 'fpucw'.

17 years agoCorrect bitwise comparison of 'long double' numbers.
Bruno Haible [Sun, 25 Mar 2007 02:22:44 +0000 (02:22 +0000)]
Correct bitwise comparison of 'long double' numbers.

17 years agoCorrect bitwise comparison of 'long double' numbers.
Bruno Haible [Sun, 25 Mar 2007 01:11:49 +0000 (01:11 +0000)]
Correct bitwise comparison of 'long double' numbers.

17 years agoCorrect bitwise comparison of 'long double' numbers.
Bruno Haible [Sun, 25 Mar 2007 01:06:39 +0000 (01:06 +0000)]
Correct bitwise comparison of 'long double' numbers.

17 years agoSupport for bitwise comparison of floating-point numbers.
Bruno Haible [Sun, 25 Mar 2007 01:05:23 +0000 (01:05 +0000)]
Support for bitwise comparison of floating-point numbers.

17 years agoFix includes.
Bruno Haible [Sun, 25 Mar 2007 00:49:34 +0000 (00:49 +0000)]
Fix includes.

17 years agoProduce no output in expected situations. Fail in unexpected situations.
Bruno Haible [Sat, 24 Mar 2007 22:08:14 +0000 (22:08 +0000)]
Produce no output in expected situations. Fail in unexpected situations.

17 years agoemove the special-casing of NetBSD.
Bruno Haible [Sat, 24 Mar 2007 21:24:00 +0000 (21:24 +0000)]
emove the special-casing of NetBSD.

17 years agoFix last change.
Bruno Haible [Sat, 24 Mar 2007 17:05:49 +0000 (17:05 +0000)]
Fix last change.

17 years agoReorganize modules utf8-ucs4-unsafe, utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4,
Bruno Haible [Sat, 24 Mar 2007 14:55:28 +0000 (14:55 +0000)]
Reorganize modules utf8-ucs4-unsafe, utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4,
ucs4-utf8, ucs4-utf16.

17 years agoRename some source files.
Bruno Haible [Sat, 24 Mar 2007 14:30:33 +0000 (14:30 +0000)]
Rename some source files.

17 years agoEnable the function only if HAVE_INLINE.
Bruno Haible [Sat, 24 Mar 2007 14:29:56 +0000 (14:29 +0000)]
Enable the function only if HAVE_INLINE.

17 years agoMove to u16-uctomb-aux.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:51 +0000 (14:25 +0000)]
Move to u16-uctomb-aux.c.

17 years agoMove to here from ucs4-utf16.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:48 +0000 (14:25 +0000)]
Move to here from ucs4-utf16.c.

17 years agoMove to u8-uctomb-aux.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:40 +0000 (14:25 +0000)]
Move to u8-uctomb-aux.c.

17 years agoMove to here from ucs4-utf8.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:37 +0000 (14:25 +0000)]
Move to here from ucs4-utf8.c.

17 years agoMove to u16-mbtouc-unsafe-aux.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:30 +0000 (14:25 +0000)]
Move to u16-mbtouc-unsafe-aux.c.

17 years agoMove to here from utf16-ucs4-unsafe.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:28 +0000 (14:25 +0000)]
Move to here from utf16-ucs4-unsafe.c.

17 years agoMove to u16-mbtouc-aux.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:17 +0000 (14:25 +0000)]
Move to u16-mbtouc-aux.c.

17 years agoMove to here from utf16-ucs4.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:14 +0000 (14:25 +0000)]
Move to here from utf16-ucs4.c.

17 years agoMove to u8-mbtouc-unsafe-aux.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:03 +0000 (14:25 +0000)]
Move to u8-mbtouc-unsafe-aux.c.

17 years agoMove to here from utf8-ucs4-unsafe.c.
Bruno Haible [Sat, 24 Mar 2007 14:25:00 +0000 (14:25 +0000)]
Move to here from utf8-ucs4-unsafe.c.

17 years agoMove to u8-mbtouc-aux.c.
Bruno Haible [Sat, 24 Mar 2007 14:24:44 +0000 (14:24 +0000)]
Move to u8-mbtouc-aux.c.

17 years agoMove to here from utf8-ucs4.c.
Bruno Haible [Sat, 24 Mar 2007 14:24:41 +0000 (14:24 +0000)]
Move to here from utf8-ucs4.c.

17 years agoDrop the include files utf8-ucs4.h, utf8-ucs4-unsafe.h, utf16-ucs4.h,
Bruno Haible [Sat, 24 Mar 2007 14:11:25 +0000 (14:11 +0000)]
Drop the include files utf8-ucs4.h, utf8-ucs4-unsafe.h, utf16-ucs4.h,
utf16-ucs4-unsafe.h, ucs4-utf8.h, ucs4-utf16.h. Use unistr.h instead.

17 years agoCast the argument of <ctype.h> functions to 'unsigned char'.
Bruno Haible [Sat, 24 Mar 2007 11:23:08 +0000 (11:23 +0000)]
Cast the argument of <ctype.h> functions to 'unsigned char'.

17 years agoStick to ANSI C syntax, not C99 syntax.
Bruno Haible [Sat, 24 Mar 2007 00:10:32 +0000 (00:10 +0000)]
Stick to ANSI C syntax, not C99 syntax.

17 years ago* MODULES.html.sh (File system functions): New module write-any-file.
Paul Eggert [Fri, 23 Mar 2007 17:33:07 +0000 (17:33 +0000)]
* MODULES.html.sh (File system functions): New module write-any-file.
* modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
* m4/write-any-file.m4: New files.

17 years ago* gnulib-tool: Rearrange space-tab sequences, since some editors
Eric Blake [Fri, 23 Mar 2007 13:11:28 +0000 (13:11 +0000)]
* gnulib-tool: Rearrange space-tab sequences, since some editors
like to eat them.

17 years ago* lib/version-etc.c (version_etc_va): Update license wording to
Eric Blake [Fri, 23 Mar 2007 12:37:17 +0000 (12:37 +0000)]
* lib/version-etc.c (version_etc_va): Update license wording to
be more concise.  Recommended by Richard Stallman.

17 years agoOops, fix typo in last patch.
Bruno Haible [Fri, 23 Mar 2007 03:06:51 +0000 (03:06 +0000)]
Oops, fix typo in last patch.

17 years agoFix compilation error on BeOS.
Bruno Haible [Fri, 23 Mar 2007 02:12:53 +0000 (02:12 +0000)]
Fix compilation error on BeOS.

17 years agoFix a compilation error on BeOS.
Bruno Haible [Fri, 23 Mar 2007 02:08:42 +0000 (02:08 +0000)]
Fix a compilation error on BeOS.

17 years agoTests for module 'frexpl'.
Bruno Haible [Fri, 23 Mar 2007 01:27:57 +0000 (01:27 +0000)]
Tests for module 'frexpl'.

17 years agoNew module 'frexpl'.
Bruno Haible [Fri, 23 Mar 2007 01:26:24 +0000 (01:26 +0000)]
New module 'frexpl'.

17 years agoMerge the frexpl and frexp implementations into a single code.
Bruno Haible [Thu, 22 Mar 2007 12:24:07 +0000 (12:24 +0000)]
Merge the frexpl and frexp implementations into a single code.

17 years agoDon't use the system's frexp() if it does not work (example: NetBSD 3.0).
Bruno Haible [Thu, 22 Mar 2007 11:59:06 +0000 (11:59 +0000)]
Don't use the system's frexp() if it does not work (example: NetBSD 3.0).

17 years agoRemove Paolo's variant of the algorithm, with his permission.
Bruno Haible [Thu, 22 Mar 2007 11:52:34 +0000 (11:52 +0000)]
Remove Paolo's variant of the algorithm, with his permission.

17 years agoOops, don't use 'long double' here.
Bruno Haible [Thu, 22 Mar 2007 11:35:12 +0000 (11:35 +0000)]
Oops, don't use 'long double' here.

17 years agoTests for module 'frexp'.
Bruno Haible [Thu, 22 Mar 2007 04:02:05 +0000 (04:02 +0000)]
Tests for module 'frexp'.

17 years agoNew module 'frexp'.
Bruno Haible [Thu, 22 Mar 2007 03:59:38 +0000 (03:59 +0000)]
New module 'frexp'.

17 years agoOops.
Bruno Haible [Thu, 22 Mar 2007 02:32:29 +0000 (02:32 +0000)]
Oops.

17 years agoTests for module 'isnanl'.
Bruno Haible [Thu, 22 Mar 2007 02:19:08 +0000 (02:19 +0000)]
Tests for module 'isnanl'.

17 years agoNew module 'isnanl'.
Bruno Haible [Thu, 22 Mar 2007 02:18:35 +0000 (02:18 +0000)]
New module 'isnanl'.

17 years agoisnanl.h was renamed to isnanl-nolibm.h.
Bruno Haible [Thu, 22 Mar 2007 02:04:01 +0000 (02:04 +0000)]
isnanl.h was renamed to isnanl-nolibm.h.

17 years agoSplit test-isnanl.c into test-isnanl-nolibm.c and test-isnanl.h.
Bruno Haible [Thu, 22 Mar 2007 02:02:42 +0000 (02:02 +0000)]
Split test-isnanl.c into test-isnanl-nolibm.c and test-isnanl.h.

17 years agoMove to isnanl-nolibm.h.
Bruno Haible [Thu, 22 Mar 2007 02:00:49 +0000 (02:00 +0000)]
Move to isnanl-nolibm.h.

17 years agoMove to here from isnanl.h.
Bruno Haible [Thu, 22 Mar 2007 02:00:46 +0000 (02:00 +0000)]
Move to here from isnanl.h.

17 years agoPrepare for creating module 'isnanl'.
Bruno Haible [Thu, 22 Mar 2007 02:00:05 +0000 (02:00 +0000)]
Prepare for creating module 'isnanl'.

17 years agoFix my last ChangeLog entry.
Bruno Haible [Wed, 21 Mar 2007 11:30:16 +0000 (11:30 +0000)]
Fix my last ChangeLog entry.

17 years agoWhen trying to open ".", treat ESTALE like EACCES.
Jim Meyering [Wed, 21 Mar 2007 08:07:20 +0000 (08:07 +0000)]
When trying to open ".", treat ESTALE like EACCES.
* lib/savewd.c (savewd_save): Resort to forking not just upon
failure with EACCES, but also when errno is ESTALE.

17 years agoEnable the strndup declaration also when strndup is replaced.
Bruno Haible [Wed, 21 Mar 2007 04:22:35 +0000 (04:22 +0000)]
Enable the strndup declaration also when strndup is replaced.

17 years agoSuggestions by Bruno Haible:
Paul Eggert [Tue, 20 Mar 2007 05:46:39 +0000 (05:46 +0000)]
Suggestions by Bruno Haible:
* lib/acl-internal.h: Include "gettext.h" rather than rolling
our own.
(ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
* modules/acl (Depends-on): Add gettext.

17 years agoRemove module 'iconvme'.
Bruno Haible [Tue, 20 Mar 2007 00:35:56 +0000 (00:35 +0000)]
Remove module 'iconvme'.

17 years agoBreak long line.
Bruno Haible [Mon, 19 Mar 2007 23:29:43 +0000 (23:29 +0000)]
Break long line.

17 years agoAdd limited support for Solaris 10 ZFS-style ACLs: just enough to
Paul Eggert [Mon, 19 Mar 2007 21:58:57 +0000 (21:58 +0000)]
Add limited support for Solaris 10 ZFS-style ACLs: just enough to
handle file_has_acl.
* lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
* lib/acl.c: Move header inclusions and related macro defns into
lib/acl-internal.h.
(S_ISLNK): Remove defn, since that's now done for us.
(file_has_acl): Move to lib/file-has-acl.c.
Call acl_trivial if available.  This is the crucial part of the fix.
(acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
shared within the library.  Rewrite a bit, partly to make it compatible
with the GNU coding style.
* m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
Remove unnecessary double-quotes.
Don't test for acl_to_text; the build will catch that.
Replace acl_entries if it doesn't exist and it is needed.
Check for -lsec and acl_trivial (as used on Solaris 10).
* modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
lib/file-has-acl.c.
(Depends-on): Add sys_stat, for S_ISLNK.

17 years agoFix typos.
Ben Pfaff [Mon, 19 Mar 2007 20:30:25 +0000 (20:30 +0000)]
Fix typos.
Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.

17 years ago* lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
Paul Eggert [Mon, 19 Mar 2007 17:30:07 +0000 (17:30 +0000)]
* lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
If size is zero here, buf must be zero.

17 years ago2007-03-19 Simon Josefsson <simon@josefsson.org>
Simon Josefsson [Mon, 19 Mar 2007 10:07:27 +0000 (10:07 +0000)]
2007-03-19  Simon Josefsson  <simon@josefsson.org>

* des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
<bruno@clisp.org>.

17 years agoUndo first part of last patch.
Bruno Haible [Mon, 19 Mar 2007 01:02:27 +0000 (01:02 +0000)]
Undo first part of last patch.

17 years agoRecommend using as prefix a directory that does not exist and will
Ben Pfaff [Sun, 18 Mar 2007 23:59:44 +0000 (23:59 +0000)]
Recommend using as prefix a directory that does not exist and will
never be created.  Based on discussion with Bruno Haible, Ralf
Wildenhues, Matthew Woehlke, and others.

17 years ago* lib/fchownat.c: Include lchown.h.
Jim Meyering [Sun, 18 Mar 2007 15:29:10 +0000 (15:29 +0000)]
* lib/fchownat.c: Include lchown.h.

2007-03-17  Bruno Haible  <bruno@clisp.org>

17 years agoautoupdate
Karl Berry [Sun, 18 Mar 2007 13:25:06 +0000 (13:25 +0000)]
autoupdate

17 years agoFix endless loop when the given allocated size was > INT_MAX.
Bruno Haible [Sun, 18 Mar 2007 00:31:50 +0000 (00:31 +0000)]
Fix endless loop when the given allocated size was > INT_MAX.