]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* inet/ether_line.c (ether_line): Remove unused variable.
authorRoland McGrath <roland@gnu.org>
Mon, 17 Dec 2007 21:22:17 +0000 (21:22 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 17 Dec 2007 21:22:17 +0000 (21:22 +0000)
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.

ChangeLog
login/forkpty.c
login/openpty.c
login/pty.h
manual/terminal.texi

index 4c2385198166792e8aad12d87d31c6fc9f963d2a..f5e2bb9e0355ebcb6db980802d5887637c091c63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+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
index ccd5dbfe0ef5315909293588dbd3fb4aacdc4727..482aebcb280591845a4f9489bdcd2d5b03d432a6 100644 (file)
@@ -27,8 +27,8 @@ int
 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;
 
index fe11d49febb58e30e1bb77ac4314cc41904246c0..0ff901c3f54a97a89190de0fc3f22853a382f93b 100644 (file)
@@ -84,8 +84,8 @@ pts_name (int fd, char **pts, size_t buf_len)
    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];
index 2d4b5e270f492e68de083efca0cbc17b9383c2bd..a2ed77d58d79dd25ad9f7f9813d2c7a60557c4af 100644 (file)
@@ -32,12 +32,14 @@ __BEGIN_DECLS
    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
 
index 96edcf0513386911122940fa7299132397e908d4..ee4df4ef7e35d31bed793734ac6a6c79b780b7db 100644 (file)
@@ -2075,7 +2075,7 @@ These functions, derived from BSD, are available in the separate
 
 @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}
@@ -2106,7 +2106,7 @@ device instead.
 
 @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