Home
last modified time | relevance | path

Searched refs:mode_t (Results 1 – 25 of 208) sorted by relevance

123456789

/external/libbrillo/brillo/
Dfile_utils_unittest.cc82 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 …]
Dfile_utils.h75 mode_t mode);
79 mode_t mode);
/external/python/cpython3/Modules/
D_stat.c31 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/
Dtest_file_util_posix.cc27 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/
Dasm_stat.h8 # 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/
Dtools64.c48 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()
Dtools.c49 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/
Dchmod05.c41 #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/
Dfakesyscalls.c196 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/
Dscoped_file.h28 typedef int mode_t; typedef
41 constexpr mode_t kInvalidMode = static_cast<mode_t>(-1);
88 mode_t mode = kInvalidMode) {
/external/ltp/include/
Dsafe_macros_fn.h37 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);
Dtst_safe_posix_ipc.h38 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/
Dstat.h23 mode_t st_mode;
58 mode_t st_mode;
99 mode_t st_mode;
/external/u-boot/fs/reiserfs/
Dmode_string.c30 #undef mode_t
31 #define mode_t unsigned short macro
34 static const mode_t mode_flags[] = {
/external/ltp/testcases/kernel/syscalls/fchown/
Dfchown03.c45 #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/
Dyaffsfs.h148 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/
Dumask.c5 test_umask(const mode_t mode) in test_umask()
7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
/external/strace/tests-m32/
Dumask.c5 test_umask(const mode_t mode) in test_umask()
7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
/external/strace/tests/
Dumask.c5 test_umask(const mode_t mode) in test_umask()
7 mode_t rc = umask(0xffff0000 | mode); in test_umask()
/external/e2fsprogs/contrib/android/
Dbasefs_allocator.h12 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/
Dfchmod01.c23 mode_t file_mode, mode; in verify_fchmod()
26 mode = (mode_t)modes[ind]; in verify_fchmod()
/external/python/cpython2/Modules/
Dsgimodule.c23 extern char *_getpty(int *, int, mode_t, int);
36 name = _getpty(&fildes, oflag, (mode_t)mode, nofork); in sgi__getpty()
/external/kmod/testsuite/
Dpath.c150 mode_t mode; \
154 mode = va_arg(ap, mode_t); \
186 WRAP_2ARGS(int, -1, mkdir, mode_t);
/external/selinux/libselinux/include/selinux/
Dselinux.h391 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/
Dbsd-cygwin_util.c46 mode_t mode; in binary_open()
49 mode = va_arg(ap, mode_t); in binary_open()

123456789