/external/python/cpython2/Lib/test/ |
D | test_stat.py | 63 st_mode = os.lstat(fname).st_mode 65 st_mode = os.stat(fname).st_mode 66 return st_mode 90 st_mode = self.get_mode() 91 self.assertS_IS("REG", st_mode) 92 self.assertEqual(stat.S_IMODE(st_mode), 96 st_mode = self.get_mode() 97 self.assertS_IS("REG", st_mode) 98 self.assertEqual(stat.S_IMODE(st_mode), 102 st_mode = self.get_mode() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_stat.py | 88 st_mode = os.lstat(fname).st_mode 90 st_mode = os.stat(fname).st_mode 91 modestr = self.statmod.filemode(st_mode) 92 return st_mode, modestr 116 st_mode, modestr = self.get_mode() 118 self.assertS_IS("REG", st_mode) 119 self.assertEqual(self.statmod.S_IMODE(st_mode), 123 st_mode, modestr = self.get_mode() 125 self.assertS_IS("REG", st_mode) 126 self.assertEqual(self.statmod.S_IMODE(st_mode), [all …]
|
D | test_shutil.py | 210 old_dir_mode = os.stat(TESTFN).st_mode 211 old_child_file_mode = os.stat(self.child_file_path).st_mode 212 old_child_dir_mode = os.stat(self.child_dir_path).st_mode 286 self.assertNotEqual(os.stat(src).st_mode, os.stat(dst).st_mode) 288 self.assertEqual(os.stat(src).st_mode, os.stat(dst).st_mode) 294 self.assertEqual(os.stat(src).st_mode, os.stat(dst).st_mode) 298 self.assertEqual(os.stat(src).st_mode, os.stat(dst).st_mode) 302 self.assertEqual(os.stat(src).st_mode, os.stat(dst).st_mode) 322 self.assertEqual(os.lstat(src_link).st_mode, 323 os.lstat(dst_link).st_mode) [all …]
|
/external/toybox/toys/other/ |
D | lsattr.c | 85 if(!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) { in ext2_getflag() 98 if (!stat(path, &sb) && !S_ISREG(sb.st_mode) && !S_ISDIR(sb.st_mode)) { in print_file_attr() 150 if (S_ISDIR(root->st.st_mode) && !root->parent) in retell_dir() 157 if (S_ISDIR(root->st.st_mode) && (toys.optflags & FLAG_R) in retell_dir() 176 else if (S_ISDIR(sb.st_mode) && !(toys.optflags & FLAG_d)) in lsattr_main() 195 if (!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) { in ext2_setflag() 264 if ((S_ISLNK(root->st.st_mode) && chattr.recursive) in update_attr() 265 || (!S_ISREG(root->st.st_mode) && !S_ISLNK(root->st.st_mode) in update_attr() 266 && !S_ISDIR(root->st.st_mode))) in update_attr() 287 if (!S_ISDIR(root->st.st_mode)) fval &= ~FS_DIRSYNC_FL; in update_attr() [all …]
|
D | stat.c | 77 if (type == 'a') out('o', stat->st_mode&~S_IFMT); in print_stat() 81 mode_to_string(stat->st_mode, str); in print_stat() 87 else if (type == 'f') out('x', stat->st_mode); in print_stat() 91 int i, filetype = stat->st_mode & S_IFMT; in print_stat() 112 if (S_ISLNK(stat->st_mode)) in print_stat()
|
/external/autotest/client/site_tests/login_UserPolicyKeys/ |
D | login_UserPolicyKeys.py | 23 return info.st_mode & stat.S_IRUSR 25 return info.st_mode & stat.S_IRGRP 26 return info.st_mode & stat.S_IROTH 32 return info.st_mode & stat.S_IXUSR 34 return info.st_mode & stat.S_IXGRP 35 return info.st_mode & stat.S_IXOTH 46 if not stat.S_ISREG(info.st_mode): 50 (key_file, oct(info.st_mode))) 58 mode = stat.S_IMODE(info.st_mode) 61 (current, oct(info.st_mode)))
|
/external/toybox/toys/posix/ |
D | cp.c | 137 if (S_ISDIR(try->st.st_mode) && try->again) { in cp_node() 143 if (S_ISLNK(try->st.st_mode) && (flags & FLAG_d)) flags |= FLAG_r; in cp_node() 160 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { in cp_node() 163 if (S_ISDIR(try->st.st_mode)) { in cp_node() 192 if (S_ISDIR(try->st.st_mode)) { in cp_node() 208 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST) in cp_node() 210 if (!fstat(try->extra, &st2) && S_ISDIR(st2.st_mode)) in cp_node() 247 } else if (!S_ISREG(try->st.st_mode) in cp_node() 253 if (S_ISLNK(try->st.st_mode) in cp_node() 256 : !mknodat(cfd, catch, try->st.st_mode, try->st.st_rdev)) in cp_node() [all …]
|
D | cpio.c | 197 if (fd != -1 && !fstat(fd, &st) && (st.st_mode&S_IFMT) == (mode&S_IFMT)) in cpio_main() 233 if (lstat(name, &st) || (S_ISREG(st.st_mode) in cpio_main() 240 if (!S_ISREG(st.st_mode) && !S_ISLNK(st.st_mode)) st.st_size = 0; in cpio_main() 245 (int)st.st_ino, st.st_mode, st.st_uid, st.st_gid, (int)st.st_nlink, in cpio_main() 258 if (S_ISLNK(st.st_mode)) { in cpio_main()
|
/external/ltp/testcases/kernel/syscalls/dup/ |
D | dup07.c | 70 if (retbuf.st_mode != dupbuf.st_mode) { in main() 92 if (retbuf.st_mode != dupbuf.st_mode) { in main() 115 if (retbuf.st_mode != dupbuf.st_mode) { in main()
|
/external/vboot_reference/futility/ |
D | file_type.c | 94 if (S_ISREG(sb.st_mode) || S_ISBLK(sb.st_mode)) { in futil_file_type() 108 } else if (S_ISDIR(sb.st_mode)) { in futil_file_type() 110 } else if (S_ISCHR(sb.st_mode)) { in futil_file_type() 112 } else if (S_ISFIFO(sb.st_mode)) { in futil_file_type() 114 } else if (S_ISSOCK(sb.st_mode)) { in futil_file_type()
|
/external/ipsec-tools/src/racoon/ |
D | safefile.c | 73 switch (s.st_mode & S_IFMT) { 79 (s.st_mode & S_IFMT)); 85 if ((s.st_mode & S_IRWXG) != 0 || (s.st_mode & S_IRWXO) != 0) {
|
/external/kernel-headers/original/uapi/asm-x86/asm/ |
D | stat.h | 13 unsigned short st_mode; member 48 unsigned int st_mode; member 88 unsigned int st_mode; member 120 unsigned short st_mode; member
|
/external/f2fs-tools/fsck/ |
D | sload.c | 135 if (S_ISREG(stat.st_mode)) { in set_inode_metadata() 137 } else if (S_ISDIR(stat.st_mode)) { in set_inode_metadata() 139 } else if (S_ISCHR(stat.st_mode)) { in set_inode_metadata() 141 } else if (S_ISBLK(stat.st_mode)) { in set_inode_metadata() 143 } else if (S_ISFIFO(stat.st_mode)) { in set_inode_metadata() 145 } else if (S_ISSOCK(stat.st_mode)) { in set_inode_metadata() 147 } else if (S_ISLNK(stat.st_mode)) { in set_inode_metadata() 159 de->mode = stat.st_mode & in set_inode_metadata()
|
/external/openssh/regress/ |
D | check-perm.c | 64 if (st.st_uid != 0 || (st.st_mode & 022) != 0) in safely_chroot() 68 if (!S_ISDIR(st.st_mode)) in safely_chroot() 110 if (!S_ISREG(stp->st_mode)) { in auth_secure_path() 115 (stp->st_mode & 022) != 0) { in auth_secure_path() 131 (st.st_mode & 022) != 0) { in auth_secure_path()
|
/external/squashfs-tools/squashfs-tools/ |
D | action.c | 851 static int file_type_match(int st_mode, int type) in file_type_match() argument 855 return S_ISDIR(st_mode); in file_type_match() 857 return S_ISREG(st_mode); in file_type_match() 859 return S_ISREG(st_mode) || S_ISDIR(st_mode) || in file_type_match() 860 S_ISCHR(st_mode) || S_ISBLK(st_mode) || in file_type_match() 861 S_ISFIFO(st_mode) || S_ISSOCK(st_mode); in file_type_match() 863 return S_ISLNK(st_mode); in file_type_match() 884 int st_mode = dir_ent->inode->buf.st_mode; in eval_actions() local 897 if (!file_type_match(st_mode, action->action->file_types)) in eval_actions() 1411 static int mode_execute(struct mode_data *mode_data, int st_mode) in mode_execute() argument [all …]
|
D | android.c | 49 mode_t stat_file_type_mask = stat->st_mode & S_IFMT; in android_fs_config() 52 fs_config_func(path, S_ISDIR(stat->st_mode), target_out_path, in android_fs_config() 56 stat->st_mode = mode; in android_fs_config() 58 stat->st_mode |= stat_file_type_mask; in android_fs_config()
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | dependency_manager_util_unittest.py | 87 stat.S_IRUSR & stat.S_IMODE(os.stat(read_only_path).st_mode)) 89 stat.S_IRUSR & stat.S_IMODE(os.stat(sub_read_only_path).st_mode)) 91 stat.S_IRUSR & stat.S_IMODE(os.stat(writable_path).st_mode)) 93 stat.S_IWUSR & stat.S_IMODE(os.stat(writable_path).st_mode)) 95 stat.S_IRUSR & stat.S_IMODE(os.stat(sub_writable_path).st_mode)) 97 stat.S_IWUSR & stat.S_IMODE(os.stat(sub_writable_path).st_mode)) 101 stat.S_IRWXU & stat.S_IMODE(os.stat(executable_path).st_mode)) 104 stat.S_IRWXU & stat.S_IMODE(os.stat(sub_executable_path).st_mode))
|
/external/u-boot/include/linux/ |
D | stat.h | 50 mode_t st_mode; /* ownership/protection */ member 77 unsigned short st_mode; member 104 mode_t st_mode; member 134 unsigned short st_mode; member
|
/external/kernel-headers/original/uapi/asm-arm/asm/ |
D | stat.h | 8 unsigned short st_mode; member 29 unsigned short st_mode; member 63 unsigned int st_mode; member
|
/external/libchrome/base/files/ |
D | file_util_posix.cc | 104 if (S_ISLNK(stat_info.st_mode)) { in VerifySpecificPathControlledByUser() 114 if ((stat_info.st_mode & S_IWGRP) && in VerifySpecificPathControlledByUser() 121 if (stat_info.st_mode & S_IWOTH) { in VerifySpecificPathControlledByUser() 234 DCHECK(recursive || S_ISDIR(from_stat.st_mode)); in DoCopyDirectory() 245 if (S_ISDIR(from_stat.st_mode)) { in DoCopyDirectory() 246 mode_t mode = (from_stat.st_mode & 01777) | S_IRUSR | S_IXUSR | S_IWUSR; in DoCopyDirectory() 257 if (!S_ISREG(from_stat.st_mode)) { in DoCopyDirectory() 276 if (!S_ISREG(stat_at_use.st_mode)) { in DoCopyDirectory() 298 int mode = 0600 | (stat_at_use.st_mode & 0177); in DoCopyDirectory() 357 if (!S_ISDIR(file_info.st_mode)) in DeleteFile() [all …]
|
/external/toybox/toys/pending/ |
D | diff.c | 499 if (S_ISDIR(node->st.st_mode) && !node->parent) { //add root dirs. in list_dir() 504 if (S_ISDIR(node->st.st_mode) && (toys.optflags & FLAG_r)) { in list_dir() 513 return S_ISDIR(node->st.st_mode) ? 0 : (DIRTREE_RECURSE|DIRTREE_SYMFOLLOW); in list_dir() 702 if (S_ISDIR(st[0].st_mode) && S_ISDIR(st[1].st_mode)) in create_empty_entry() 704 else if (!S_ISREG(st[0].st_mode) && !S_ISDIR(st[0].st_mode)) in create_empty_entry() 707 else if (!S_ISREG(st[1].st_mode) && !S_ISDIR(st[1].st_mode)) in create_empty_entry() 710 else if (S_ISDIR(st[0].st_mode) != S_ISDIR(st[1].st_mode)) { in create_empty_entry() 711 if (S_ISDIR(st[0].st_mode)) in create_empty_entry() 809 && (S_ISDIR(TT.st[0].st_mode) || S_ISDIR(TT.st[1].st_mode))) in diff_main() 818 if (S_ISDIR(TT.st[0].st_mode) && S_ISDIR(TT.st[1].st_mode)) { in diff_main() [all …]
|
/external/kernel-headers/original/uapi/asm-mips/asm/ |
D | stat.h | 23 mode_t st_mode; member 58 mode_t st_mode; member 99 mode_t st_mode; member
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod01.c | 123 stat_buf.st_mode &= ~S_IFREG; in main() 125 if (stat_buf.st_mode == mode) in main() 132 TESTFILE, stat_buf.st_mode, in main()
|
/external/ltp/testcases/kernel/syscalls/creat/ |
D | creat08.c | 159 if (buf.st_mode & S_ISGID) { in main() 198 if (!(buf.st_mode & S_ISGID)) { in main() 256 if (buf.st_mode & S_ISGID) { in main() 284 if (!(buf.st_mode & S_ISGID)) { in main() 328 if (buf.st_mode & S_ISGID) { in main() 405 if (!(buf.st_mode & S_ISGID)) { in main()
|
/external/ltp/testcases/kernel/fs/proc/ |
D | proc01.c | 265 if (S_ISLNK(statbuf.st_mode) && strcmp(obj, selfpath)) in readproc() 271 if (S_ISDIR(statbuf.st_mode) || !strcmp(obj, selfpath)) { in readproc() 336 if (!S_ISREG(statbuf.st_mode)) in readproc() 364 if ((statbuf.st_mode & S_IRUSR) == 0 && in readproc() 365 (statbuf.st_mode & S_IWUSR) != 0) { in readproc()
|