gnulib.git
15 years agoFix CVS-isms.
Bruno Haible [Thu, 19 Jun 2008 11:51:54 +0000 (13:51 +0200)]
Fix CVS-isms.

15 years agoUpdate dependencies.
Bruno Haible [Thu, 19 Jun 2008 11:47:14 +0000 (13:47 +0200)]
Update dependencies.

15 years agoFix VPATH 'make dist' with GNU make and non-VCS tarball.
Eric Blake [Thu, 19 Jun 2008 04:33:37 +0000 (22:33 -0600)]
Fix VPATH 'make dist' with GNU make and non-VCS tarball.

* top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
Reported by Stepan Kasal.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAdd a comment.
Bruno Haible [Thu, 19 Jun 2008 01:34:29 +0000 (03:34 +0200)]
Add a comment.

15 years agoWork around cygwin 1.5.25 strsignal bug.
Eric Blake [Wed, 18 Jun 2008 16:50:06 +0000 (10:50 -0600)]
Work around cygwin 1.5.25 strsignal bug.

* tests/test-strsignal.c: Allow for const char *.
* doc/glibc-functions/strsignal.texi (strsignal): Document the bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAdd ChangeLog entry for last commit.
Simon Josefsson [Wed, 18 Jun 2008 14:48:01 +0000 (16:48 +0200)]
Add ChangeLog entry for last commit.

15 years agoUpdate URL to article and add author/date information.
Simon Josefsson [Wed, 18 Jun 2008 14:46:55 +0000 (16:46 +0200)]
Update URL to article and add author/date information.

15 years agoNew macro gl_DISABLE_THREADS.
Bruno Haible [Wed, 18 Jun 2008 00:31:53 +0000 (02:31 +0200)]
New macro gl_DISABLE_THREADS.

15 years agoAvoid unused value warnings.
Bruno Haible [Wed, 18 Jun 2008 00:06:26 +0000 (02:06 +0200)]
Avoid unused value warnings.

15 years agoRelicense under LGPLv2+ license.
Bruno Haible [Tue, 17 Jun 2008 23:52:21 +0000 (01:52 +0200)]
Relicense under LGPLv2+ license.

15 years agoSimplify c-stack prerequisites.
Eric Blake [Tue, 17 Jun 2008 17:07:45 +0000 (11:07 -0600)]
Simplify c-stack prerequisites.

* lib/c-stack.c (includes): Remove unused <sys/resource.h>.
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
no longer requires <ucontext.h> to exist.  Optimize setrlimit
check.
(gl_PREREQ_C_STACK): Remove check for unused getcontext and
<sys/resource.h>.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoMove c-stack test into testsuite.
Eric Blake [Tue, 17 Jun 2008 14:43:38 +0000 (08:43 -0600)]
Move c-stack test into testsuite.

* modules/c-stack-tests: New file.
* lib/c-stack.c [DEBUG]: Move test program...
* tests/test-c-stack.c: ...into this new file.  Skip rather than
fail test if sigaltstack is lacking.
* tests/test-c-stack.sh: New driver file.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoRepair executable bit, again.
Eric Blake [Tue, 17 Jun 2008 02:54:38 +0000 (20:54 -0600)]
Repair executable bit, again.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoNormalize whitespace.
Bruno Haible [Mon, 16 Jun 2008 23:27:14 +0000 (01:27 +0200)]
Normalize whitespace.

15 years agoUse raise module consistently.
Eric Blake [Mon, 16 Jun 2008 22:45:09 +0000 (16:45 -0600)]
Use raise module consistently.

* modules/fatal-signal (Depends-on): Add raise.
* modules/sigprocmask (Depends-on): Likewise.
* lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
* lib/sigprocmask.c (sigprocmask): Likewise.
* m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
* m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix compliance bug in sigpending.
Eric Blake [Mon, 16 Jun 2008 20:17:11 +0000 (14:17 -0600)]
Fix compliance bug in sigpending.

* lib/sigprocmask.c (sigpending): Return pending array via
parameter, not return value.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoautoupdate
Karl Berry [Mon, 16 Jun 2008 13:04:29 +0000 (06:04 -0700)]
autoupdate

