xref: /dragonfly/crypto/openssh/sshpty.h (revision 2c9c1408)
1*2c9c1408SMatthew Dillon /* $OpenBSD: sshpty.h,v 1.13 2016/11/29 03:54:50 dtucker Exp $ */
218de8d7fSPeter Avalos 
318de8d7fSPeter Avalos /*
418de8d7fSPeter Avalos  * Author: Tatu Ylonen <ylo@cs.hut.fi>
518de8d7fSPeter Avalos  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
618de8d7fSPeter Avalos  *                    All rights reserved
718de8d7fSPeter Avalos  * Functions for allocating a pseudo-terminal and making it the controlling
818de8d7fSPeter Avalos  * tty.
918de8d7fSPeter Avalos  *
1018de8d7fSPeter Avalos  * As far as I am concerned, the code I have written for this software
1118de8d7fSPeter Avalos  * can be used freely for any purpose.  Any derived versions of this
1218de8d7fSPeter Avalos  * software must be clearly marked as such, and if the derived work is
1318de8d7fSPeter Avalos  * incompatible with the protocol description in the RFC file, it must be
1418de8d7fSPeter Avalos  * called by a name other than "ssh" or "Secure Shell".
1518de8d7fSPeter Avalos  */
1618de8d7fSPeter Avalos 
1718de8d7fSPeter Avalos #include <termios.h>
1818de8d7fSPeter Avalos 
1918de8d7fSPeter Avalos struct termios *get_saved_tio(void);
20856ea928SPeter Avalos void	 leave_raw_mode(int);
21856ea928SPeter Avalos void	 enter_raw_mode(int);
2218de8d7fSPeter Avalos 
2318de8d7fSPeter Avalos int	 pty_allocate(int *, int *, char *, size_t);
2418de8d7fSPeter Avalos void	 pty_release(const char *);
2518de8d7fSPeter Avalos void	 pty_make_controlling_tty(int *, const char *);
2618de8d7fSPeter Avalos void	 pty_change_window_size(int, u_int, u_int, u_int, u_int);
2718de8d7fSPeter Avalos void	 pty_setowner(struct passwd *, const char *);
28*2c9c1408SMatthew Dillon void	 disconnect_controlling_tty(void);
29