circuitpython/unix
Paul Sokolovsky c3000b6f69 unix/modos: Add statvfs() function.
Another function (like stat) which is problematic to deal with on ABI level
(FFI), as struct statvfs layout may differ unpredictably between OSes and
even different versions of a same OS. So, implement it in C, returning a
10-element tuple of f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files,
f_ffree, f_favail, f_flag, f_namemax. This is exactly the order described
in Python3 docs, https://docs.python.org/3/library/os.html#os.statvfs
(but note that os.statvfs() should make these values available as
attributes).
2015-10-18 01:21:23 +03:00
..
.gitignore unix: Update .gitignore; now ignores coverage build. 2015-06-03 17:47:31 +01:00
alloc.c unix: Add target to build "minimal" uPy interpreter. 2015-01-16 18:03:01 +00:00
coverage.c unix: Fix coverage build now that mp_plat_print uses write. 2015-10-15 00:23:03 +01:00
file.c py: Add stream_tell method, and use for unix and stmhal file tell. 2015-08-13 22:56:32 +01:00
gccollect.c unix: Add target to build "minimal" uPy interpreter. 2015-01-16 18:03:01 +00:00
input.c unix: Print an extra newline to the output on ctrl-D 2015-05-30 13:38:17 +03:00
input.h unix: Support readline history saving to file, improves interactive usage. 2015-03-13 21:46:19 +00:00
main.c unix: Add exit and paste-mode hints to shell startup banner. 2015-10-12 00:19:00 +01:00
Makefile unix: Build libffi in a directory which is gitgnored. 2015-10-18 00:44:45 +03:00
modffi.c unix/modffi.c: cast first to intptr_t when casting from/to pointer 2015-09-22 18:54:31 -07:00
modjni.c unix/modjni: Add iteration support for Java List objects. 2015-10-14 00:36:03 +03:00
modos.c unix/modos: Add statvfs() function. 2015-10-18 01:21:23 +03:00
modsocket.c unix/modsocket: Fix usage of pointers to locals outside scope 2015-10-10 17:29:26 +05:30
modtermios.c unix/modtermios: tcsetattr: If 0 passed for "when" param, treat as TCSANOW. 2015-10-13 00:37:55 +03:00
modtime.c py, unix, lib: Allow to compile with -Wold-style-definition. 2015-01-12 22:34:38 +00:00
mpconfigport_fast.h unix: Include upip as fronzen modules inside the standard interpreter. 2015-06-02 01:32:07 +03:00
mpconfigport_minimal.h py: Add MICROPY_PY_BUILTINS_FILTER, disable for minimal ports. 2015-08-20 01:05:11 +03:00
mpconfigport.h unix/modos: Add statvfs() function. 2015-10-18 01:21:23 +03:00
mpconfigport.mk modussl: SSL socket wrapper module based on axTLS. 2015-10-06 18:10:39 +03:00
qstrdefsport.h unix/modos: Add statvfs() function. 2015-10-18 01:21:23 +03:00
unix_mphal.c unix: Use MICROPY_HAL_H macro for header inclusion. 2015-09-19 14:03:57 +01:00
unix_mphal.h unix: Add option to use uPy readline, and enable by default. 2015-05-27 15:59:43 +01:00