summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/moduos.c
Commit message (Collapse)AuthorAge
* all: Rename *umodule*.c to remove the "u" prefix.Jim Mussared2023-06-08
| | | | | | | | | | | Updates any includes, and references from Makefiles/CMake. This essentially reverts what was done long ago in commit 136b5cbd7669e8318f8455fc2706da97a5b7994c This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* all: Rename UMODULE to MODULE in preprocessor/Makefile vars.Jim Mussared2023-06-08
| | | | | | This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* all: Rename mp_umodule*, mp_module_umodule* to remove the "u" prefix.Jim Mussared2023-06-08
| | | | | | This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* all: Rename MP_QSTR_umodule to MP_QSTR_module everywhere.Jim Mussared2023-06-08
| | | | | | | | | This renames the builtin-modules, such that help('modules') and printing the module object will show "module" rather than "umodule". This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* extmod/moduos: Move os.sync() into extmod/moduos.c.robert-hh2023-06-01
| | | | | | | | Avoiding code duplication. To enable it, set MICROPY_PY_UOS_SYNC in the port's mpconfigport.h. It is operational only for FAT file system. For other filesystems it's a no-op. Signed-off-by: robert-hh <robert@hammelrath.com>
* all: Remove third argument to MP_REGISTER_MODULE.Damien George2022-06-02
| | | | | | | | It's no longer needed because this macro is now processed after preprocessing the source code via cpp (in the qstr extraction stage), which means unused MP_REGISTER_MODULE's are filtered out by the preprocessor. Signed-off-by: Damien George <damien@micropython.org>
* extmod: Make extmod modules use MP_REGISTER_MODULE.Jim Mussared2022-05-18
| | | | Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* unix/moduos: Convert module to use extmod version.Damien George2022-03-09
| | | | | | | | | | | | | All variants now use extmod/moduos.c as their uos module implementation. In particular this means they all have MICROPY_VFS enabled and use VfsPosix for their filesystem. As part of this, the available functions in uos become more consistent with other ports: - coverage variant gets uos.urandom - minimal and standard variant get: unlink, chdir, getcwd, listdir Signed-off-by: Damien George <damien@micropython.org>
* esp8266/moduos: Convert module to use extmod version.Damien George2022-03-09
| | | | Signed-off-by: Damien George <damien@micropython.org>
* stm32/moduos: Convert module to use extmod version.Damien George2022-03-09
| | | | Signed-off-by: Damien George <damien@micropython.org>
* zephyr/moduos: Convert module to use extmod version.Damien George2022-03-09
| | | | | | This also adds uos.unlink(), for all ports that use extmod/moduos.c. Signed-off-by: Damien George <damien@micropython.org>
* esp32/moduos: Convert module to use extmod version.Damien George2022-03-09
| | | | Signed-off-by: Damien George <damien@micropython.org>
* extmod/moduos: Create general uos module to be used by all ports.Damien George2022-03-09
Based on the rp2 port version, with the rp2 port converted to use this module. Signed-off-by: Damien George <damien@micropython.org>