Home
last modified time | relevance | path

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

12345678910>>...16

/third_party/musl/libc-test/src/api/
Dsys_stat.c12 T(mode_t) in f()
27 F(mode_t, st_mode) in f()
86 {int(*p)(const char*,mode_t) = chmod;} in f()
87 {int(*p)(int,mode_t) = fchmod;} in f()
88 {int(*p)(int,const char*,mode_t,int) = fchmodat;} in f()
93 {int(*p)(const char*,mode_t) = mkdir;} in f()
94 {int(*p)(int,const char*,mode_t) = mkdirat;} in f()
95 {int(*p)(const char*,mode_t) = mkfifo;} in f()
96 {int(*p)(int,const char*,mode_t) = mkfifoat;} in f()
98 {int(*p)(const char*,mode_t,dev_t) = mknod;} in f()
[all …]
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dstat.h77 int chmod(const char *, mode_t);
78 int fchmod(int, mode_t);
79 int fchmodat(int, const char *, mode_t, int);
80 mode_t umask(mode_t);
81 int mkdir(const char *, mode_t);
82 int mkfifo(const char *, mode_t);
83 int mkdirat(int, const char *, mode_t);
84 int mkfifoat(int, const char *, mode_t);
87 int mknod(const char *, mode_t, dev_t);
88 int mknodat(int, const char *, mode_t, dev_t);
[all …]
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dstat.h77 int chmod(const char *, mode_t);
78 int fchmod(int, mode_t);
79 int fchmodat(int, const char *, mode_t, int);
80 mode_t umask(mode_t);
81 int mkdir(const char *, mode_t);
82 int mkfifo(const char *, mode_t);
83 int mkdirat(int, const char *, mode_t);
84 int mkfifoat(int, const char *, mode_t);
87 int mknod(const char *, mode_t, dev_t);
88 int mknodat(int, const char *, mode_t, dev_t);
[all …]
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dstat.h77 int chmod(const char *, mode_t);
78 int fchmod(int, mode_t);
79 int fchmodat(int, const char *, mode_t, int);
80 mode_t umask(mode_t);
81 int mkdir(const char *, mode_t);
82 int mkfifo(const char *, mode_t);
83 int mkdirat(int, const char *, mode_t);
84 int mkfifoat(int, const char *, mode_t);
87 int mknod(const char *, mode_t, dev_t);
88 int mknodat(int, const char *, mode_t, dev_t);
[all …]
/third_party/musl/porting/uniproton/kernel/include/sys/
Dstat.h77 int chmod(const char *, mode_t);
78 int fchmod(int, mode_t);
79 int fchmodat(int, const char *, mode_t, int);
80 mode_t umask(mode_t);
81 int mkdir(const char *, mode_t);
82 int mkfifo(const char *, mode_t);
83 int mkdirat(int, const char *, mode_t);
84 int mkfifoat(int, const char *, mode_t);
87 int mknod(const char *, mode_t, dev_t);
88 int mknodat(int, const char *, mode_t, dev_t);
[all …]
/third_party/musl/porting/linux/user/include/sys/
Dstat.h77 int chmod(const char *, mode_t);
78 int fchmod(int, mode_t);
79 int fchmodat(int, const char *, mode_t, int);
80 mode_t umask(mode_t);
81 int mkdir(const char *, mode_t);
82 int mkfifo(const char *, mode_t);
83 int mkdirat(int, const char *, mode_t);
84 int mkfifoat(int, const char *, mode_t);
87 int mknod(const char *, mode_t, dev_t);
88 int mknodat(int, const char *, mode_t, dev_t);
[all …]
/third_party/musl/include/sys/
Dstat.h77 int chmod(const char *, mode_t);
78 int fchmod(int, mode_t);
79 int fchmodat(int, const char *, mode_t, int);
80 mode_t umask(mode_t);
81 int mkdir(const char *, mode_t);
82 int mkfifo(const char *, mode_t);
83 int mkdirat(int, const char *, mode_t);
84 int mkfifoat(int, const char *, mode_t);
87 int mknod(const char *, mode_t, dev_t);
88 int mknodat(int, const char *, mode_t, dev_t);
[all …]
/third_party/musl/ndk_musl_include/sys/
Dstat.h77 int chmod(const char *, mode_t);
78 int fchmod(int, mode_t);
79 int fchmodat(int, const char *, mode_t, int);
80 mode_t umask(mode_t);
81 int mkdir(const char *, mode_t);
82 int mkfifo(const char *, mode_t);
83 int mkdirat(int, const char *, mode_t);
84 int mkfifoat(int, const char *, mode_t);
87 int mknod(const char *, mode_t, dev_t);
88 int mknodat(int, const char *, mode_t, dev_t);
/third_party/musl/libc-test/src/functionalext/supplement/stat/stat_gtest/
Dstat_fstatat64_test.cpp23 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
29 mode_t mask = S_IRWXU | S_IRWXG | S_IRWXO;
30 EXPECT_EQ(0755 & mask, static_cast<mode_t>(st.st_mode) & mask);
45 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
52 mode_t mask = S_IRWXU | S_IRWXG | S_IRWXO;
53 EXPECT_EQ(0755 & mask, static_cast<mode_t>(st.st_mode) & mask);
68 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
75 mode_t mask = S_IRWXU | S_IRWXG | S_IRWXO;
76 EXPECT_EQ(0755 & mask, static_cast<mode_t>(st.st_mode) & mask);
Dstat_fstatat_test.cpp21 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
28 mode_t mask = S_IRWXU | S_IRWXG | S_IRWXO;
29 EXPECT_EQ(0755 & mask, static_cast<mode_t>(st.st_mode) & mask);
43 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
50 mode_t mask = S_IRWXU | S_IRWXG | S_IRWXO;
51 EXPECT_EQ(0755 & mask, static_cast<mode_t>(st.st_mode) & mask);
/third_party/musl/ndk_musl_include/fortify/
Dstat.h26 mode_t __umask_chk(mode_t);
27 mode_t __umask_real(mode_t mode) __DIAGNOSE_RENAME(umask);
32 mode_t umask(mode_t mode) in umask()
/third_party/musl/porting/linux/user/include/fortify/
Dstat.h26 mode_t __umask_chk(mode_t);
27 mode_t __umask_real(mode_t mode) __DIAGNOSE_RENAME(umask);
32 mode_t umask(mode_t mode) in umask()
/third_party/python/Modules/
D_stat.c31 typedef unsigned short mode_t; typedef
251 static mode_t
255 mode_t mode; in _PyLong_AsMode_t()
259 return (mode_t)-1; in _PyLong_AsMode_t()
261 mode = (mode_t)value; in _PyLong_AsMode_t()
264 return (mode_t)-1; in _PyLong_AsMode_t()
274 mode_t mode = _PyLong_AsMode_t(omode); \
275 if ((mode == (mode_t)-1) && PyErr_Occurred()) \
328 mode_t mode = _PyLong_AsMode_t(omode); in stat_S_IMODE()
329 if ((mode == (mode_t)-1) && PyErr_Occurred()) in stat_S_IMODE()
[all …]
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/
Dmod.rs3 pub type mode_t = u32; typedef
78 pub mode: ::mode_t,
171 pub const S_IFIFO: mode_t = 4096;
172 pub const S_IFCHR: mode_t = 8192;
173 pub const S_IFBLK: mode_t = 24576;
174 pub const S_IFDIR: mode_t = 16384;
175 pub const S_IFREG: mode_t = 32768;
176 pub const S_IFLNK: mode_t = 40960;
177 pub const S_IFSOCK: mode_t = 49152;
178 pub const S_IFMT: mode_t = 61440;
[all …]
/third_party/rust/crates/libc/src/unix/newlib/
Dmod.rs22 pub type mode_t = ::c_uint; typedef
412 pub const S_BLKSIZE: ::mode_t = 1024;
413 pub const S_IREAD: ::mode_t = 256;
414 pub const S_IWRITE: ::mode_t = 128;
415 pub const S_IEXEC: ::mode_t = 64;
416 pub const S_ENFMT: ::mode_t = 1024;
417 pub const S_IFMT: ::mode_t = 61440;
418 pub const S_IFDIR: ::mode_t = 16384;
419 pub const S_IFCHR: ::mode_t = 8192;
420 pub const S_IFBLK: ::mode_t = 24576;
[all …]
/third_party/ntfs-3g/include/ntfs-3g/
Dsecurity.h148 mode_t umask; /* umask of requesting thread */
171 mode_t mode;
227 int ntfs_set_mode(struct SECURITY_CONTEXT *scx, ntfs_inode *ni, mode_t mode);
232 ntfs_inode *ni, gid_t *pgid, mode_t *pdsetgid);
239 mode_t mode, BOOL isdir);
242 uid_t uid, gid_t gid, mode_t mode, BOOL isdir);
247 ntfs_inode *ni, uid_t uid, gid_t gid, mode_t mode);
251 mode_t mode, struct POSIX_SECURITY *pxdesc);
254 ntfs_inode *ni, uid_t uid, gid_t gid, mode_t mode);
267 ntfs_inode *dir_ni, mode_t mode);
Dacls.h150 int ntfs_merge_mode_posix(struct POSIX_SECURITY *pxdesc, mode_t mode);
152 const struct POSIX_SECURITY *pxdesc, mode_t mode,
153 mode_t umask, BOOL isdir);
155 const struct POSIX_SECURITY *pxdesc, mode_t mode,
156 mode_t umask, BOOL isdir);
176 char *ntfs_build_descr(mode_t mode,
/third_party/ntfs-3g/include/fuse-lite/
Dfuse.h96 int (*mknod) (const char *, mode_t, dev_t);
104 int (*mkdir) (const char *, mode_t);
122 int (*chmod) (const char *, mode_t);
341 int (*create) (const char *, mode_t, struct fuse_file_info *);
475 mode_t umask;
596 int fuse_fs_create(struct fuse_fs *fs, const char *path, mode_t mode,
600 int fuse_fs_chmod(struct fuse_fs *fs, const char *path, mode_t mode);
610 int fuse_fs_mknod(struct fuse_fs *fs, const char *path, mode_t mode,
612 int fuse_fs_mkdir(struct fuse_fs *fs, const char *path, mode_t mode);
/third_party/musl/libc-test/src/functionalext/supplement/stat/
Dumask.c28 mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO; in umask_0100()
29 mode_t result = umask(mode); in umask_0100()
44 mode_t mode = -1; in umask_0200()
45 mode_t result = umask(mode); in umask_0200()
/third_party/rust/crates/nix/src/sys/
Dstat.rs10 pub use libc::{dev_t, mode_t};
21 pub struct SFlag: mode_t {
35 pub struct Mode: mode_t {
61 S_ISUID as mode_t;
63 S_ISGID as mode_t;
64 S_ISVTX as mode_t;
180 libc::mknod(cstr.as_ptr(), kind.bits | perm.bits() as mode_t, dev) in mknod()
205 kind.bits | perm.bits() as mode_t, in mknodat()
235 let prev = unsafe { libc::umask(mode.bits() as mode_t) }; in umask()
298 let res = unsafe { libc::fchmod(fd, mode.bits() as mode_t) }; in fchmod()
[all …]
/third_party/rust/crates/libc/src/unix/hermit/
Dmod.rs13 pub type mode_t = u32; typedef
83 pub st_mode: ::mode_t,
855 pub const S_BLKSIZE: ::mode_t = 1024;
856 pub const S_IREAD: ::mode_t = 256;
857 pub const S_IWRITE: ::mode_t = 128;
858 pub const S_IEXEC: ::mode_t = 64;
859 pub const S_ENFMT: ::mode_t = 1024;
860 pub const S_IFMT: ::mode_t = 61440;
861 pub const S_IFDIR: ::mode_t = 16384;
862 pub const S_IFCHR: ::mode_t = 8192;
[all …]
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/chmod/
Dchmod05.c42 #define MODE_RWX (mode_t)(S_IRWXU | S_IRWXG | S_IRWXO)
43 #define DIR_MODE (mode_t)(S_ISVTX | S_ISGID | S_IFDIR)
44 #define PERMS (mode_t)(MODE_RWX | DIR_MODE)
50 mode_t dir_mode; in test_chmod()
/third_party/rust/crates/libc/src/
Dwasi.rs32 pub type mode_t = u32; typedef
164 pub st_mode: mode_t,
241 pub const S_IFIFO: mode_t = 49152;
242 pub const S_IFCHR: mode_t = 8192;
243 pub const S_IFBLK: mode_t = 24576;
244 pub const S_IFDIR: mode_t = 16384;
245 pub const S_IFREG: mode_t = 32768;
246 pub const S_IFLNK: mode_t = 40960;
247 pub const S_IFSOCK: mode_t = 49152;
248 pub const S_IFMT: mode_t = 57344;
[all …]

12345678910>>...16