openpty.3: Use const as appropriate

Signed-off-by: Eric Blake <ebb9@byu.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Eric Blake 2010-02-05 14:05:30 -07:00 committed by Michael Kerrisk
parent 70bf963fb5
commit 671c2ab44b
1 changed files with 6 additions and 4 deletions

View File

@ -29,7 +29,7 @@
.\"
.\" Added -lutil remark, 030718
.\"
.TH OPENPTY 3 2003-07-18 "GNU" "Linux Programmer's Manual"
.TH OPENPTY 3 2010-02-05 "GNU" "Linux Programmer's Manual"
.SH NAME
openpty, login_tty, forkpty \- tty utility functions
.SH SYNOPSIS
@ -37,10 +37,12 @@ openpty, login_tty, forkpty \- tty utility functions
.B #include <pty.h>
.sp
.BI "int openpty(int *" amaster ", int *" aslave ", char *" name ,
.BI " struct termios *" termp ", struct winsize *" winp );
.BI " const struct termios *" termp ,
.BI " const struct winsize *" winp );
.sp
.BI "pid_t forkpty(int *" amaster ", char *" name ", struct termios *" termp ,
.BI " struct winsize *" winp );
.BI "pid_t forkpty(int *" amaster ", char *" name ,
.BI " const struct termios *" termp ,
.BI " const struct winsize *" winp );
.sp
.B #include <utmp.h>
.sp