?? syscalls.c
字號:
/* System Calls Remapping */#include <sys/stat.h>#include <stdlib.h>void _exit (int n) {label: goto label; /* endless loop */}register char * stack_ptr asm ("sp");caddr_t _sbrk (int incr) { extern char end asm ("end"); /* Defined by the linker */ static char * heap_end; char * prev_heap_end; if (heap_end == NULL) heap_end = &end; prev_heap_end = heap_end; if (heap_end + incr > stack_ptr) {// _write (1, "_sbrk: Heap and stack collision\n", 32); abort (); } heap_end += incr; return (caddr_t) prev_heap_end;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -