gnulib.git
14 years agomaint: improve module indicators
Eric Blake [Tue, 30 Mar 2010 14:47:41 +0000 (08:47 -0600)]
maint: improve module indicators

* m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
(gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
columns, and avoid extra macro expansion.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agofdopendir: work around FreeBSD bug
Eric Blake [Mon, 29 Mar 2010 21:08:59 +0000 (15:08 -0600)]
fdopendir: work around FreeBSD bug

Without a declaration, at least tar would core dump on 64-bit
FreeBSD because gcc only used 32 bits of the resulting pointer.

* m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
* modules/dirent (Makefile.am): Substitute it.
* lib/dirent.in.h (fdopendir): Supply missing FreeBSD
declaration.
* doc/posix-functions/fdopendir.texi (fdopendir): Document the
fix.
Reported by Christian Weisgerber <naddy@mips.inka.de>.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoEmit #pragma system_header after the inclusion guard, not before.
Bruno Haible [Tue, 30 Mar 2010 00:35:49 +0000 (02:35 +0200)]
Emit #pragma system_header after the inclusion guard, not before.

14 years agoFix indentation.
Bruno Haible [Tue, 30 Mar 2010 00:33:35 +0000 (02:33 +0200)]
Fix indentation.

14 years agosave-cwd: don't leak a file descriptor when the caller execs
James Youngman [Mon, 29 Mar 2010 10:30:23 +0000 (12:30 +0200)]
save-cwd: don't leak a file descriptor when the caller execs

* lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
saved file descriptor.
* modules/save-cwd (Depends-on): Depend on cloexec.

14 years agoRemove vestiges of fts-lgpl module.
Bruno Haible [Mon, 29 Mar 2010 08:41:20 +0000 (10:41 +0200)]
Remove vestiges of fts-lgpl module.

14 years agoFix definition of tests witness macro.
Bruno Haible [Mon, 29 Mar 2010 02:21:23 +0000 (04:21 +0200)]
Fix definition of tests witness macro.

14 years agoFix definition of tests witness macro.
Bruno Haible [Mon, 29 Mar 2010 01:04:51 +0000 (03:04 +0200)]
Fix definition of tests witness macro.

14 years agoFix ioctl's protoype on glibc systems.
Bruno Haible [Mon, 29 Mar 2010 00:27:39 +0000 (02:27 +0200)]
Fix ioctl's protoype on glibc systems.

14 years agoNormalize copyright line formatting.
Bruno Haible [Sun, 28 Mar 2010 23:17:33 +0000 (01:17 +0200)]
Normalize copyright line formatting.

14 years agoexclude: fix the case of globs vs. EXCLUDE_INCLUDE
Javier Villavicencio [Sun, 28 Mar 2010 18:42:01 +0000 (20:42 +0200)]
exclude: fix the case of globs vs. EXCLUDE_INCLUDE

* lib/exclude.c (excluded_file_pattern_p): Fix logic error that
made it so grep -r --include=GLOB* ... did not work.

14 years agomaint.mk: prohibit use of test's -o and -a operators
Jim Meyering [Fri, 26 Mar 2010 08:04:29 +0000 (09:04 +0100)]
maint.mk: prohibit use of test's -o and -a operators

* top/maint.mk (sc_prohibit_test_minus_ao): New rule.

14 years agoRemove unused GNULIB_XYZ macro definitions.
Bruno Haible [Sun, 28 Mar 2010 17:39:32 +0000 (19:39 +0200)]
Remove unused GNULIB_XYZ macro definitions.

14 years agoMark privileged tests modules.
Bruno Haible [Sun, 28 Mar 2010 17:15:43 +0000 (19:15 +0200)]
Mark privileged tests modules.

14 years agoSplit C++ tests into separate tests modules.
Bruno Haible [Sun, 28 Mar 2010 17:07:33 +0000 (19:07 +0200)]
Split C++ tests into separate tests modules.

14 years agognulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
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'.

14 years agognulib-tool: Add support for special categories of tests.
Bruno Haible [Sun, 28 Mar 2010 16:01:18 +0000 (18:01 +0200)]
gnulib-tool: Add support for special categories of tests.

14 years agoansi-c++-opt: Allow turning off the C++ build by default.
Bruno Haible [Sun, 28 Mar 2010 13:30:39 +0000 (15:30 +0200)]
ansi-c++-opt: Allow turning off the C++ build by default.

14 years agounistd: Avoid #define replacements in C++ mode.
Bruno Haible [Sun, 28 Mar 2010 12:26:15 +0000 (14:26 +0200)]
unistd: Avoid #define replacements in C++ mode.

14 years agoFix link errors on mingw.
Bruno Haible [Sun, 28 Mar 2010 12:21:28 +0000 (14:21 +0200)]
Fix link errors on mingw.

14 years agolib-ignore: Determine different options for different compilers.
Bruno Haible [Sun, 28 Mar 2010 09:23:57 +0000 (11:23 +0200)]
lib-ignore: Determine different options for different compilers.

14 years agoRemove unused GNULIB_XYZ macro definitions.
Bruno Haible [Sun, 28 Mar 2010 00:48:22 +0000 (01:48 +0100)]
Remove unused GNULIB_XYZ macro definitions.

14 years agoAdd a remark about certain modules.
Bruno Haible [Sun, 28 Mar 2010 00:37:25 +0000 (01:37 +0100)]
Add a remark about certain modules.

14 years agoResolve conflict between the two kinds of module indicators.
Bruno Haible [Sun, 28 Mar 2010 00:29:52 +0000 (01:29 +0100)]
Resolve conflict between the two kinds of module indicators.

14 years agoautoupdate
Karl Berry [Sun, 28 Mar 2010 00:08:29 +0000 (17:08 -0700)]
autoupdate

14 years agoDistinguish two kinds of module indicators.
Bruno Haible [Sat, 27 Mar 2010 23:31:39 +0000 (00:31 +0100)]
Distinguish two kinds of module indicators.

14 years agoNew module description field 'Comment'.
Bruno Haible [Sat, 27 Mar 2010 19:52:28 +0000 (20:52 +0100)]
New module description field 'Comment'.

14 years agoAddendum to 2010-02-07 commit.
Bruno Haible [Sat, 27 Mar 2010 19:45:57 +0000 (20:45 +0100)]
Addendum to 2010-02-07 commit.

14 years agoUse GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
Bruno Haible [Sat, 27 Mar 2010 19:09:55 +0000 (20:09 +0100)]
Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.

14 years agoAvoid side effects from tests-related modules on the compilation of lib.
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.

14 years agoFactorize common .m4 code.
Bruno Haible [Sat, 27 Mar 2010 17:38:53 +0000 (18:38 +0100)]
Factorize common .m4 code.

14 years agoFix a compilation error on Cygwin with g++ >= 4.3.
Bruno Haible [Sat, 27 Mar 2010 13:30:20 +0000 (14:30 +0100)]
Fix a compilation error on Cygwin with g++ >= 4.3.

14 years agoRename gl_GETLOGIN.
Bruno Haible [Sat, 27 Mar 2010 13:02:37 +0000 (14:02 +0100)]
Rename gl_GETLOGIN.

14 years agoRename gl_GETLOGIN_R.
Bruno Haible [Sat, 27 Mar 2010 13:01:58 +0000 (14:01 +0100)]
Rename gl_GETLOGIN_R.

14 years agoRename gl_INET_NTOP.
Bruno Haible [Sat, 27 Mar 2010 13:01:23 +0000 (14:01 +0100)]
Rename gl_INET_NTOP.

14 years agoRename gl_INET_PTON.
Bruno Haible [Sat, 27 Mar 2010 13:00:37 +0000 (14:00 +0100)]
Rename gl_INET_PTON.

14 years agoRename gl_MBSLEN.
Bruno Haible [Sat, 27 Mar 2010 12:59:59 +0000 (13:59 +0100)]
Rename gl_MBSLEN.

14 years agoRename gl_FORKPTY and gl_OPENPTY.
Bruno Haible [Sat, 27 Mar 2010 12:59:19 +0000 (13:59 +0100)]
Rename gl_FORKPTY and gl_OPENPTY.

14 years agotop/maint.mk (sc_texinfo_acronym): Don't infloop if there is no *.texi files.
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>.

14 years agoautoupdate
Karl Berry [Thu, 25 Mar 2010 23:01:21 +0000 (16:01 -0700)]
autoupdate

14 years agoautoupdate
Karl Berry [Thu, 25 Mar 2010 22:57:35 +0000 (15:57 -0700)]
autoupdate

14 years agomaint: use pragma consistently across replacement headers
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>
14 years agoarpa/inet: fix mingw compilation warning
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>
14 years agoAvoid collision between gnulib wrapper and libintl wrapper.
Bruno Haible [Thu, 25 Mar 2010 07:06:00 +0000 (08:06 +0100)]
Avoid collision between gnulib wrapper and libintl wrapper.

14 years agoUse ANSI C.
Bruno Haible [Thu, 25 Mar 2010 06:50:53 +0000 (07:50 +0100)]
Use ANSI C.

14 years agoMinor formatting changes.
Bruno Haible [Thu, 25 Mar 2010 06:48:14 +0000 (07:48 +0100)]
Minor formatting changes.

14 years agoChangeLog entry formatting.
Bruno Haible [Thu, 25 Mar 2010 06:44:50 +0000 (07:44 +0100)]
ChangeLog entry formatting.

14 years agoautoupdate
Karl Berry [Wed, 24 Mar 2010 14:11:17 +0000 (07:11 -0700)]
autoupdate

14 years agomaint.mk (sc_Wundef_boolean): Skip test if no config.h.
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>
14 years agopt_chown: Make it work with automake < 1.11.
Bruno Haible [Wed, 24 Mar 2010 00:14:18 +0000 (01:14 +0100)]
pt_chown: Make it work with automake < 1.11.

14 years agopt_chown: Don't depend on GPLed modules.
Bruno Haible [Wed, 24 Mar 2010 00:08:56 +0000 (01:08 +0100)]
pt_chown: Don't depend on GPLed modules.

14 years agotop/maint.mk (sc_texinfo_acronym): Add rule.
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).

