gnulib.git
13 years agoadded missing dependencies to fix failing unistr/ tests ianb
Ian Beckwith [Thu, 19 Aug 2010 18:38:02 +0000 (19:38 +0100)]
added missing dependencies to fix failing unistr/ tests

13 years agoautoupdate
Karl Berry [Tue, 17 Aug 2010 14:18:27 +0000 (07:18 -0700)]
autoupdate

13 years agotest-stddef: test for (some) offsetof bugs
Eric Blake [Mon, 16 Aug 2010 23:34:45 +0000 (17:34 -0600)]
test-stddef: test for (some) offsetof bugs

See the mailing list for a more comprehensive patch that works
around the Solaris bug.

* tests/test-stddef.c: Enhance test to ensure correct type of
offsetof.
* doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
that we are not fixing at this time.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agostpncpy: Allow stpncpy to be defined as a macro.
Bruno Haible [Mon, 16 Aug 2010 00:09:11 +0000 (02:09 +0200)]
stpncpy: Allow stpncpy to be defined as a macro.

13 years agoRename module 'memxfrm' to 'amemxfrm'.
Bruno Haible [Sat, 14 Aug 2010 22:42:00 +0000 (00:42 +0200)]
Rename module 'memxfrm' to 'amemxfrm'.

13 years agoTests for module 'astrxfrm'.
Bruno Haible [Sat, 14 Aug 2010 22:26:51 +0000 (00:26 +0200)]
Tests for module 'astrxfrm'.

13 years agoNew module 'astrxfrm'.
Bruno Haible [Sat, 14 Aug 2010 22:19:47 +0000 (00:19 +0200)]
New module 'astrxfrm'.

13 years agoDocument not_eol.
Reuben Thomas [Sat, 14 Aug 2010 22:08:55 +0000 (23:08 +0100)]
Document not_eol.

13 years agoDocument not_eol and remove mention of regex.c.
Reuben Thomas [Sat, 14 Aug 2010 15:40:16 +0000 (16:40 +0100)]
Document not_eol and remove mention of regex.c.

13 years agoIgnore one more generated index from makeinfo.
Bruno Haible [Sat, 14 Aug 2010 17:58:28 +0000 (19:58 +0200)]
Ignore one more generated index from makeinfo.

13 years agogit-merge-changelog: add doc relating to use with bzr and hg.
Brian Gough [Sat, 14 Aug 2010 17:57:11 +0000 (19:57 +0200)]
git-merge-changelog: add doc relating to use with bzr and hg.

13 years agopthread: fix pthread.h creation for srcdir != builddir
Matthias Bolte [Fri, 13 Aug 2010 23:36:21 +0000 (01:36 +0200)]
pthread: fix pthread.h creation for srcdir != builddir

* modules/pthread (Makefile.am): Fix the rule to work also in a
non-srcdir build.

13 years agoavoid some overlong lines from posix urls, etc.
Karl Berry [Fri, 13 Aug 2010 18:50:58 +0000 (11:50 -0700)]
avoid some overlong lines from posix urls, etc.

13 years agoautoupdate
Karl Berry [Fri, 13 Aug 2010 14:16:10 +0000 (07:16 -0700)]
autoupdate

13 years agomissed commit
Karl Berry [Thu, 12 Aug 2010 17:51:54 +0000 (10:51 -0700)]
missed commit

13 years agoautoupdate
Karl Berry [Thu, 12 Aug 2010 13:51:12 +0000 (06:51 -0700)]
autoupdate

13 years agostrtod: fix const diagnostic
Paul Eggert [Tue, 10 Aug 2010 17:39:30 +0000 (10:39 -0700)]
strtod: fix const diagnostic

* lib/strtod.c (strtod): Don't assign const char * to char *,
as this elicits a warning from GCC when warnings are enabled.

13 years agocopy-acl: ignore ENOTSUP on HP-UX
Pádraig Brady [Thu, 10 Jun 2010 14:12:48 +0000 (15:12 +0100)]
copy-acl: ignore ENOTSUP on HP-UX

