🔥 delete useless native functions

This commit is contained in:
ValKmjolnir
2024-06-15 00:16:10 +08:00
parent ab73be9fc0
commit 8d8d4103d6
4 changed files with 1 additions and 70 deletions
-20
View File
@@ -7,26 +7,6 @@ use std.io;
var _S_IFDIR = 0x4000;
var _S_IFREG = 0x8000;
var pipe = func() {
return __pipe;
}
var fork = func() {
return __fork;
}
var dup2 = func(fd0, fd1) {
die("not supported yet");
}
var exec = func(filename, argv, envp) {
die("not supported yet");
}
var waitpid = func(pid, nohang = 0) {
return __waitpid;
}
var isdir = func(path) {
return !!bits.u32_and(io.stat(path)[2], _S_IFDIR);
}