mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Stub out a bunch more functions to get closer to that sweet bash build.
This commit is contained in:
parent
e48182d91b
commit
f394e3486a
14 changed files with 114 additions and 1 deletions
20
LibC/termios.cpp
Normal file
20
LibC/termios.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include <errno.h>
|
||||
#include <termios.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
int tcgetattr(int fd, struct termios* t)
|
||||
{
|
||||
int rc = Syscall::invoke(Syscall::SC_tcgetattr, (dword)fd, (dword)t);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int tcsetattr(int fd, int optional_actions, const struct termios* t)
|
||||
{
|
||||
int rc = Syscall::invoke(Syscall::SC_tcsetattr, (dword)fd, (dword)optional_actions, (dword)t);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue