diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-14 22:08:45 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-14 22:08:45 +0300 |
commit | 0c124c3123a6c7607375e2df0c49edef577a8b8d (patch) | |
tree | 4efbe5c0fbf88515d4473547e0448eb60b77f066 /unix/qstrdefsport.h | |
parent | 2a2736585437e32309d31b88814ef7e14db7a87c (diff) | |
download | micropython-0c124c3123a6c7607375e2df0c49edef577a8b8d.tar.gz micropython-0c124c3123a6c7607375e2df0c49edef577a8b8d.zip |
unix: Add "_os" module with stat().
stat() is bad function to use using FFI, because its ABI is largely private.
To start with, Glibc .so doesn't even have "stat" symbol. Then, layout of
struct stat is too implementation-dependent. So, introduce _os to deal
with stat() and other similar cases.
Diffstat (limited to 'unix/qstrdefsport.h')
-rw-r--r-- | unix/qstrdefsport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/qstrdefsport.h b/unix/qstrdefsport.h index 55a82ec067..de0b3d8fae 100644 --- a/unix/qstrdefsport.h +++ b/unix/qstrdefsport.h @@ -33,6 +33,9 @@ Q(makefile) Q(FileIO) +Q(_os) +Q(stat) + Q(ffi) Q(ffimod) Q(ffifunc) |