/external/ltp/testcases/kernel/syscalls/rename/ |
D | rename05.c | 73 char fname[255], mdir[255]; variable 101 TEST(rename(fname, mdir)); in main() 105 fname, mdir); in main() 137 sprintf(mdir, "./rndir_%d", getpid()); in setup() 153 if (stat(mdir, &buf2) != -1) { in setup() 154 tst_brkm(TBROK, cleanup, "tmp directory %s found!", mdir); in setup() 157 if (mkdir(mdir, 00770) == -1) { in setup() 158 tst_brkm(TBROK, cleanup, "Could not create directory %s", mdir); in setup() 161 if (stat(mdir, &buf2) == -1) { in setup() 163 "in rename()", mdir); in setup()
|
D | rename06.c | 74 char fdir[255], mdir[255]; variable 102 TEST(rename(fdir, mdir)); in main() 106 fdir, mdir); in main() 136 sprintf(mdir, "%s/rndir_%d", fdir, getpid()); in setup() 155 if (stat(mdir, &buf2) != -1) { in setup() 156 tst_brkm(TBROK, cleanup, "tmp directory %s found!", mdir); in setup() 158 if (mkdir(mdir, 00770) == -1) { in setup() 159 tst_brkm(TBROK, cleanup, "Could not create directory %s", mdir); in setup() 162 if (stat(mdir, &buf2) == -1) { in setup() 164 "in rename()", mdir); in setup()
|
D | rename04.c | 76 char fdir[255], mdir[255]; variable 105 TEST(rename(fdir, mdir)); in main() 109 fdir, mdir); in main() 146 sprintf(mdir, "./rndir_%d", getpid()); in setup() 147 sprintf(tstfile, "%s/tstfile_%d", mdir, getpid()); in setup() 165 if (mkdir(mdir, 00770) == -1) { in setup() 166 tst_brkm(TBROK, cleanup, "Could not create directory %s", mdir); in setup() 171 if (stat(mdir, &buf2) == -1) { in setup() 173 "in rename()", mdir); in setup()
|
D | rename03.c | 81 char fdir[255], mdir[255]; variable 95 fdir, mdir, "directory", &d_olddev, &d_oldino} 171 if (rmdir(mdir) == -1) { in main() 173 mdir); in main() 198 sprintf(mdir, "./rndir_%d", getpid()); in setup() 234 if (mkdir(mdir, 00770) == -1) { in setup2() 235 tst_brkm(TBROK, cleanup, "Could not create directory %s", mdir); in setup2()
|
D | rename09.c | 92 char fdir[255], mdir[255]; variable 169 if (mkdir(mdir, PERMS) == -1) { in main() 171 mdir, PERMS); in main() 207 if (rmdir(mdir) == -1) { in main() 258 sprintf(mdir, "rndir_%d", getpid()); in setup() 260 sprintf(mname, "%s/rnfile_%d", mdir, getpid()); in setup()
|
D | rename01.c | 83 char fdir[255], mdir[255]; variable 100 fdir, mdir, "directory", &d_olddev, &d_oldino} 170 if (rename(mdir, fdir) == -1) { in main() 196 sprintf(mdir, "./rndir_%d", getpid()); in setup()
|
D | rename10.c | 80 char mdir[255]; variable 158 sprintf(mdir, "./rndir_%d", getpid()); in setup() 159 sprintf(mname, "%s/rnfile_%d", mdir, getpid()); in setup()
|