From fa0dc4b18c1a4bf5c7318b9ff74ce8a92eea276a Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 28 Oct 2022 17:53:22 +0200 Subject: [PATCH] apps: Remove sym and crash Not necessary anymore. --- apps/Makefile | 2 +- apps/src/crash.c | 5 ----- apps/src/sym.c | 36 ------------------------------------ 3 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 apps/src/crash.c delete mode 100644 apps/src/sym.c diff --git a/apps/Makefile b/apps/Makefile index d08aa8b2..77f72c52 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -1,4 +1,4 @@ -APPS := init sym sh crash uname uptime hello ps ls args cat stat su +APPS := init sh uname uptime hello ps ls args cat stat su APPS_DIR := $(LUNA_ROOT)/apps APPS_SRC := $(APPS_DIR)/src diff --git a/apps/src/crash.c b/apps/src/crash.c deleted file mode 100644 index 27e5ea9b..00000000 --- a/apps/src/crash.c +++ /dev/null @@ -1,5 +0,0 @@ -int main() -{ - int* ptr = (int*)0xdeadbeef; - *ptr = 6; -} \ No newline at end of file diff --git a/apps/src/sym.c b/apps/src/sym.c deleted file mode 100644 index b7cc22fb..00000000 --- a/apps/src/sym.c +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include -#include - -int main() -{ - FILE* syms = fopen("/sys/moon.sym", "r"); - if (!syms) - { - perror("fopen"); - return 1; - } - - char buf[1200]; - - if (fseek(syms, -1199, SEEK_END) < 0) - { - perror("fseek"); - return 1; - } - - size_t nread = fread(buf, 1199, 1, syms); - if (ferror(syms)) - { - perror("fread"); - return 1; - } - - buf[nread] = 0; - - printf("%s\n", strchr(buf, '\n') + 1); - - fclose(syms); - - return 0; -} \ No newline at end of file