15 years agoImprove obstack-printf test code.
Eric Blake [Sat, 14 Jun 2008 13:36:03 +0000 (07:36 -0600)]
Improve obstack-printf test code.

* tests/test-obstack-printf.c (test_function): Fix comment, and
simplify usage of obstack_* in macros.  Add a test for coverage.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix various problems in 'obstack-printf' module.
Bruno Haible [Sat, 14 Jun 2008 13:06:19 +0000 (15:06 +0200)]
Fix various problems in 'obstack-printf' module.

15 years agoAdd obstack-printf and obstack-printf-posix modules.
Eric Blake [Fri, 13 Jun 2008 12:40:53 +0000 (06:40 -0600)]
Add obstack-printf and obstack-printf-posix modules.

* modules/obstack-printf: New file.
* modules/obstack-printf-posix: Likewise.
* MODULES.html.sh (Misc): Mention them.
* doc/glibc-functions/obstack_printf.texi (obstack_printf):
Likewise.
* doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
Likewise.
* modules/stdio (Makefile.am): Accomodate new modules.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
* lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
Declare.
* lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
functions.
* m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
(gl_REPLACE_OBSTACK_PRINTF): New macros
* m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
* tests/test-obstack-printf.c: New file.
* modules/obstack-printf-tests: Likewise.
* modules/obstack-printf-posix-tests: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoautoupdate
Karl Berry [Fri, 13 Jun 2008 12:59:04 +0000 (05:59 -0700)]
autoupdate

15 years agoTypo in comment.
Bruno Haible [Thu, 12 Jun 2008 13:01:07 +0000 (15:01 +0200)]
Typo in comment.

15 years agoAdd a comment.
Bruno Haible [Thu, 12 Jun 2008 11:47:37 +0000 (13:47 +0200)]
Add a comment.

15 years agoWork around open() bug on HP-UX 11 and Solaris 9.
Bruno Haible [Thu, 12 Jun 2008 00:17:36 +0000 (02:17 +0200)]
Work around open() bug on HP-UX 11 and Solaris 9.

15 years agoAvoid a test failure when the test wants to skip itself.
Bruno Haible [Wed, 11 Jun 2008 23:12:11 +0000 (01:12 +0200)]
Avoid a test failure when the test wants to skip itself.

15 years agoautoupdate
Karl Berry [Wed, 11 Jun 2008 12:23:13 +0000 (05:23 -0700)]
autoupdate

15 years agoInclude gettext.h only in those files that need it.
Bruno Haible [Wed, 11 Jun 2008 00:33:46 +0000 (02:33 +0200)]
Include gettext.h only in those files that need it.

15 years agoAdd termsigp argument to execute() and wait_process().
Bruno Haible [Tue, 10 Jun 2008 15:38:39 +0000 (17:38 +0200)]
Add termsigp argument to execute() and wait_process().

15 years agoFix copy&pasted comment.
Bruno Haible [Tue, 10 Jun 2008 12:33:21 +0000 (14:33 +0200)]
Fix copy&pasted comment.

15 years agoAdd missing include.
Eric Blake [Tue, 10 Jun 2008 12:25:20 +0000 (06:25 -0600)]
Add missing include.

* tests/test-strstr.c (includes): Add <signal.h>.
* tests/test-strcasestr.c (includes): Likewise.
* tests/test-memmem.c (includes): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAdd an assertion.
Bruno Haible [Tue, 10 Jun 2008 11:57:21 +0000 (13:57 +0200)]
Add an assertion.

15 years agoTry to fix waitid() based code.
Bruno Haible [Tue, 10 Jun 2008 11:55:34 +0000 (13:55 +0200)]
Try to fix waitid() based code.

15 years agoWork around environments that (stupidly) ignore SIGALRM.
Bruno Haible [Tue, 10 Jun 2008 10:13:43 +0000 (12:13 +0200)]
Work around environments that (stupidly) ignore SIGALRM.

15 years agoWork around the Solaris 10 ACE ACLs ABI change.
Bruno Haible [Tue, 10 Jun 2008 00:40:28 +0000 (02:40 +0200)]
Work around the Solaris 10 ACE ACLs ABI change.

