pty.h revision 091a80ae
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
18extern int		openpty(int* master, int* slave, char* name,
19					struct termios* termAttrs, struct winsize* windowSize);
20extern int		login_pty(int fd);
21extern 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