14 years agountabify
Karl Berry [Tue, 23 Mar 2010 23:36:37 +0000 (16:36 -0700)]
untabify

14 years agogethostname: further tweaks
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>
14 years agoFix comments.
Bruno Haible [Mon, 22 Mar 2010 20:09:14 +0000 (21:09 +0100)]
Fix comments.

14 years agogethostname: fix build on mingw
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>
14 years agoforkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
Bruno Haible [Mon, 22 Mar 2010 01:46:57 +0000 (02:46 +0100)]
forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.

14 years agoUse the common template. Make test stricter.
Bruno Haible [Mon, 22 Mar 2010 01:20:29 +0000 (02:20 +0100)]
Use the common template. Make test stricter.

14 years agoUse the common module description template.
Bruno Haible [Mon, 22 Mar 2010 01:15:18 +0000 (02:15 +0100)]
Use the common module description template.

14 years agoTests for module 'login_tty'.
Bruno Haible [Mon, 22 Mar 2010 01:14:08 +0000 (02:14 +0100)]
Tests for module 'login_tty'.

14 years agoNew module 'login_tty'.
Bruno Haible [Mon, 22 Mar 2010 01:13:15 +0000 (02:13 +0100)]
New module 'login_tty'.

14 years agologin_tty: Documentation.
Bruno Haible [Sun, 21 Mar 2010 23:39:46 +0000 (00:39 +0100)]
login_tty: Documentation.

