summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-06 20:24:27 -0400
committerIan Moffett <ian@osmora.org>2024-04-06 20:24:27 -0400
commitf27f9f5434eac9126535bd9935e881ec500ee2c5 (patch)
treee5c8002b8f125037e002a3afe207e1b893e947f1 /usr.sbin
parent72bd87f8e313d46e143ec833606d15852c8daae4 (diff)
init: Write some logs
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/init/main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c
index d92538a..220d819 100644
--- a/usr.sbin/init/main.c
+++ b/usr.sbin/init/main.c
@@ -27,8 +27,25 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include <string.h>
+#include <unistd.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));
+}
+
int
main(int argc, char **argv)
{
+ loginfo("Hyra init " VERSION " loaded\n");
+ loginfo("Hello, World!\n");
+ loginfo("** EXITING 0 **\n");
return 0;
}