Home
last modified time | relevance | path

Searched refs:TEMPFILE (Results 1 – 25 of 30) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap04.c52 #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()
Dmmap02.c48 #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()
Dmmap03.c55 #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()
Dmmap05.c52 #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()
Dmmap01.c51 #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()
Dmmap08.c43 #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()
Dmmap13.c44 #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()
Dmmap06.c47 #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()
Dmmap07.c48 #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()
Dmmap12.c45 #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()
Dmmap14.c33 #define TEMPFILE "mmapfile" macro
68 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main()
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap01.c54 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()
Dhugemmap02.c53 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()
Dhugemmap04.c49 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/
Dmunmap01.c80 #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()
Dmunmap02.c81 #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/
Dmremap01.c87 #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/
Dgaiconf59 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/
Dpread01.c81 #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()
Dpread02.c77 #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/
Dpwrite01.c84 #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()
Dpwrite02.c43 #define TEMPFILE "pwrite_file" macro
163 fd = SAFE_OPEN(cleanup, TEMPFILE, O_RDWR | O_CREAT, 0666); in test_einval()
186 fd = SAFE_OPEN(cleanup, TEMPFILE, O_RDONLY | O_CREAT, 0666); in test_ebadf2()
201 fd = SAFE_OPEN(cleanup, TEMPFILE, O_RDWR | O_CREAT, 0666); in test_efault()
/external/e2fsprogs/contrib/
Ddconf13 TEMPFILE=/tmp/${SELF}.tmp
68 awk -f $AWKFILE $* >$TEMPFILE
118 awk -f $AWKFILE $TEMPFILE
/external/selinux/policycoreutils/scripts/
Dfixfiles170 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/
Dmsync02.c74 #define TEMPFILE "msync_file" macro
121 if ((fildes = open(TEMPFILE, O_RDWR | O_CREAT, 0666)) < 0) in setup()

12