Home
last modified time | relevance | path

Searched refs:TEMPFILE (Results 1 – 25 of 32) 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()
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()
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()
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()
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()
Dmmap12.c32 #define TEMPFILE "mmapfile" macro
101 tst_res(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in verify_mmap()
122 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.c36 static char TEMPFILE[MAXPATHLEN]; variable
42 fildes = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0666); in test_hugemmap()
53 TEMPFILE); in test_hugemmap()
81 snprintf(TEMPFILE, sizeof(TEMPFILE), "%s/mmapfile%d", Hopt, getpid()); in setup()
86 unlink(TEMPFILE); in cleanup()
Dhugemmap02.c37 static char TEMPFILE[MAXPATHLEN]; variable
55 fildes = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0666); in test_hugemmap()
89 " with %s (64-bit)", TEMPFILE); in test_hugemmap()
96 " with %s (32-bit)", TEMPFILE); in test_hugemmap()
128 snprintf(TEMPFILE, sizeof(TEMPFILE), "%s/mmapfile%d", Hopt, getpid()); in setup()
133 unlink(TEMPFILE); in cleanup()
Dhugemmap04.c33 static char TEMPFILE[MAXPATHLEN]; variable
48 fildes = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0666); in test_hugemmap()
69 TEMPFILE); in test_hugemmap()
99 snprintf(TEMPFILE, sizeof(TEMPFILE), "%s/mmapfile%d", Hopt, getpid()); in setup()
104 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/e2fsprogs/contrib/
Ddconf13 TEMPFILE=/tmp/${SELF}.tmp
68 awk -f $AWKFILE $* >$TEMPFILE
118 awk -f $AWKFILE $TEMPFILE
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite02.c24 #define TEMPFILE "pwrite_file" macro
83 fd = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT, 0666); in setup()
84 fd_ro = SAFE_OPEN(TEMPFILE, O_RDONLY | O_CREAT, 0666); in setup()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev03.c33 #define TEMPFILE MNTPOINT "/test_file" macro
58 writefd = SAFE_OPEN(TEMPFILE, O_CREAT|O_WRONLY|O_TRUNC, 0644); in thread_run()
96 readfd = SAFE_OPEN(TEMPFILE, O_RDONLY); in run()
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate06.c45 #define TEMPFILE MNTPOINT "/test_file" macro
89 fd = SAFE_OPEN(TEMPFILE, O_WRONLY | O_CREAT | O_TRUNC, 0644); in setup()
102 SAFE_UNLINK(TEMPFILE); in setup()
178 fd = SAFE_OPEN(TEMPFILE, O_RDWR | O_CREAT | O_TRUNC, 0644); in run()
/external/selinux/policycoreutils/scripts/
Dfixfiles172 TEMPFILE=`mktemp ${FC}.XXXXXXXXXX`
173 test -z "$TEMPFILE" && exit
193 do if ! echo "$pattern" | grep -q -f ${TEMPFILE} 2>/dev/null; then \
196 echo "$pattern" | sed -e 's,^,^,' -e 's,\*$,,g' >> ${TEMPFILE};;
201 rm -f ${TEMPFILE} ${PREFCTEMPFILE}
/external/protobuf/php/tests/
Dcompatibility_test.sh37 local TEMPFILE=`tempfile`
52 ' > $TEMPFILE
53 cp $TEMPFILE $1
/external/cronet/third_party/protobuf/php/tests/
Dcompatibility_test.sh37 local TEMPFILE=`tempfile`
52 ' > $TEMPFILE
53 cp $TEMPFILE $1

12