diff options
author | Eric Blake <eblake@redhat.com> | 2010-03-18 16:34:11 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-03-19 09:35:18 -0600 |
commit | 8e7bc4d9d435c2d18be77134896aa823733816a0 (patch) | |
tree | 8a66254c4937bfa6ecd735e36ee27d398fc00539 /doc/glibc-functions/forkpty.texi | |
parent | 9d84afa467b0a9abcd6e0d90fc7d1608f07bf2f1 (diff) | |
download | gnulib-8e7bc4d9d435c2d18be77134896aa823733816a0.tar.gz |
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>
Diffstat (limited to 'doc/glibc-functions/forkpty.texi')
-rw-r--r-- | doc/glibc-functions/forkpty.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/glibc-functions/forkpty.texi b/doc/glibc-functions/forkpty.texi index 8a86511585..aecc2329e2 100644 --- a/doc/glibc-functions/forkpty.texi +++ b/doc/glibc-functions/forkpty.texi @@ -16,6 +16,10 @@ required. The function is declared in pty.h on Cygwin, Interix, OSF/1 4 and 5, and glibc. It is declared in util.h on Mac OS X, OpenBSD and NetBSD. It is declared in libutil.h on FreeBSD. +@item +Some platforms declare the function without marking the last two +parameters @code{const}. +FreeBSD, Cygwin 1.7.1. @end itemize Portability problems not fixed by Gnulib: |