Bruno Haible [Sun, 28 Mar 2010 17:07:33 +0000 (19:07 +0200)]
Split C++ tests into separate tests modules.
Bruno Haible [Sun, 28 Mar 2010 16:32:36 +0000 (18:32 +0200)]
gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
Bruno Haible [Sun, 28 Mar 2010 16:01:18 +0000 (18:01 +0200)]
gnulib-tool: Add support for special categories of tests.
Bruno Haible [Sun, 28 Mar 2010 13:30:39 +0000 (15:30 +0200)]
ansi-c++-opt: Allow turning off the C++ build by default.
Bruno Haible [Sun, 28 Mar 2010 12:26:15 +0000 (14:26 +0200)]
unistd: Avoid #define replacements in C++ mode.
Bruno Haible [Sun, 28 Mar 2010 12:21:28 +0000 (14:21 +0200)]
Fix link errors on mingw.
Bruno Haible [Sun, 28 Mar 2010 09:23:57 +0000 (11:23 +0200)]
lib-ignore: Determine different options for different compilers.
Bruno Haible [Sun, 28 Mar 2010 00:48:22 +0000 (01:48 +0100)]
Remove unused GNULIB_XYZ macro definitions.
Bruno Haible [Sun, 28 Mar 2010 00:37:25 +0000 (01:37 +0100)]
Add a remark about certain modules.
Bruno Haible [Sun, 28 Mar 2010 00:29:52 +0000 (01:29 +0100)]
Resolve conflict between the two kinds of module indicators.
Karl Berry [Sun, 28 Mar 2010 00:08:29 +0000 (17:08 -0700)]
autoupdate
Bruno Haible [Sat, 27 Mar 2010 23:31:39 +0000 (00:31 +0100)]
Distinguish two kinds of module indicators.
Bruno Haible [Sat, 27 Mar 2010 19:52:28 +0000 (20:52 +0100)]
New module description field 'Comment'.
Bruno Haible [Sat, 27 Mar 2010 19:45:57 +0000 (20:45 +0100)]
Addendum to 2010-02-07 commit.
Bruno Haible [Sat, 27 Mar 2010 19:09:55 +0000 (20:09 +0100)]
Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
Bruno Haible [Sat, 27 Mar 2010 17:54:30 +0000 (18:54 +0100)]
Avoid side effects from tests-related modules on the compilation of lib.
Bruno Haible [Sat, 27 Mar 2010 17:38:53 +0000 (18:38 +0100)]
Factorize common .m4 code.
Bruno Haible [Sat, 27 Mar 2010 13:30:20 +0000 (14:30 +0100)]
Fix a compilation error on Cygwin with g++ >= 4.3.
Bruno Haible [Sat, 27 Mar 2010 13:02:37 +0000 (14:02 +0100)]
Rename gl_GETLOGIN.
Bruno Haible [Sat, 27 Mar 2010 13:01:58 +0000 (14:01 +0100)]
Rename gl_GETLOGIN_R.
Bruno Haible [Sat, 27 Mar 2010 13:01:23 +0000 (14:01 +0100)]
Rename gl_INET_NTOP.
Bruno Haible [Sat, 27 Mar 2010 13:00:37 +0000 (14:00 +0100)]
Rename gl_INET_PTON.
Bruno Haible [Sat, 27 Mar 2010 12:59:59 +0000 (13:59 +0100)]
Rename gl_MBSLEN.
Bruno Haible [Sat, 27 Mar 2010 12:59:19 +0000 (13:59 +0100)]
Rename gl_FORKPTY and gl_OPENPTY.
Simon Josefsson [Fri, 26 Mar 2010 08:14:34 +0000 (09:14 +0100)]
top/maint.mk (sc_texinfo_acronym): Don't infloop if there is no *.texi files.
Reported by Eric Blake <eblake@redhat.com>.
Karl Berry [Thu, 25 Mar 2010 23:01:21 +0000 (16:01 -0700)]
autoupdate
Karl Berry [Thu, 25 Mar 2010 22:57:35 +0000 (15:57 -0700)]
autoupdate
Eric Blake [Thu, 25 Mar 2010 22:28:02 +0000 (16:28 -0600)]
maint: use pragma consistently across replacement headers
Several headers set #pragma GCC system_header prior to checking
any multiple inclusion guards; maintenance is easiest if all
replacement headers follow the same paradigm.
* lib/ctype.in.h (system_header): Hoist for consistent placement.
* lib/dirent.in.h (system_header): Likewise.
* lib/errno.in.h (system_header): Likewise.
* lib/float.in.h (system_header): Likewise.
* lib/getopt.in.h (system_header): Likewise.
* lib/iconv.in.h (system_header): Likewise.
* lib/inttypes.in.h (system_header): Likewise.
* lib/langinfo.in.h (system_header): Likewise.
* lib/locale.in.h (system_header): Likewise.
* lib/math.in.h (system_header): Likewise.
* lib/netdb.in.h (system_header): Likewise.
* lib/netinet_in.in.h (system_header): Likewise.
* lib/pty.in.h (system_header): Likewise.
* lib/sched.in.h (system_header): Likewise.
* lib/se-selinux.in.h (system_header): Likewise.
* lib/search.in.h (system_header): Likewise.
* lib/spawn.in.h (system_header): Likewise.
* lib/stdarg.in.h (system_header): Likewise.
* lib/stdint.in.h (system_header): Likewise.
* lib/string.in.h (system_header): Likewise.
* lib/strings.in.h (system_header): Likewise.
* lib/sys_file.in.h (system_header): Likewise.
* lib/sys_ioctl.in.h (system_header): Likewise.
* lib/sys_socket.in.h (system_header): Likewise.
* lib/sys_times.in.h (system_header): Likewise.
* lib/sys_utsname.in.h (system_header): Likewise.
* lib/sys_wait.in.h (system_header): Likewise.
* lib/sysexits.in.h (system_header): Likewise.
* lib/unistd.in.h (system_header): Likewise.
* lib/wctype.in.h (system_header): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Wed, 24 Mar 2010 23:25:49 +0000 (17:25 -0600)]
arpa/inet: fix mingw compilation warning
Mingw doesn't have <arpa/inet.h>, so a conditional use of the
pragma was never encountered, and led to mingw's gcc issuing
warnings about duplicate declarations under -Wredundant-decls.
Making the #pragma unconditional (as was already done in at
least fcntl.in.h) shuts up gcc.
* lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
Reported by Matthew Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Thu, 25 Mar 2010 07:06:00 +0000 (08:06 +0100)]
Avoid collision between gnulib wrapper and libintl wrapper.
Bruno Haible [Thu, 25 Mar 2010 06:50:53 +0000 (07:50 +0100)]
Use ANSI C.
Bruno Haible [Thu, 25 Mar 2010 06:48:14 +0000 (07:48 +0100)]
Minor formatting changes.
Bruno Haible [Thu, 25 Mar 2010 06:44:50 +0000 (07:44 +0100)]
ChangeLog entry formatting.
Karl Berry [Wed, 24 Mar 2010 14:11:17 +0000 (07:11 -0700)]
autoupdate
Pádraig Brady [Wed, 24 Mar 2010 12:49:51 +0000 (13:49 +0100)]
maint.mk (sc_Wundef_boolean): Skip test if no config.h.
Signed-off-by: Simon Josefsson <simon@josefsson.org>
Bruno Haible [Wed, 24 Mar 2010 00:14:18 +0000 (01:14 +0100)]
pt_chown: Make it work with automake < 1.11.
Bruno Haible [Wed, 24 Mar 2010 00:08:56 +0000 (01:08 +0100)]
pt_chown: Don't depend on GPLed modules.
Simon Josefsson [Wed, 24 Mar 2010 07:45:04 +0000 (08:45 +0100)]
top/maint.mk (sc_texinfo_acronym): Add rule.
Based on suggestions from karl@freefriends.org (Karl Berry).
Karl Berry [Tue, 23 Mar 2010 23:36:37 +0000 (16:36 -0700)]
untabify
Eric Blake [Mon, 22 Mar 2010 20:01:55 +0000 (14:01 -0600)]
gethostname: further tweaks
* lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
are overriding gethostname.
Suggested by Bruno Haible.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Mon, 22 Mar 2010 20:09:14 +0000 (21:09 +0100)]
Fix comments.
Eric Blake [Fri, 19 Mar 2010 22:57:28 +0000 (16:57 -0600)]
gethostname: fix build on mingw
Since commit
4e86671a, gethostname failed to compile on mingw.
Gnulib's sys/socket.h includes winsock2.h, which then includes
unistd.h prior to declaring gethostname. The fix is to ensure
that our replacement unistd.h does not declare any replacements
until we are sure that winsock2.h is completely included.
* lib/unistd.in.h (includes): Work around fact that mingw
<winsock2.h> re-includes <unistd.h>, by avoiding any
redeclarations if we are being included by <winsock2.h>.
Reported by Matthias Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Mon, 22 Mar 2010 01:46:57 +0000 (02:46 +0100)]
forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
Bruno Haible [Mon, 22 Mar 2010 01:20:29 +0000 (02:20 +0100)]
Use the common template. Make test stricter.
Bruno Haible [Mon, 22 Mar 2010 01:15:18 +0000 (02:15 +0100)]
Use the common module description template.
Bruno Haible [Mon, 22 Mar 2010 01:14:08 +0000 (02:14 +0100)]
Tests for module 'login_tty'.
Bruno Haible [Mon, 22 Mar 2010 01:13:15 +0000 (02:13 +0100)]
New module 'login_tty'.
Bruno Haible [Sun, 21 Mar 2010 23:39:46 +0000 (00:39 +0100)]
login_tty: Documentation.
Bruno Haible [Sun, 21 Mar 2010 23:55:38 +0000 (00:55 +0100)]
pty: Consistent macro naming.
Bruno Haible [Sun, 21 Mar 2010 23:13:13 +0000 (00:13 +0100)]
Tests for openpty: Make stricter.
Bruno Haible [Sun, 21 Mar 2010 23:10:01 +0000 (00:10 +0100)]
openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
Bruno Haible [Sun, 21 Mar 2010 22:22:33 +0000 (23:22 +0100)]
setenv: Tweaks.
Bruno Haible [Sun, 21 Mar 2010 20:09:06 +0000 (21:09 +0100)]
New module 'unlockpt'.
Jim Meyering [Sun, 21 Mar 2010 13:53:34 +0000 (14:53 +0100)]
maint.mk: prohibit inclusion of "intprops.h" without use
* top/maint.mk (sc_prohibit_intprops_without_use): New rule.
Bruno Haible [Sun, 21 Mar 2010 19:16:38 +0000 (20:16 +0100)]
New module 'grantpt'.
Bruno Haible [Sun, 21 Mar 2010 15:53:56 +0000 (16:53 +0100)]
New module 'pt_chown'.
Bruno Haible [Sun, 21 Mar 2010 15:18:07 +0000 (16:18 +0100)]
Tests for module 'ptsname'.
Bruno Haible [Sun, 21 Mar 2010 15:17:22 +0000 (16:17 +0100)]
New module 'ptsname'.
Bruno Haible [Sun, 21 Mar 2010 13:40:05 +0000 (14:40 +0100)]
Tests for module 'ttyname_r'.
Bruno Haible [Sun, 21 Mar 2010 13:38:25 +0000 (14:38 +0100)]
New module 'ttyname_r'.
Bruno Haible [Sun, 21 Mar 2010 00:45:51 +0000 (01:45 +0100)]
signal: Undefine macro definitions in C++ mode.
Bruno Haible [Sun, 21 Mar 2010 00:14:37 +0000 (01:14 +0100)]
Ensure no #include statements inside extern "C" { ... }.
Bruno Haible [Sat, 20 Mar 2010 23:50:39 +0000 (00:50 +0100)]
Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation unit.
Bruno Haible [Sat, 20 Mar 2010 16:48:19 +0000 (17:48 +0100)]
Fix last commit.
Bruno Haible [Sat, 20 Mar 2010 16:20:29 +0000 (17:20 +0100)]
pipe: Set errno upon failure.
Bruno Haible [Sat, 20 Mar 2010 15:54:17 +0000 (16:54 +0100)]
lchown: Avoid "unused variable" warning.
Bruno Haible [Sat, 20 Mar 2010 14:26:42 +0000 (15:26 +0100)]
Work around unlink() bug on MacOS X 10.5.6.
Bruno Haible [Sat, 20 Mar 2010 08:59:43 +0000 (09:59 +0100)]
Fix link errors on Solaris 8.
Jim Meyering [Fri, 19 Mar 2010 20:26:36 +0000 (21:26 +0100)]
regcomp.c: make non-_LIBC implementation of build_range_exp consistent
The _LIBC implementation of build_range_exp correctly honors the
RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
However, the non-_LIBC implementation would ignore that syntax-bit
flag and return REG_ERANGE unconditionally.
This change makes it honor that flag.
* lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
Make two pointer parameters "const".
Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
(parse_bracket_exp): Update caller.
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.
Bruno Haible [Fri, 19 Mar 2010 23:20:36 +0000 (00:20 +0100)]
scandir: Fix link error on Solaris 8.
Bruno Haible [Fri, 19 Mar 2010 22:25:27 +0000 (23:25 +0100)]
getusershell: Fix documentation.
Bruno Haible [Fri, 19 Mar 2010 22:22:28 +0000 (23:22 +0100)]
getusershell: Provide declaration, missing on Solaris 9.
Bruno Haible [Fri, 19 Mar 2010 21:46:56 +0000 (22:46 +0100)]
wctype: Provide iswblank function.
Bruno Haible [Fri, 19 Mar 2010 21:16:56 +0000 (22:16 +0100)]
Tests of module 'pty' in C++ mode.
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>
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>
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>
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>
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>
Bruno Haible [Fri, 19 Mar 2010 01:01:17 +0000 (02:01 +0100)]
Fix link errors on Solaris 8.
Bruno Haible [Fri, 19 Mar 2010 00:44:16 +0000 (01:44 +0100)]
Fix bug introduced on 2010-03-14.
Bruno Haible [Fri, 19 Mar 2010 00:34:49 +0000 (01:34 +0100)]
Fix typo introduced on 2009-12-31.
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>
Simon Josefsson [Wed, 17 Mar 2010 14:29:00 +0000 (15:29 +0100)]
pty: Make forkpty check work.
Sergey Poznyakoff [Mon, 15 Mar 2010 17:36:37 +0000 (19:36 +0200)]
Portability fix in lib/inttostr.c.
Bruno Haible [Mon, 15 Mar 2010 02:07:26 +0000 (03:07 +0100)]
Remove portability problems from 'flock' unit test.
Bruno Haible [Sun, 14 Mar 2010 23:49:47 +0000 (00:49 +0100)]
Fix bug introduced on 2009-12-31.
Bruno Haible [Sun, 14 Mar 2010 22:19:29 +0000 (23:19 +0100)]
Fix values returned by sinl, cosl.
Bruno Haible [Sun, 14 Mar 2010 19:12:57 +0000 (20:12 +0100)]
Fix compilation error when modules 'posix_spawn[p]' are 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.
Bruno Haible [Sun, 14 Mar 2010 18:25:45 +0000 (19:25 +0100)]
Fix compilation error with Sun C.
Bruno Haible [Sat, 13 Mar 2010 16:31:06 +0000 (17:31 +0100)]
Allow the user to disable C++ code and tests.
Bruno Haible [Sat, 13 Mar 2010 15:31:43 +0000 (16:31 +0100)]
Mention libtool 2.2.x requirement in special cases.
Bruno Haible [Sat, 13 Mar 2010 15:20:41 +0000 (16:20 +0100)]
Test that gnulib does not break the standard C++ headers.
Bruno Haible [Sat, 13 Mar 2010 15:12:38 +0000 (16:12 +0100)]
gnulib.info-[0-9] are generated.
Bruno Haible [Sat, 13 Mar 2010 15:11:03 +0000 (16:11 +0100)]
Clarify which options are available for --create-testdir.
Bruno Haible [Sat, 13 Mar 2010 12:33:44 +0000 (13:33 +0100)]
Oops, fix typo in last commit.
Bruno Haible [Sat, 13 Mar 2010 11:06:23 +0000 (12:06 +0100)]
Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
Simon Josefsson [Fri, 12 Mar 2010 13:44:11 +0000 (14:44 +0100)]
gnulib-tool (func_import): Explain origin of code.