linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] * openpty.3: Use const as appropriate
@ 2010-02-05 21:05 Eric Blake
       [not found] ` <1265403930-5005-1-git-send-email-ebb9-PGZyUNKar/Q@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Blake @ 2010-02-05 21:05 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: ebb9-PGZyUNKar/Q, linux-man-u79uwXL29TY76Z2rM5mHXA

Signed-off-by: Eric Blake <ebb9-PGZyUNKar/Q@public.gmane.org>
---
Make the openpty/forkpty man page match /usr/include/pty.h as
included in glibc 2.11.1.

 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

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] * openpty.3: Use const as appropriate
       [not found] ` <1265403930-5005-1-git-send-email-ebb9-PGZyUNKar/Q@public.gmane.org>
@ 2010-06-13  4:52   ` Michael Kerrisk
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2010-06-13  4:52 UTC (permalink / raw)
  To: Eric Blake; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hi Eric,

On Fri, Feb 5, 2010 at 11:05 PM, Eric Blake <ebb9-PGZyUNKar/Q@public.gmane.org> wrote:
> Signed-off-by: Eric Blake <ebb9-PGZyUNKar/Q@public.gmane.org>
> ---
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-13  4:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05 21:05 [PATCH] * openpty.3: Use const as appropriate Eric Blake
     [not found] ` <1265403930-5005-1-git-send-email-ebb9-PGZyUNKar/Q@public.gmane.org>
2010-06-13  4:52   ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).