xref: /haiku/headers/compatibility/bsd/pty.h (revision efafab643ce980e3f3c916795ed302599f6b4f66)
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 #ifdef _BSD_SOURCE
10 
11 
12 #include <sys/cdefs.h>
13 #include <termios.h>
14 
15 
16 __BEGIN_DECLS
17 
18 extern int		openpty(int* master, int* slave, char* name,
19 					struct termios* termAttrs, struct winsize* windowSize);
20 extern int		login_tty(int fd);
21 extern pid_t	forkpty(int* master, char* name,
22 					struct termios* termAttrs, struct winsize* windowSize);
23 
24 __END_DECLS
25 
26 
27 #endif
28 
29 
30 #endif	// _BSD_PTY_H_
31