Fixes Coreutils bug 6053.

* lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
so that it is available for HP-UX.
* lib/copy-acl.c (qcopy_acl): Use it.
Reported by Patrick M. Callahan.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agoopen, chown: relax license
Eric Blake [Tue, 10 Aug 2010 15:32:13 +0000 (09:32 -0600)]
open, chown: relax license

* modules/open (License): Change to LGPLv2+, with consent by all
authors, for use in augeas.
* modules/chown (License): Likewise.
* modules/lchown (Likewise): Likewise.
Requested by Adam Stokes.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agoautocheck new ar-lib script from automake
Karl Berry [Mon, 9 Aug 2010 20:54:20 +0000 (13:54 -0700)]
autocheck new ar-lib script from automake

13 years agoreadlinkat: adjust client modules
Eric Blake [Mon, 9 Aug 2010 17:59:12 +0000 (11:59 -0600)]
readlinkat: adjust client modules

* modules/areadlinkat (Depends-on): Use readlinkat, not
symlinkat.
* modules/areadlinkat-with-size (Depends-on): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agomknod: be more vocal about danger of running tests as root
Eric Blake [Fri, 30 Jul 2010 23:29:43 +0000 (17:29 -0600)]
mknod: be more vocal about danger of running tests as root

* m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
root, since that is just asking for problems.
Suggested by Bruno Haible, based on a report by Rainer Tammer.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agoreadlinkat: split into its own module
Eric Blake [Mon, 9 Aug 2010 17:16:07 +0000 (11:16 -0600)]
readlinkat: split into its own module

* modules/symlinkat: Split readlinkat...
* modules/readlinkat: ...into separate module.
* m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
* m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
* lib/symlinkat.c (readlinkat): Move...
* lib/readlinkat.c: ...into new file.
* modules/symlinkat-tests: Split readlinkat test...
* modules/readlinkat-tests: ...into separate module.
* tests/test-symlinkat.c: Split...
* tests/test-readlinkat.c: ...into new file.
* NEWS: Document the split.
* doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
* lib/unistd.in.h (readlinkat): Likewise.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agomemxfrm: Speed up.
Bruno Haible [Sun, 8 Aug 2010 10:31:10 +0000 (12:31 +0200)]
memxfrm: Speed up.

13 years agoerroneous commas inside @var
Karl Berry [Sat, 7 Aug 2010 13:58:15 +0000 (06:58 -0700)]
erroneous commas inside @var

13 years agoremove spurious leading i
Karl Berry [Sat, 7 Aug 2010 13:27:04 +0000 (06:27 -0700)]
remove spurious leading i

13 years agomissing @item inside @itemize
Karl Berry [Sat, 7 Aug 2010 13:16:04 +0000 (06:16 -0700)]
missing @item inside @itemize

13 years agoautoupdate
Karl Berry [Mon, 2 Aug 2010 13:32:48 +0000 (06:32 -0700)]
autoupdate

13 years agoIntegrate the regex documentation.
Bruno Haible [Sun, 1 Aug 2010 16:47:14 +0000 (18:47 +0200)]
Integrate the regex documentation.

13 years agoWhitespace cleanup.
Bruno Haible [Sun, 1 Aug 2010 15:29:07 +0000 (17:29 +0200)]
Whitespace cleanup.

13 years agoAdd regex documentation.
Bruno Haible [Sun, 1 Aug 2010 15:26:34 +0000 (17:26 +0200)]
Add regex documentation.

13 years agolink: Update documentation.
Bruno Haible [Sun, 1 Aug 2010 13:28:48 +0000 (15:28 +0200)]
link: Update documentation.

13 years agoansi-c++-opt: Mention last change in NEWS.
Bruno Haible [Sun, 1 Aug 2010 07:52:48 +0000 (09:52 +0200)]
ansi-c++-opt: Mention last change in NEWS.

