/external/libmtp/util/ |
mtp-probe.c | 205 if (S_ISDIR(st.st_mode) && !regexec(&r, dent->d_name, 0, 0, 0)) { 272 if (S_ISDIR(st.st_mode)) {
|
/external/linux-kselftest/tools/testing/selftests/ia64/ |
aliasing-test.c | 103 if (r == 0 && S_ISDIR(buf.st_mode)) { 192 if (r == 0 && S_ISDIR(buf.st_mode)) {
|
/external/ltp/lib/ |
tst_device.c | 64 if (stat(dev_path, &st) == 0 && S_ISBLK(st.st_mode)) 238 if (!S_ISBLK(st.st_mode)) {
|
/external/ltp/testcases/kernel/device-drivers/drm/user_space/ |
user_tdrm.c | 67 if (!(st.st_mode & S_IFDIR)) { 99 if ((!(st.st_mode & S_IFCHR)) || (st.st_rdev != devt)) {
|
/external/ltp/testcases/kernel/pty/ |
pty01.c | 102 if (st.st_mode != (S_IFCHR | S_IRUSR | S_IWUSR | S_IWGRP)) { 103 tst_brkm(TBROK, NULL, "mode mismatch (mode=%o)", st.st_mode);
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
fanotify04.c | 128 } else if ((int)(st.st_mode & S_IFMT) != mask) { 130 "(%o != %o)", st.st_mode & S_IFMT, mask);
|
/external/ltp/testcases/kernel/syscalls/open/ |
open14.c | 209 if ((st.st_mode & ~S_IFMT) != exp_mode) { 212 st.st_mode & ~S_IFMT, exp_mode);
|
/external/ltp/testcases/kernel/syscalls/openat/ |
openat03.c | 220 if ((st.st_mode & ~S_IFMT) != exp_mode) { 223 st.st_mode & ~S_IFMT, exp_mode);
|
/external/mesa3d/src/gallium/auxiliary/hud/ |
hud_diskstat.c | 277 if (!S_ISREG(stat_buf.st_mode)) 303 if (!S_ISREG(stat_buf.st_mode))
|
/external/openssh/ |
sshpty.c | 239 if ((st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO)) != mode) { 242 (st.st_mode & (S_IRGRP | S_IROTH)) == 0)
|
scp.c | 790 switch (stb.st_mode & S_IFMT) { 814 (u_int) (stb.st_mode & FILEMODEMASK), 892 (u_int) (statp->st_mode & FILEMODEMASK), 0, last); 954 if (stat(targ, &stb) == 0 && S_ISDIR(stb.st_mode)) 1077 if (!S_ISDIR(stb.st_mode)) { 1158 if (wrerr == NO && (!exists || S_ISREG(stb.st_mode)) && 1296 if (S_ISDIR(stb.st_mode))
|
/external/python/cpython2/Lib/distutils/tests/ |
test_dir_util.py | 62 stat.S_IMODE(os.stat(self.target).st_mode), 0o700 & ~umask) 65 stat.S_IMODE(os.stat(self.target2).st_mode), 0o555 & ~umask)
|
/external/python/cpython2/Lib/test/ |
test_dumbdbm.py | 59 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode) 61 self.assertEqual(stat.S_IMODE(st.st_mode), expected_mode)
|
/external/python/cpython3/Lib/distutils/tests/ |
test_dir_util.py | 64 stat.S_IMODE(os.stat(self.target).st_mode), 0o700 & ~umask) 67 stat.S_IMODE(os.stat(self.target2).st_mode), 0o555 & ~umask)
|
/external/python/cpython3/Lib/ |
zipapp.py | 73 os.chmod(new_archive, os.stat(new_archive).st_mode | stat.S_IEXEC) 147 target.chmod(target.stat().st_mode | stat.S_IEXEC)
|
/external/python/cpython3/Python/ |
fileutils.c | 780 result->st_mode = attributes_to_mode(info->dwFileAttributes); 791 result->st_mode ^= (result->st_mode & S_IFMT); 793 result->st_mode |= S_IFLNK; 843 status->st_mode = _S_IFCHR; 845 status->st_mode = _S_IFIFO; 903 call stat() otherwise. Only fill st_mode attribute on Windows. 922 statbuf->st_mode = wstatbuf.st_mode; [all...] |
/external/toybox/toys/pending/ |
mdev.c | 272 if (S_ISDIR(node->st.st_mode) || S_ISLNK(node->st.st_mode)) {
|
mke2fs.c | 309 else if (S_ISREG(that->st.st_mode)) { 336 if (S_ISDIR(current->st.st_mode)) current->st.st_nlink = 2; 518 in->mode = SWAP_LE32(that->st.st_mode); 582 dti->st.st_mode = S_IFDIR|0755; 591 dtb->st.st_mode = S_IFDIR|0755;
|
/external/u-boot/scripts/dtc/ |
dtc.c | 145 if (S_ISDIR(statbuf.st_mode)) 148 if (!S_ISREG(statbuf.st_mode))
|
/external/vboot_reference/cgpt/ |
cgpt_find.c | 191 if (!S_ISBLK(statbuf.st_mode)) 200 if (!S_ISLNK(statbuf.st_mode))
|
/frameworks/av/media/libmedia/ |
MediaScanner.cpp | 196 if (S_ISREG(statbuf.st_mode)) { 198 } else if (S_ISDIR(statbuf.st_mode)) {
|
/external/selinux/sandbox/ |
seunshare.c | 171 if (S_ISLNK(st->st_mode)) { 183 if (S_ISLNK(st->st_mode)) { 197 (one)->st_mode == (two)->st_mode) 213 if (! S_ISDIR(st_out->st_mode)) {
|
/external/ltp/testcases/kernel/syscalls/symlink/ |
symlink01.c | 627 if ((asymlink.st_mode & S_IFMT) == S_IFLNK) [all...] |
/external/webrtc/webrtc/base/ |
unixfilesystem.cc | 102 return S_ISDIR(st.st_mode) != 0; 264 return S_ISDIR(st.st_mode); 319 return res == 0 && !S_ISDIR(st.st_mode);
|
/external/squashfs-tools/squashfs-tools/ |
mksquashfs.c | 1013 base->mode = SQUASHFS_MODE(buf->st_mode); [all...] |