15 years agoIgnore some more editor backup files.
Eric Blake [Mon, 9 Jun 2008 22:41:11 +0000 (16:41 -0600)]
Ignore some more editor backup files.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoWork around environments that (stupidly) ignore SIGALRM.
Eric Blake [Mon, 9 Jun 2008 22:21:34 +0000 (16:21 -0600)]
Work around environments that (stupidly) ignore SIGALRM.

* m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
before using alarm().
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
* m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
Reported by Ian Beckwith <ianb@erislabs.net>.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoProduce autobuild blurb earlier in log.
Eric Blake [Mon, 9 Jun 2008 14:14:45 +0000 (08:14 -0600)]
Produce autobuild blurb earlier in log.

* modules/autobuild (configure.ac-early): Move AB_INIT here.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoadd ChangeLog entry: add more guards around definition of ACE_-related code
Jim Meyering [Mon, 9 Jun 2008 12:11:34 +0000 (14:11 +0200)]
add ChangeLog entry: add more guards around definition of ACE_-related code

15 years agoutimens.c: correct kernel bug work-around
Jim Meyering [Fri, 6 Jun 2008 16:20:14 +0000 (18:20 +0200)]
utimens.c: correct kernel bug work-around

Ondřej Vašík found that the invalid return value of 280 indicates
failure, not success, and the kernel bug we're trying to work
around affects not just the utimensat call, but also the fallback
futimens call.
* lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
not success.
[HAVE_FUTIMENS]: Use the same work-around, here.

15 years agoadd more guards around definition of ACE_-related code
Jim Meyering [Mon, 9 Jun 2008 09:28:55 +0000 (11:28 +0200)]
add more guards around definition of ACE_-related code

* lib/file-has-acl.c (acl_ace_nontrivial): Define only if
ALLOW and ACE_OWNER are also defined.

15 years agoAdd me as co-author.
Bruno Haible [Sun, 8 Jun 2008 21:55:37 +0000 (23:55 +0200)]
Add me as co-author.

15 years agoAdd support for AIX ACLs.
Bruno Haible [Sun, 8 Jun 2008 18:33:08 +0000 (20:33 +0200)]
Add support for AIX ACLs.

15 years agoAdd support for HP-UX ACLs.
Bruno Haible [Sun, 8 Jun 2008 17:08:22 +0000 (19:08 +0200)]
Add support for HP-UX ACLs.

15 years agoAdd support for Cygwin ACLs.
Bruno Haible [Sun, 8 Jun 2008 14:52:23 +0000 (16:52 +0200)]
Add support for Cygwin ACLs.

15 years agoFix bug with setuid modes in Solaris 10+ code.
Bruno Haible [Sun, 8 Jun 2008 14:33:02 +0000 (16:33 +0200)]
Fix bug with setuid modes in Solaris 10+ code.

15 years agoAdd support for Solaris 7..10 ACLs.
Bruno Haible [Sun, 8 Jun 2008 14:04:08 +0000 (16:04 +0200)]
Add support for Solaris 7..10 ACLs.

15 years agoMore references.
Bruno Haible [Sun, 8 Jun 2008 13:55:30 +0000 (15:55 +0200)]
More references.

15 years agoNew function acl_extended_nontrivial (MacOS X only).
Bruno Haible [Sun, 8 Jun 2008 11:58:26 +0000 (13:58 +0200)]
New function acl_extended_nontrivial (MacOS X only).

15 years agoTrivial code simplifications.
Bruno Haible [Sun, 8 Jun 2008 11:29:35 +0000 (13:29 +0200)]
Trivial code simplifications.

15 years agoComments.
Bruno Haible [Sun, 8 Jun 2008 11:19:49 +0000 (13:19 +0200)]
Comments.

15 years ago* modules/acl (Maintainer): Add Bruno Haible.
Jim Meyering [Sun, 8 Jun 2008 07:38:26 +0000 (09:38 +0200)]
* modules/acl (Maintainer): Add Bruno Haible.

15 years agoDon't test the ACL_TYPE_DEFAULT ACL on OSF/1.
Bruno Haible [Sun, 8 Jun 2008 03:08:56 +0000 (05:08 +0200)]
Don't test the ACL_TYPE_DEFAULT ACL on OSF/1.

15 years agoAdd support for MacOS X ACLs.
Bruno Haible [Sun, 8 Jun 2008 03:06:19 +0000 (05:06 +0200)]
Add support for MacOS X ACLs.

