1*41768fc1Schristos /* $NetBSD: sshpty.h,v 1.7 2017/04/18 18:41:46 christos Exp $ */ 2ee85abc4Schristos /* $OpenBSD: sshpty.h,v 1.13 2016/11/29 03:54:50 dtucker Exp $ */ 3ca32bd8dSchristos 4ca32bd8dSchristos /* 5ca32bd8dSchristos * Author: Tatu Ylonen <ylo@cs.hut.fi> 6ca32bd8dSchristos * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 7ca32bd8dSchristos * All rights reserved 8ca32bd8dSchristos * Functions for allocating a pseudo-terminal and making it the controlling 9ca32bd8dSchristos * tty. 10ca32bd8dSchristos * 11ca32bd8dSchristos * As far as I am concerned, the code I have written for this software 12ca32bd8dSchristos * can be used freely for any purpose. Any derived versions of this 13ca32bd8dSchristos * software must be clearly marked as such, and if the derived work is 14ca32bd8dSchristos * incompatible with the protocol description in the RFC file, it must be 15ca32bd8dSchristos * called by a name other than "ssh" or "Secure Shell". 16ca32bd8dSchristos */ 17ca32bd8dSchristos 18ca32bd8dSchristos #include <termios.h> 19ca32bd8dSchristos 20ca32bd8dSchristos struct termios *get_saved_tio(void); 2134b27b53Sadam void leave_raw_mode(int); 2234b27b53Sadam void enter_raw_mode(int); 23ca32bd8dSchristos 24ca32bd8dSchristos int pty_allocate(int *, int *, char *, size_t); 25ca32bd8dSchristos void pty_release(const char *); 26ca32bd8dSchristos void pty_make_controlling_tty(int *, const char *); 27ca32bd8dSchristos void pty_change_window_size(int, u_int, u_int, u_int, u_int); 28ca32bd8dSchristos void pty_setowner(struct passwd *, const char *); 29ee85abc4Schristos void disconnect_controlling_tty(void); 30