forkpty, openpty: split functions into new modules
authorEric Blake <eblake@redhat.com>
Thu, 18 Mar 2010 19:49:25 +0000 (13:49 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 19 Mar 2010 15:34:35 +0000 (09:34 -0600)
commit9d84afa467b0a9abcd6e0d90fc7d1608f07bf2f1
treea96f29ad77e1b9fc162620ac6102bb2c9eb58a47
parent953fd38889e35a0ddbf8e9ada17f4fd001662003
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>
17 files changed:
ChangeLog
MODULES.html.sh
NEWS
doc/glibc-functions/forkpty.texi
doc/glibc-functions/openpty.texi
lib/pty.in.h
m4/pty.m4 [new file with mode: 0644]
m4/pty_h.m4
modules/forkpty [new file with mode: 0644]
modules/forkpty-tests [new file with mode: 0644]
modules/openpty [new file with mode: 0644]
modules/openpty-tests [new file with mode: 0644]
modules/pty
modules/pty-tests [deleted file]
tests/test-forkpty.c [new file with mode: 0644]
tests/test-openpty.c [new file with mode: 0644]
tests/test-pty.c [deleted file]