Home
last modified time | relevance | path

Searched refs:st_mode (Results 1 – 25 of 54) sorted by relevance

123

/AliOS-Things-master/components/cli/src/iobox/
A Dls.c58 switch (s.st_mode & S_IFMT) { in ls_show()
84 s.st_mode & S_IRUSR ? 'r' : '-', in ls_show()
85 s.st_mode & S_IWUSR ? 'w' : '-', in ls_show()
86 s.st_mode & S_IXUSR ? 'x' : '-', in ls_show()
87 s.st_mode & S_IRGRP ? 'r' : '-', in ls_show()
88 s.st_mode & S_IWGRP ? 'w' : '-', in ls_show()
89 s.st_mode & S_IXGRP ? 'x' : '-', in ls_show()
90 s.st_mode & S_IROTH ? 'r' : '-', in ls_show()
91 s.st_mode & S_IWOTH ? 'w' : '-', in ls_show()
92 s.st_mode & S_IXOTH ? 'x' : '-', in ls_show()
[all …]
A Drm.c38 if (stat(dir, &s) || !S_ISDIR(s.st_mode)) { in rrmdir()
66 if (S_ISDIR(s.st_mode)) in rrmdir()
123 if (!stat(path, &s) && S_ISREG(s.st_mode)) { in rm_main()
A Dmkdir.c64 if (S_ISDIR(st.st_mode)) in mkdir_do()
A Dcd.c109 if (!S_ISDIR(s.st_mode)) { in cd_main()
A Dmv.c47 if (S_ISDIR(s.st_mode)) { in mv_main()
A Dcp.c33 return S_ISDIR(s.st_mode) ? true : false; in isdir()
/AliOS-Things-master/components/ramfs/src/
A Dramfs_vfs.c236 st->st_mode = S_IXUSR | S_IXGRP | S_IXOTH; in ramfs_vfs_stat()
239 st->st_mode |= S_IRUSR | S_IRGRP | S_IROTH; in ramfs_vfs_stat()
243 st->st_mode |= S_IWUSR | S_IWGRP | S_IWOTH; in ramfs_vfs_stat()
247 st->st_mode |= S_IFDIR; in ramfs_vfs_stat()
249 st->st_mode |= S_IFREG; in ramfs_vfs_stat()
279 st->st_mode = S_IXUSR | S_IXGRP | S_IXOTH; in ramfs_vfs_fstat()
282 st->st_mode |= S_IRUSR | S_IRGRP | S_IROTH; in ramfs_vfs_fstat()
290 st->st_mode |= S_IFDIR; in ramfs_vfs_fstat()
292 st->st_mode |= S_IFREG; in ramfs_vfs_fstat()
457 if (st.st_mode & S_IFDIR) { in ramfs_vfs_rmdir_r()
[all …]
/AliOS-Things-master/components/SDL2/src/audio/
A DSDL_audiodev.c53 if ((stat(fname, &sb) == 0) && (S_ISCHR(sb.st_mode))) { in test_device()
93 if (((stat("/dev/sound", &sb) == 0) && S_ISDIR(sb.st_mode)) in SDL_EnumUnixAudioDevices_Internal()
95 && S_ISCHR(sb.st_mode))) { in SDL_EnumUnixAudioDevices_Internal()
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_fs.c60 st->st_mode = info.st_mode; in aos_stat()
138 if (stat(dir, &s) || !S_ISDIR(s.st_mode)) { in aos_rmdir_r()
166 if (S_ISDIR(s.st_mode)) in aos_rmdir_r()
/AliOS-Things-master/components/amp/engine/duktape_engine/
A Dbe.c85 if (!ret && S_ISREG(sb.st_mode)) { in resolve_path()
93 if (!ret && S_ISREG(sb.st_mode)) { in resolve_path()
100 if (!ret && S_ISREG(sb.st_mode)) { in resolve_path()
107 if (ret || !S_ISREG(sb.st_mode)) { in resolve_path()
132 if (!aos_stat(resolved_path, &sb) && S_ISREG(sb.st_mode)) { in resolve_path()
139 if (!aos_stat(resolved_path, &sb) && S_ISREG(sb.st_mode)) { in resolve_path()
546 if (aos_stat(filename, &sb) || !S_ISREG(sb.st_mode)) { in jsengine_eval_file()
/AliOS-Things-master/components/amp_adapter/platform/aos/
A Daos_fs.c46 if (aos_stat(dir, &s) || !S_ISDIR(s.st_mode)) { in aos_rmdir_r()
74 if (S_ISDIR(s.st_mode)) in aos_rmdir_r()
/AliOS-Things-master/components/libc_stub/
A Dnewlib_stub.c261 pstat->st_mode = stat.st_mode; in _stat_r()
282 buf->st_mode = stat_temp.st_mode; in _fstat_r()
/AliOS-Things-master/components/libc_stub/compilers/armlibc/sys/
A Dstat.h50 uint16_t st_mode; member
/AliOS-Things-master/components/libc_stub/compilers/iar/sys/
A Dstat.h50 uint16_t st_mode; member
/AliOS-Things-master/components/ramfs/internal/
A Dramfs_api.h15 uint32_t st_mode; member
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmoduos.c237 t->items[0] = MP_OBJ_NEW_SMALL_INT(sb.st_mode); in mod_os_stat()
303 if (S_ISDIR(s.st_mode)) { in py_mv()
399 if (stat(dir, &s) || !S_ISDIR(s.st_mode)) { in py_rrmdir()
427 if (S_ISDIR(s.st_mode)) in py_rrmdir()
549 if (S_ISDIR(st.st_mode)) in py_mkdir_do()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmoduos.c233 t->items[0] = MP_OBJ_NEW_SMALL_INT(sb.st_mode); in mod_os_stat()
299 if (S_ISDIR(s.st_mode)) { in py_mv()
393 if (stat(dir, &s) || !S_ISDIR(s.st_mode)) { in py_rrmdir()
421 if (S_ISDIR(s.st_mode)) in py_rrmdir()
539 if (S_ISDIR(st.st_mode)) in py_mkdir_do()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmoduos.c233 t->items[0] = MP_OBJ_NEW_SMALL_INT(sb.st_mode); in mod_os_stat()
299 if (S_ISDIR(s.st_mode)) { in py_mv()
393 if (stat(dir, &s) || !S_ISDIR(s.st_mode)) { in py_rrmdir()
421 if (S_ISDIR(s.st_mode)) in py_rrmdir()
539 if (S_ISDIR(st.st_mode)) in py_mkdir_do()
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dvfs_posix.c86 if (S_ISDIR(st.st_mode)) { in mp_vfs_posix_import_stat()
88 } else if (S_ISREG(st.st_mode)) { in mp_vfs_posix_import_stat()
297 t->items[0] = MP_OBJ_NEW_SMALL_INT(sb.st_mode); in vfs_posix_stat()
A Dvfs.c151 mp_int_t st_mode = mp_obj_get_int(items[0]); in mp_vfs_import_stat() local
152 if (st_mode & MP_S_IFDIR) { in mp_vfs_import_stat()
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/examples/
A Dgun.c523 if (stat(from, &was) != 0 || (was.st_mode & S_IFMT) != S_IFREG) in copymeta()
527 (void)chmod(to, was.st_mode & 07777); in copymeta()
/AliOS-Things-master/components/py_engine/engine/tools/mpremote/mpremote/
A Dpyboardextended.py390 self.wr_u32(stat.st_mode)
412 mode = stat.st_mode & 0xC000
/AliOS-Things-master/components/vfs/include/
A Dvfs_types.h17 uint16_t st_mode; /* mode of file */ member
/AliOS-Things-master/components/vfs/include/aos/
A Dvfs.h49 uint16_t st_mode; /**< mode of file */ member
/AliOS-Things-master/components/amp_adapter/portfiles/aos/
A Dvfs.h49 uint16_t st_mode; /**< mode of file */ member

Completed in 33 milliseconds

123