summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorKaimakan71 <undefined.foss@gmail.com>2024-04-21 14:05:38 -0400
committerIan Moffett <ian@osmora.org>2024-04-21 19:02:01 -0400
commit6132e1e97271fb915184803dec701fd39ef7bb10 (patch)
treeb815168bf21afe50551947349aa6c34d723d1318 /usr.sbin
parentbc4adda7297b07a764b42f2c30e80f9bbee6a25d (diff)
libc: Add close() and stdio functions
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/init/main.c10
1 files changed, 4 insertions, 6 deletions
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 <string.h>
-#include <unistd.h>
+#include <stdio.h>
#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