apps: Remove sym and crash
Not necessary anymore.
This commit is contained in:
parent
68d0d0b759
commit
fa0dc4b18c
@ -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
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
int main()
|
|
||||||
{
|
|
||||||
int* ptr = (int*)0xdeadbeef;
|
|
||||||
*ptr = 6;
|
|
||||||
}
|
|
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user