20#ifndef CONSOLE_SYSCALLS_H
21#define CONSOLE_SYSCALLS_H
23#include "modules/system/vfs/File.h"
28int console_tcgetattr(
const DescriptorLease& descriptor,
struct termios* attributes);
29int console_tcsetattr(
const DescriptorLease& descriptor,
int action,
struct termios* attributes);
43 unsigned short v_active;
44 unsigned short v_signal;
45 unsigned short v_state;
49 unsigned char kb_table;
50 unsigned char kb_index;
51 unsigned short kb_value;
59int posix_tcgetattr(
int fd,
struct termios* p);
60int posix_tcsetattr(
int fd,
int optional_actions,
struct termios* p);
61int console_getwinsize(
File* file,
struct winsize* buf);
62int console_setwinsize(
File* file,
const struct winsize* buf);
63int console_flush(
File* file,
void* what);
65int console_ptsname(
int fd,
char* buf);
66int console_ttyname(
int fd,
char* buf);
68int console_setctty(
File* file,
bool steal);
69int console_setctty(
int fd,
bool steal);
70int console_notty(
int fd);
73unsigned int console_getptn(
int fd);
75pid_t posix_tcgetpgrp(
int fd);
76int posix_tcsetpgrp(
int fd, pid_t pgid_id);