[klibc] lib: cleanup unused includes
Some stdarg.h, errno.h and sys/ioctl.h for the good mix.
Signed-off-by: maximilian attems <max@stro.at>
diff --git a/usr/klibc/execv.c b/usr/klibc/execv.c
index 29e5737..6894e79 100644
--- a/usr/klibc/execv.c
+++ b/usr/klibc/execv.c
@@ -2,7 +2,6 @@
* execv.c
*/
-#include <stdarg.h>
#include <unistd.h>
int execv(const char *path, char *const *argv)
diff --git a/usr/klibc/execvp.c b/usr/klibc/execvp.c
index 5a9f31d..7d8e2bc 100644
--- a/usr/klibc/execvp.c
+++ b/usr/klibc/execvp.c
@@ -2,7 +2,6 @@
* execvp.c
*/
-#include <stdarg.h>
#include <unistd.h>
int execvp(const char *path, char *const *argv)
diff --git a/usr/klibc/fgetc.c b/usr/klibc/fgetc.c
index 9092eae..5b136b1 100644
--- a/usr/klibc/fgetc.c
+++ b/usr/klibc/fgetc.c
@@ -9,7 +9,6 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
-#include <errno.h>
int fgetc(FILE *f)
{
diff --git a/usr/klibc/getpt.c b/usr/klibc/getpt.c
index 76ca371..8d2a536 100644
--- a/usr/klibc/getpt.c
+++ b/usr/klibc/getpt.c
@@ -9,7 +9,6 @@
#include <unistd.h>
#include <termios.h>
#include <fcntl.h>
-#include <sys/ioctl.h>
int getpt(void)
{
diff --git a/usr/klibc/posix_openpt.c b/usr/klibc/posix_openpt.c
index 79e67b6..794ca46 100644
--- a/usr/klibc/posix_openpt.c
+++ b/usr/klibc/posix_openpt.c
@@ -7,7 +7,6 @@
#include <unistd.h>
#include <termios.h>
#include <fcntl.h>
-#include <sys/ioctl.h>
int posix_openpt(int oflag)
{
diff --git a/usr/klibc/system.c b/usr/klibc/system.c
index 4478b21..13e9fbe 100644
--- a/usr/klibc/system.c
+++ b/usr/klibc/system.c
@@ -7,7 +7,6 @@
* present.
*/
-#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>