+2007-12-17 Roland McGrath <roland@redhat.com>
+
+ * inet/ether_line.c (ether_line): Remove unused variable.
+
+2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * login/forkpty.c (forkpty): Add const qualifier to parameters termp
+ and winp.
+ * login/openpty.c (openpty): Likewise.
+ * login/pty.h (openpty, forkpty): Likewise.
+ * manual/terminal.texi (openpty, forkpty): Likewise.
+
2007-12-17 Ulrich Drepper <drepper@redhat.com>
* malloc/malloc.c (public_cALLOc): For arena other than
forkpty (amaster, name, termp, winp)
int *amaster;
char *name;
- struct termios *termp;
- struct winsize *winp;
+ const struct termios *termp;
+ const struct winsize *winp;
{
int master, slave, pid;
according to TERMP and WINP. Return handles for both ends in
AMASTER and ASLAVE, and return the name of the slave end in NAME. */
int
-openpty (int *amaster, int *aslave, char *name, struct termios *termp,
- struct winsize *winp)
+openpty (int *amaster, int *aslave, char *name,
+ const struct termios *termp, const struct winsize *winp)
{
#ifdef PATH_MAX
char _buf[PATH_MAX];
attributes according to TERMP and WINP and return handles for both
ends in AMASTER and ASLAVE. */
extern int openpty (int *__amaster, int *__aslave, char *__name,
- struct termios *__termp, struct winsize *__winp) __THROW;
+ const struct termios *__termp,
+ const struct winsize *__winp) __THROW;
/* Create child process and establish the slave pseudo terminal as the
child's controlling terminal. */
extern int forkpty (int *__amaster, char *__name,
- struct termios *__termp, struct winsize *__winp) __THROW;
+ const struct termios *__termp,
+ const struct winsize *__winp) __THROW;
__END_DECLS
@comment pty.h
@comment BSD
-@deftypefun int openpty (int *@var{amaster}, int *@var{aslave}, char *@var{name}, struct termios *@var{termp}, struct winsize *@var{winp})
+@deftypefun int openpty (int *@var{amaster}, int *@var{aslave}, char *@var{name}, const struct termios *@var{termp}, const struct winsize *@var{winp})
This function allocates and opens a pseudo-terminal pair, returning the
file descriptor for the master in @var{*amaster}, and the file
descriptor for the slave in @var{*aslave}. If the argument @var{name}
@comment pty.h
@comment BSD
-@deftypefun int forkpty (int *@var{amaster}, char *@var{name}, struct termios *@var{termp}, struct winsize *@var{winp})
+@deftypefun int forkpty (int *@var{amaster}, char *@var{name}, const struct termios *@var{termp}, const struct winsize *@var{winp})
This function is similar to the @code{openpty} function, but in
addition, forks a new process (@pxref{Creating a Process}) and makes the
newly opened slave pseudo-terminal device the controlling terminal