xref: /titanic_50/usr/src/cmd/ssh/include/sshpty.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*	$OpenBSD: sshpty.h,v 1.4 2002/03/04 17:27:39 stevesk Exp $	*/
2*7c478bd9Sstevel@tonic-gate 
3*7c478bd9Sstevel@tonic-gate #ifndef	_SSHPTY_H
4*7c478bd9Sstevel@tonic-gate #define	_SSHPTY_H
5*7c478bd9Sstevel@tonic-gate 
6*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
7*7c478bd9Sstevel@tonic-gate 
8*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus
9*7c478bd9Sstevel@tonic-gate extern "C" {
10*7c478bd9Sstevel@tonic-gate #endif
11*7c478bd9Sstevel@tonic-gate 
12*7c478bd9Sstevel@tonic-gate 
13*7c478bd9Sstevel@tonic-gate /*
14*7c478bd9Sstevel@tonic-gate  * Author: Tatu Ylonen <ylo@cs.hut.fi>
15*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
16*7c478bd9Sstevel@tonic-gate  *                    All rights reserved
17*7c478bd9Sstevel@tonic-gate  * Functions for allocating a pseudo-terminal and making it the controlling
18*7c478bd9Sstevel@tonic-gate  * tty.
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * As far as I am concerned, the code I have written for this software
21*7c478bd9Sstevel@tonic-gate  * can be used freely for any purpose.  Any derived versions of this
22*7c478bd9Sstevel@tonic-gate  * software must be clearly marked as such, and if the derived work is
23*7c478bd9Sstevel@tonic-gate  * incompatible with the protocol description in the RFC file, it must be
24*7c478bd9Sstevel@tonic-gate  * called by a name other than "ssh" or "Secure Shell".
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate int	 pty_allocate(int *, int *, char *, int);
28*7c478bd9Sstevel@tonic-gate void	 pty_release(const char *);
29*7c478bd9Sstevel@tonic-gate void	 pty_make_controlling_tty(int *, const char *);
30*7c478bd9Sstevel@tonic-gate void	 pty_change_window_size(int, int, int, int, int);
31*7c478bd9Sstevel@tonic-gate void	 pty_setowner(struct passwd *, const char *);
32*7c478bd9Sstevel@tonic-gate 
33*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus
34*7c478bd9Sstevel@tonic-gate }
35*7c478bd9Sstevel@tonic-gate #endif
36*7c478bd9Sstevel@tonic-gate 
37*7c478bd9Sstevel@tonic-gate #endif /* _SSHPTY_H */
38