/external/toybox/toys/posix/ |
D | tail.c | 77 ssize_t pos = lseek(fd, 0, SEEK_END); in try_lseek() 84 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET); in try_lseek() 98 if (pos != lseek(fd, pos, SEEK_SET)) { in try_lseek() 127 lseek(fd, bytes, SEEK_SET); in try_lseek()
|
/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/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/e2fsprogs/lib/ext2fs/ |
D | llseek.c | 51 #define my_llseek lseek 110 return lseek(fd, (off_t) offset, origin); in ext2fs_llseek() 134 return lseek (fd, (off_t) offset, origin); in ext2fs_llseek()
|
/external/e2fsprogs/lib/blkid/ |
D | llseek.c | 50 #define llseek lseek 97 return lseek(fd, (off_t) offset, whence); in blkid_llseek() 136 return lseek(fd, (off_t) offset, origin); in blkid_llseek()
|
/external/deqp/framework/delibs/deutil/ |
D | deFile.c | 151 return lseek(file->fd, 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 if (lseek(file->fd, -1, SEEK_END) < 0) in deFile_getSize() 170 size = lseek(file->fd, 0, SEEK_CUR); in deFile_getSize() 171 lseek(file->fd, curPos, SEEK_SET); in deFile_getSize()
|
/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/strace/ |
D | lseek.c | 13 SYS_FUNC(lseek) in SYS_FUNC() argument 31 SYS_FUNC(lseek) in SYS_FUNC() argument
|
/external/e2fsprogs/e2fsck/ |
D | extend.c | 60 ret = lseek(fd, nblocks*blocksize, SEEK_SET); in main() 70 ret = lseek(fd, nblocks*blocksize, SEEK_SET); in main()
|
/external/e2fsprogs/contrib/ |
D | make-sparse.c | 72 lseek(fd, sizeof(buf), SEEK_CUR); in main() 81 lseek(fd, -1, SEEK_CUR); in main()
|
/external/valgrind/memcheck/tests/ |
D | writev1.c | 55 lseek(fd, 0, 0); in main() 61 lseek(fd, K_1, 0); in main()
|
/external/e2fsprogs/misc/ |
D | e2label.c | 60 if (lseek(fd, 1024, SEEK_SET) != 1024) { in open_e2fs() 97 if (lseek(fd, 1024, SEEK_SET) != 1024) { in change_label()
|
/external/linux-tools-perf/src/tools/perf/util/ |
D | header.c | 1039 off_t offset = lseek(fd, 0, SEEK_CUR); in write_pmu_mappings() 1064 lseek(fd, offset, SEEK_SET); in write_pmu_mappings() 1644 if (lseek(input, orig_offset, SEEK_SET) == (off_t)-1) in perf_header__read_build_ids() 2167 if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) { in perf_file_section__fprintf_info() 2212 (*p)->offset = lseek(fd, 0, SEEK_CUR); in do_write_feat() 2219 lseek(fd, (*p)->offset, SEEK_SET); in do_write_feat() 2223 (*p)->size = lseek(fd, 0, SEEK_CUR) - (*p)->offset; in do_write_feat() 2250 lseek(fd, sec_start + sec_size, SEEK_SET); in perf_header__adds_write() 2257 lseek(fd, sec_start, SEEK_SET); in perf_header__adds_write() 2299 lseek(fd, sizeof(f_header), SEEK_SET); in perf_session__write_header() [all …]
|
/external/llvm/test/CodeGen/Generic/ |
D | 2006-02-12-InsertLibcall.ll | 11 %tmp.111.i = call i64 @lseek( i32 0, i64 %tmp.114.i, i32 1 ) ; <i64> [#uses=0] 60 declare i64 @lseek(i32, i64, i32)
|
/external/boringssl/src/crypto/bio/ |
D | fd.c | 189 ret = (long)lseek(b->num, num, SEEK_SET); in fd_ctrl() 196 ret = (long)lseek(b->num, 0, SEEK_CUR); in fd_ctrl()
|
/external/toybox/lib/ |
D | lib.c | 96 off_t cur = lseek(fd, 0, SEEK_CUR); in lskip() 99 off_t end = lseek(fd, 0, SEEK_END) - cur; in lskip() 103 if (end == lseek(fd, end, SEEK_SET)) return 0; in lskip() 331 old = lseek(fd, 0, SEEK_CUR); in fdlength() 336 if (lseek(fd, pos, 0)>=0 && read(fd, &temp, 1)==1) { in fdlength() 348 lseek(fd, old, SEEK_SET); in fdlength()
|
/external/libmtp/src/ |
D | playlist-spl.c | 227 f->filesize = lseek(fd, 0, SEEK_CUR); // file desc is currently at end of file in playlist_t_to_spl() 234 lseek(fd, 0, SEEK_SET); // reset file desc. to start of file in playlist_t_to_spl() 346 offcnt = lseek(fd, 0, SEEK_SET); in read_into_spl_text_t() 352 offcnt = lseek(fd, 0, SEEK_CUR); in read_into_spl_text_t() 364 rdcnt = lseek(fd, 0, SEEK_CUR) - offcnt; in read_into_spl_text_t()
|
/external/pdfium/core/src/fxcrt/ |
D | fxcrt_posix.cpp | 77 return lseek(m_nFD, 0, SEEK_CUR); in GetPosition() 84 return lseek(m_nFD, pos, SEEK_SET); in SetPosition()
|
/external/bison/lib/ |
D | unistd.in.h | 1084 # define lseek rpl_lseek 1086 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1087 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1089 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); 1091 _GL_CXXALIASWARN (lseek); 1093 # undef lseek 1095 _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
|
/external/bsdiff/ |
D | bspatch.c | 137 ((oldsize=lseek(fd,0,SEEK_END))==-1) || in main() 139 (lseek(fd,0,SEEK_SET)!=0) || in main()
|
/external/libunwind/src/coredump/ |
D | _UCD_create.c | 147 if (lseek(fd, ofs, SEEK_SET) != ofs) in _UCD_create() 219 if (lseek(fd, cur->p_offset, SEEK_SET) != (off_t)cur->p_offset in _UCD_create() 359 if (lseek(ui->coredump_fd, phdr->p_offset, SEEK_SET) != (off_t)phdr->p_offset in _UCD_add_backing_file_at_segment()
|
/external/bison/linux-lib/ |
D | unistd.h | 1396 # define lseek rpl_lseek 1398 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1399 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1401 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); 1403 _GL_CXXALIASWARN (lseek); 1405 # undef lseek 1407 _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
|
/external/bison/darwin-lib/ |
D | unistd.h | 1396 # define lseek rpl_lseek 1398 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1399 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1401 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); 1403 _GL_CXXALIASWARN (lseek); 1405 # undef lseek 1407 _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
|