sshpty.h revision 162852
110099Sjkh/* $OpenBSD: sshpty.h,v 1.10 2006/08/03 03:34:42 deraadt Exp $ */
213884Sache
310099Sjkh/*
413832Sache * Author: Tatu Ylonen <ylo@cs.hut.fi>
513884Sache * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
613985Sache *                    All rights reserved
713985Sache * Functions for allocating a pseudo-terminal and making it the controlling
813985Sache * tty.
913985Sache *
1013985Sache * As far as I am concerned, the code I have written for this software
1113985Sache * can be used freely for any purpose.  Any derived versions of this
1213985Sache * software must be clearly marked as such, and if the derived work is
1313985Sache * incompatible with the protocol description in the RFC file, it must be
1413985Sache * called by a name other than "ssh" or "Secure Shell".
1513985Sache */
1613985Sache
1713985Sache#include <termios.h>
1813985Sache
1910099Sjkhstruct termios get_saved_tio(void);
2013985Sachevoid	 leave_raw_mode(void);
2129103Scharniervoid	 enter_raw_mode(void);
2229103Scharnier
2343479Sbillfint	 pty_allocate(int *, int *, char *, size_t);
2429103Scharniervoid	 pty_release(const char *);
2529103Scharniervoid	 pty_make_controlling_tty(int *, const char *);
2613985Sachevoid	 pty_change_window_size(int, u_int, u_int, u_int, u_int);
2729103Scharniervoid	 pty_setowner(struct passwd *, const char *);
2829103Scharnier