13 years agoUpdate modules list.
Bruno Haible [Sat, 31 Jul 2010 23:04:49 +0000 (01:04 +0200)]
Update modules list.

13 years agoImprove doc in MODULES.html.
Bruno Haible [Sat, 31 Jul 2010 21:59:50 +0000 (23:59 +0200)]
Improve doc in MODULES.html.

13 years agoansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
Bruno Haible [Sat, 31 Jul 2010 21:34:12 +0000 (23:34 +0200)]
ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.

13 years agoreadlink, areadlink: Relax test a bit.
Bruno Haible [Sat, 31 Jul 2010 20:43:19 +0000 (22:43 +0200)]
readlink, areadlink: Relax test a bit.

13 years agounistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
Bruno Haible [Sat, 31 Jul 2010 20:10:38 +0000 (22:10 +0200)]
unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.

13 years agounistr/u*-strstr: Fix dependencies.
Bruno Haible [Sat, 31 Jul 2010 20:03:57 +0000 (22:03 +0200)]
unistr/u*-strstr: Fix dependencies.

13 years agounistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
Bruno Haible [Sat, 31 Jul 2010 19:32:47 +0000 (21:32 +0200)]
unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.

13 years agounistr/u8-strchr: Fix several bugs.
Bruno Haible [Sat, 31 Jul 2010 19:28:55 +0000 (21:28 +0200)]
unistr/u8-strchr: Fix several bugs.

13 years agoMore tests for unistr/u8-strchr.
Bruno Haible [Sat, 31 Jul 2010 19:26:01 +0000 (21:26 +0200)]
More tests for unistr/u8-strchr.

13 years agoOops, fix last commit so that it also works with modf().
Bruno Haible [Sat, 31 Jul 2010 14:42:16 +0000 (16:42 +0200)]
Oops, fix last commit so that it also works with modf().

13 years agoposix-modules: Ignore backup files of documentation files.
Bruno Haible [Sat, 31 Jul 2010 14:20:27 +0000 (16:20 +0200)]
posix-modules: Ignore backup files of documentation files.

13 years agosymlinkat: Fix documentation.
Bruno Haible [Sat, 31 Jul 2010 14:11:53 +0000 (16:11 +0200)]
symlinkat: Fix documentation.

13 years agofchownat: Replace also when chown has the trailing slash bug.
Bruno Haible [Sat, 31 Jul 2010 14:01:58 +0000 (16:01 +0200)]
fchownat: Replace also when chown has the trailing slash bug.

13 years agoComplete last ChangeLog entry.
Bruno Haible [Sat, 31 Jul 2010 13:53:21 +0000 (15:53 +0200)]
Complete last ChangeLog entry.

13 years agolinkat: Work around AIX 7.1 bug.
Bruno Haible [Sat, 31 Jul 2010 13:20:35 +0000 (15:20 +0200)]
linkat: Work around AIX 7.1 bug.

13 years agoCorrectly determine whether pow is available in libc on AIX 7 with xlc.
Bruno Haible [Sat, 31 Jul 2010 12:01:11 +0000 (14:01 +0200)]
Correctly determine whether pow is available in libc on AIX 7 with xlc.

13 years agoiconv: Work around AIX 6.1..7.1 bug.
Bruno Haible [Sat, 31 Jul 2010 11:33:32 +0000 (13:33 +0200)]
iconv: Work around AIX 6.1..7.1 bug.

13 years agoreadlink: Relax test a bit.
Bruno Haible [Sat, 31 Jul 2010 10:23:44 +0000 (12:23 +0200)]
readlink: Relax test a bit.

13 years agocopysign: Does not require -lm on glibc systems.
Bruno Haible [Sat, 31 Jul 2010 10:11:19 +0000 (12:11 +0200)]
copysign: Does not require -lm on glibc systems.

13 years agoduplocale: Work around AIX 7.1 bug.
Bruno Haible [Sat, 31 Jul 2010 09:45:41 +0000 (11:45 +0200)]
duplocale: Work around AIX 7.1 bug.

