Home
last modified time | relevance | path

Searched refs:DIR_B (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/syscalls/open/
Dopen10.c71 char DIR_A[MSGSIZE], DIR_B[MSGSIZE]; in main() local
91 sprintf(DIR_B, DIR_B_TEMP, mypid); in main()
94 sprintf(setgid_B, "%s/%s", DIR_B, SETGID); in main()
95 sprintf(nosetgid_B, "%s/%s", DIR_B, NOSETGID); in main()
96 sprintf(root_setgid_B, "%s/%s", DIR_B, ROOT_SETGID); in main()
160 if (mkdir(DIR_B, MODE_RWX) < 0) { in main()
161 tst_resm(TFAIL | TERRNO, "mkdir(%s) failed", DIR_B); in main()
165 if (chown(DIR_B, user1_uid, group2_gid) < 0) { in main()
166 tst_resm(TFAIL | TERRNO, "chown(%s) failed", DIR_B); in main()
170 if (chmod(DIR_B, MODE_SGID) < 0) { in main()
[all …]
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat08.c77 static char DIR_A[MSGSIZE], DIR_B[MSGSIZE]; variable
104 sprintf(DIR_B, DIR_B_TEMP, mypid); in main()
107 sprintf(setgid_B, "%s/%s", DIR_B, SETGID); in main()
108 sprintf(nosetgid_B, "%s/%s", DIR_B, NOSETGID); in main()
109 sprintf(root_setgid_B, "%s/%s", DIR_B, ROOT_SETGID); in main()
177 if (mkdir(DIR_B, MODE_RWX) == -1) { in main()
178 tst_resm(TFAIL, "Creation of %s failed", DIR_B); in main()
182 if (chown(DIR_B, user1_uid, group2_gid) == -1) { in main()
183 tst_resm(TFAIL, "Chown of %s failed", DIR_B); in main()
187 if (chmod(DIR_B, MODE_SGID) == -1) { in main()
[all …]