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