gnulib.git
14 years agoregex.m4: correct the reversed range endpoint ([b-a]) test
Jim Meyering [Fri, 19 Mar 2010 20:43:30 +0000 (21:43 +0100)]
regex.m4: correct the reversed range endpoint ([b-a]) test

* m4/regex.m4: When requiring that [b-a] evoke failure,
use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
test pass once again for x86-based systems.

14 years agoscandir: Fix link error on Solaris 8.
Bruno Haible [Fri, 19 Mar 2010 23:20:36 +0000 (00:20 +0100)]
scandir: Fix link error on Solaris 8.

14 years agogetusershell: Fix documentation.
Bruno Haible [Fri, 19 Mar 2010 22:25:27 +0000 (23:25 +0100)]
getusershell: Fix documentation.

14 years agogetusershell: Provide declaration, missing on Solaris 9.
Bruno Haible [Fri, 19 Mar 2010 22:22:28 +0000 (23:22 +0100)]
getusershell: Provide declaration, missing on Solaris 9.

14 years agowctype: Provide iswblank function.
Bruno Haible [Fri, 19 Mar 2010 21:46:56 +0000 (22:46 +0100)]
wctype: Provide iswblank function.

14 years agoTests of module 'pty' in C++ mode.
Bruno Haible [Fri, 19 Mar 2010 21:16:56 +0000 (22:16 +0100)]
Tests of module 'pty' in C++ mode.

14 years agologb: fix documentation
Eric Blake [Fri, 19 Mar 2010 15:42:12 +0000 (09:42 -0600)]
logb: fix documentation

* doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1.5 declaration bug.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoforkpty, openpty: prefer glibc's const-safe prototype
Eric Blake [Thu, 18 Mar 2010 22:34:11 +0000 (16:34 -0600)]
forkpty, openpty: prefer glibc's const-safe prototype

This silences a compiler warning for test-forkpty.c.

* lib/forkpty.c (rpl_forkpty): New file.
* lib/openpty.c (rpl_openpty): Likewise.
* modules/forkpty (Files): Distribute it.
* modules/openpty (Files): Likewise.
* m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
check...
* m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
replacement for for non-const BSD signature.
* modules/pty (Makefile.am): Substitute witnesses.
* lib/pty.in.h (forkpty, openpty): Declare replacements.
* tests/test-forkpty.c: Update signature check.
* tests/test-openpty.c: Likewise.
* doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
* doc/glibc-functions/openpty.texi (openpty): Likewise.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoforkpty, openpty: split functions into new modules
Eric Blake [Thu, 18 Mar 2010 19:49:25 +0000 (13:49 -0600)]
forkpty, openpty: split functions into new modules

The pty module was doing too much - replacing the header and checking
for functions.  In the future, when we provide a working forkpty for
Solaris and HP-UX, and a stub for mingw, then the separation will be
even more useful.

* modules/pty (Makefile.am): Substitute new witnesses.
(Libraries): Move library detection...
* modules/forkpty: ...into new module.
* modules/openpty: Another new module.
* modules/pty-tests: Rename and split...
* modules/forkpty-tests: ...to this...
* modules/openpty-tests: ...and this.
* tests/test-pty.c: Rename and split...
* tests/test-forkpty.c: ...to this...
* tests/test-openpty.c: ...and this.
* m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
(gl_PTY): Split library searching...
* m4/pty.m4 (gl_PTY_LIB): ...into new file.
(gl_FORKPTY, gl_OPENPTY): New macros.
* lib/pty.in.h (forkpty, openpty): Honor new witnesses.
* NEWS: Mention the split.
* MODULES.html.sh (Misc): Document the modules.
* doc/glibc-functions/forkpty.texi (forkpty): Likewise.
* doc/glibc-functions/openpty.texi (openpty): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agopty: improve replacement header
Eric Blake [Thu, 18 Mar 2010 16:23:10 +0000 (10:23 -0600)]
pty: improve replacement header

Build pty.h in the same way as all other replacement headers.

