summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/System.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-29 23:28:10 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-30 23:34:40 +0100
commit612eafea2c64b5e53ba3c47cde98d19341ab6dc7 (patch)
tree7694214c9f76134072dab4fffb320d5173e0ef22 /Userland/Libraries/LibCore/System.h
parent2b0c2360bb5b4ecb574237e052db4f7ec990bf6d (diff)
downloadserenity-612eafea2c64b5e53ba3c47cde98d19341ab6dc7.zip
LibCore: Add syscall wrappers for tcgetattr() and tcsetattr()
Diffstat (limited to 'Userland/Libraries/LibCore/System.h')
-rw-r--r--Userland/Libraries/LibCore/System.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h
index 2dc6665975..6f4fa49f7c 100644
--- a/Userland/Libraries/LibCore/System.h
+++ b/Userland/Libraries/LibCore/System.h
@@ -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&);
}