/external/swiftshader/third_party/LLVM/runtime/libprofile/ |
D | PathProfiling.c | 82 arrayHeaderLocation = lseek(outFile, 0, SEEK_CUR); in writeArrayTable() 83 lseek(outFile, sizeof(PathProfileHeader), SEEK_CUR); in writeArrayTable() 102 arrayCurrentLocation = lseek(outFile, 0, SEEK_CUR); in writeArrayTable() 103 lseek(outFile, arrayHeaderLocation, SEEK_SET); in writeArrayTable() 111 lseek(outFile, arrayCurrentLocation, SEEK_SET); in writeArrayTable() 234 headerLocation = lseek(outFile, 0, SEEK_CUR); in pathProfAtExitHandler() 235 lseek(outFile, 2*sizeof(uint32_t), SEEK_CUR); in pathProfAtExitHandler() 253 currentLocation = lseek(outFile, 0, SEEK_CUR); in pathProfAtExitHandler() 254 lseek(outFile, headerLocation, SEEK_SET); in pathProfAtExitHandler() 262 lseek(outFile, currentLocation, SEEK_SET); in pathProfAtExitHandler()
|
/external/curl/src/ |
D | tool_cb_see.c | 67 if(LSEEK_ERROR == lseek(in->fd, 0, SEEK_SET)) in tool_seek_cb() 73 if(LSEEK_ERROR == lseek(in->fd, step, SEEK_CUR)) in tool_seek_cb() 82 if(LSEEK_ERROR == lseek(in->fd, offset, whence)) in tool_seek_cb() 95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence) 110 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
|
/external/python/cpython3/Lib/test/ |
D | test_largefile.py | 84 self.assertEqual(os.lseek(f.fileno(), 0, 0), 0) 85 self.assertEqual(os.lseek(f.fileno(), 42, 0), 42) 86 self.assertEqual(os.lseek(f.fileno(), 42, 1), 84) 87 self.assertEqual(os.lseek(f.fileno(), 0, 1), 84) 88 self.assertEqual(os.lseek(f.fileno(), 0, 2), size+1+0) 89 self.assertEqual(os.lseek(f.fileno(), -10, 2), size+1-10) 90 self.assertEqual(os.lseek(f.fileno(), -size-1, 2), 0) 91 self.assertEqual(os.lseek(f.fileno(), size, 0), size)
|
/external/puffin/src/ |
D | file_stream.cc | 38 auto cur_off = lseek(fd_, 0, SEEK_CUR); in GetSize() 40 auto fsize = lseek(fd_, 0, SEEK_END); in GetSize() 42 cur_off = lseek(fd_, cur_off, SEEK_SET); in GetSize() 49 auto off = lseek(fd_, 0, SEEK_CUR); in GetOffset() 56 auto off = lseek(fd_, offset, SEEK_SET); in Seek()
|
/external/python/cpython2/Lib/test/ |
D | test_largefile.py | 93 self.assertEqual(os.lseek(f.fileno(), 0, 0), 0) 94 self.assertEqual(os.lseek(f.fileno(), 42, 0), 42) 95 self.assertEqual(os.lseek(f.fileno(), 42, 1), 84) 96 self.assertEqual(os.lseek(f.fileno(), 0, 1), 84) 97 self.assertEqual(os.lseek(f.fileno(), 0, 2), size+1+0) 98 self.assertEqual(os.lseek(f.fileno(), -10, 2), size+1-10) 99 self.assertEqual(os.lseek(f.fileno(), -size-1, 2), 0) 100 self.assertEqual(os.lseek(f.fileno(), size, 0), size)
|
/external/ltp/testcases/kernel/io/direct_io/ |
D | diotest4.c | 103 if (lseek(fd, offset, SEEK_SET) < 0) { in runtest_f() 118 if (lseek(fd, offset, SEEK_SET) < 0) { in runtest_f() 144 if (lseek(fd, offset, SEEK_SET) < 0) { in runtest_s() 155 if (lseek(fd, offset, SEEK_SET) < 0) { in runtest_s() 250 ret = lseek(fd, offset, SEEK_SET); in main() 266 lseek(fd, 0, SEEK_SET); in main() 287 if (lseek(fd, offset, SEEK_SET) < 0) { in main() 394 if (lseek(fd, offset, SEEK_SET) < 0) { in main() 420 if (lseek(fd, offset, SEEK_SET) < 0) { in main() 469 if (lseek(fd, offset, SEEK_SET) < 0) { in main() [all …]
|
/external/bsdiff/ |
D | file.cc | 68 off_t newpos = lseek(fd_, pos, SEEK_SET); in Seek() 110 off_t pos = lseek(fd_, 0, SEEK_CUR); in GetSize() 113 off_t end_pos = lseek(fd_, 0, SEEK_END); in GetSize() 117 lseek(fd_, 0, SEEK_END); in GetSize()
|
/external/zlib/src/examples/ |
D | gzlog.c | 415 if (lseek(log->fd, 0, SEEK_SET) < 0 || in log_head() 451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || in log_mark() 476 if (back != 8 && (lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last() 491 return lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last() 493 lseek(log->fd, log->stored, SEEK_CUR) < 0 ? -1 : 0; in log_last() 553 (end = lseek(log->fd, 0, SEEK_CUR)) < 0 || ftruncate(log->fd, end)) in log_append() 644 if (lseek(log->fd, log->first - (log->back > 8 ? 2 : 1), in log_compress() 646 read(log->fd, buf, 1) != 1 || lseek(log->fd, -1, SEEK_CUR) < 0) { in log_compress() 677 if ((log->first = lseek(log->fd, -1, SEEK_CUR)) < 0 || in log_compress() 705 (end = lseek(log->fd, 0, SEEK_CUR)) < 0 || ftruncate(log->fd, end)) in log_compress() [all …]
|
D | gzappend.c | 210 if (lseek(in->fd, (off_t)bypass, SEEK_CUR) == -1) in skip() 291 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan() 331 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in; in gzscan() 340 end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan() 355 lseek(gz.fd, lastoff - (lastbit != 0), SEEK_SET); in gzscan() 358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan() 374 lseek(gz.fd, --end, SEEK_SET); in gzscan() 378 lseek(gz.fd, end, SEEK_SET); in gzscan()
|
/external/google-breakpad/src/client/mac/handler/ |
D | breakpad_nlist_64.cc | 207 if (lseek(fd, 0, SEEK_SET) == -1) { in __breakpad_fdnlist() 263 if (lseek(fd, arch_offset, SEEK_SET) == -1) { in __breakpad_fdnlist() 275 if (lseek(fd, arch_offset, SEEK_SET) == -1) { in __breakpad_fdnlist() 335 if (lseek(fd, sa, SEEK_SET) == -1) { in __breakpad_fdnlist() 353 off_t savpos = lseek(fd, 0, SEEK_CUR); in __breakpad_fdnlist() 365 if (lseek(fd, ss+q->n_un.n_strx, SEEK_SET) == -1) { in __breakpad_fdnlist() 397 if (lseek(fd, savpos, SEEK_SET) == -1) { in __breakpad_fdnlist()
|
/external/valgrind/none/tests/ |
D | mmap_fcntl_bug.c | 32 initial = lseek(fd, 123, SEEK_SET); in main() 35 if (lseek(fd, 0, SEEK_CUR) != 123) in main() 50 if (lseek(fd, 0, SEEK_CUR) != 123) in main()
|
/external/toybox/toys/posix/ |
D | tail.c | 80 off_t pos = lseek(fd, 0, SEEK_END); in try_lseek() 87 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET); in try_lseek() 101 if (pos != lseek(fd, pos, SEEK_SET)) { in try_lseek() 130 lseek(fd, bytes, SEEK_SET); in try_lseek()
|
/external/e2fsprogs/lib/ext2fs/ |
D | llseek.c | 56 #define my_llseek lseek 115 return lseek(fd, (off_t) offset, origin); in ext2fs_llseek() 139 return lseek (fd, (off_t) offset, origin); in ext2fs_llseek()
|
/external/e2fsprogs/lib/blkid/ |
D | llseek.c | 55 #define llseek lseek 102 return lseek(fd, (off_t) offset, whence); in blkid_llseek() 141 return lseek(fd, (off_t) offset, origin); in blkid_llseek()
|
/external/ltp/testcases/kernel/fs/doio/ |
D | README | 41 lseek. All system calls are checked for proper returns. The writes or the 64 # run 30 secs: random iosize, random lseek up to eof 68 # run 30 secs: grow by lseek then write single byte, trunc every 10 itervals 71 # run forever: 5 copies of random iosize, random lseek to beyond eof, 75 # run forever: 5 copies of random iosize, random lseek to beyond eof,
|
D | write_log.c | 226 offset = lseek(wfile->w_afd, 0, SEEK_CUR) - reclen; in wlog_record_write() 235 if ((lseek(wfile->w_rfd, offset, SEEK_SET)) == -1) { in wlog_record_write() 276 if ((lseek(fd, 0, SEEK_END)) == -1) { in wlog_scan_backward() 282 offset = lseek(fd, 0, SEEK_CUR); in wlog_scan_backward() 311 if ((lseek(fd, offset, SEEK_SET)) == -1) { in wlog_scan_backward()
|
/external/fsck_msdos/ |
D | boot.c | 128 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) 155 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) 175 if (lseek(dosfs, boot->Backup * boot->BytesPerSec, SEEK_SET) 289 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET) 303 if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress07.c | 171 if (lseek(rwfd, sparseoff, SEEK_SET) < 0) { 187 if (lseek(rwfd, holesize, SEEK_CUR) == -1) { 231 if (lseek(rwfd, sparseoff + e_pageskip * pagesize, SEEK_SET) == -1) { 250 if (lseek(rofd, sparseoff, SEEK_SET) == -1) {
|
/external/ImageMagick/MagickCore/ |
D | nt-base.h | 155 #if !defined(lseek) 156 # define lseek _lseeki64 macro 159 #if !defined(lseek) 160 # define lseek _lseek
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | read_checkzero.c | 54 offset = lseek(fd, 4096, SEEK_END); in read_eof() 57 offset = lseek(fd, offset - 4096, SEEK_SET); in read_eof()
|
/external/deqp/framework/delibs/deutil/ |
D | deFile.c | 151 return lseek(file->fd, (off_t)offset, mapSeekPosition(base)) >= 0; in deFile_seek() 156 return lseek(file->fd, 0, SEEK_CUR); in deFile_getPosition() 162 deInt64 curPos = lseek(file->fd, 0, SEEK_CUR); in deFile_getSize() 167 size = lseek(file->fd, 0, SEEK_END); in deFile_getSize() 172 lseek(file->fd, (off_t)curPos, SEEK_SET); in deFile_getSize()
|
/external/e2fsprogs/contrib/ |
D | make-sparse.c | 76 lseek(fd, sizeof(buf), SEEK_CUR); in main() 85 lseek(fd, -1, SEEK_CUR); in main()
|
/external/e2fsprogs/e2fsck/ |
D | extend.c | 61 ret = lseek(fd, nblocks*blocksize, SEEK_SET); in main() 71 ret = lseek(fd, nblocks*blocksize, SEEK_SET); in main()
|
/external/curl/lib/ |
D | curl_setup.h | 356 # undef lseek 357 # define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence) macro 375 # undef lseek 376 # define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) macro
|
/external/valgrind/memcheck/tests/ |
D | writev1.c | 55 lseek(fd, 0, 0); in main() 61 lseek(fd, K_1, 0); in main()
|