/usr/include/diet/pty.h is in dietlibc-dev 0.33~cvs20120325-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #ifndef _PTY_H
#define _PTY_H
#include <sys/cdefs.h>
#include <termios.h>
__BEGIN_DECLS
/* Create pseudo tty master slave pair with NAME and set terminal
* attributes according to TERMP and WINP and return handles for both
* ends in AMASTER and ASLAVE. */
extern int openpty (int *__amaster, int *__aslave, char *__name, struct
termios *__termp, struct winsize *__winp) __THROW;
__END_DECLS
#endif
|