[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-man
Subject:    Re: [PATCH] * openpty.3: Use const as appropriate
From:       Michael Kerrisk <mtk.manpages () googlemail ! com>
Date:       2010-06-13 4:52:44
Message-ID: AANLkTimh2bnpxp9R2981Jw0xb27kYQSHsA8FuMPX4ilg () mail ! gmail ! com
[Download RAW message or body]

Hi Eric,

On Fri, Feb 5, 2010 at 11:05 PM, Eric Blake <[email protected]> wrote:
> Signed-off-by: Eric Blake <[email protected]>
> ---
> Make the openpty/forkpty man page match /usr/include/pty.h as
> included in glibc 2.11.1.

Thanks. Applied for man-pages-3.25, along with some added text that
"const" was added in glibc 2.8.

Thanks

Michael


>  man3/openpty.3 |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/man3/openpty.3 b/man3/openpty.3
> index e033af0..a36352b 100644
> --- a/man3/openpty.3
> +++ b/man3/openpty.3
> @@ -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
> --
> 1.6.6
>
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic