From 6132e1e97271fb915184803dec701fd39ef7bb10 Mon Sep 17 00:00:00 2001 From: Kaimakan71 Date: Sun, 21 Apr 2024 14:05:38 -0400 Subject: libc: Add close() and stdio functions Signed-off-by: Kaimakan71 Signed-off-by: Ian Moffett --- usr.sbin/init/main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'usr.sbin/init/main.c') diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c index 220d819..754b98e 100644 --- a/usr.sbin/init/main.c +++ b/usr.sbin/init/main.c @@ -27,18 +27,16 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include -#include +#include #define VERSION "v0.0.1" static void loginfo(const char *s) { - const char *tmp = "init [*]: "; - - write(STDOUT_FILENO, tmp, strlen(tmp)); - write(STDOUT_FILENO, s, strlen(s)); + fputs("init [*]: ", stdout); + fputs(s, stdout); + fflush(stdout); } int -- cgit v1.2.3