* lib/pty.in.h: New file.
* modules/pty (Files): Ship it.
(Makefile.am): Always build replacement.
* m4/pty.m4: Rename...
* m4/pty_h.m4: ...to this.
(gl_PTY): Modernize setting of witness macros; update check of
forkpty to take proper advantage of cache.
(gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agogetopt: avoid compiler warning
Eric Blake [Fri, 19 Mar 2010 12:29:16 +0000 (06:29 -0600)]
getopt: avoid compiler warning

* lib/getopt.c (attribute_hidden): Remove unused macro.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoFix link errors on Solaris 8.
Bruno Haible [Fri, 19 Mar 2010 01:01:17 +0000 (02:01 +0100)]
Fix link errors on Solaris 8.

14 years agoFix bug introduced on 2010-03-14.
Bruno Haible [Fri, 19 Mar 2010 00:44:16 +0000 (01:44 +0100)]
Fix bug introduced on 2010-03-14.

14 years agoFix typo introduced on 2009-12-31.
Bruno Haible [Fri, 19 Mar 2010 00:34:49 +0000 (01:34 +0100)]
Fix typo introduced on 2009-12-31.

14 years agotest-vc-list-files-git: make more robust
Bert Wesarg [Tue, 16 Mar 2010 07:27:31 +0000 (08:27 +0100)]
test-vc-list-files-git: make more robust

Unset GIT_DIR and GIT_WORK_TREE environment variables to avoid
testing the wrong location.

* tests/test-vc-list-files-git.sh: Unset problematic environment
variables.  Chain commands together.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agopty: Make forkpty check work.
Simon Josefsson [Wed, 17 Mar 2010 14:29:00 +0000 (15:29 +0100)]
pty: Make forkpty check work.

14 years agoPortability fix in lib/inttostr.c.
Sergey Poznyakoff [Mon, 15 Mar 2010 17:36:37 +0000 (19:36 +0200)]
Portability fix in lib/inttostr.c.

14 years agoRemove portability problems from 'flock' unit test.
Bruno Haible [Mon, 15 Mar 2010 02:07:26 +0000 (03:07 +0100)]
Remove portability problems from 'flock' unit test.

14 years agoFix bug introduced on 2009-12-31.
Bruno Haible [Sun, 14 Mar 2010 23:49:47 +0000 (00:49 +0100)]
Fix bug introduced on 2009-12-31.

14 years agoFix values returned by sinl, cosl.
Bruno Haible [Sun, 14 Mar 2010 22:19:29 +0000 (23:19 +0100)]
Fix values returned by sinl, cosl.

14 years agoFix compilation error when modules 'posix_spawn[p]' are not used.
Bruno Haible [Sun, 14 Mar 2010 19:12:57 +0000 (20:12 +0100)]
Fix compilation error when modules 'posix_spawn[p]' are not used.

14 years agoFix compilation error on mingw when module 'time_r' is not used.
Bruno Haible [Sun, 14 Mar 2010 18:55:44 +0000 (19:55 +0100)]
Fix compilation error on mingw when module 'time_r' is not used.

14 years agoFix compilation error with Sun C.
Bruno Haible [Sun, 14 Mar 2010 18:25:45 +0000 (19:25 +0100)]
Fix compilation error with Sun C.

14 years agoAllow the user to disable C++ code and tests.
Bruno Haible [Sat, 13 Mar 2010 16:31:06 +0000 (17:31 +0100)]
Allow the user to disable C++ code and tests.

14 years agoMention libtool 2.2.x requirement in special cases.
Bruno Haible [Sat, 13 Mar 2010 15:31:43 +0000 (16:31 +0100)]
Mention libtool 2.2.x requirement in special cases.

14 years agoTest that gnulib does not break the standard C++ headers.
Bruno Haible [Sat, 13 Mar 2010 15:20:41 +0000 (16:20 +0100)]
Test that gnulib does not break the standard C++ headers.

14 years agognulib.info-[0-9] are generated.
Bruno Haible [Sat, 13 Mar 2010 15:12:38 +0000 (16:12 +0100)]
gnulib.info-[0-9] are generated.

14 years agoClarify which options are available for --create-testdir.
Bruno Haible [Sat, 13 Mar 2010 15:11:03 +0000 (16:11 +0100)]
Clarify which options are available for --create-testdir.

14 years agoOops, fix typo in last commit.
Bruno Haible [Sat, 13 Mar 2010 12:33:44 +0000 (13:33 +0100)]
Oops, fix typo in last commit.

14 years agoFix compilation error with glibc >= 2.10 and g++ >= 4.4.
Bruno Haible [Sat, 13 Mar 2010 11:06:23 +0000 (12:06 +0100)]
Fix compilation error with glibc >= 2.10 and g++ >= 4.4.

14 years agognulib-tool (func_import): Explain origin of code.
Simon Josefsson [Fri, 12 Mar 2010 13:44:11 +0000 (14:44 +0100)]
gnulib-tool (func_import): Explain origin of code.

14 years agoFix problem with automake's definition of CXXLINK.
Bruno Haible [Fri, 12 Mar 2010 12:03:12 +0000 (13:03 +0100)]
Fix problem with automake's definition of CXXLINK.

14 years agoMention the stable releases.
Bruno Haible [Fri, 12 Mar 2010 10:33:25 +0000 (11:33 +0100)]
Mention the stable releases.

14 years agoFix problems with overloaded C++ definitions of memchr, strpbrk, etc.
Bruno Haible [Thu, 11 Mar 2010 11:39:15 +0000 (12:39 +0100)]
Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.

14 years agognulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
Simon Josefsson [Tue, 9 Mar 2010 07:13:02 +0000 (08:13 +0100)]
gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.

14 years agognulib-tool: Add support for --libtool in --create-testdir.
Bruno Haible [Mon, 8 Mar 2010 23:09:41 +0000 (00:09 +0100)]
gnulib-tool: Add support for --libtool in --create-testdir.

14 years agognulib-tool.texi: mention possibility of git submodule
Eric Blake [Mon, 8 Mar 2010 21:26:11 +0000 (14:26 -0700)]
gnulib-tool.texi: mention possibility of git submodule

* doc/gnulib-tool.texi (VCS Issues): Add details about using git
submodules.
* doc/.gitignore: Ignore another generated file.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodescribe third option of committing gnulib files while skipping others
Karl Berry [Mon, 8 Mar 2010 17:21:57 +0000 (09:21 -0800)]
describe third option of committing gnulib files while skipping others

14 years agoTests of module 'wctype' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 02:00:12 +0000 (03:00 +0100)]
Tests of module 'wctype' in C++ mode.

