Luna/libc/include/pty.h

25 lines
588 B
C
Raw Permalink 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);
2023-11-25 11:18:25 +00:00
/* Create a new process operating in a pseudoterminal. */
pid_t forkpty(int* master, char* name, const struct termios* term, const struct winsize* win);
2023-09-22 21:02:33 +00:00
#ifdef __cplusplus
}
#endif
#endif