From 89b37d465b4200fd1bd7f922b311ae1fd31f6b8a Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Wed, 26 Aug 2009 12:29:01 +0000 Subject: [PATCH] untested --- WEGA/src/lib/libc/gen/stty.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 WEGA/src/lib/libc/gen/stty.c diff --git a/WEGA/src/lib/libc/gen/stty.c b/WEGA/src/lib/libc/gen/stty.c new file mode 100644 index 0000000..1712124 --- /dev/null +++ b/WEGA/src/lib/libc/gen/stty.c @@ -0,0 +1,17 @@ +/* + * Writearound to old stty and gtty system calls + */ + +#include + +stty(fd, ap) +struct sgtty *ap; +{ + return(ioctl(fd, TIOCSETP, ap)); +} + +gtty(fd, ap) +struct sgtty *ap; +{ + return(ioctl(fd, TIOCGETP, ap)); +}