git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libposix - Add baud rates to termios
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libposix.so_src
/
termios.c
diff --git
a/Usermode/Libraries/libposix.so_src/termios.c
b/Usermode/Libraries/libposix.so_src/termios.c
index
d73de57
..
d3aaefa
100644
(file)
--- a/
Usermode/Libraries/libposix.so_src/termios.c
+++ b/
Usermode/Libraries/libposix.so_src/termios.c
@@
-12,6
+12,11
@@
#include <acess/devices/pty.h>
// === CODE ===
#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 ) {
int tcgetattr(int fd, struct termios *termios_p)
{
if( fd == -1 ) {
UCC
git Repository :: git.ucc.asn.au