This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: make openpty's termp and winp parameters const?
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 17 Dec 2007 11:53:46 +0000
- Subject: Re: make openpty's termp and winp parameters const?
- References: <20071217115054.GF4614@implementation.uk.xensource.com>
Samuel Thibault, le Mon 17 Dec 2007 11:50:54 +0000, a écrit :
> Since openpty()'s termp and winp parameters are just used by tcsetattr()
> and to set the window size, shouldn't they be const like this?
>
> int openpty(int *amaster, int *aslave, char *name,
> const struct termios *termp, const struct winsize * winp);
Same for forkpty.
Samuel