mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:28:11 +00:00
LibCore: Add syscall wrappers for tcgetattr() and tcsetattr()
This commit is contained in:
parent
2b0c2360bb
commit
612eafea2c
2 changed files with 19 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <AK/Error.h>
|
||||
#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
#include <termios.h>
|
||||
|
||||
namespace Core::System {
|
||||
|
||||
|
@ -37,5 +38,7 @@ ErrorOr<int> dup2(int source_fd, int destination_fd);
|
|||
ErrorOr<String> ptsname(int fd);
|
||||
ErrorOr<String> gethostname();
|
||||
ErrorOr<void> ioctl(int fd, unsigned request, ...);
|
||||
ErrorOr<struct termios> tcgetattr(int fd);
|
||||
ErrorOr<void> tcsetattr(int fd, int optional_actions, struct termios const&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue