/external/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap04.c | 52 #define TEMPFILE "mmapfile" macro 87 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main() 97 TEMPFILE); in main() 144 if ((fildes = open(TEMPFILE, O_WRONLY | O_CREAT, 0666)) < 0) { in setup() 146 tst_brkm(TFAIL, cleanup, "opening %s failed", TEMPFILE); in setup() 152 tst_brkm(TFAIL, cleanup, "writing to %s failed", TEMPFILE); in setup() 160 tst_brkm(TFAIL, cleanup, "fchmod of %s failed", TEMPFILE); in setup() 165 tst_brkm(TFAIL, cleanup, "closing %s failed", TEMPFILE); in setup() 174 if ((fildes = open(TEMPFILE, O_RDONLY)) < 0) { in setup() 176 "opening %s read-only failed", TEMPFILE); in setup()
|
D | mmap02.c | 48 #define TEMPFILE "mmapfile" macro 83 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main() 93 "reading %s failed", TEMPFILE); in main() 140 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) { in setup() 143 TEMPFILE); in setup() 150 "writing to %s failed", TEMPFILE); in setup() 159 TEMPFILE); in setup() 165 TEMPFILE); in setup() 169 if ((fildes = open(TEMPFILE, O_RDONLY)) < 0) { in setup() 171 TEMPFILE); in setup()
|
D | mmap03.c | 55 #define TEMPFILE "mmapfile" macro 94 TEMPFILE); in main() 104 "reading %s failed", TEMPFILE); in main() 171 if ((fildes = open(TEMPFILE, O_WRONLY | O_CREAT, 0666)) < 0) { in setup() 174 TEMPFILE); in setup() 181 TEMPFILE); in setup() 189 tst_brkm(TFAIL, cleanup, "fchmod of %s failed", TEMPFILE); in setup() 195 TEMPFILE); in setup() 204 if ((fildes = open(TEMPFILE, O_RDONLY)) < 0) { in setup() 206 "opening %s read-only failed", TEMPFILE); in setup()
|
D | mmap05.c | 52 #define TEMPFILE "mmapfile" macro 92 TEMPFILE); in main() 149 if ((fildes = open(TEMPFILE, O_WRONLY | O_CREAT, 0666)) < 0) { in setup() 152 TEMPFILE); in setup() 158 tst_brkm(TFAIL, cleanup, "writing to %s failed", TEMPFILE); in setup() 167 TEMPFILE); in setup() 173 TEMPFILE); in setup() 177 if ((fildes = open(TEMPFILE, O_RDONLY)) < 0) { in setup() 179 TEMPFILE); in setup()
|
D | mmap01.c | 51 #define TEMPFILE "mmapfile" macro 88 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main() 162 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) { in setup() 163 tst_brkm(TFAIL, cleanup, "opening %s failed", TEMPFILE); in setup() 168 tst_brkm(TFAIL, cleanup, "writing to %s", TEMPFILE); in setup() 172 if (stat(TEMPFILE, &stat_buf) < 0) { in setup() 174 TEMPFILE); in setup() 186 sprintf(cmd_buffer, "grep XYZ %s/%s > /dev/null", Path_name, TEMPFILE); in setup()
|
D | mmap08.c | 43 #define TEMPFILE "mmapfile" macro 119 if ((fildes = open(TEMPFILE, O_WRONLY | O_CREAT, 0666)) < 0) { in setup() 121 tst_brkm(TFAIL, cleanup, "opening %s failed", TEMPFILE); in setup() 127 tst_brkm(TFAIL, cleanup, "writing to %s failed", TEMPFILE); in setup() 135 tst_brkm(TFAIL, cleanup, "closing %s failed", TEMPFILE); in setup()
|
D | mmap13.c | 44 #define TEMPFILE "mmapfile" macro 76 TEMPFILE); in main() 113 fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0766); in setup() 116 TEMPFILE); in setup() 120 TEMPFILE); in setup()
|
D | mmap06.c | 47 #define TEMPFILE "mmapfile" macro 125 if ((fildes = open(TEMPFILE, O_WRONLY | O_CREAT, 0666)) < 0) { in setup() 127 tst_brkm(TFAIL, cleanup, "opening %s failed", TEMPFILE); in setup() 133 tst_brkm(TFAIL, cleanup, "writing to %s failed", TEMPFILE); in setup()
|
D | mmap07.c | 48 #define TEMPFILE "mmapfile" macro 128 if ((fildes = open(TEMPFILE, O_WRONLY | O_CREAT, 0666)) < 0) { in setup() 130 tst_brkm(TFAIL, cleanup, "open() on %s failed", TEMPFILE); in setup() 136 tst_brkm(TFAIL, cleanup, "writing to %s failed", TEMPFILE); in setup()
|
D | mmap12.c | 45 #define TEMPFILE "mmapfile" macro 114 tst_res(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in verify_mmap() 135 fildes = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0766); in setup()
|
D | mmap14.c | 33 #define TEMPFILE "mmapfile" macro 68 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap01.c | 54 static char TEMPFILE[MAXPATHLEN]; variable 60 fildes = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0666); in test_hugemmap() 71 TEMPFILE); in test_hugemmap() 102 snprintf(TEMPFILE, sizeof(TEMPFILE), "%s/mmapfile%d", Hopt, getpid()); in setup() 107 unlink(TEMPFILE); in cleanup()
|
D | hugemmap02.c | 53 static char TEMPFILE[MAXPATHLEN]; variable 72 fildes = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0666); in test_hugemmap() 106 " with %s (64-bit)", TEMPFILE); in test_hugemmap() 113 " with %s (32-bit)", TEMPFILE); in test_hugemmap() 148 snprintf(TEMPFILE, sizeof(TEMPFILE), "%s/mmapfile%d", Hopt, getpid()); in setup() 153 unlink(TEMPFILE); in cleanup()
|
D | hugemmap04.c | 49 static char TEMPFILE[MAXPATHLEN]; variable 65 fildes = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0666); in test_hugemmap() 86 TEMPFILE); in test_hugemmap() 119 snprintf(TEMPFILE, sizeof(TEMPFILE), "%s/mmapfile%d", Hopt, getpid()); in setup() 124 unlink(TEMPFILE); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/munmap/ |
D | munmap01.c | 80 #define TEMPFILE "mmapfile" macro 176 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) { in setup() 178 TEMPFILE, errno, strerror(errno)); in setup() 190 TEMPFILE, errno, strerror(errno)); in setup() 210 TEMPFILE, errno, strerror(errno)); in setup() 245 TEMPFILE, errno, strerror(errno)); in cleanup()
|
D | munmap02.c | 81 #define TEMPFILE "mmapfile" macro 180 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) { in setup() 182 TEMPFILE, errno, strerror(errno)); in setup() 194 TEMPFILE, errno, strerror(errno)); in setup() 214 TEMPFILE, errno, strerror(errno)); in setup()
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap01.c | 87 #define TEMPFILE "mremapfile" macro 179 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) in setup() 181 TEMPFILE); in setup() 191 tst_brkm(TBROK, cleanup, "writing to %s failed", TEMPFILE); in setup() 202 tst_brkm(TBROK, cleanup, "mmaping Failed on %s", TEMPFILE); in setup() 214 TEMPFILE); in setup()
|
/external/iproute2/examples/ |
D | gaiconf | 59 TEMPFILE=`mktemp` 82 gai_conf=${TEMPFILE} 109 if [ x"$gai_conf" = x"${TEMPFILE}" ]; then 110 sed -e 's/^[[:space:]]*//' <<END_OF_DEFAULT >${TEMPFILE} 131 rm -f "${TEMPFILE}"
|
/external/ltp/testcases/kernel/syscalls/pread/ |
D | pread01.c | 81 #define TEMPFILE "pread_file" macro 204 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) { in setup() 206 TEMPFILE, errno, strerror(errno)); in setup() 212 "errno=%d : %s", TEMPFILE, errno, strerror(errno)); in setup() 224 "on %s, errno=%d : %s", K2, TEMPFILE, errno, in setup() 249 "on %s, errno=%d : %s", K1, TEMPFILE, errno, in setup() 293 TEMPFILE); in l_seek()
|
D | pread02.c | 77 #define TEMPFILE "pread_file" macro 239 if ((fd1 = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) { in setup2() 241 TEMPFILE, errno, strerror(errno)); in setup2()
|
/external/ltp/testcases/kernel/syscalls/pwrite/ |
D | pwrite01.c | 84 #define TEMPFILE "pwrite_file" macro 145 K2, TEMPFILE, errno, strerror(errno)); in main() 175 K1, TEMPFILE, errno, strerror(errno)); in main() 215 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) { in setup() 217 TEMPFILE, errno, strerror(errno)); in setup() 258 TEMPFILE); in l_seek()
|
D | pwrite02.c | 42 #define TEMPFILE "pwrite_file" macro 113 fd = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0666); in setup() 114 fd_ro = SAFE_OPEN(TEMPFILE, O_RDONLY | O_CREAT, 0666); in setup()
|
/external/e2fsprogs/contrib/ |
D | dconf | 13 TEMPFILE=/tmp/${SELF}.tmp 68 awk -f $AWKFILE $* >$TEMPFILE 118 awk -f $AWKFILE $TEMPFILE
|
/external/selinux/policycoreutils/scripts/ |
D | fixfiles | 170 TEMPFILE=`mktemp ${FC}.XXXXXXXXXX` 171 test -z "$TEMPFILE" && exit 191 do if ! echo "$pattern" | grep -q -f ${TEMPFILE} 2>/dev/null; then \ 194 echo "$pattern" | sed -e 's,^,^,' -e 's,\*$,,g' >> ${TEMPFILE};; 199 rm -f ${TEMPFILE} ${PREFCTEMPFILE}
|
/external/ltp/testcases/kernel/syscalls/msync/ |
D | msync02.c | 74 #define TEMPFILE "msync_file" macro 121 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) in setup()
|