HomeSort by relevance Sort by last modified time
    Searched refs:tstdir1 (Results 1 - 4 of 4) sorted by null

  /external/ltp/testcases/kernel/syscalls/mkdir/
mkdir05.c 47 char tstdir1[100]; variable
76 sprintf(tstdir1, "tstdir1.%d", getpid());
79 TEST(mkdir(tstdir1, PERMS));
83 tstdir1, PERMS);
87 SAFE_STAT(cleanup, tstdir1, &buf);
103 SAFE_RMDIR(cleanup, tstdir1);
mkdir04.c 36 * 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);
mkdir02.c 41 * 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, getpid())
    [all...]
  /external/ltp/testcases/kernel/syscalls/rmdir/
rmdir03.c 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]; variable
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);
    [all...]

Completed in 6397 milliseconds