14 years agoTests of module 'wchar' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:59:04 +0000 (02:59 +0100)]
Tests of module 'wchar' in C++ mode.

14 years agoTests of module 'unistd' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:57:33 +0000 (02:57 +0100)]
Tests of module 'unistd' in C++ mode.

14 years agoTests of module 'time' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:56:26 +0000 (02:56 +0100)]
Tests of module 'time' in C++ mode.

14 years agoTests of module 'sys_time' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:54:47 +0000 (02:54 +0100)]
Tests of module 'sys_time' in C++ mode.

14 years agoTests of module 'sys_stat' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:53:37 +0000 (02:53 +0100)]
Tests of module 'sys_stat' in C++ mode.

14 years agoTests of module 'sys_socket' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:52:06 +0000 (02:52 +0100)]
Tests of module 'sys_socket' in C++ mode.

14 years agoTests of module 'sys_select' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:50:58 +0000 (02:50 +0100)]
Tests of module 'sys_select' in C++ mode.

14 years agoTests of module 'sys_ioctl' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:48:21 +0000 (02:48 +0100)]
Tests of module 'sys_ioctl' in C++ mode.

14 years agoTests of module 'string' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:46:29 +0000 (02:46 +0100)]
Tests of module 'string' in C++ mode.

14 years agoTests of module 'stdlib' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:45:04 +0000 (02:45 +0100)]
Tests of module 'stdlib' in C++ mode.

14 years agoTests of module 'stdio' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:43:35 +0000 (02:43 +0100)]
Tests of module 'stdio' in C++ mode.

