Home | History | Annotate | Download | only in rmdir

Lines Matching refs:tstdir1

35  *              1. create a directory tstdir1 and set the sticky bit, then
36 * create directory tstdir2 under tstdir1. Fork a
41 * tstdir1 and only give write permission to nobody.
42 * Create directory tstdir2 under tstdir1. Fork the second
90 char tstdir1[255];
130 if (stat(tstdir1, &buf1) != -1) {
132 "tmp directory %s found!", tstdir1);
135 SAFE_MKDIR(cleanup, tstdir1, PERMS);
136 if (stat(tstdir1, &buf1) == -1) {
139 "in rmdir()", tstdir1);
143 if (chmod(tstdir1, buf1.st_mode | S_ISVTX) != 0) {
149 /* create a sub directory under tstdir1 */
206 (void)rmdir(tstdir1);
316 sprintf(tstdir1, "./tstdir1_%d", getpid());
317 sprintf(tstdir2, "%s/tstdir2_%d", tstdir1, getpid());