/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
stat.py | 8 ST_MODE = 0
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
stat.py | 8 ST_MODE = 0
|
/system/core/adb/sysdeps/win32/ |
stat.cpp | 58 if (!S_ISDIR(st.st_mode)) {
|
/external/e2fsprogs/lib/blkid/ |
devno.c | 118 if (S_ISBLK(st.st_mode) && st.st_rdev == devno) { 125 if (list && S_ISDIR(st.st_mode) && !lstat(path, &st) && 126 S_ISDIR(st.st_mode))
|
getsize.c | 151 (S_ISBLK(st.st_mode) || S_ISCHR(st.st_mode))) 169 if (S_ISREG(st.st_mode))
|
/external/f2fs-tools/tools/ |
fibmap.c | 39 printf("mode [0x%8x : %d]\n", st->st_mode, st->st_mode); 68 if (S_ISBLK(bdev_stat.st_mode)) {
|
/external/libcap-ng/libcap-ng-0.7/utils/ |
filecap.c | 49 if (S_ISREG(sb->st_mode) == 0) 119 if (S_ISREG(sbuf.st_mode) && path == NULL && 123 } else if (S_ISDIR(sbuf.st_mode) && path == NULL
|
/external/toybox/toys/posix/ |
du.c | 85 else if (!S_ISDIR(st->st_mode) && st->st_nlink > 1) { 130 if (S_ISDIR(node->st.st_mode)) { 142 || (S_ISDIR(node->st.st_mode) && !(toys.optflags & FLAG_s)))
|
ls.c | 94 mode_t mode = st->st_mode; 144 if (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) { 309 if (dt && S_ISDIR(dt->st.st_mode) && !dt->next && !(flags&(FLAG_d|FLAG_R))) 401 mode_t mode = st->st_mode; 455 if (S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode)) 470 color = color_from_mode(st->st_mode); 486 else color = color_from_mode(st2.st_mode); 509 if ((flags & FLAG_d) || !S_ISDIR(sort[ul]->st.st_mode)) continue [all...] |
/system/core/base/ |
file.cpp | 153 bool file_type_removable = (result == 0 && S_ISREG(st.st_mode)); 156 bool file_type_removable = (result == 0 && (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode)));
|
/external/e2fsprogs/lib/ext2fs/ |
ismounted.c | 102 if (S_ISBLK(st_buf.st_mode)) { 117 if (S_ISBLK(st_buf.st_mode)) { 297 S_ISBLK(st_buf.st_mode)) 324 S_ISBLK(st_buf.st_mode) && 378 if (stat(device, &st_buf) == 0 && S_ISBLK(st_buf.st_mode)) {
|
/external/llvm/lib/Support/Unix/ |
Path.inc | 266 if (!S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode) && !S_ISLNK(buf.st_mode)) 321 if (!S_ISREG(buf.st_mode)) 361 if (S_ISDIR(Status.st_mode)) 363 else if (S_ISREG(Status.st_mode)) 365 else if (S_ISBLK(Status.st_mode)) 367 else if (S_ISCHR(Status.st_mode)) 369 else if (S_ISFIFO(Status.st_mode)) 371 else if (S_ISSOCK(Status.st_mode)) [all...] |
/external/toybox/toys/pending/ |
tar.c | 108 else if (!S_ISDIR(st->st_mode) && st->st_nlink > 1) { 176 if (S_ISDIR(st->st_mode) && name[strlen(name)-1] != '/') { 194 itoo(hdr.mode, sizeof(hdr.mode), st->st_mode &07777); 207 } else if (S_ISREG(st->st_mode)) { 216 } else if (S_ISLNK(st->st_mode)) { 227 else if (S_ISDIR(st->st_mode)) hdr.type = '5'; 228 else if (S_ISFIFO(st->st_mode)) hdr.type = '6'; 229 else if (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode)) { 230 hdr.type = (S_ISCHR(st->st_mode))?'3':'4' [all...] |
/external/squashfs-tools/squashfs-tools/ |
action.c | 851 static int file_type_match(int st_mode, int type) 855 return S_ISDIR(st_mode); 857 return S_ISREG(st_mode); 859 return S_ISREG(st_mode) || S_ISDIR(st_mode) || 860 S_ISCHR(st_mode) || S_ISBLK(st_mode) || 861 S_ISFIFO(st_mode) || S_ISSOCK(st_mode); 863 return S_ISLNK(st_mode); 884 int st_mode = dir_ent->inode->buf.st_mode; local [all...] |
/frameworks/native/cmds/rawbu/ |
backup.cpp | 131 if(S_ISDIR(statBuffer.st_mode)) { 248 if (!write_int32(fh, st->st_mode)) return 0; 316 if(S_ISDIR(statBuffer.st_mode)) { 327 } else if (S_ISREG(statBuffer.st_mode)) { 474 st->st_mode = read_int32(fh, -1); 475 if (st->st_mode == (mode_t)-1) { 498 st->st_mode &= (S_IRWXU|S_IRWXG|S_IRWXO); 553 if (mkdir(path, statBuffer.st_mode) != 0) { 595 if (chmod(path, statBuffer.st_mode&(S_IRWXU|S_IRWXG|S_IRWXO)) != 0) { 597 typeName, path, statBuffer.st_mode, strerror(errno)) [all...] |
/system/extras/ext4_utils/ |
make_ext4fs.c | 211 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO); 223 int dir = S_ISDIR(stat.st_mode); 235 if (selabel_lookup(sehnd, &dentries[i].secon, dentries[i].path, stat.st_mode) < 0) { 244 if (S_ISREG(stat.st_mode)) { 246 } else if (S_ISDIR(stat.st_mode)) { 249 } else if (S_ISCHR(stat.st_mode)) { 251 } else if (S_ISBLK(stat.st_mode)) { 253 } else if (S_ISFIFO(stat.st_mode)) { 255 } else if (S_ISSOCK(stat.st_mode)) { 257 } else if (S_ISLNK(stat.st_mode)) { [all...] |
/bionic/libc/bionic/ |
getentropy_linux.c | 255 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode)) { 492 if (S_ISREG(st.st_mode) || 493 S_ISFIFO(st.st_mode) || 494 S_ISSOCK(st.st_mode)) { 502 if (S_ISCHR(st.st_mode)) { 505 } else if (S_ISSOCK(st.st_mode)) {
|
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/ |
fake_filesystem.py | 79 >>> stat.S_ISREG(os_module.stat(pathname).st_mode) 81 >>> stat.S_ISDIR(os_module.stat(os_module.path.dirname(pathname)).st_mode) 156 st_mode: user-specified, otherwise S_IFREG 165 def __init__(self, name, st_mode=stat.S_IFREG | PERM_DEF_FILE, 171 st_mode: the stat.S_IF* constant representing the file type (i.e. 178 self.st_mode = st_mode 275 return '%s(%o)' % (self.name, self.st_mode) 712 if stat.S_ISLNK(current_dir.st_mode): 904 def CreateFile(self, file_path, st_mode=stat.S_IFREG | PERM_DEF_FILE [all...] |
fake_tempfile_test.py | 142 self.assertEqual(self.filesystem.GetObject(temporary[1]).st_mode, 159 self.assertEqual(self.filesystem.GetObject(temporary[1]).st_mode, 170 self.assertEqual(self.filesystem.GetObject(dirname).st_mode,
|
/external/chromium-trace/catapult/third_party/pyfakefs/pyfakefs/ |
fake_filesystem.py | 79 >>> stat.S_ISREG(os_module.stat(pathname).st_mode) 81 >>> stat.S_ISDIR(os_module.stat(os_module.path.dirname(pathname)).st_mode) 173 st_mode: user-specified, otherwise S_IFREG 182 def __init__(self, name, st_mode=stat.S_IFREG | PERM_DEF_FILE, 188 st_mode: the stat.S_IF* constant representing the file type (i.e. 195 self.st_mode = st_mode 293 return '%s(%o)' % (self.name, self.st_mode) 730 if stat.S_ISLNK(current_dir.st_mode): 922 def CreateFile(self, file_path, st_mode=stat.S_IFREG | PERM_DEF_FILE [all...] |
/external/autotest/client/site_tests/security_OpenFDs/ |
security_OpenFDs.py | 29 @param mode: mode bits, usually from 'stat(path).st_mode' 50 link_st_mode = os.lstat(link_path).st_mode 54 real_st_mode = os.stat(link_path).st_mode
|
/external/e2fsprogs/misc/ |
util.c | 97 if (!S_ISBLK(s.st_mode) && !S_ISCHR(s.st_mode)) 99 if (!S_ISBLK(s.st_mode))
|
/hardware/ti/omap4-aah/security/tf_daemon/ |
smc_properties.c | 149 if ((buf.st_mode & S_IFDIR) != S_IFDIR) 157 if ((buf.st_mode & S_IREAD) != S_IREAD) 163 if ((buf.st_mode & S_IWRITE) != S_IWRITE)
|
/hardware/ti/omap4xxx/security/tf_daemon/ |
smc_properties.c | 149 if ((buf.st_mode & S_IFDIR) != S_IFDIR) 157 if ((buf.st_mode & S_IREAD) != S_IREAD) 163 if ((buf.st_mode & S_IWRITE) != S_IWRITE)
|
/external/elfutils/libdw/ |
dwarf_begin.c | 78 if (fstat (fd, &st) == 0 && ! S_ISREG (st.st_mode))
|