15 years agoFix memory leak introduced on 2008-05-22.
Bruno Haible [Sun, 8 Jun 2008 02:51:21 +0000 (04:51 +0200)]
Fix memory leak introduced on 2008-05-22.

15 years agoAvoid needing to know the textual representation of an ACL when possible.
Bruno Haible [Sun, 8 Jun 2008 02:39:51 +0000 (04:39 +0200)]
Avoid needing to know the textual representation of an ACL when possible.

15 years agoTrivial code simplifications.
Bruno Haible [Sun, 8 Jun 2008 02:34:52 +0000 (04:34 +0200)]
Trivial code simplifications.

15 years agoTrivial stylistic improvements.
Bruno Haible [Sat, 7 Jun 2008 18:11:23 +0000 (20:11 +0200)]
Trivial stylistic improvements.

15 years agoFix doc about _setjmp.
Bruno Haible [Sat, 7 Jun 2008 11:49:10 +0000 (13:49 +0200)]
Fix doc about _setjmp.

15 years agoActually commit the argz_next doc fix.
Eric Blake [Fri, 6 Jun 2008 23:57:29 +0000 (17:57 -0600)]
Actually commit the argz_next doc fix.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoDocument abort() bugs.
Eric Blake [Fri, 6 Jun 2008 16:50:17 +0000 (10:50 -0600)]
Document abort() bugs.

* doc/posix-functions/abort.texi (abort): Mention anomalies.
* doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
* doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
sigsetjmp.
* doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
siglongjmp, but only as a macro.
* doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
is obsolete.
* doc/posix-functions/_setjmp.texi (_setjmp): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoTweak documentation to cover cygwin argz bugs.
Eric Blake [Fri, 6 Jun 2008 14:51:48 +0000 (08:51 -0600)]
Tweak documentation to cover cygwin argz bugs.

* m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
argz bug fix; no code change needed since no cygwin releases
occurred between the last fix and the bug being tested.
* doc/glibc-functions/argz_add.texi (argz_add): Document the argz
module and recently fixed cygwin bugs.
* doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
* doc/glibc-functions/argz_append.texi (argz_append): Likewise.
* doc/glibc-functions/argz_count.texi (argz_count): Likewise.
* doc/glibc-functions/argz_create.texi (argz_create): Likewise.
* doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
Likewise.
* doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
* doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
* doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
* doc/glibc-functions/argz_next.texi (argz_next): Likewise.
* doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
* doc/glibc-functions/argz_stringify.texi (argz_stringify):
Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAvoid gcc warning on cygwin.
Eric Blake [Fri, 6 Jun 2008 14:34:18 +0000 (08:34 -0600)]
Avoid gcc warning on cygwin.

* lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
!ACL_NO_TRIVIAL]: Avoid unused variable.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agogenerate argz.c and argz.in.h from glibc sources
Jim Meyering [Tue, 3 Jun 2008 09:42:12 +0000 (11:42 +0200)]
generate argz.c and argz.in.h from glibc sources

* config/argz.mk: New file, with rules to generate the two files.
* modules/argz (Depends-on): Add mempcpy, stpcpy, strndup
and strnlen.  Suggested by David Lutterkort.
* m4/argz.m4: Require AC_C_RESTRICT.
Check only for the existence of one function,
argz_replace, since it seems to have been added most recently.
Also, remove the side effect of defining HAVE_ARGZ_* symbols.
* lib/argz.c: Now generated directly from glibc sources, rather than
imported from libtool.  Includes the following additional functions:
argz_extract, argz_create, argz_delete, str_append, argz_replace.
* lib/argz.in.h: Likewise.
* config/srclist.txt: Reflect that argz* files are no longer pulled
from libtool.

15 years agoBe tolerant of UNKNOWN version in gnulib-tool test dir.
Eric Blake [Wed, 4 Jun 2008 22:03:13 +0000 (16:03 -0600)]
Be tolerant of UNKNOWN version in gnulib-tool test dir.

* top/GNUmakefile (_dummy): Warn rather than reconfigure if
git-version-gen fails to come up with a version.
Reported by Simon Josefsson.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoutimens.c: work around a probable Linux kernel bug
Jim Meyering [Wed, 4 Jun 2008 17:32:50 +0000 (19:32 +0200)]
utimens.c: work around a probable Linux kernel bug

* lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
appears to be a kernel bug that causes utimensat to return 280
instead of 0, indicating success.

16 years agoFix small mistake from 2008-06-01.
Bruno Haible [Wed, 4 Jun 2008 22:56:52 +0000 (00:56 +0200)]
Fix small mistake from 2008-06-01.

16 years agoNew function for testing triviality of ACL with POSIX-draft like API.
Bruno Haible [Wed, 4 Jun 2008 20:48:48 +0000 (22:48 +0200)]
New function for testing triviality of ACL with POSIX-draft like API.

16 years agoUndo last commit, as it does not solve the problem entirely.
Bruno Haible [Wed, 4 Jun 2008 20:10:07 +0000 (22:10 +0200)]
Undo last commit, as it does not solve the problem entirely.

16 years agoExclude the 'gnumakefile' module from default testdir builds.
Bruno Haible [Wed, 4 Jun 2008 10:41:44 +0000 (12:41 +0200)]
Exclude the 'gnumakefile' module from default testdir builds.

16 years agoSimplify #ifs. Put Solaris code after POSIX-like code.
Bruno Haible [Tue, 3 Jun 2008 22:00:28 +0000 (00:00 +0200)]
Simplify #ifs. Put Solaris code after POSIX-like code.

16 years agoProvide futimens/utimensat fallbacks for older kernels.
Eric Blake [Mon, 2 Jun 2008 21:08:14 +0000 (15:08 -0600)]
Provide futimens/utimensat fallbacks for older kernels.

* lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
Provide runtime fallback if kernel lacks support.
Reported by Mike Frysinger.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove Tru64 support.
Bruno Haible [Tue, 3 Jun 2008 10:58:54 +0000 (12:58 +0200)]
Improve Tru64 support.

16 years agoMake acl_entries work reliably.
Bruno Haible [Tue, 3 Jun 2008 10:57:18 +0000 (12:57 +0200)]
Make acl_entries work reliably.

16 years agoEnclose definitions in #if for POSIX-draft like API.
Bruno Haible [Mon, 2 Jun 2008 23:34:20 +0000 (01:34 +0200)]
Enclose definitions in #if for POSIX-draft like API.

16 years agoDocument qset_acl return value precisely.
Bruno Haible [Mon, 2 Jun 2008 22:07:15 +0000 (00:07 +0200)]
Document qset_acl return value precisely.

16 years agoUse different test code for Cygwin.
Bruno Haible [Mon, 2 Jun 2008 21:55:00 +0000 (23:55 +0200)]
Use different test code for Cygwin.

16 years agoRemove unused code.
Bruno Haible [Mon, 2 Jun 2008 14:47:54 +0000 (16:47 +0200)]
Remove unused code.

16 years agoSeparate the error handling into a different function.
Bruno Haible [Mon, 2 Jun 2008 11:03:21 +0000 (13:03 +0200)]
Separate the error handling into a different function.

16 years agoExtend ACL support tests to support OSF/1, MacOS X, HP-UX, AIX.
Bruno Haible [Mon, 2 Jun 2008 11:01:53 +0000 (13:01 +0200)]
Extend ACL support tests to support OSF/1, MacOS X, HP-UX, AIX.

16 years agoannounce-gen: use a better key-server host name
Jim Meyering [Mon, 2 Jun 2008 09:32:02 +0000 (11:32 +0200)]
announce-gen: use a better key-server host name

* build-aux/announce-gen (main): Recommend keys.gnupg.net, since
it may be more consistently reliable.  Suggested by Werner Koch
in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.

16 years agoFix syntax error on DragonFly BSD.
Bruno Haible [Sun, 1 Jun 2008 21:10:06 +0000 (23:10 +0200)]
Fix syntax error on DragonFly BSD.

16 years agoFix typo.
Voroskoi Andras [Sun, 1 Jun 2008 21:05:15 +0000 (23:05 +0200)]
Fix typo.

16 years agoNew ACL unit tests.
Bruno Haible [Sun, 1 Jun 2008 20:51:13 +0000 (22:51 +0200)]
New ACL unit tests.

