Luna/libc/include/pty.h

22 lines
426 B
C
Raw Normal View History

2023-09-22 21:02:33 +00:00
/* pty.h: Pseudoterminal handling functions. */
#ifndef _PTY_H
#define _PTY_H
#include <bits/termios.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C"
{
#endif
/* Find an available pseudoterminal pair and initialize it, returning file descriptors for both sides. */
int openpty(int* master, int* slave, char* name, const struct termios* term, const struct winsize* win);
#ifdef __cplusplus
}
#endif
#endif