Luna/libc/src/termios.cpp
apio 546d900454
All checks were successful
continuous-integration/drone/push Build is passing
libc+apps: Start implementing POSIX-compliant termios.h wrappers around tty ioctls
2023-07-12 19:23:06 +02:00

18 lines
335 B
C++

#include <luna/Check.h>
#include <sys/ioctl.h>
#include <termios.h>
extern "C"
{
int tcgetattr(int fd, struct termios* termp)
{
return ioctl(fd, TCGETS, termp);
}
int tcsetattr(int fd, int act, const struct termios* termp)
{
check(act == TCSANOW);
return ioctl(fd, TCSETS, termp);
}
}