1204917Sdes/* $OpenBSD: sshpty.h,v 1.12 2010/01/09 05:04:24 djm Exp $ */ 292555Sdes 376259Sgreen/* 476259Sgreen * Author: Tatu Ylonen <ylo@cs.hut.fi> 576259Sgreen * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 676259Sgreen * All rights reserved 776259Sgreen * Functions for allocating a pseudo-terminal and making it the controlling 876259Sgreen * tty. 976259Sgreen * 1076259Sgreen * As far as I am concerned, the code I have written for this software 1176259Sgreen * can be used freely for any purpose. Any derived versions of this 1276259Sgreen * software must be clearly marked as such, and if the derived work is 1376259Sgreen * incompatible with the protocol description in the RFC file, it must be 1476259Sgreen * called by a name other than "ssh" or "Secure Shell". 1576259Sgreen */ 1676259Sgreen 17162852Sdes#include <termios.h> 1876259Sgreen 19181111Sdesstruct termios *get_saved_tio(void); 20204917Sdesvoid leave_raw_mode(int); 21204917Sdesvoid enter_raw_mode(int); 22137015Sdes 23162852Sdesint pty_allocate(int *, int *, char *, size_t); 2492555Sdesvoid pty_release(const char *); 2592555Sdesvoid pty_make_controlling_tty(int *, const char *); 26162852Sdesvoid pty_change_window_size(int, u_int, u_int, u_int, u_int); 2792555Sdesvoid pty_setowner(struct passwd *, const char *); 28