Home
last modified time | relevance | path

Searched refs:dir_mode (Results 1 – 6 of 6) sorted by relevance

/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod05.c32 mode_t dir_mode; in verify_fchmod() local
39 dir_mode = stat_buf.st_mode; in verify_fchmod()
41 if ((PERMS_DIR & ~S_ISGID) != dir_mode) { in verify_fchmod()
43 TESTDIR, dir_mode & ~S_ISGID, PERMS_DIR); in verify_fchmod()
Dfchmod04.c100 mode_t dir_mode; /* mode permissions set on testdirectory */ in main() local
123 dir_mode = stat_buf.st_mode; in main()
125 if ((dir_mode & PERMS) == PERMS) in main()
131 TESTDIR, dir_mode, PERMS); in main()
/external/ltp/testcases/kernel/syscalls/chmod/
Dchmod04.c104 mode_t dir_mode; /* mode permissions set on testdirectory */ in main() local
135 dir_mode = stat_buf.st_mode; in main()
138 if ((dir_mode & PERMS) == PERMS) { in main()
145 TESTDIR, dir_mode, PERMS); in main()
Dchmod05.c49 mode_t dir_mode; in test_chmod() local
58 dir_mode = stat_buf.st_mode; in test_chmod()
59 if ((PERMS & ~S_ISGID) != dir_mode) { in test_chmod()
61 "Expected 0%03o", TESTDIR, dir_mode, in test_chmod()
/external/libbrillo/brillo/
Dfile_utils_unittest.cc177 int dir_mode = 0; in TEST_F() local
179 EXPECT_TRUE(base::GetPosixFilePermissions(dirname, &dir_mode)); in TEST_F()
181 EXPECT_EQ(mode & ~mask, dir_mode & 0777); in TEST_F()
235 int dir_mode = 0; in TEST_F() local
237 EXPECT_TRUE(base::GetPosixFilePermissions(dirname, &dir_mode)); in TEST_F()
239 EXPECT_EQ(mode & ~mask, dir_mode & 0777); in TEST_F()
/external/ltp/testcases/kernel/syscalls/rmdir/
Drmdir03.c48 mode_t dir_mode; member
66 if (tc->dir_mode & S_ISVTX && TST_ERR == EPERM) in do_rmdir()