xref: /haiku/headers/compatibility/bsd/pty.h (revision 5e96d7d537fbec23bad4ae9b4c8e7b02e769f0c6)
1 /*
2  * Copyright 2008-2010 Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _BSD_PTY_H_
6 #define _BSD_PTY_H_
7 
8 
9 #include <sys/cdefs.h>
10 #include <termios.h>
11 
12 
13 __BEGIN_DECLS
14 
15 extern int		openpty(int* master, int* slave, char* name,
16 					struct termios* termAttrs, struct winsize* windowSize);
17 extern int		login_pty(int fd);
18 extern pid_t	forkpty(int* master, char* name,
19 					struct termios* termAttrs, struct winsize* windowSize);
20 
21 __END_DECLS
22 
23 #endif	// _BSD_PTY_H_
24