diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-06 15:47:06 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-06 15:47:06 -0400 |
commit | b8284137d4e0eec11c78bc14047243fce6a51373 (patch) | |
tree | 5969602dc3d090b536edccbf34d33d46a300c192 /src/user/init/main.c | |
parent | 73bb0e48640b842824a0b45fe4854df8ff7faf7b (diff) | |
download | portland-os-b8284137d4e0eec11c78bc14047243fce6a51373.tar.gz |
minor changes, redoing makefile, meminfo program
Diffstat (limited to 'src/user/init/main.c')
-rw-r--r-- | src/user/init/main.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/user/init/main.c b/src/user/init/main.c deleted file mode 100644 index c301a78..0000000 --- a/src/user/init/main.c +++ /dev/null @@ -1,31 +0,0 @@ -#include <knob/user.h> -#include <knob/file.h> -#include <knob/task.h> - -void main() { - struct file *f = open_file("SYS/STARTUP.RC"); - if (!f) { - tell_user_sz("\nCould not open SYS/STARTUP.RC"); - return; - } - - char buf[1024]; - char *bufp = buf; - while (read_from_file(f, 1, bufp)) { - if (*bufp == '\n') { - if (bufp == buf) - continue; - *bufp = '\0'; - try_run_command(buf); - bufp = buf; - } - else - ++bufp; - } - if (bufp != buf) { - *bufp = '\0'; - try_run_command(buf); - } - - close_file(f); -} |