14 years agopty: Consistent macro naming.
Bruno Haible [Sun, 21 Mar 2010 23:55:38 +0000 (00:55 +0100)]
pty: Consistent macro naming.

14 years agoTests for openpty: Make stricter.
Bruno Haible [Sun, 21 Mar 2010 23:13:13 +0000 (00:13 +0100)]
Tests for openpty: Make stricter.

14 years agoopenpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
Bruno Haible [Sun, 21 Mar 2010 23:10:01 +0000 (00:10 +0100)]
openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.

14 years agosetenv: Tweaks.
Bruno Haible [Sun, 21 Mar 2010 22:22:33 +0000 (23:22 +0100)]
setenv: Tweaks.

14 years agoNew module 'unlockpt'.
Bruno Haible [Sun, 21 Mar 2010 20:09:06 +0000 (21:09 +0100)]
New module 'unlockpt'.

14 years agomaint.mk: prohibit inclusion of "intprops.h" without use
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.

14 years agoNew module 'grantpt'.
Bruno Haible [Sun, 21 Mar 2010 19:16:38 +0000 (20:16 +0100)]
New module 'grantpt'.

14 years agoNew module 'pt_chown'.
Bruno Haible [Sun, 21 Mar 2010 15:53:56 +0000 (16:53 +0100)]
New module 'pt_chown'.