14 years agoTests of module 'spawn' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:42:34 +0000 (02:42 +0100)]
Tests of module 'spawn' in C++ mode.

14 years agoTests of module 'signal' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:41:07 +0000 (02:41 +0100)]
Tests of module 'signal' in C++ mode.

14 years agoTests of module 'search' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:39:16 +0000 (02:39 +0100)]
Tests of module 'search' in C++ mode.

14 years agoTests of module 'math' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:37:37 +0000 (02:37 +0100)]
Tests of module 'math' in C++ mode.

14 years agoTests of module 'locale' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:35:23 +0000 (02:35 +0100)]
Tests of module 'locale' in C++ mode.

14 years agoTests of module 'langinfo' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:33:38 +0000 (02:33 +0100)]
Tests of module 'langinfo' in C++ mode.

14 years agoTests of module 'iconv-h' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:31:39 +0000 (02:31 +0100)]
Tests of module 'iconv-h' in C++ mode.

14 years agoTests of module 'glob' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:30:09 +0000 (02:30 +0100)]
Tests of module 'glob' in C++ mode.

14 years agoTests of module 'fcntl-h' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:28:20 +0000 (02:28 +0100)]
Tests of module 'fcntl-h' in C++ mode.

14 years agoTests of module 'dirent' in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 01:09:13 +0000 (02:09 +0100)]
Tests of module 'dirent' in C++ mode.

14 years agoNew module 'ansi-c++-opt'.
Bruno Haible [Mon, 8 Mar 2010 01:04:28 +0000 (02:04 +0100)]
New module 'ansi-c++-opt'.

14 years agoDocument C++ namespace mode.
Bruno Haible [Mon, 8 Mar 2010 00:57:58 +0000 (01:57 +0100)]
Document C++ namespace mode.

14 years agowctype: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:56:19 +0000 (01:56 +0100)]
wctype: Avoid #define replacements in C++ mode.

14 years agowchar: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:48:56 +0000 (01:48 +0100)]
wchar: Avoid #define replacements in C++ mode.

14 years agounistd: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:47:37 +0000 (01:47 +0100)]
unistd: Avoid #define replacements in C++ mode.

14 years agotime: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:45:46 +0000 (01:45 +0100)]
time: Avoid #define replacements in C++ mode.

14 years agosys_time: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:41:33 +0000 (01:41 +0100)]
sys_time: Avoid #define replacements in C++ mode.

14 years agosys_stat: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:39:41 +0000 (01:39 +0100)]
sys_stat: Avoid #define replacements in C++ mode.

14 years agosys_socket: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:38:28 +0000 (01:38 +0100)]
sys_socket: Avoid #define replacements in C++ mode.

14 years agosys_select: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:33:25 +0000 (01:33 +0100)]
sys_select: Avoid #define replacements in C++ mode.

14 years agosys_ioctl: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:29:57 +0000 (01:29 +0100)]
sys_ioctl: Avoid #define replacements in C++ mode.

14 years agostring: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:26:36 +0000 (01:26 +0100)]
string: Avoid #define replacements in C++ mode.

14 years agostdlib: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:23:38 +0000 (01:23 +0100)]
stdlib: Avoid #define replacements in C++ mode.

14 years agostdio: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:22:00 +0000 (01:22 +0100)]
stdio: Avoid #define replacements in C++ mode.

14 years agospawn: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:20:12 +0000 (01:20 +0100)]
spawn: Avoid #define replacements in C++ mode.

14 years agosignal: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:18:40 +0000 (01:18 +0100)]
signal: Avoid #define replacements in C++ mode.

14 years agosearch: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:16:01 +0000 (01:16 +0100)]
search: Avoid #define replacements in C++ mode.

14 years agomath: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:10:14 +0000 (01:10 +0100)]
math: Avoid #define replacements in C++ mode.

14 years agolocale: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:08:24 +0000 (01:08 +0100)]
locale: Avoid #define replacements in C++ mode.

14 years agolanginfo: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:02:55 +0000 (01:02 +0100)]
langinfo: Avoid #define replacements in C++ mode.

