apps: Remove sym and crash

Not necessary anymore.
This commit is contained in:
apio 2022-10-28 17:53:22 +02:00
parent 68d0d0b759
commit fa0dc4b18c
3 changed files with 1 additions and 42 deletions

View File

@ -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_DIR := $(LUNA_ROOT)/apps
APPS_SRC := $(APPS_DIR)/src APPS_SRC := $(APPS_DIR)/src

View File

@ -1,5 +0,0 @@
int main()
{
int* ptr = (int*)0xdeadbeef;
*ptr = 6;
}

View File

@ -1,36 +0,0 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
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;
}