summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/cfgetospeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/lib/cfgetospeed.c')
-rw-r--r--mdk-stage1/dietlibc/lib/cfgetospeed.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/lib/cfgetospeed.c b/mdk-stage1/dietlibc/lib/cfgetospeed.c
new file mode 100644
index 000000000..4e392a239
--- /dev/null
+++ b/mdk-stage1/dietlibc/lib/cfgetospeed.c
@@ -0,0 +1,6 @@
+#include <termios.h>
+#include <sys/types.h>
+
+speed_t cfgetospeed(struct termios *termios_p) {
+ return termios_p->c_ospeed;
+}