13 years agodirfd: Avoid link error on AIX 7.1.
Bruno Haible [Fri, 30 Jul 2010 21:54:44 +0000 (23:54 +0200)]
dirfd: Avoid link error on AIX 7.1.

13 years agostrtod: next round of AIX fixes
Eric Blake [Fri, 30 Jul 2010 22:01:41 +0000 (16:01 -0600)]
strtod: next round of AIX fixes

* lib/strtod.c (strtod): Work around AIX bug of parsing p with no
exponent.
* tests/test-strtod.c (main): Enhance tests.
* doc/posix-functions/strtod.texi (strtod): Document next bug.
Reported by Rainer Tammer.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agofutimens: fix configure check
Eric Blake [Fri, 30 Jul 2010 20:20:56 +0000 (14:20 -0600)]
futimens: fix configure check

* m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agogetline: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 20:21:06 +0000 (22:21 +0200)]
getline: Update regarding AIX.

13 years agowcwidth: Drop replacement on AIX 7.
Bruno Haible [Fri, 30 Jul 2010 19:40:29 +0000 (21:40 +0200)]
wcwidth: Drop replacement on AIX 7.

13 years agostrtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
Bruno Haible [Fri, 30 Jul 2010 19:37:36 +0000 (21:37 +0200)]
strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.

13 years agounlink: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 19:33:01 +0000 (21:33 +0200)]
unlink: Update regarding AIX.

13 years agosymlink: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 19:30:43 +0000 (21:30 +0200)]
symlink: Update regarding AIX.

13 years agostrndup: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 19:28:10 +0000 (21:28 +0200)]
strndup: Update regarding AIX.

13 years agostat: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 19:24:54 +0000 (21:24 +0200)]
stat: Update regarding AIX.

13 years agotruncl: Fix autoconf test.
Bruno Haible [Fri, 30 Jul 2010 19:18:13 +0000 (21:18 +0200)]
truncl: Fix autoconf test.

13 years agoround: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 19:14:41 +0000 (21:14 +0200)]
round: Update regarding AIX.

13 years agorename: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 19:11:09 +0000 (21:11 +0200)]
rename: Update regarding AIX.

13 years agoprintf.m4: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 19:05:37 +0000 (21:05 +0200)]
printf.m4: Update regarding AIX.

13 years agoiconv: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 19:00:18 +0000 (21:00 +0200)]
iconv: Update regarding AIX.

13 years agogetopt: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 18:51:04 +0000 (20:51 +0200)]
getopt: Update regarding AIX.

13 years agoldexpl; Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 18:45:50 +0000 (20:45 +0200)]
ldexpl; Update regarding AIX.

13 years agofrexpl: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 18:42:38 +0000 (20:42 +0200)]
frexpl: Update regarding AIX.

13 years agoopen, fopen: Update regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 18:38:44 +0000 (20:38 +0200)]
open, fopen: Update regarding AIX.

13 years agochown: Update doc regarding AIX.
Bruno Haible [Fri, 30 Jul 2010 18:32:12 +0000 (20:32 +0200)]
chown: Update doc regarding AIX.

13 years agoautoupdate
Eric Blake [Fri, 30 Jul 2010 13:49:08 +0000 (07:49 -0600)]
autoupdate

13 years agostrtod: fix bug in replacement function on AIX
Eric Blake [Thu, 29 Jul 2010 23:32:23 +0000 (17:32 -0600)]
strtod: fix bug in replacement function on AIX

* lib/strtod.c (strtod): Special case broken "0x" parse in
underlying strtod.
* tests/test-strtod.c (main): Document AIX 7.1 bugs.
* doc/posix-functions/strtod.texi (strtod): Likewise.
Reported by Rainer Tammer.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agombrlen: Fix cross-compilation guess for AIX.
Bruno Haible [Fri, 30 Jul 2010 09:02:15 +0000 (11:02 +0200)]
mbrlen: Fix cross-compilation guess for AIX.

