aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-19 21:21:15 -0400
committerIan Moffett <ian@osmora.org>2024-05-19 21:21:15 -0400
commitd13ff179e6c1fc418891e6f55943313f1cf2bdc8 (patch)
treef789fb0d3b6d47dd600e30cd0701dffa60b89588
parent08e688d151bbe676353a47b1e8ccfc5ea868db01 (diff)
libc: termios: Add missing `op` arg
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--lib/libc/include/termios.h2
-rw-r--r--lib/libc/src/tty/attr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/include/termios.h b/lib/libc/include/termios.h
index 2eb3aa2..87b1392 100644
--- a/lib/libc/include/termios.h
+++ b/lib/libc/include/termios.h
@@ -33,6 +33,6 @@
#include <sys/termios.h>
int tcgetattr(int fd, struct termios *termios_p);
-int tcsetattr(int fd, struct termios *termios_p);
+int tcsetattr(int fd, int op, struct termios *termios_p);
#endif /* !_TERMIOS_H_ */
diff --git a/lib/libc/src/tty/attr.c b/lib/libc/src/tty/attr.c
index 4edbece..3061844 100644
--- a/lib/libc/src/tty/attr.c
+++ b/lib/libc/src/tty/attr.c
@@ -38,7 +38,7 @@ tcgetattr(int fd, struct termios *termios_p)
}
int
-tcsetattr(int fd, struct termios *termios_p)
+tcsetattr(int fd, int op, struct termios *termios_p)
{
return ioctl(fd, TCSETS, termios_p);
}