20 #ifndef CONSOLE_SYSCALLS_H 21 #define CONSOLE_SYSCALLS_H 23 #include "modules/system/vfs/File.h" 25 #include <sys/types.h> 41 unsigned short v_active;
42 unsigned short v_signal;
43 unsigned short v_state;
48 unsigned char kb_table;
49 unsigned char kb_index;
50 unsigned short kb_value;
58 int posix_tcgetattr(
int fd,
struct termios *p);
59 int posix_tcsetattr(
int fd,
int optional_actions,
struct termios *p);
60 int console_getwinsize(
File *file,
struct winsize *buf);
61 int console_setwinsize(
File *file,
const struct winsize *buf);
62 int console_flush(
File *file,
void *what);
64 int console_ptsname(
int fd,
char *buf);
65 int console_ttyname(
int fd,
char *buf);
67 int console_setctty(
File *file,
bool steal);
68 int console_setctty(
int fd,
bool steal);
69 int console_notty(
int fd);
72 unsigned int console_getptn(
int fd);
74 pid_t posix_tcgetpgrp(
int fd);
75 int posix_tcsetpgrp(
int fd, pid_t pgid_id);