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
This commit is contained in:
Daniel Reinhold
2003-05-04 08:06:33 +00:00
parent f291226628
commit 15474ec36c
@@ -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;
}