stage1 修复bug 删除递归测试
This commit is contained in:
@@ -118,6 +118,10 @@ static spl_val_t vm_fsize(int nargs, spl_val_t *args) {
|
||||
return (spl_val_t)(uintptr_t)sz;
|
||||
}
|
||||
|
||||
SYSCALL_0(vm_stdin, stdin)
|
||||
SYSCALL_0(vm_stdout, stdout)
|
||||
SYSCALL_0(vm_stderr, stderr)
|
||||
|
||||
/* vm_read_file — read entire file into a malloc'd, null-terminated buffer */
|
||||
static spl_val_t vm_read_file(int nargs, spl_val_t *args) {
|
||||
CHECK_NARGS("vm_read_file", 1);
|
||||
@@ -357,6 +361,9 @@ void spl_syscall_register(spl_prog_t *prog) {
|
||||
{"vm_fread", 0, vm_fread},
|
||||
{"vm_fwrite", 0, vm_fwrite},
|
||||
{"vm_fsize", 0, vm_fsize},
|
||||
{"vm_stdin", 0, vm_stdin},
|
||||
{"vm_stdout", 0, vm_stdout},
|
||||
{"vm_stderr", 0, vm_stderr},
|
||||
{"vm_read_file", 0, vm_read_file},
|
||||
{"vm_alloc", 0, vm_alloc},
|
||||
{"vm_free", 0, vm_free},
|
||||
|
||||
Reference in New Issue
Block a user