/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/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/python/cpython3/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() 390 if (lseek(fd, offset, SEEK_SET) < 0) { in main() 416 if (lseek(fd, offset, SEEK_SET) < 0) { in main() 465 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/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/toybox/toys/posix/ |
D | tail.c | 72 off_t pos = lseek(fd, 0, SEEK_END); in try_lseek() 79 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET); in try_lseek() 93 if (pos != lseek(fd, pos, SEEK_SET)) { in try_lseek() 122 lseek(fd, bytes, SEEK_SET); in try_lseek()
|
/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/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/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/igt-gpu-tools/tests/ |
D | prime_self_import.c | 413 igt_require(lseek(dma_buf_fd, 0, SEEK_END) >= 0); in test_llseek_bad() 415 igt_assert(lseek(dma_buf_fd, -1, SEEK_END) == -1 && errno == EINVAL); in test_llseek_bad() 416 igt_assert(lseek(dma_buf_fd, 1, SEEK_SET) == -1 && errno == EINVAL); in test_llseek_bad() 417 igt_assert(lseek(dma_buf_fd, BO_SIZE, SEEK_SET) == -1 && errno == EINVAL); in test_llseek_bad() 418 igt_assert(lseek(dma_buf_fd, BO_SIZE + 1, SEEK_SET) == -1 && errno == EINVAL); in test_llseek_bad() 419 igt_assert(lseek(dma_buf_fd, BO_SIZE - 1, SEEK_SET) == -1 && errno == EINVAL); in test_llseek_bad()
|
/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/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/linux-kselftest/tools/testing/selftests/kvm/lib/ |
D | elf.c | 80 offset_rv = lseek(fd, 0, SEEK_SET); in elfhdr_get() 141 offset_rv = lseek(fd, offset, SEEK_SET); in kvm_vm_elf_load() 184 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | compaction_test.c | 111 lseek(fd, 0, SEEK_SET); in check_compaction() 120 lseek(fd, 0, SEEK_SET); in check_compaction() 142 lseek(fd, 0, SEEK_SET); in check_compaction()
|
/external/ImageMagick/MagickCore/ |
D | nt-base.h | 158 #if !defined(lseek) 159 # define lseek _lseeki64 macro 162 #if !defined(lseek) 163 # define lseek _lseek
|
/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/u-boot/tools/ |
D | imx8mimage.c | 222 ret = lseek(ifd, offset, SEEK_SET); in fill_zero() 278 ret = lseek(ifd, offset, SEEK_SET); in copy_file() 327 ret = lseek(fd, fit_offset, SEEK_SET); in generate_ivt_for_fit() 350 ret = lseek(fd, fit_offset + fit_size, SEEK_SET); in generate_ivt_for_fit() 538 ret = lseek(ofd, header_hdmi_off, SEEK_SET); in build_image() 551 ret = lseek(ofd, header_image_off, SEEK_SET); in build_image() 571 ret = lseek(ofd, sld_header_off, SEEK_SET); in build_image()
|
/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/u-boot/board/samsung/smdkv310/tools/ |
D | mksmdkv310spl.c | 60 len = lseek(ifd, 0, SEEK_END); in main() 61 lseek(ifd, 0, SEEK_SET); in main()
|
/external/arm-trusted-firmware/tools/amlogic/ |
D | doimage.c | 72 lseek(fout, 8, SEEK_SET); in main() 77 lseek(fout, 0x200, SEEK_SET); in main()
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | llseek.c | 104 return lseek(fd, (off_t) offset, origin); in llse_llseek() 120 return lseek(fd, (off_t) offset, origin); in llse_llseek()
|