Lines Matching full:handle
69 handle = "t%sf%s" % (e.thread, fd)
70 return (fd, find_file(path), handle)
180 fd, f, handle = extract_file(e, e.ret)
182 active.add(handle)
183 if handle not in defined:
185 defined.add(handle)
186 print >>bench, '%s = TEMP_FAILURE_RETRY(open("file%s", %s));' % (handle, f.ident, e.args[2])
189 fd, f, handle = extract_file(e, e.args[0])
190 if handle in active:
191 active.remove(handle)
192 print >>bench, 'close(%s);' % (handle)
195 fd, f, handle = extract_file(e, e.args[0])
196 if handle in active:
197 print >>bench, 'TEMP_FAILURE_RETRY(lseek(%s, %s, %s));' % (handle, e.args[1], e.args[2])
200 fd, f, handle = extract_file(e, e.args[0])
201 if handle in active:
202 print >>bench, 'TEMP_FAILURE_RETRY(lseek(%s, %s, %s));' % (handle, e.args[1], e.args[3])
205 fd, f, handle = extract_file(e, e.args[0])
206 if handle in active:
210 print >>bench, 'TEMP_FAILURE_RETRY(read(%s, buf, %d));' % (handle, count)
214 fd, f, handle = extract_file(e, e.args[0])
215 if handle in active:
219 print >>bench, 'TEMP_FAILURE_RETRY(read(%s, buf, %d));' % (handle, count)
223 fd, f, handle = extract_file(e, e.args[0])
224 if handle in active:
227 print >>bench, 'TEMP_FAILURE_RETRY(pread(%s, buf, %d, %s));' % (handle, count, e.args[3])
231 fd, f, handle = extract_file(e, e.args[0])
232 if handle in active:
235 print >>bench, 'TEMP_FAILURE_RETRY(pwrite(%s, buf, %d, %s));' % (handle, count, e.args[3])
239 fd, f, handle = extract_file(e, e.args[0])
240 if handle in active:
241 print >>bench, 'TEMP_FAILURE_RETRY(fsync(%s));' % (handle)
245 fd, f, handle = extract_file(e, e.args[0])
246 if handle in active:
247 print >>bench, 'TEMP_FAILURE_RETRY(fdatasync(%s));' % (handle)
251 fd, f, handle = extract_file(e, e.args[4])
252 if handle in active:
256 print >>bench, 'TEMP_FAILURE_RETRY(pread(%s, buf, %s, %s)); // mmap2' % (handle, count, offset)
259 for handle in active:
260 print >>bench, 'close(%s);' % (handle)