aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-12-04 16:25:08 +0200
committeraqua <aqua@iserlohn-fortress.net>2022-12-04 17:10:01 +0200
commit16241aafa780ebf188b2ceb96d51bf5af5d6bbe2 (patch)
treec41a990a838eb1bcc369fd6c2efedac6785ec99f /lib
parentAdd FILE struct (diff)
downloadkernel-16241aafa780ebf188b2ceb96d51bf5af5d6bbe2.tar.xz
Remove custom include paths in makefiles
Add symlinks target to top-level makefile
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile2
-rw-r--r--lib/stdio.h8
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/Makefile b/lib/Makefile
index f564ee0..68d1e74 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,7 +1,5 @@
include ../Makefile.config
-CCFLAGS += -I. -I..
-
libk.SRCS = stdio/printf.c stdio/fprintf.c stdio/vfprintf.c \
stdlib/memcpy.c stdlib/memset.c \
string/itoa.c
diff --git a/lib/stdio.h b/lib/stdio.h
index 4711a29..f7c1846 100644
--- a/lib/stdio.h
+++ b/lib/stdio.h
@@ -3,14 +3,14 @@
#include <stdarg.h>
/** An object type used for streams */
-typedef struct FILE_t {
+typedef struct kIoDevice {
int id;
/** Functions that prints a character to the stream */
- void (*putc)(const struct FILE_t *, char);
+ void (*putc)(const struct kIoDevice *, char);
/** Function that prints a string to the stream */
- int (*puts)(const struct FILE_t *, const char *, int);
+ int (*puts)(const struct kIoDevice *, const char *, int);
/** Flush all buffers */
- void (*flush)(const struct FILE_t *);
+ void (*flush)(const struct kIoDevice *);
} FILE;
/** A FILE value corresponding to stdin, the keyboard buffer */