circuitpython/unix
Paul Sokolovsky d874702fe1 unix/modos: Implement ilistdir().
ilistdir() returns iterator which yields triples of (name, type, ino)
where ino is inode number for entry's data, type of entry (file/dir/etc.),
and name of file/dir. listdir() can be easily implemented in terms of this
iterator (which is otherwise more efficient in terms of memory use and may
save expensive call to stat() for each returned entry).

CPython has os.scandir() which also returns an iterator, but it yields
more complex objects of DirEntry type. scandir() can also be easily
implemented in terms of ilistdir().
2015-12-14 23:48:12 +02:00
..
.gitignore unix: Update .gitignore; now ignores coverage build. 2015-06-03 17:47:31 +01:00
Makefile unix: Move modmachine into unix directory 2015-12-13 01:21:36 +02: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: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 2015-11-29 14:25:35 +00:00
gccollect.c py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 2015-11-29 14:25:35 +00:00
input.c unix/input: Switch to POSIX I/O for history reading/writing. 2015-11-16 07:40:56 +02:00
input.h unix: Support readline history saving to file, improves interactive usage. 2015-03-13 21:46:19 +00:00
main.c unix/main: mp_verbose_flag available only if MICROPY_DEBUG_PRINTERS is true. 2015-12-07 20:09:20 +02:00
modffi.c py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 2015-11-29 14:25:35 +00:00
modjni.c unix/modjni: Add missing get_jclass_name() function. 2015-11-11 16:43:27 +02:00
modmachine.c unix: Move modmachine into unix directory 2015-12-13 01:21:36 +02:00
modos.c unix/modos: Implement ilistdir(). 2015-12-14 23:48:12 +02:00
modsocket.c py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 2015-11-29 14:25:35 +00:00
modtermios.c unix/modtermios: DJGPP appears to have unicode-capable cc_t type. 2015-12-09 22:01:29 +02:00
modtime.c unix/modtime: Add strftime() function (only single argument is supported). 2015-12-14 00:10:57 +02:00
moduselect.c unix/moduselect: Make configurable with MICROPY_PY_USELECT. 2015-12-13 08:47:42 +02:00
mpconfigport.h unix/modos: Implement ilistdir(). 2015-12-14 23:48:12 +02:00
mpconfigport.mk modussl: SSL socket wrapper module based on axTLS. 2015-10-06 18:10:39 +03: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 unix: Rename "_os" module to "uos" for consistency with baremetal ports. 2015-12-12 00:04:35 +02:00
mphalport.h unix: Add "uselect" module, with poll() function. 2015-11-17 00:35:57 +02:00
qstrdefsport.h unix/modos: Implement ilistdir(). 2015-12-14 23:48:12 +02:00
unix_mphal.c unix/unix_mphal: Use size_t instead of mp_uint_t in stdout_tx_strn decls. 2015-11-27 14:03:53 +00:00