mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-22 02:48:48 +08:00
add unix.opendir unix.readdir unix.closedir
This commit is contained in:
+3
-3
@@ -100,9 +100,9 @@ var unix=
|
||||
dup2: func(fd0,fd1){die("not supported yet");},
|
||||
exec: func(filename,argv,envp){die("not supported yet");},
|
||||
waitpid: func(pid,nohang=0){die("not supported yet");},
|
||||
opendir: func(path){die("not supported yet");},
|
||||
readdir: func(handle){die("not supported yet");},
|
||||
closedir: func(handle){die("not supported yet");},
|
||||
opendir: func(path){return __builtin_opendir;},
|
||||
readdir: func(handle){return __builtin_readdir;},
|
||||
closedir: func(handle){return __builtin_closedir;},
|
||||
time: func(){return time(0);},
|
||||
sleep: func(secs){return __builtin_sleep(secs);},
|
||||
chdir: func(path){return __builtin_chdir(path);},
|
||||
|
||||
Reference in New Issue
Block a user