Searched defs:tstdir1 (Results 1 - 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/syscalls/mkdir/
H A Dmkdir05.c46 char tstdir1[100]; variable
75 sprintf(tstdir1, "tstdir1.%d", getpid());
78 TEST(mkdir(tstdir1, PERMS));
82 tstdir1, PERMS);
86 if (stat(tstdir1, &buf) == -1) {
105 if (rmdir(tstdir1) == -1) {
H A Dmkdir04.c36 * create a dirctory tstdir1 with 0700 permission
39 * try to create a subdirectory tstdir2 under tstdir1
94 char tstdir1[100]; variable
122 sprintf(tstdir1, "tstdir1.%d", getpid());
137 if (mkdir(tstdir1, PERMS) == -1) {
140 tstdir1, PERMS);
143 /* create tstdir1 succeeded */
153 sprintf(tstdir2, "%s/tst", tstdir1);
H A Dmkdir02.c41 * create a directory tstdir1 with S_ISGID set
43 * create a directtory tstdir2 user tstdir1
45 * if they are the same as tstdir1's
92 char tstdir1[100]; variable
126 sprintf(tstdir1, "tstdir1.%d", getpid());
160 if (mkdir(tstdir1, PERMS) != 0) {
168 if (stat(tstdir1, &buf1) == -1) {
176 if (chmod(tstdir1, buf1.st_mode | S_ISGID) != 0) {
201 sprintf(tstdir2, "%s/tstdir2.%d", tstdir1, getpi
[all...]
/external/ltp/testcases/kernel/syscalls/rmdir/
H A Drmdir03.c35 * 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]; variable
130 if (stat(tstdir1, &buf1) != -1) {
132 "tmp directory %s found!", tstdir1);
135 if (mkdir(tstdir1, PERMS) == -1) {
137 "Couldnot create directory %s", tstdir1);
139 if (stat(tstdir1,
[all...]

Completed in 147 milliseconds