+2009-12-26 Eric Blake <ebb9@byu.net>
+
+ * include/pty.h (openpty, forkpty): Mark last two arguments const,
+ to match glibc 2.8.
+ * libc/bsdlib.cc (openpty, forkpty): Likewise.
+
2009-12-25 Andy Koppe <andy.koppe@gmail.com>
* fhandler_console.cc (handler_console::read): Use the tty's VERASE
extern "C" {
#endif
-int _EXFUN(openpty ,(int *, int *, char *, struct termios *, struct winsize *));
-int _EXFUN(forkpty ,(int *, char *, struct termios *, struct winsize *));
+int _EXFUN(openpty ,(int *, int *, char *, const struct termios *,
+ const struct winsize *));
+int _EXFUN(forkpty ,(int *, char *, const struct termios *,
+ const struct winsize *));
#ifdef __cplusplus
}
}
extern "C" 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)
{
int master, slave;
char pts[TTY_NAME_MAX];
}
extern "C" int
-forkpty (int *amaster, char *name, struct termios *termp, struct winsize *winp)
+forkpty (int *amaster, char *name, const struct termios *termp,
+ const struct winsize *winp)
{
int master, slave, pid;