@ -33,13 +33,21 @@
# if MICROPY_VFS
# if MICROPY_VFS
// These are defined in modos.c
MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN ( mod_os_errno_obj ) ;
MP_DECLARE_CONST_FUN_OBJ_1 ( mod_os_getenv_obj ) ;
MP_DECLARE_CONST_FUN_OBJ_1 ( mod_os_system_obj ) ;
STATIC const mp_rom_map_elem_t uos_vfs_module_globals_table [ ] = {
STATIC const mp_rom_map_elem_t uos_vfs_module_globals_table [ ] = {
{ MP_ROM_QSTR ( MP_QSTR___name__ ) , MP_ROM_QSTR ( MP_QSTR_uos_vfs ) } ,
{ MP_ROM_QSTR ( MP_QSTR___name__ ) , MP_ROM_QSTR ( MP_QSTR_uos_vfs ) } ,
{ MP_ROM_QSTR ( MP_QSTR_sep ) , MP_ROM_QSTR ( MP_QSTR__slash_ ) } ,
{ MP_ROM_QSTR ( MP_QSTR_sep ) , MP_ROM_QSTR ( MP_QSTR__slash_ ) } ,
{ MP_ROM_QSTR ( MP_QSTR_errno ) , MP_ROM_PTR ( & mod_os_errno_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_getenv ) , MP_ROM_PTR ( & mod_os_getenv_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_system ) , MP_ROM_PTR ( & mod_os_system_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_mount ) , MP_ROM_PTR ( & mp_vfs_mount_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_mount ) , MP_ROM_PTR ( & mp_vfs_mount_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_umount ) , MP_ROM_PTR ( & mp_vfs_umount_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_umount ) , MP_ROM_PTR ( & mp_vfs_umount_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_vfs_open ) , MP_ROM_PTR ( & mp_vfs_open_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_chdir ) , MP_ROM_PTR ( & mp_vfs_chdir_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_chdir ) , MP_ROM_PTR ( & mp_vfs_chdir_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_getcwd ) , MP_ROM_PTR ( & mp_vfs_getcwd_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_getcwd ) , MP_ROM_PTR ( & mp_vfs_getcwd_obj ) } ,
@ -53,6 +61,10 @@ STATIC const mp_rom_map_elem_t uos_vfs_module_globals_table[] = {
{ MP_ROM_QSTR ( MP_QSTR_statvfs ) , MP_ROM_PTR ( & mp_vfs_statvfs_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_statvfs ) , MP_ROM_PTR ( & mp_vfs_statvfs_obj ) } ,
{ MP_ROM_QSTR ( MP_QSTR_unlink ) , MP_ROM_PTR ( & mp_vfs_remove_obj ) } , // unlink aliases to remove
{ MP_ROM_QSTR ( MP_QSTR_unlink ) , MP_ROM_PTR ( & mp_vfs_remove_obj ) } , // unlink aliases to remove
# if MICROPY_PY_OS_DUPTERM
{ MP_ROM_QSTR ( MP_QSTR_dupterm ) , MP_ROM_PTR ( & mp_uos_dupterm_obj ) } ,
# endif
# if MICROPY_VFS_POSIX
# if MICROPY_VFS_POSIX
{ MP_ROM_QSTR ( MP_QSTR_VfsPosix ) , MP_ROM_PTR ( & mp_type_vfs_posix ) } ,
{ MP_ROM_QSTR ( MP_QSTR_VfsPosix ) , MP_ROM_PTR ( & mp_type_vfs_posix ) } ,
# endif
# endif