diff options
author | Eric Blake <eblake@redhat.com> | 2010-03-18 13:49:25 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-03-19 09:34:35 -0600 |
commit | 9d84afa467b0a9abcd6e0d90fc7d1608f07bf2f1 (patch) | |
tree | a96f29ad77e1b9fc162620ac6102bb2c9eb58a47 /lib/pty.in.h | |
parent | 953fd38889e35a0ddbf8e9ada17f4fd001662003 (diff) | |
download | gnulib-9d84afa467b0a9abcd6e0d90fc7d1608f07bf2f1.tar.gz |
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>
Diffstat (limited to 'lib/pty.in.h')
-rw-r--r-- | lib/pty.in.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pty.in.h b/lib/pty.in.h index 8d80f8aacd..1b7bf82055 100644 --- a/lib/pty.in.h +++ b/lib/pty.in.h @@ -44,21 +44,21 @@ /* Declare overridden functions. */ -#if 1 /* FIXME - split forkpty into separate module */ +#if @GNULIB_FORKPTY@ #elif defined GNULIB_POSIXCHECK # undef forkpty # if HAVE_RAW_DECL_FORKPTY _GL_WARN_ON_USE (forkpty, "forkpty is not declared consistently - " - "use gnulib module pty for portability"); + "use gnulib module forkpty for portability"); # endif #endif -#if 1 /* FIXME - split openpty into separate module */ +#if @GNULIB_OPENPTY@ #elif defined GNULIB_POSIXCHECK # undef openpty # if HAVE_RAW_DECL_OPENPTY _GL_WARN_ON_USE (openpty, "openpty is not declared consistently - " - "use gnulib module pty for portability"); + "use gnulib module openpty for portability"); # endif #endif |