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