sshpty.h revision 204917
155714Skris/* $OpenBSD: sshpty.h,v 1.12 2010/01/09 05:04:24 djm Exp $ */
255714Skris
355714Skris/*
455714Skris * Author: Tatu Ylonen <ylo@cs.hut.fi>
555714Skris * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
655714Skris *                    All rights reserved
755714Skris * Functions for allocating a pseudo-terminal and making it the controlling
8280304Sjkim * tty.
955714Skris *
1055714Skris * As far as I am concerned, the code I have written for this software
1155714Skris * can be used freely for any purpose.  Any derived versions of this
1255714Skris * software must be clearly marked as such, and if the derived work is
1355714Skris * incompatible with the protocol description in the RFC file, it must be
1455714Skris * called by a name other than "ssh" or "Secure Shell".
15280304Sjkim */
1655714Skris
1755714Skris#include <termios.h>
1855714Skris
1955714Skrisstruct termios *get_saved_tio(void);
2055714Skrisvoid	 leave_raw_mode(int);
2155714Skrisvoid	 enter_raw_mode(int);
22280304Sjkim
2355714Skrisint	 pty_allocate(int *, int *, char *, size_t);
2455714Skrisvoid	 pty_release(const char *);
2555714Skrisvoid	 pty_make_controlling_tty(int *, const char *);
2655714Skrisvoid	 pty_change_window_size(int, u_int, u_int, u_int, u_int);
2755714Skrisvoid	 pty_setowner(struct passwd *, const char *);
2855714Skris