/AliOS-Things-master/components/cli/src/iobox/ |
A D | ls.c | 58 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 D | rm.c | 38 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 D | mkdir.c | 64 if (S_ISDIR(st.st_mode)) in mkdir_do()
|
A D | cd.c | 109 if (!S_ISDIR(s.st_mode)) { in cd_main()
|
A D | mv.c | 47 if (S_ISDIR(s.st_mode)) { in mv_main()
|
A D | cp.c | 33 return S_ISDIR(s.st_mode) ? true : false; in isdir()
|
/AliOS-Things-master/components/ramfs/src/ |
A D | ramfs_vfs.c | 236 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 D | SDL_audiodev.c | 53 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 D | aos_fs.c | 60 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 D | be.c | 85 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 D | aos_fs.c | 46 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 D | newlib_stub.c | 261 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 D | stat.h | 50 uint16_t st_mode; member
|
/AliOS-Things-master/components/libc_stub/compilers/iar/sys/ |
A D | stat.h | 50 uint16_t st_mode; member
|
/AliOS-Things-master/components/ramfs/internal/ |
A D | ramfs_api.h | 15 uint32_t st_mode; member
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | moduos.c | 237 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 D | moduos.c | 233 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 D | moduos.c | 233 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 D | vfs_posix.c | 86 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 D | vfs.c | 151 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 D | gun.c | 523 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 D | pyboardextended.py | 390 self.wr_u32(stat.st_mode) 412 mode = stat.st_mode & 0xC000
|
/AliOS-Things-master/components/vfs/include/ |
A D | vfs_types.h | 17 uint16_t st_mode; /* mode of file */ member
|
/AliOS-Things-master/components/vfs/include/aos/ |
A D | vfs.h | 49 uint16_t st_mode; /**< mode of file */ member
|
/AliOS-Things-master/components/amp_adapter/portfiles/aos/ |
A D | vfs.h | 49 uint16_t st_mode; /**< mode of file */ member
|