/third_party/ltp/testcases/kernel/syscalls/chmod/ |
D | chmod06.c | 32 #define FILE_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 57 {TEST_FILE1, FILE_MODE, EPERM, set_nobody, set_root}, 58 {TEST_FILE2, FILE_MODE, EACCES, set_nobody, set_root}, 59 {(char *)-1, FILE_MODE, EFAULT, NULL, NULL}, 60 {NULL, FILE_MODE, EFAULT, NULL, NULL}, 61 {long_path, FILE_MODE, ENAMETOOLONG, NULL, NULL}, 62 {"", FILE_MODE, ENOENT, NULL, NULL}, 63 {TEST_FILE3, FILE_MODE, ENOTDIR, NULL, NULL}, 64 {MNT_POINT, FILE_MODE, EROFS, NULL, NULL}, 65 {TEST_FILE4, FILE_MODE, ELOOP, NULL, NULL}, [all …]
|
D | chmod03.c | 22 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 67 SAFE_TOUCH(TESTFILE, FILE_MODE, NULL); in setup()
|
D | chmod07.c | 34 #define FILE_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) macro 80 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fstat/ |
D | fstat02.c | 21 #define FILE_MODE 0644 macro 58 if ((stat_buf.st_mode & 0777) != FILE_MODE) { in run() 60 (stat_buf.st_mode & 0777), FILE_MODE); in run() 77 fildes = SAFE_OPEN(TESTFILE, O_WRONLY | O_CREAT, FILE_MODE); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek02.c | 23 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 60 fd1 = SAFE_OPEN(TEMP_FILE1, O_RDWR | O_CREAT, FILE_MODE); in setup() 61 fd2 = SAFE_OPEN(TEMP_FILE2, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
D | llseek01.c | 23 #define FILE_MODE 0644 macro 71 fildes = SAFE_OPEN(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/symlink/ |
D | symlink04.c | 83 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 169 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup() 172 TESTFILE, FILE_MODE, errno, strerror(errno)); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/utime/ |
D | utime03.c | 33 #define FILE_MODE 0766 macro 49 fd = SAFE_CREAT(TEMP_FILE, FILE_MODE); in setup() 53 SAFE_CHMOD(TEMP_FILE, FILE_MODE); in setup()
|
D | utime04.c | 86 #define FILE_MODE S_IRUSR | S_IRGRP | S_IROTH macro 168 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime05.c | 89 #define FILE_MODE S_IRUSR | S_IRGRP | S_IROTH macro 178 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime01.c | 87 #define FILE_MODE S_IRUSR | S_IRGRP | S_IROTH macro 196 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
D | utime02.c | 90 #define FILE_MODE S_IRUSR | S_IRGRP | S_IROTH macro 211 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/rmdir/ |
D | rmdir02.c | 23 #define FILE_MODE (S_IRWXU | S_IRWXG | S_IRWXO) macro 57 SAFE_TOUCH(TESTFILE, FILE_MODE, NULL); in setup() 61 SAFE_TOUCH(TESTFILE2, FILE_MODE, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/utimes/ |
D | utimes01.c | 35 #define FILE_MODE (S_IRWXU | S_IRGRP | S_IXGRP | \ macro 61 SAFE_TOUCH(TESTFILE2, FILE_MODE, NULL); in setup() 63 SAFE_TOUCH(TESTFILE1, FILE_MODE, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate03.c | 53 #define FILE_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH macro 91 SAFE_TOUCH("t_file", FILE_MODE, NULL); in setup() 97 SAFE_TOUCH(TEST_FILE3, FILE_MODE, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/chown/ |
D | chown05.c | 20 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 54 SAFE_TOUCH(TESTFILE, FILE_MODE, NULL); in setup()
|
D | chown03.c | 25 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 78 fd = SAFE_OPEN(FILENAME, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/mount/ |
D | mount02.c | 55 #define FILE_MODE (S_IRWXU | S_IRWXG | S_IRWXO) macro 182 SAFE_TOUCH(cleanup, file, FILE_MODE, NULL); in setup() 197 if (mknod(char_dev, S_IFCHR | FILE_MODE, dev)) { in setup()
|
/third_party/mindspore/mindspore/train/summary/ |
D | writer.py | 34 FILE_MODE = 0o400 variable 85 os.chmod(self._filepath, FILE_MODE) 175 os.chmod(np_path, FILE_MODE)
|
/third_party/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown05.c | 20 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 56 fd = SAFE_OPEN(TESTFILE, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
D | fchown03.c | 30 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 81 fd = SAFE_OPEN(FILENAME, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
D | fchown02.c | 26 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 75 *tc[i].fd = SAFE_OPEN(tc[i].filename, O_RDWR | O_CREAT, FILE_MODE); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open13.c | 43 #define FILE_MODE (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID) macro 107 SAFE_TOUCH(cleanup, TESTFILE, FILE_MODE, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl32.c | 33 #define FILE_MODE (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID) macro 96 SAFE_TOUCH(cleanup, "file", FILE_MODE, NULL); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/lchown/ |
D | lchown01.c | 46 #define FILE_MODE (S_IFREG|S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) macro 159 if ((fd = open(TESTFILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
|