13 years agombrtowc: Fix cross-compilation guess for AIX.
Bruno Haible [Fri, 30 Jul 2010 08:56:07 +0000 (10:56 +0200)]
mbrtowc: Fix cross-compilation guess for AIX.

13 years ago* build-aux/gendocs.sh: restore lost x bit
Eric Blake [Thu, 29 Jul 2010 23:15:49 +0000 (17:15 -0600)]
* build-aux/gendocs.sh: restore lost x bit

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agoinit.sh: work around trap limitation of some shells
Peter O'Gorman [Thu, 29 Jul 2010 21:14:59 +0000 (15:14 -0600)]
init.sh: work around trap limitation of some shells

This limitation is already documented in the Autoconf manual.

* tests/init.sh (setup_): Move exit trap outside of shell function.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agostrtod: aid debugging
Eric Blake [Thu, 29 Jul 2010 14:43:00 +0000 (08:43 -0600)]
strtod: aid debugging

* m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
understanding why strtod is rejected.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agounistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
Bruno Haible [Wed, 28 Jul 2010 21:00:52 +0000 (23:00 +0200)]
unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.

13 years agoAdd ChangeLog entries for recent commits.
Paolo Bonzini [Wed, 28 Jul 2010 20:48:13 +0000 (22:48 +0200)]
Add ChangeLog entries for recent commits.

13 years agoUse spaces for indentation, not tabs.
Bruno Haible [Wed, 28 Jul 2010 08:08:37 +0000 (10:08 +0200)]
Use spaces for indentation, not tabs.

13 years agombspcasecmp: Fix function specification.
Bruno Haible [Tue, 27 Jul 2010 22:53:16 +0000 (00:53 +0200)]
mbspcasecmp: Fix function specification.

13 years agoautoupdate
Karl Berry [Tue, 27 Jul 2010 14:22:56 +0000 (07:22 -0700)]
autoupdate

13 years agotimespec: use cast and not conditional, as truncation isn't possible
Paul R. Eggert [Mon, 26 Jul 2010 17:56:32 +0000 (10:56 -0700)]
timespec: use cast and not conditional, as truncation isn't possible

* lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
instead of a conditional.  Comment about the situation in more detail.
This undoes most of the 2009-10-29 patch.

13 years agounistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
Paolo Bonzini [Tue, 20 Jul 2010 13:47:47 +0000 (15:47 +0200)]
unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.

* lib/unistr/u8-chr.c, lib/unistr/u8-strchr.c: Add Boyer-Moore like operation.
* modules/unistr/u8-chr: Depend on memchr.

13 years agounistr/u*-strchr: add tests
Paolo Bonzini [Tue, 20 Jul 2010 13:43:26 +0000 (15:43 +0200)]
unistr/u*-strchr: add tests

* modules/unistr/u16-strchr-tests, modules/unistr/u32-strchr-tests,
modules/unistr/u8-strchr-tests, tests/unistr/test-strchr.h,
tests/unistr/test-u16-strchr.c, tests/unistr/test-u32-strchr.c,
tests/unistr/test-u8-strchr.c: New files.

13 years agounistr/u*-chr: test multibyte sequences more
Paolo Bonzini [Tue, 20 Jul 2010 14:23:13 +0000 (16:23 +0200)]
unistr/u*-chr: test multibyte sequences more

* tests/unistr/test-chr.h: Do complete testing of the characters in the
test vector.
* tests/unistr/test-u8-chr.c, tests/unistr/test-u32-chr.c,
tests/unistr/test-u16-chr.c (U_UCTOMB): Define.

13 years agounistr/u*-chr: test multibyte sequences
Paolo Bonzini [Tue, 20 Jul 2010 14:23:13 +0000 (16:23 +0200)]
unistr/u*-chr: test multibyte sequences

* tests/unistr/test-chr.h: Put characters above 0-127 in the test input.

