summaryrefslogtreecommitdiff
path: root/lib/libc/termios
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/termios')
-rw-r--r--lib/libc/termios/cfgetispeed.c1
-rw-r--r--lib/libc/termios/cfgetospeed.c1
-rw-r--r--lib/libc/termios/cfsetispeed.c3
-rw-r--r--lib/libc/termios/cfsetospeed.c3
-rw-r--r--lib/libc/termios/tcflush.c4
-rw-r--r--lib/libc/termios/tcgetattr.c4
-rw-r--r--lib/libc/termios/tcgetsid.c4
-rw-r--r--lib/libc/termios/tcgetwinsize.c4
-rw-r--r--lib/libc/termios/tcsendbreak.c4
-rw-r--r--lib/libc/termios/tcsetattr.c4
-rw-r--r--lib/libc/termios/tcsetwinsize.c4
11 files changed, 20 insertions, 16 deletions
diff --git a/lib/libc/termios/cfgetispeed.c b/lib/libc/termios/cfgetispeed.c
index f06ec65e..e407be7b 100644
--- a/lib/libc/termios/cfgetispeed.c
+++ b/lib/libc/termios/cfgetispeed.c
@@ -1,3 +1,4 @@
+#include "asm-generic/termbits-common.h"
#include <asm-generic/termbits.h>
speed_t cfgetispeed(const struct termios *termios_p)
diff --git a/lib/libc/termios/cfgetospeed.c b/lib/libc/termios/cfgetospeed.c
index e36befc3..c9f6cbd2 100644
--- a/lib/libc/termios/cfgetospeed.c
+++ b/lib/libc/termios/cfgetospeed.c
@@ -1,3 +1,4 @@
+#include "asm-generic/termbits-common.h"
#include <asm-generic/termbits.h>
speed_t cfgetospeed(const struct termios *termios_p)
diff --git a/lib/libc/termios/cfsetispeed.c b/lib/libc/termios/cfsetispeed.c
index b990d598..150973c1 100644
--- a/lib/libc/termios/cfsetispeed.c
+++ b/lib/libc/termios/cfsetispeed.c
@@ -1,5 +1,6 @@
-#include <errno.h>
+#include "asm-generic/termbits-common.h"
#include <asm-generic/termbits.h>
+#include <errno.h>
int cfsetispeed(struct termios *termios_p, speed_t speed)
{
diff --git a/lib/libc/termios/cfsetospeed.c b/lib/libc/termios/cfsetospeed.c
index 3f46b5c4..5f17c04f 100644
--- a/lib/libc/termios/cfsetospeed.c
+++ b/lib/libc/termios/cfsetospeed.c
@@ -1,5 +1,6 @@
-#include <errno.h>
+#include "asm-generic/termbits-common.h"
#include <asm-generic/termbits.h>
+#include <errno.h>
int cfsetospeed(struct termios *termios_p, speed_t speed)
{
diff --git a/lib/libc/termios/tcflush.c b/lib/libc/termios/tcflush.c
index b37b218d..20fbf0ac 100644
--- a/lib/libc/termios/tcflush.c
+++ b/lib/libc/termios/tcflush.c
@@ -1,6 +1,6 @@
-#include <termios.h>
-#include <syscall.h>
#include <asm-generic/ioctls.h>
+#include <syscall.h>
+#include <termios.h>
int tcflush(int fildes, int queue_selector)
{
diff --git a/lib/libc/termios/tcgetattr.c b/lib/libc/termios/tcgetattr.c
index a52eeedf..51830a31 100644
--- a/lib/libc/termios/tcgetattr.c
+++ b/lib/libc/termios/tcgetattr.c
@@ -1,6 +1,6 @@
-#include <termios.h>
-#include <syscall.h>
#include <asm-generic/ioctls.h>
+#include <syscall.h>
+#include <termios.h>
int tcgetattr(int fildes, struct termios *termios_p)
diff --git a/lib/libc/termios/tcgetsid.c b/lib/libc/termios/tcgetsid.c
index 076cf360..c91b7b44 100644
--- a/lib/libc/termios/tcgetsid.c
+++ b/lib/libc/termios/tcgetsid.c
@@ -1,6 +1,6 @@
-#include <termios.h>
-#include <syscall.h>
#include <asm-generic/ioctls.h>
+#include <syscall.h>
+#include <termios.h>
pid_t tcgetsid(int fildes)
{
diff --git a/lib/libc/termios/tcgetwinsize.c b/lib/libc/termios/tcgetwinsize.c
index 2c7c5786..364dae61 100644
--- a/lib/libc/termios/tcgetwinsize.c
+++ b/lib/libc/termios/tcgetwinsize.c
@@ -1,6 +1,6 @@
-#include <termios.h>
-#include <syscall.h>
#include <asm-generic/ioctls.h>
+#include <syscall.h>
+#include <termios.h>
struct __winsize {
unsigned short ws_row;
diff --git a/lib/libc/termios/tcsendbreak.c b/lib/libc/termios/tcsendbreak.c
index 65f1d5b0..a064e7bb 100644
--- a/lib/libc/termios/tcsendbreak.c
+++ b/lib/libc/termios/tcsendbreak.c
@@ -1,7 +1,7 @@
+#include <asm-generic/ioctls.h>
#include <libc.h>
-#include <termios.h>
#include <syscall.h>
-#include <asm-generic/ioctls.h>
+#include <termios.h>
int tcsendbreak(int fildes, int __unused duration)
{
diff --git a/lib/libc/termios/tcsetattr.c b/lib/libc/termios/tcsetattr.c
index a76e77a5..9a70efb6 100644
--- a/lib/libc/termios/tcsetattr.c
+++ b/lib/libc/termios/tcsetattr.c
@@ -1,7 +1,7 @@
-#include <termios.h>
-#include <syscall.h>
#include <asm-generic/ioctls.h>
#include <errno.h>
+#include <syscall.h>
+#include <termios.h>
int tcsetattr(int fildes, int optional_actions, const struct termios *termios_p)
{
diff --git a/lib/libc/termios/tcsetwinsize.c b/lib/libc/termios/tcsetwinsize.c
index 10a705d0..cfdced71 100644
--- a/lib/libc/termios/tcsetwinsize.c
+++ b/lib/libc/termios/tcsetwinsize.c
@@ -1,6 +1,6 @@
-#include <termios.h>
-#include <syscall.h>
#include <asm-generic/ioctls.h>
+#include <syscall.h>
+#include <termios.h>
int tcsetwinsize(int fildes, const struct winsize *winsize_p)
{