14 years agoTests for module 'ptsname'.
Bruno Haible [Sun, 21 Mar 2010 15:18:07 +0000 (16:18 +0100)]
Tests for module 'ptsname'.

14 years agoNew module 'ptsname'.
Bruno Haible [Sun, 21 Mar 2010 15:17:22 +0000 (16:17 +0100)]
New module 'ptsname'.

14 years agoTests for module 'ttyname_r'.
Bruno Haible [Sun, 21 Mar 2010 13:40:05 +0000 (14:40 +0100)]
Tests for module 'ttyname_r'.

14 years agoNew module 'ttyname_r'.
Bruno Haible [Sun, 21 Mar 2010 13:38:25 +0000 (14:38 +0100)]
New module 'ttyname_r'.

14 years agosignal: Undefine macro definitions in C++ mode.
Bruno Haible [Sun, 21 Mar 2010 00:45:51 +0000 (01:45 +0100)]
signal: Undefine macro definitions in C++ mode.

14 years agoEnsure no #include statements inside extern "C" { ... }.
Bruno Haible [Sun, 21 Mar 2010 00:14:37 +0000 (01:14 +0100)]
Ensure no #include statements inside extern "C" { ... }.

14 years agoMake _GL_WARN_ON_USE usable in C++ and C mode in the same compilation unit.
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.

14 years agoFix last commit.
Bruno Haible [Sat, 20 Mar 2010 16:48:19 +0000 (17:48 +0100)]
Fix last commit.

14 years agopipe: Set errno upon failure.
Bruno Haible [Sat, 20 Mar 2010 16:20:29 +0000 (17:20 +0100)]
pipe: Set errno upon failure.

14 years agolchown: Avoid "unused variable" warning.
Bruno Haible [Sat, 20 Mar 2010 15:54:17 +0000 (16:54 +0100)]
lchown: Avoid "unused variable" warning.

14 years agoWork around unlink() bug on MacOS X 10.5.6.
Bruno Haible [Sat, 20 Mar 2010 14:26:42 +0000 (15:26 +0100)]
Work around unlink() bug on MacOS X 10.5.6.

14 years agoFix link errors on Solaris 8.
Bruno Haible [Sat, 20 Mar 2010 08:59:43 +0000 (09:59 +0100)]
Fix link errors on Solaris 8.

14 years agoregcomp.c: make non-_LIBC implementation of build_range_exp consistent
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.

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.