14 years agoiconv-h: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 8 Mar 2010 00:00:03 +0000 (01:00 +0100)]
iconv-h: Avoid #define replacements in C++ mode.

14 years agoglob: Avoid #define replacements in C++ mode.
Bruno Haible [Sun, 7 Mar 2010 23:54:54 +0000 (00:54 +0100)]
glob: Avoid #define replacements in C++ mode.

14 years agofcntl-h: Avoid #define replacements in C++ mode.
Bruno Haible [Sun, 7 Mar 2010 23:51:34 +0000 (00:51 +0100)]
fcntl-h: Avoid #define replacements in C++ mode.

14 years agodirent: Avoid #define replacements in C++ mode.
Bruno Haible [Sun, 7 Mar 2010 23:49:40 +0000 (00:49 +0100)]
dirent: Avoid #define replacements in C++ mode.

14 years agoctype: Make it usable in C++ code.
Bruno Haible [Sun, 7 Mar 2010 23:47:01 +0000 (00:47 +0100)]
ctype: Make it usable in C++ code.

14 years agoNew module 'c++defs'.
Bruno Haible [Sun, 7 Mar 2010 23:45:37 +0000 (00:45 +0100)]
New module 'c++defs'.

14 years agologb: Provide missing declaration for Cygwin.
Bruno Haible [Sun, 7 Mar 2010 23:04:47 +0000 (00:04 +0100)]
logb: Provide missing declaration for Cygwin.

14 years agoFix test-cond link error.
Bruno Haible [Sun, 7 Mar 2010 22:30:36 +0000 (23:30 +0100)]
Fix test-cond link error.

14 years agoFix test-dirent-safer link error. Correct last commit.
Bruno Haible [Sun, 7 Mar 2010 22:26:11 +0000 (23:26 +0100)]
Fix test-dirent-safer link error. Correct last commit.

14 years agoFix test-dirent link error.
Bruno Haible [Sun, 7 Mar 2010 22:15:21 +0000 (23:15 +0100)]
Fix test-dirent link error.

14 years agoExclude lib-ignore module.
Bruno Haible [Sun, 7 Mar 2010 21:11:21 +0000 (22:11 +0100)]
Exclude lib-ignore module.

14 years agoFix link error on platforms with GNU libiconv.
Bruno Haible [Sun, 7 Mar 2010 19:41:43 +0000 (20:41 +0100)]
Fix link error on platforms with GNU libiconv.

14 years agoUse POSIX declarations for socket functions.
Bruno Haible [Sun, 7 Mar 2010 18:54:54 +0000 (19:54 +0100)]
Use POSIX declarations for socket functions.

14 years agoupdate from texinfo
Karl Berry [Sun, 7 Mar 2010 16:51:18 +0000 (08:51 -0800)]
update from texinfo

14 years agoClarify access, euidaccess, faccessat.
Bruno Haible [Sat, 6 Mar 2010 18:49:34 +0000 (19:49 +0100)]
Clarify access, euidaccess, faccessat.

14 years agoEnsure posix_spawnattr_{get,set}sched{policy,param} are defined.
Bruno Haible [Sun, 7 Mar 2010 15:10:57 +0000 (16:10 +0100)]
Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.

14 years agoFix incorrect Makefile.am generation in German locale.
Bruno Haible [Sun, 7 Mar 2010 13:27:02 +0000 (14:27 +0100)]
Fix incorrect Makefile.am generation in German locale.

14 years agoTests for module 'iconv-h'.
Bruno Haible [Sat, 6 Mar 2010 18:44:41 +0000 (19:44 +0100)]
Tests for module 'iconv-h'.

14 years agoNew module 'iconv-h'.
Bruno Haible [Sat, 6 Mar 2010 18:43:44 +0000 (19:43 +0100)]
New module 'iconv-h'.

14 years agoMore consistent naming of *.m4 files.
Bruno Haible [Sat, 6 Mar 2010 18:08:20 +0000 (19:08 +0100)]
More consistent naming of *.m4 files.