Lines Matching refs:stat
70 mp_import_stat_t stat = mp_import_stat_any(vstr_null_terminated_str(path)); in stat_file_py_or_mpy() local
71 if (stat == MP_IMPORT_STAT_FILE) { in stat_file_py_or_mpy()
72 return stat; in stat_file_py_or_mpy()
77 stat = mp_import_stat_any(vstr_null_terminated_str(path)); in stat_file_py_or_mpy()
78 if (stat == MP_IMPORT_STAT_FILE) { in stat_file_py_or_mpy()
79 return stat; in stat_file_py_or_mpy()
87 mp_import_stat_t stat = mp_import_stat_any(vstr_null_terminated_str(path)); in stat_dir_or_file() local
88 DEBUG_printf("stat %s: %d\n", vstr_str(path), stat); in stat_dir_or_file()
89 if (stat == MP_IMPORT_STAT_DIR) { in stat_dir_or_file()
90 return stat; in stat_dir_or_file()
116 mp_import_stat_t stat = stat_dir_or_file(dest); in find_file() local
117 if (stat != MP_IMPORT_STAT_NO_EXIST) { in find_file()
118 return stat; in find_file()
373 mp_import_stat_t stat; in mp_builtin___import__() local
376 stat = find_file(mod_str, i, &path); in mp_builtin___import__()
381 stat = stat_dir_or_file(&path); in mp_builtin___import__()
385 if (stat == MP_IMPORT_STAT_NO_EXIST) { in mp_builtin___import__()
423 if (i == mod_len && fromtuple == mp_const_false && stat != MP_IMPORT_STAT_DIR) { in mp_builtin___import__()
434 if (stat == MP_IMPORT_STAT_DIR) { in mp_builtin___import__()