summaryrefslogtreecommitdiff
path: root/modules/openpty
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-03-18 13:49:25 -0600
committerEric Blake <eblake@redhat.com>2010-03-19 09:34:35 -0600
commit9d84afa467b0a9abcd6e0d90fc7d1608f07bf2f1 (patch)
treea96f29ad77e1b9fc162620ac6102bb2c9eb58a47 /modules/openpty
parent953fd38889e35a0ddbf8e9ada17f4fd001662003 (diff)
downloadgnulib-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 'modules/openpty')
-rw-r--r--modules/openpty26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/openpty b/modules/openpty
new file mode 100644
index 0000000000..68e00db4a6
--- /dev/null
+++ b/modules/openpty
@@ -0,0 +1,26 @@
+Description:
+Provide the openpty() function.
+
+Files:
+m4/pty.m4
+
+Depends-on:
+pty
+
+configure.ac:
+gl_OPENPTY
+gl_PTY_MODULE_INDICATOR([openpty])
+
+Makefile.am:
+
+Include:
+<pty.h>
+
+Link:
+$(PTY_LIB)
+
+License:
+LGPL
+
+Maintainer:
+Simon Josefsson