Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/creat/
Dcreat08.c78 static char setgid_A[MSGSIZE], nosetgid_A[MSGSIZE]; variable
105 sprintf(setgid_A, "%s/%s", DIR_A, SETGID); in main()
272 fd = open(setgid_A, O_CREAT | O_EXCL | O_RDWR, MODE_SGID); in main()
274 tst_resm(TFAIL, "Creation of %s failed", setgid_A); in main()
278 if (stat(setgid_A, &buf) == -1) { in main()
279 tst_resm(TFAIL, "Stat of %s failed", setgid_A); in main()
287 setgid_A); in main()
293 tst_resm(TFAIL, "%s: Incorrect group", setgid_A); in main()
440 if (unlink(setgid_A) == -1) { in tst_cleanup()
441 tst_resm(TBROK, "%s failed", setgid_A); in tst_cleanup()
/external/ltp/testcases/kernel/syscalls/open/
Dopen10.c72 char setgid_A[MSGSIZE], nosetgid_A[MSGSIZE]; in main() local
92 sprintf(setgid_A, "%s/%s", DIR_A, SETGID); in main()
253 ret = open(setgid_A, O_CREAT | O_EXCL | O_RDWR, MODE_SGID); in main()
255 tst_resm(TFAIL | TERRNO, "open(%s) failed", setgid_A); in main()
260 if (stat(setgid_A, &buf) < 0) { in main()
261 tst_resm(TFAIL | TERRNO, "stat(%s) failed", setgid_A); in main()
269 setgid_A); in main()
276 setgid_A, buf.st_gid, mygid); in main()
418 if (unlink(setgid_A) < 0) in main()
419 tst_resm(TWARN | TERRNO, "unlink(%s) failed", setgid_A); in main()