/system/core/adb/sysdeps/ |
D | stat_test.cpp | 31 ASSERT_FALSE(S_ISREG(st.st_mode)); in TEST() 32 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST() 35 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST() 39 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST() 55 ASSERT_TRUE(S_ISREG(st.st_mode)); in TEST() 56 ASSERT_FALSE(S_ISDIR(st.st_mode)); in TEST()
|
/system/core/cpio/ |
D | mkbootfs.c | 76 s->st_mode = p->mode | (s->st_mode & ~07777); in fix_stat() 82 s->st_mode = empty_path_config->mode | (s->st_mode & ~07777); in fix_stat() 85 unsigned st_mode = s->st_mode; in fix_stat() local 86 int is_dir = S_ISDIR(s->st_mode) || strcmp(path, TRAILER) == 0; in fix_stat() 87 fs_config(path, is_dir, target_out_path, &s->st_uid, &s->st_gid, &st_mode, &capabilities); in fix_stat() 88 s->st_mode = (typeof(s->st_mode)) st_mode; in fix_stat() 111 s->st_mode, in _eject() 244 if(S_ISREG(s.st_mode)){ in _archive() 262 } else if(S_ISDIR(s.st_mode)) { in _archive() 265 } else if(S_ISLNK(s.st_mode)) { in _archive() [all …]
|
/system/core/libcutils/ |
D | fs.cpp | 62 type_ok = prepare_as_dir ? S_ISDIR(sb.st_mode) : S_ISREG(sb.st_mode); in fs_prepare_path_impl() 69 mode_match = ((sb.st_mode & ALL_PERMS) == mode); in fs_prepare_path_impl() 81 path, mode, (sb.st_mode & ALL_PERMS)); in fs_prepare_path_impl() 241 if (S_ISLNK(sb.st_mode)) { in fs_mkdirs() 246 if (!S_ISDIR(sb.st_mode)) { in fs_mkdirs()
|
D | ashmem-dev.cpp | 230 if (!S_ISCHR(st.st_mode) || !st.st_rdev) { in __ashmem_open_locked() 262 if (S_ISCHR(st.st_mode) && st.st_rdev) { in __ashmem_is_ashmem() 287 fd, st.st_mode, major(st.st_rdev), minor(st.st_rdev), in __ashmem_is_ashmem() 292 fd, st.st_mode, major(st.st_rdev), minor(st.st_rdev), in __ashmem_is_ashmem()
|
D | ashmem-host.cpp | 48 if (!(buf->st_nlink == 0 && S_ISREG(buf->st_mode))) { in ashmem_validate_stat()
|
/system/core/run-as/ |
D | run-as.cpp | 83 if (!S_ISDIR(st.st_mode)) { in check_directory() 84 error(1, 0, "%s not a directory: %o", path, st.st_mode); in check_directory() 93 if ((st.st_mode & (S_IROTH | S_IWOTH)) != 0) { in check_directory() 94 error(1, 0, "%s readable or writable by others: %o", path, st.st_mode); in check_directory()
|
/system/core/adb/client/ |
D | file_sync_client.cpp | 488 st->st_mode = msg.stat_v2.mode; in FinishStat() 513 st->st_mode = msg.stat_v1.mode; in FinishStat() 1012 if (S_ISLNK(st->st_mode)) { in sync_stat_fallback() 1020 st->st_mode &= ~S_IFMT; in sync_stat_fallback() 1022 st->st_mode |= S_IFDIR; in sync_stat_fallback() 1024 st->st_mode |= S_IFREG; in sync_stat_fallback() 1296 copyinfo ci(lpath, rpath, de->d_name, st.st_mode); in local_build_list() 1297 if (S_ISDIR(st.st_mode)) { in local_build_list() 1300 if (!should_push_file(st.st_mode)) { in local_build_list() 1301 sc.Warning("skipping special file '%s' (mode = 0o%o)", lpath.c_str(), st.st_mode); in local_build_list() [all …]
|
/system/core/adb/sysdeps/win32/ |
D | stat.cpp | 58 if (!S_ISDIR(st.st_mode)) { in adb_stat()
|
/system/core/fs_mgr/libfiemap/ |
D | utility.cpp | 84 if (S_ISBLK(given.st_mode) && S_ISBLK(userdata.st_mode) && in GetDevicePathForFile()
|
/system/core/libdiskconfig/ |
D | diskconfig.c | 250 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { in sync_ptable() 298 if (S_ISBLK(stat.st_mode)) { in validate() 320 } else if (S_ISREG(stat.st_mode)) { in validate() 372 if (S_ISBLK(stat.st_mode) && total_size > disk_size) { in validate()
|
/system/extras/ext4_utils/ |
D | ext4_utils.cpp | 236 return S_ISBLK(st.st_mode); in is_block_device_fd() 254 if (S_ISREG(buf.st_mode)) in get_file_size() 256 else if (S_ISBLK(buf.st_mode)) in get_file_size()
|
/system/core/init/ |
D | mount_handler.cpp | 84 if (stat(queue.c_str(), &sb) || !S_ISDIR(sb.st_mode)) value = ""; in SetMountProperty() 85 if (stat(entry.mount_point.c_str(), &sb) || !S_ISDIR(sb.st_mode)) value = ""; in SetMountProperty()
|
D | persistent_properties.cpp | 87 if (((sb.st_mode & (S_IRWXG | S_IRWXO)) != 0) || sb.st_uid != 0 || sb.st_gid != 0 || in LoadLegacyPersistentProperties() 91 << " mode=" << std::oct << sb.st_mode << ")"; in LoadLegacyPersistentProperties()
|
/system/apex/apexd/ |
D | apexd_private.cpp | 56 is_dir = S_ISDIR(buf.st_mode); in BindMount()
|
/system/extras/tests/storage/ |
D | opentest.c | 54 if (! S_ISDIR(statbuf.st_mode)) { in main()
|
D | wipe_blkdev.c | 115 if (!S_ISBLK(statbuf.st_mode)) { in main()
|
/system/core/libmodprobe/ |
D | libmodprobe_ext.cpp | 96 if (!S_ISREG(fileStat.st_mode)) { in ModuleExists()
|
/system/core/libunwindstack/tools/ |
D | unwind_symbols.cpp | 44 if (!S_ISREG(st.st_mode)) { in main()
|
/system/bt/gd/ |
D | setup.py | 55 current_mode = os.stat(file).st_mode
|
/system/nfc/src/adaptation/ |
D | nfc_config.cc | 39 if (S_ISREG(file_stat.st_mode)) return path; in searchConfigPath()
|
/system/update_engine/payload_consumer/ |
D | file_descriptor.cc | 78 if (!S_ISBLK(stbuf.st_mode)) in BlockDevSize()
|
/system/libbase/ |
D | file.cpp | 370 bool file_type_removable = (result == 0 && S_ISREG(st.st_mode)); in RemoveFileIfExists() 373 bool file_type_removable = (result == 0 && (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode))); in RemoveFileIfExists()
|
/system/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 275 if (S_ISREG(st.st_mode) && (st.st_mode & S_IXUSR)) { in IsExecutableFile() 387 if (stat(simpleperf_data_dir_.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) { in CreateSimpleperfDataDir()
|
/system/update_engine/common/ |
D | utils.cc | 375 if (S_ISREG(stbuf.st_mode)) in FileSize() 377 if (S_ISBLK(stbuf.st_mode)) in FileSize() 489 return lstat(path, &stbuf) == 0 && S_ISLNK(stbuf.st_mode) != 0; in IsSymlink() 606 if (!S_ISDIR(stdir.st_mode)) in IsMountpoint() 615 return S_ISDIR(stparent.st_mode) && in IsMountpoint()
|
/system/core/adb/daemon/ |
D | file_sync_service.cpp | 148 msg.stat_v1.mode = st.st_mode; in do_lstat_v1() 172 msg.stat_v2.mode = st.st_mode; in do_stat_v2() 210 msg.mode = st.st_mode; in do_list() 504 do_unlink = (lstat(path.c_str(), &st) == -1) || S_ISREG(st.st_mode) || in send_impl() 505 (S_ISLNK(st.st_mode) && !S_ISLNK(mode)); in send_impl()
|