16 years agoPortability fixes for MacOS X, Solaris, HP-UX, IRIX.
Bruno Haible [Sun, 1 Jun 2008 20:41:49 +0000 (22:41 +0200)]
Portability fixes for MacOS X, Solaris, HP-UX, IRIX.

16 years agoUse special-purpose function in DragonFly BSD.
Bruno Haible [Sun, 1 Jun 2008 16:43:55 +0000 (18:43 +0200)]
Use special-purpose function in DragonFly BSD.

16 years agoDepends on strdup.
Bruno Haible [Sun, 1 Jun 2008 10:10:29 +0000 (12:10 +0200)]
Depends on strdup.

16 years agoMake create_pipe_* safer w.r.t. file descriptor conflicts.
Bruno Haible [Sun, 1 Jun 2008 09:57:27 +0000 (11:57 +0200)]
Make create_pipe_* safer w.r.t. file descriptor conflicts.

16 years agomodules/autobuild (configure.ac): Call AB_INIT.
Simon Josefsson [Fri, 30 May 2008 10:59:52 +0000 (12:59 +0200)]
modules/autobuild (configure.ac): Call AB_INIT.

16 years agotests/test-getaddrinfo.c: Don't print debug messages by default.
Simon Josefsson [Fri, 30 May 2008 10:08:55 +0000 (12:08 +0200)]
tests/test-getaddrinfo.c: Don't print debug messages by default.
Suggested by Bruno Haible <bruno@clisp.org>.

16 years agoFix typo.
Simon Josefsson [Fri, 30 May 2008 08:38:57 +0000 (10:38 +0200)]
Fix typo.

16 years agotests/test-base64.c: Cast size_t to unsigned long when invoking printf. Use %lu...
Simon Josefsson [Fri, 30 May 2008 08:35:10 +0000 (10:35 +0200)]
tests/test-base64.c: Cast size_t to unsigned long when invoking printf.  Use %lu instead of %d.
Reported by Bruno Haible <bruno@clisp.org>.

16 years agoPrefer new POSIX 200x interfaces over futimesat.
Eric Blake [Thu, 29 May 2008 03:29:02 +0000 (21:29 -0600)]
Prefer new POSIX 200x interfaces over futimesat.

* m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
* lib/utimens.c (gl_futimens): Use them for nanosecond resolution
when available.
[HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoRelax license of the stpcpy module.
Bruno Haible [Thu, 29 May 2008 00:07:07 +0000 (02:07 +0200)]
Relax license of the stpcpy module.

16 years agoMake localename.c compile with current mingw.
Bruno Haible [Tue, 27 May 2008 22:55:17 +0000 (00:55 +0200)]
Make localename.c compile with current mingw.

16 years agoMention the link requirements.
Bruno Haible [Tue, 27 May 2008 12:45:41 +0000 (14:45 +0200)]
Mention the link requirements.

16 years agosha256: do not artificially restrict buffer length to be < 2^32
Jim Meyering [Mon, 26 May 2008 17:29:50 +0000 (19:29 +0200)]
sha256: do not artificially restrict buffer length to be < 2^32

* lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
uint32_t to size_t.
* lib/sha256.c (sha256_conclude_ctx): Change type of a local
to match.

16 years agoavoid unaligned access errors, e.g., on sparc
Jim Meyering [Mon, 26 May 2008 14:25:28 +0000 (16:25 +0200)]
avoid unaligned access errors, e.g., on sparc

* lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
direct access through a possibly-unaligned uint64* pointer.
* lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
direct access through a possibly-unaligned uint32* pointer.
Prompted by this patch from Tom "spot" Callaway:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638

16 years agosha512.c: fix typo in comment
Jim Meyering [Mon, 26 May 2008 14:28:22 +0000 (16:28 +0200)]
sha512.c: fix typo in comment

* lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.

16 years agoRename acl.c to set-mode-acl.c.
Bruno Haible [Sun, 25 May 2008 11:44:20 +0000 (13:44 +0200)]
Rename acl.c to set-mode-acl.c.

16 years agoDrop LIB_ACL_TRIVIAL.
Bruno Haible [Sun, 25 May 2008 18:02:51 +0000 (20:02 +0200)]
Drop LIB_ACL_TRIVIAL.