2015-09-12 23:36:00 +02:00
|
|
|
#ifndef _PTY_H
|
|
|
|
#define _PTY_H
|
|
|
|
|
2015-10-10 03:42:22 +02:00
|
|
|
#include <sys/cdefs.h>
|
2015-09-12 23:36:00 +02:00
|
|
|
#include <termios.h>
|
|
|
|
|
2015-10-10 03:42:22 +02:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2015-09-12 23:36:00 +02:00
|
|
|
int openpty(int* amaster, int* aslave, char* name, struct termios* termp, struct winsize* winp);
|
|
|
|
|
|
|
|
int login_tty(int fd);
|
|
|
|
|
|
|
|
int forkpty(int* amaster, char* name, struct termios* termp, struct winsize* winp);
|
|
|
|
|
2015-10-10 03:42:22 +02:00
|
|
|
__END_DECLS
|
|
|
|
|
2015-09-12 23:36:00 +02:00
|
|
|
#endif
|