Luna/libc/include/pty.h
apio a47321a228
All checks were successful
continuous-integration/drone/push Build is passing
libc: Implement openpty()
2023-09-22 23:02:33 +02:00

22 lines
426 B
C

/* 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