kopia lustrzana https://github.com/micropython/micropython-lib
os: Work if "ffi" module is not available (provide wrappers for "uos").
rodzic
d7bdde8820
commit
217bb5fd33
|
@ -31,29 +31,30 @@ environ = {"WARNING": "NOT_IMPLEMENTED"}
|
||||||
|
|
||||||
libc = ffilib.libc()
|
libc = ffilib.libc()
|
||||||
|
|
||||||
chdir_ = libc.func("i", "chdir", "s")
|
if libc:
|
||||||
mkdir_ = libc.func("i", "mkdir", "si")
|
chdir_ = libc.func("i", "chdir", "s")
|
||||||
rename_ = libc.func("i", "rename", "ss")
|
mkdir_ = libc.func("i", "mkdir", "si")
|
||||||
unlink_ = libc.func("i", "unlink", "s")
|
rename_ = libc.func("i", "rename", "ss")
|
||||||
rmdir_ = libc.func("i", "rmdir", "s")
|
unlink_ = libc.func("i", "unlink", "s")
|
||||||
getcwd_ = libc.func("s", "getcwd", "si")
|
rmdir_ = libc.func("i", "rmdir", "s")
|
||||||
opendir_ = libc.func("P", "opendir", "s")
|
getcwd_ = libc.func("s", "getcwd", "si")
|
||||||
readdir_ = libc.func("P", "readdir", "P")
|
opendir_ = libc.func("P", "opendir", "s")
|
||||||
open_ = libc.func("i", "open", "sii")
|
readdir_ = libc.func("P", "readdir", "P")
|
||||||
read_ = libc.func("i", "read", "ipi")
|
open_ = libc.func("i", "open", "sii")
|
||||||
write_ = libc.func("i", "write", "iPi")
|
read_ = libc.func("i", "read", "ipi")
|
||||||
close_ = libc.func("i", "close", "i")
|
write_ = libc.func("i", "write", "iPi")
|
||||||
dup_ = libc.func("i", "dup", "i")
|
close_ = libc.func("i", "close", "i")
|
||||||
access_ = libc.func("i", "access", "si")
|
dup_ = libc.func("i", "dup", "i")
|
||||||
fork_ = libc.func("i", "fork", "")
|
access_ = libc.func("i", "access", "si")
|
||||||
pipe_ = libc.func("i", "pipe", "p")
|
fork_ = libc.func("i", "fork", "")
|
||||||
_exit_ = libc.func("v", "_exit", "i")
|
pipe_ = libc.func("i", "pipe", "p")
|
||||||
getpid_ = libc.func("i", "getpid", "")
|
_exit_ = libc.func("v", "_exit", "i")
|
||||||
waitpid_ = libc.func("i", "waitpid", "ipi")
|
getpid_ = libc.func("i", "getpid", "")
|
||||||
system_ = libc.func("i", "system", "s")
|
waitpid_ = libc.func("i", "waitpid", "ipi")
|
||||||
execvp_ = libc.func("i", "execvp", "PP")
|
system_ = libc.func("i", "system", "s")
|
||||||
kill_ = libc.func("i", "kill", "ii")
|
execvp_ = libc.func("i", "execvp", "PP")
|
||||||
getenv_ = libc.func("s", "getenv", "P")
|
kill_ = libc.func("i", "kill", "ii")
|
||||||
|
getenv_ = libc.func("s", "getenv", "P")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue