Searched refs:SEEK_CUR (Results 26 - 50 of 147) sorted by relevance

123456

/external/zlib/src/examples/
H A Dgzlog.c493 lseek(log->fd, log->stored, SEEK_CUR) < 0 ? -1 : 0;
553 (end = lseek(log->fd, 0, SEEK_CUR)) < 0 || ftruncate(log->fd, end))
646 read(log->fd, buf, 1) != 1 || lseek(log->fd, -1, SEEK_CUR) < 0) {
677 if ((log->first = lseek(log->fd, -1, SEEK_CUR)) < 0 ||
705 (end = lseek(log->fd, 0, SEEK_CUR)) < 0 || ftruncate(log->fd, end))
947 if (lseek(log->fd, 0, SEEK_CUR) != log->last + 4 + log->stored)
/external/deqp/framework/delibs/deutil/
H A DdeFile.c142 case DE_FILEPOSITION_CURRENT: return SEEK_CUR;
156 return lseek(file->fd, 0, SEEK_CUR);
162 deInt64 curPos = lseek(file->fd, 0, SEEK_CUR);
/external/toybox/toys/pending/
H A Ddd.c172 if (lseek(TT.in.fd, (off_t)(TT.in.offset * TT.in.sz), SEEK_CUR) < 0) {
191 xlseek(TT.out.fd, bs, SEEK_CUR);
214 xlseek(TT.in.fd, TT.in.sz, SEEK_CUR);
/external/bsdiff/
H A Dfile.cc114 off_t pos = lseek(fd_, 0, SEEK_CUR);
/external/ltp/testcases/kernel/syscalls/llseek/
H A Dllseek03.c22 * specified location, when 'whence' value is set to SEEK_CUR and the data
115 TEST(lseek64(fd, (loff_t) 1, SEEK_CUR));
/external/ltp/testcases/kernel/syscalls/writev/
H A Dwritev07.c71 off_after = (long) SAFE_LSEEK(fd, 0, SEEK_CUR);
/external/pdfium/core/fxcrt/
H A Dfxcrt_posix.cpp77 return lseek(m_nFD, 0, SEEK_CUR);
/external/pdfium/third_party/zlib_v128/
H A Dgzlib.c256 state->start = LSEEK(state->fd, 0, SEEK_CUR);
383 if (whence != SEEK_SET && whence != SEEK_CUR)
386 /* normalize offset to a SEEK_CUR specification */
396 ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
492 offset = LSEEK(state->fd, 0, SEEK_CUR);
/external/python/cpython2/Modules/zlib/
H A Dgzlib.c256 state->start = LSEEK(state->fd, 0, SEEK_CUR);
383 if (whence != SEEK_SET && whence != SEEK_CUR)
386 /* normalize offset to a SEEK_CUR specification */
396 ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
492 offset = LSEEK(state->fd, 0, SEEK_CUR);
/external/syslinux/com32/include/
H A Dstdio.h26 #define SEEK_CUR 1 macro
/external/zlib/src/
H A Dgzlib.c256 state->start = LSEEK(state->fd, 0, SEEK_CUR);
383 if (whence != SEEK_SET && whence != SEEK_CUR)
386 /* normalize offset to a SEEK_CUR specification */
396 ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
492 offset = LSEEK(state->fd, 0, SEEK_CUR);
/external/libcxx/test/std/depr/depr.c.headers/
H A Dstdio_h.pass.cpp60 #ifndef SEEK_CUR
61 #error SEEK_CUR not defined
/external/libcxx/test/std/input.output/file.streams/c.files/
H A Dcstdio.pass.cpp41 #ifndef SEEK_CUR
42 #error SEEK_CUR not defined
/external/ltp/testcases/kernel/mem/mmapstress/
H A Dmmapstress07.c185 if (lseek64(rwfd, holesize, SEEK_CUR) == -1) {
187 if (lseek(rwfd, holesize, SEEK_CUR) == -1) {
/external/ltp/testcases/kernel/syscalls/sendfile/
H A Dsendfile02.c114 if ((before_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) {
121 if ((after_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) {
H A Dsendfile06.c77 if ((after_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) {
/external/tinyalsa/
H A Dtinyplay.c116 fseek(file, chunk_header.sz - sizeof(chunk_fmt), SEEK_CUR);
124 fseek(file, chunk_header.sz, SEEK_CUR);
/external/lz4/programs/
H A Dlz4io.c636 int const seekResult = fseek(file, 1 GB, SEEK_CUR);
653 { int const seekResult = fseek(file, storedSkips, SEEK_CUR);
673 int const seekResult = fseek(file, storedSkips, SEEK_CUR);
687 int const seekResult = fseek(file, storedSkips-1, SEEK_CUR);
872 if (where != SEEK_CUR) return -1; /* Only allows SEEK_CUR */
876 errorNb = fseek(fp, (long) s, SEEK_CUR);
917 int const errorNb = fseek_u32(finput, size, SEEK_CUR);
/external/boringssl/src/crypto/bio/
H A Dfd.c203 ret = (long)BORINGSSL_LSEEK(b->num, 0, SEEK_CUR);
/external/freetype/src/gzip/
H A Dftzconf.h250 # define SEEK_CUR 1 /* Seek from current position. */ macro
H A Dzconf.h250 # define SEEK_CUR 1 /* Seek from current position. */ macro
/external/ltp/testcases/kernel/syscalls/fallocate/
H A Dfallocate01.c260 lseek_offset = lseek(fd, write_offset, SEEK_CUR);
/external/ltp/testcases/kernel/syscalls/ftruncate/
H A Dftruncate04.c203 flocks.l_whence = SEEK_CUR;
/external/ltp/testcases/kernel/syscalls/openat/
H A Dopenat02.c132 file_offset = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR);
/external/sfntly/cpp/src/sfntly/port/
H A Dfile_input_stream.cc125 fseek(file_, (size_t)skip_count, SEEK_CUR);

Completed in 649 milliseconds

123456