13 years agounistr/u*-chr: prepare for multibyte tests
Paolo Bonzini [Tue, 20 Jul 2010 14:06:33 +0000 (16:06 +0200)]
unistr/u*-chr: prepare for multibyte tests

* modules/unistr/u16-chr-tests: Depend on u32-to-u16.
* modules/unistr/u8-chr-tests: Depend on u32-to-u8.
* tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
* tests/unistr/test-u16-chr.c, tests/unistr/test-u32-chr.c,
tests/unistr/test-u8-chr.c: Define U32_TO_U.

13 years agounistr/u8-strchr: Optimize non-ASCII argument case.
Bruno Haible [Sun, 18 Jul 2010 15:23:36 +0000 (17:23 +0200)]
unistr/u8-strchr: Optimize non-ASCII argument case.

13 years agofdl.texi from gnustandards
Karl Berry [Thu, 15 Jul 2010 18:40:26 +0000 (11:40 -0700)]
fdl.texi from gnustandards

13 years agogetcwd: on Solaris, work better if ancestors are inaccessible
Paul R. Eggert [Wed, 14 Jul 2010 07:06:03 +0000 (00:06 -0700)]
getcwd: on Solaris, work better if ancestors are inaccessible

* lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
buffer and size, try again with a large buffer.  This works better
on Solaris, since its getcwd succeeds even if the path to the root
is inaccessible, and this is helpful in common cases such as .zfs
hidden directories.  Problem reported by J Chapman Flack in
http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
Use system getcwd if it's declared, not merely if it's partly
working; use the partly-working test only to avoid needless effort
if the system getcwd fails.
* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
comment that was already obsolete and is now even more obsolete.
* modules/getcwd (Depends-on): Depend on strdup, since __getcwd
now might call strdup.

13 years agopthread: Add enough so that coreutils/src/sort.c compiles.
Paul R. Eggert [Tue, 13 Jul 2010 22:55:36 +0000 (15:55 -0700)]
pthread: Add enough so that coreutils/src/sort.c compiles.

* lib/pthread.in.h: Add self to author comment.  Conditionalize on
_GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
gnulib. Include <sched.h> and <time.h>, as per POSIX.
Include <sys/types.h>, in case it defines pthread_t.
(pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
(pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
(pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
(pthread_rwlockattr_t, pthread_spinlock_t):
New typedefs, if HAVE_PTHREAD_T is not defined.
(PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
(PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
(PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
(PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
(PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
(PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
(PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
(PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
(PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
(PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
(PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
New macros.
(pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
(pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
(pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
(pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
(pthread_spin_unlock): New dummy functions.
(pthread_create): Return EAGAIN; don't set errno.
* m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
require AC_C_INLINE.
* modules/pthread (Depends-on): Add sched, time.
(pthread.h): Use AM_V_GEN.

13 years agostriconveh: Simplify last commit.
Bruno Haible [Tue, 13 Jul 2010 21:43:14 +0000 (23:43 +0200)]
striconveh: Simplify last commit.

13 years agostriconveh: Don't malloc memory if the result buffer is sufficient.
Bruno Haible [Tue, 13 Jul 2010 21:36:41 +0000 (23:36 +0200)]
striconveh: Don't malloc memory if the result buffer is sufficient.

13 years agostrtod: Add safety check.
Bruno Haible [Tue, 13 Jul 2010 08:07:23 +0000 (10:07 +0200)]
strtod: Add safety check.

13 years agoUnify tests that set gl_cv_func_ldexpl_no_libm.
Bruno Haible [Mon, 12 Jul 2010 21:43:04 +0000 (23:43 +0200)]
Unify tests that set gl_cv_func_ldexpl_no_libm.

13 years agoUnify tests that set gl_cv_func_ldexp_no_libm.
Bruno Haible [Mon, 12 Jul 2010 21:36:34 +0000 (23:36 +0200)]
Unify tests that set gl_cv_func_ldexp_no_libm.