Home | History | Annotate | Download | only in mknod

Lines Matching defs:DIR_TEMP

87 #define DIR_TEMP	"testdir_5"
230 if (mkdir(DIR_TEMP, MODE_RWX) < 0) {
231 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP);
233 if (chown(DIR_TEMP, user1_uid, group2_gid) < 0) {
234 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", DIR_TEMP);
236 if (chmod(DIR_TEMP, MODE_SGID) < 0) {
237 tst_brkm(TBROK, cleanup, "chmod(2) of %s failed", DIR_TEMP);
244 if (stat(DIR_TEMP, &buf) < 0) {
245 tst_brkm(TBROK, cleanup, "stat(2) of %s failed", DIR_TEMP);
250 "%s: Incorrect modes, setgid bit not set", DIR_TEMP);
255 tst_brkm(TBROK, cleanup, "%s: Incorrect group", DIR_TEMP);
258 /* Change directory to DIR_TEMP */
259 if (chdir(DIR_TEMP) < 0) {
261 "Unable to change to %s directory", DIR_TEMP);