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