From 15474ec36c4d9aea46d79eb6a515c59d03d5183f Mon Sep 17 00:00:00 2001 From: Daniel Reinhold Date: Sun, 4 May 2003 08:06:33 +0000 Subject: [PATCH] added stubs for the termios speed control functions they are stubs because the BeOS does not support them git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3174 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/termios/termios.c | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/kernel/libroot/posix/termios/termios.c b/src/kernel/libroot/posix/termios/termios.c index 81bfe48a27..d3b9ca7837 100644 --- a/src/kernel/libroot/posix/termios/termios.c +++ b/src/kernel/libroot/posix/termios/termios.c @@ -75,3 +75,36 @@ tcsendbreak(int fd, int duration) return 0; } + + +/* + * The following four "speed control" functions are not supported + * in the BeOS. But the interface is still part of the Posix + * terminal IO specification, so they are implemented here as + * stub functions for basic compliance. + */ + +speed_t +cfgetispeed(const struct termios *term) +{ + return (speed_t)0; +} + +int +cfsetispeed( struct termios *term, speed_t speed) +{ + return 0; +} + +speed_t +cfgetospeed(const struct termios *term) +{ + return (speed_t)0; +} + +int +cfsetospeed( struct termios *term, speed_t speed) +{ + return 0; +} +