aboutsummaryrefslogtreecommitdiff
path: root/src/sysbin/login
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-10 20:12:10 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-10 20:12:10 +0100
commit6d9cd139c42a48f5ddf8f8e284f56873de73fd31 (patch)
tree7b4ca008eb6375c0d5ba9eb1456674ee996fb5d6 /src/sysbin/login
parent4ab8b6206b1ba36cbf4db4a416e04304bbd7ebc0 (diff)
downloadkogata-6d9cd139c42a48f5ddf8f8e284f56873de73fd31.tar.gz
kogata-6d9cd139c42a48f5ddf8f8e284f56873de73fd31.zip
Things are happenning ; lots of bugs.
Diffstat (limited to 'src/sysbin/login')
-rw-r--r--src/sysbin/login/Makefile12
-rw-r--r--src/sysbin/login/main.c19
2 files changed, 31 insertions, 0 deletions
diff --git a/src/sysbin/login/Makefile b/src/sysbin/login/Makefile
new file mode 100644
index 0000000..01be4e1
--- /dev/null
+++ b/src/sysbin/login/Makefile
@@ -0,0 +1,12 @@
+
+OBJ = main.o
+
+LIB = ../../lib/libkogata/libkogata.lib ../../common/libc/libc.lib
+
+CFLAGS = -I ./include -I ../../common/include -I ../../lib/include
+
+LDFLAGS = -T ../linker.ld -Xlinker -Map=login.map
+
+OUT = login.bin
+
+include ../../rules.make
diff --git a/src/sysbin/login/main.c b/src/sysbin/login/main.c
new file mode 100644
index 0000000..f92b18c
--- /dev/null
+++ b/src/sysbin/login/main.c
@@ -0,0 +1,19 @@
+#include <string.h>
+
+#include <malloc.h>
+
+#include <syscall.h>
+#include <debug.h>
+#include <user_region.h>
+
+int main(int argc, char **argv) {
+ dbg_print("[login] Starting up.\n");
+
+ usleep(10000000); // pretend we are doing something
+
+ // and now pretend we have exited due to some kind of failure
+
+ return 0;
+}
+
+/* vim: set ts=4 sw=4 tw=0 noet :*/