Home
last modified time | relevance | path

Searched refs:S_IFREG (Results 1 – 25 of 137) sorted by relevance

123456

/third_party/ltp/testcases/kernel/syscalls/mknod/
Dmknod01.c55 S_IFREG | 0777, /* ordinary file with mode 0777 */
60 S_IFREG | 04700, /* ordinary file with mode 04700 (suid) */
61 S_IFREG | 02700, /* ordinary file with mode 02700 (sgid) */
62 S_IFREG | 06700, /* ordinary file with mode 06700 (sgid & suid) */
/third_party/ltp/testcases/kernel/syscalls/fchown/
Dfchown02.c26 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)
27 #define NEW_PERMS1 (S_IFREG|S_IRWXU|S_IRWXG|S_ISUID|S_ISGID)
28 #define NEW_PERMS2 (S_IFREG|S_IRWXU|S_ISGID)
29 #define EXP_PERMS (S_IFREG|S_IRWXU|S_IRWXG)
Dfchown03.c30 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)
31 #define NEW_PERMS (S_IFREG|S_IRWXU|S_IRWXG|S_ISUID|S_ISGID)
/third_party/ltp/testcases/kernel/syscalls/chown/
Dchown02.c20 #define NEW_PERMS1 (S_IFREG|S_IRWXU|S_IRWXG|S_ISUID|S_ISGID)
21 #define NEW_PERMS2 (S_IFREG|S_IRWXU|S_ISGID)
22 #define EXP_PERMS (S_IFREG|S_IRWXU|S_IRWXG)
Dchown03.c25 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)
26 #define NEW_PERMS (S_IFREG|S_IRWXU|S_IRWXG|S_ISUID|S_ISGID)
Dchown05.c20 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)
/third_party/skia/third_party/externals/expat/expat/xmlwf/
Dreadfilemap.c64 # ifndef S_IFREG
65 # define S_IFREG _S_IFREG macro
70 # define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
/third_party/python/Lib/
Dstat.py39 S_IFREG = 0o100000 # regular file variable
64 return S_IFMT(mode) == S_IFREG
131 (S_IFREG, "-"),
/third_party/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod01.c35 if ((file_mode & ~S_IFREG) != mode) { in verify_fchmod()
38 TESTFILE, file_mode & ~S_IFREG, mode); in verify_fchmod()
Dfchmod02.c39 if ((file_mode & ~S_IFREG) != PERMS) { in verify_fchmod()
/third_party/rust/crates/nix/test/
Dtest_stat.rs379 mknod(&target, SFlag::S_IFREG, Mode::S_IRWXU, 0).unwrap(); in test_mknod()
381 assert_eq!(mode & libc::S_IFREG, libc::S_IFREG); in test_mknod()
407 SFlag::S_IFREG, in test_mknodat()
419 assert_eq!(mode & libc::S_IFREG, libc::S_IFREG); in test_mknodat()
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dstat.h34 #define S_IFREG 0100000 macro
47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dstat.h34 #define S_IFREG 0100000 macro
47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dstat.h34 #define S_IFREG 0100000 macro
47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/third_party/musl/porting/uniproton/kernel/include/sys/
Dstat.h34 #define S_IFREG 0100000 macro
47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/third_party/musl/porting/linux/user/include/sys/
Dstat.h34 #define S_IFREG 0100000 macro
47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/third_party/musl/include/sys/
Dstat.h34 #define S_IFREG 0100000 macro
47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/third_party/musl/ndk_musl_include/sys/
Dstat.h34 #define S_IFREG 0100000 macro
47 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify04.c142 do_open_test(file, 0, S_IFREG); in test_open_file()
193 verify_event(S_IFREG); in test01()
/third_party/libwebsockets/win32port/dirent/
Ddirent-win32.h72 #if !defined(S_IFREG)
73 # define S_IFREG _S_IFREG macro
169 #define DT_REG S_IFREG
194 # define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
/third_party/libfuse/example/
Dinvalidate_path.c92 stbuf->st_mode = S_IFREG | 0444; in xmp_getattr()
97 stbuf->st_mode = S_IFREG | 0444; in xmp_getattr()
/third_party/node/deps/uvwasi/src/
Duv_mapping.c11 #if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
12 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
/third_party/lz4/programs/
Dutil.h132 # define UTIL_STAT_MODE_ISREG(st_mode) ((st_mode) & S_IFREG)
137 # define UTIL_STAT_MODE_ISREG(st_mode) ((st_mode) & S_IFREG)
394 if (r || !(statbuf->st_mode & S_IFREG)) return 0; /* No good... */ in UTIL_getFDStat()
407 if (r || !(statbuf->st_mode & S_IFREG)) return 0; /* No good... */ in UTIL_getFileStat()
/third_party/libfuse/test/
Dtest_syscalls.c492 res = check_type(path, S_IFREG); in create_file()
991 res = check_type(testfile, S_IFREG); in test_create()
1051 .st_mode = S_IFREG | 0644, in test_create_unlink()
1081 res = check_type(testfile, S_IFREG); in test_mknod()
1151 err += check_type(testfile, S_IFREG); in do_test_open()
1401 res = check_type(testfile2, S_IFREG); in test_link()
1463 res = check_type(testfile, S_IFREG); in test_link2()
1513 res = check_type(testfile2, S_IFREG); in test_rename_file()
/third_party/ltp/testcases/kernel/syscalls/chmod/
Dchmod01.c27 {TESTFILE, S_IFREG, "verify permissions of file"},

123456