/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 …]
|
D | file_utils.h | 75 mode_t mode); 79 mode_t mode);
|
/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/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/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 | 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()
|
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()
|
/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/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/perfetto/include/perfetto/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/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);
|
D | tst_safe_posix_ipc.h | 38 mode_t mode; in safe_mq_open() 47 mode = va_arg(ap, mode_t); in safe_mq_open()
|
/external/kernel-headers/original/uapi/asm-mips/asm/ |
D | stat.h | 23 mode_t st_mode; 58 mode_t st_mode; 99 mode_t st_mode;
|
/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/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/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/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/ |
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/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod01.c | 23 mode_t file_mode, mode; in verify_fchmod() 26 mode = (mode_t)modes[ind]; in verify_fchmod()
|
/external/python/cpython2/Modules/ |
D | sgimodule.c | 23 extern char *_getpty(int *, int, mode_t, int); 36 name = _getpty(&fildes, oflag, (mode_t)mode, nofork); in sgi__getpty()
|
/external/kmod/testsuite/ |
D | path.c | 150 mode_t mode; \ 154 mode = va_arg(ap, mode_t); \ 186 WRAP_2ARGS(int, -1, mkdir, mode_t);
|
/external/selinux/libselinux/include/selinux/ |
D | selinux.h | 391 extern security_class_t mode_to_security_class(mode_t mode); 467 mode_t mode, char ** con); 472 mode_t mode, char ** con); 664 extern int selinux_file_context_verify(const char *path, mode_t mode);
|
/external/openssh/openbsd-compat/ |
D | bsd-cygwin_util.c | 46 mode_t mode; in binary_open() 49 mode = va_arg(ap, mode_t); in binary_open()
|