Usermode/libposix - Add baud rates to termios
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / termios.c
index d73de57..d3aaefa 100644 (file)
 #include <acess/devices/pty.h>
 
 // === CODE ===
+speed_t cfgetospeed(const struct termios *termios_p)
+{
+       return termios_p->c_oflag & CBAUD;
+}
+
 int tcgetattr(int fd, struct termios *termios_p)
 {
        if( fd == -1 ) {

UCC git Repository :: git.ucc.asn.au