/external/libbrillo/brillo/ |
D | file_utils_unittest.cc | 82 mode_t old_umask = umask(kPermissions777); in TEST_F() 157 const mode_t mask = 0000; in TEST_F() 158 const mode_t mode = 0666; in TEST_F() 161 const mode_t old_mask = umask(mask); in TEST_F() 170 const mode_t mask = 0000; in TEST_F() 171 const mode_t mode = 0700; in TEST_F() 183 const mode_t old_mask = umask(mask); in TEST_F() 198 const mode_t mask = 0000; in TEST_F() 199 const mode_t mode = 0616; in TEST_F() 202 const mode_t old_mask = umask(mask); in TEST_F() [all …]
|
/external/libchrome/base/test/ |
D | test_file_util_posix.cc | 27 bool DenyFilePermission(const FilePath& path, mode_t permission) { in DenyFilePermission() 48 *length = sizeof(mode_t); in GetPermissionInfo() 49 mode_t* mode = new mode_t; in GetPermissionInfo() 64 DCHECK_EQ(sizeof(mode_t), length); in RestorePermissionInfo() 65 mode_t* mode = reinterpret_cast<mode_t*>(info); in RestorePermissionInfo()
|
/external/rust/crates/libc/src/unix/bsd/netbsdlike/ |
D | mod.rs | 2 pub type mode_t = u32; typedef 73 pub mode: ::mode_t, 153 pub const S_IFIFO: mode_t = 4096; 154 pub const S_IFCHR: mode_t = 8192; 155 pub const S_IFBLK: mode_t = 24576; 156 pub const S_IFDIR: mode_t = 16384; 157 pub const S_IFREG: mode_t = 32768; 158 pub const S_IFLNK: mode_t = 40960; 159 pub const S_IFSOCK: mode_t = 49152; 160 pub const S_IFMT: mode_t = 61440; [all …]
|
/external/python/cpython3/Modules/ |
D | _stat.c | 31 typedef unsigned short mode_t; typedef 247 static mode_t 251 mode_t mode; in _PyLong_AsMode_t() 255 return (mode_t)-1; in _PyLong_AsMode_t() 257 mode = (mode_t)value; in _PyLong_AsMode_t() 260 return (mode_t)-1; in _PyLong_AsMode_t() 270 mode_t mode = _PyLong_AsMode_t(omode); \ 271 if ((mode == (mode_t)-1) && PyErr_Occurred()) \ 324 mode_t mode = _PyLong_AsMode_t(omode); in stat_S_IMODE() 325 if ((mode == (mode_t)-1) && PyErr_Occurred()) in stat_S_IMODE() [all …]
|
/external/rust/crates/libc/src/unix/newlib/ |
D | mod.rs | 12 pub type mode_t = ::c_uint; typedef 110 pub st_mode: ::mode_t, 386 pub const S_BLKSIZE: ::mode_t = 1024; 387 pub const S_IREAD: ::mode_t = 256; 388 pub const S_IWRITE: ::mode_t = 128; 389 pub const S_IEXEC: ::mode_t = 64; 390 pub const S_ENFMT: ::mode_t = 1024; 391 pub const S_IFMT: ::mode_t = 61440; 392 pub const S_IFDIR: ::mode_t = 16384; 393 pub const S_IFCHR: ::mode_t = 8192; [all …]
|
/external/strace/linux/ |
D | asm_stat.h | 8 # undef mode_t 19 # define mode_t __kernel_mode_t macro 32 # undef mode_t 43 # define mode_t mode_t macro
|
/external/ltp/testcases/kernel/syscalls/nftw/ |
D | tools.c | 49 chmod("./tmp/data/d333", (mode_t) S_IRWXU | S_IRWXG | S_IRWXO); in cleanup_function() 50 chmod("./tmp/data/d666", (mode_t) S_IRWXU | S_IRWXG | S_IRWXO); in cleanup_function() 51 chmod("./tmp/data/dirg/dir_right.1", (mode_t) S_IRWXU | S_IRWXG | in cleanup_function() 122 if (chmod("./tmp/data/d333", (mode_t) S_IWUSR | S_IXUSR | S_IWGRP | in setup_path() 130 if (chmod("./tmp/data/d666", (mode_t) S_IRUSR | S_IWUSR | S_IRGRP | in setup_path() 138 if (chmod("./tmp/data/dirg/dir_right.1", (mode_t) S_IWUSR | S_IXUSR | in setup_path()
|
D | tools64.c | 48 chmod("./tmp/data/d333", (mode_t) S_IRWXU | S_IRWXG | S_IRWXO); in cleanup_function() 49 chmod("./tmp/data/d666", (mode_t) S_IRWXU | S_IRWXG | S_IRWXO); in cleanup_function() 50 chmod("./tmp/data/dirg/dir_right.1", (mode_t) S_IRWXU | S_IRWXG | in cleanup_function() 121 if (chmod("./tmp/data/d333", (mode_t) S_IWUSR | S_IXUSR | S_IWGRP | in setup_path() 129 if (chmod("./tmp/data/d666", (mode_t) S_IRUSR | S_IWUSR | S_IRGRP | in setup_path() 137 if (chmod("./tmp/data/dirg/dir_right.1", (mode_t) S_IWUSR | S_IXUSR | in setup_path()
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod05.c | 41 #define MODE_RWX (mode_t)(S_IRWXU | S_IRWXG | S_IRWXO) 42 #define DIR_MODE (mode_t)(S_ISVTX | S_ISGID | S_IFDIR) 43 #define PERMS (mode_t)(MODE_RWX | DIR_MODE) 49 mode_t dir_mode; in test_chmod()
|
/external/rust/crates/libc/src/unix/hermit/ |
D | mod.rs | 23 pub type mode_t = u32; typedef 93 pub st_mode: ::mode_t, 865 pub const S_BLKSIZE: ::mode_t = 1024; 866 pub const S_IREAD: ::mode_t = 256; 867 pub const S_IWRITE: ::mode_t = 128; 868 pub const S_IEXEC: ::mode_t = 64; 869 pub const S_ENFMT: ::mode_t = 1024; 870 pub const S_IFMT: ::mode_t = 61440; 871 pub const S_IFDIR: ::mode_t = 16384; 872 pub const S_IFCHR: ::mode_t = 8192; [all …]
|
/external/libfuse/include/ |
D | fuse.h | 329 int (*mknod) (const char *, mode_t, dev_t); 337 int (*mkdir) (const char *, mode_t); 367 int (*chmod) (const char *, mode_t, struct fuse_file_info *fi); 609 int (*create) (const char *, mode_t, struct fuse_file_info *); 808 mode_t umask; 1162 int fuse_fs_create(struct fuse_fs *fs, const char *path, mode_t mode, 1168 int fuse_fs_chmod(struct fuse_fs *fs, const char *path, mode_t mode, 1179 int fuse_fs_mknod(struct fuse_fs *fs, const char *path, mode_t mode, 1181 int fuse_fs_mkdir(struct fuse_fs *fs, const char *path, mode_t mode);
|
/external/perfetto/include/perfetto/ext/base/ |
D | scoped_file.h | 28 typedef int mode_t; typedef 41 constexpr mode_t kInvalidMode = static_cast<mode_t>(-1); 88 mode_t mode = kInvalidMode) {
|
/external/autotest/client/deps/fakegudev/src/ |
D | fakesyscalls.c | 196 mode_t mode = S_IRUSR; /* Make compiler happy. Remain restrictive. */ in open() 212 mode = va_arg (ap, mode_t); in open() 227 creat (const char *pathname, mode_t mode) in creat() 229 static int(*realfunc)(const char *, mode_t); in creat() 243 realfunc = (int(*)(const char *, mode_t))dlsym (RTLD_NEXT, k_func_creat); in creat()
|
/external/rust/crates/libc/src/unix/bsd/freebsdlike/ |
D | mod.rs | 1 pub type mode_t = u16; typedef 365 pub const S_IFIFO: mode_t = 4096; 366 pub const S_IFCHR: mode_t = 8192; 367 pub const S_IFBLK: mode_t = 24576; 368 pub const S_IFDIR: mode_t = 16384; 369 pub const S_IFREG: mode_t = 32768; 370 pub const S_IFLNK: mode_t = 40960; 371 pub const S_IFSOCK: mode_t = 49152; 372 pub const S_IFMT: mode_t = 61440; 373 pub const S_IEXEC: mode_t = 64; [all …]
|
/external/ltp/include/ |
D | safe_macros_fn.h | 37 void (*cleanup_fn)(void), const char *pathname, mode_t mode); 55 void (*cleanup_fn)(void), const char *pathname, mode_t mode); 128 const char *path, mode_t mode); 131 int fd, mode_t mode); 152 void (*cleanup_fn)(void), const char *pathname, mode_t mode);
|
/external/rust/crates/libc/src/fuchsia/ |
D | aarch64.rs | 11 pub st_mode: ::mode_t, 33 pub st_mode: ::mode_t, 58 pub mode: ::mode_t,
|
/external/rust/crates/libc/src/unix/haiku/ |
D | mod.rs | 17 pub type mode_t = u32; typedef 183 pub st_mode: mode_t, 573 pub const S_IFIFO: ::mode_t = 4096; 574 pub const S_IFCHR: ::mode_t = 8192; 575 pub const S_IFBLK: ::mode_t = 24576; 576 pub const S_IFDIR: ::mode_t = 16384; 577 pub const S_IFREG: ::mode_t = 32768; 578 pub const S_IFLNK: ::mode_t = 40960; 579 pub const S_IFSOCK: ::mode_t = 49152; 580 pub const S_IFMT: ::mode_t = 61440; [all …]
|
/external/u-boot/fs/reiserfs/ |
D | mode_string.c | 30 #undef mode_t 31 #define mode_t unsigned short macro 34 static const mode_t mode_flags[] = {
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown03.c | 45 #define FILE_MODE (mode_t)(S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) 46 #define NEW_PERMS (mode_t)(S_IFREG | S_IRWXU | S_IRWXG | S_ISUID | S_ISGID) 47 #define FCHOWN_PERMS (mode_t)(NEW_PERMS & ~(S_ISUID | S_ISGID))
|
/external/strace/tests/ |
D | umask.c | 5 test_umask(const mode_t mode) in test_umask() 7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
|
/external/strace/tests-m32/ |
D | umask.c | 5 test_umask(const mode_t mode) in test_umask() 7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
|
/external/strace/tests-mx32/ |
D | umask.c | 5 test_umask(const mode_t mode) in test_umask() 7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
|
/external/e2fsprogs/contrib/android/ |
D | basefs_allocator.h | 12 const char *name, ext2_ino_t parent_ino, ext2_ino_t root, mode_t mode); 14 const char *name, ext2_ino_t parent_ino, ext2_ino_t root, mode_t mode);
|
/external/u-boot/fs/yaffs2/ |
D | yaffsfs.h | 148 int yaffs_chmod(const YCHAR *path, mode_t mode); 149 int yaffs_fchmod(int fd, mode_t mode); 151 int yaffs_mkdir(const YCHAR *path, mode_t mode) ; 174 int yaffs_mknod(const YCHAR *pathname, mode_t mode, dev_t dev);
|
/external/rust/crates/libc/src/unix/linux_like/ |
D | mod.rs | 506 pub const S_IFIFO: ::mode_t = 4096; 507 pub const S_IFCHR: ::mode_t = 8192; 508 pub const S_IFBLK: ::mode_t = 24576; 509 pub const S_IFDIR: ::mode_t = 16384; 510 pub const S_IFREG: ::mode_t = 32768; 511 pub const S_IFLNK: ::mode_t = 40960; 512 pub const S_IFSOCK: ::mode_t = 49152; 513 pub const S_IFMT: ::mode_t = 61440; 514 pub const S_IRWXU: ::mode_t = 448; 515 pub const S_IXUSR: ::mode_t = 64; [all …]
|