Home
last modified time | relevance | path

Searched refs:SEEK_CUR (Results 1 – 25 of 199) sorted by relevance

12345678

/external/ltp/testcases/kernel/syscalls/pread/
Dpread01.c130 l_seek(fildes, 0, SEEK_CUR, K4); in main()
143 l_seek(fildes, 0, SEEK_CUR, 0); in main()
156 l_seek(fildes, 0, SEEK_CUR, K1); in main()
166 l_seek(fildes, 0, SEEK_CUR, K1); in main()
216 l_seek(fildes, 0, SEEK_CUR, 0); in setup()
229 l_seek(fildes, 0, SEEK_CUR, K1 / 2); in setup()
244 l_seek(fildes, 0, SEEK_CUR, K4); in setup()
/external/swiftshader/third_party/LLVM/runtime/libprofile/
DPathProfiling.c82 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()
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()
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek02.c53 {&bad_fd, SEEK_CUR, EBADF},
59 {&pfd1, SEEK_CUR, ESPIPE},
62 {&pfds[0], SEEK_CUR, ESPIPE},
65 {&pfd2, SEEK_CUR, ESPIPE},
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite04.c103 l_seek(fd, 0, SEEK_CUR, 0); in main()
123 l_seek(fd, 0, SEEK_CUR, K1 / 2); in main()
143 l_seek(fd, 0, SEEK_CUR, K4); in main()
193 l_seek(fd, 0, SEEK_CUR, K2); in main()
Dpwrite01.c129 l_seek(fildes, 0, SEEK_CUR, 0); in main()
150 l_seek(fildes, 0, SEEK_CUR, K1 / 2); in main()
168 l_seek(fildes, 0, SEEK_CUR, K4); in main()
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile09.c93 before_pos = SAFE_LSEEK(cleanup, in_fd, 0, SEEK_CUR); in do_sendfile()
99 after_pos = SAFE_LSEEK(cleanup, in_fd, 0, SEEK_CUR); in do_sendfile()
145 SAFE_LSEEK(cleanup, fd, 1024 * 1024 - 1, SEEK_CUR); in setup()
Dsendfile02.c113 if ((before_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) { in do_sendfile()
120 if ((after_pos = lseek(in_fd, 0, SEEK_CUR)) < 0) { in do_sendfile()
/external/strace/xlat/
Dwhence_codes.h15 #if defined(SEEK_CUR) || (defined(HAVE_DECL_SEEK_CUR) && HAVE_DECL_SEEK_CUR)
16 XLAT(SEEK_CUR),
Dwhence_codes.in2 SEEK_CUR
/external/e2fsprogs/contrib/
Dmake-sparse.c76 lseek(fd, sizeof(buf), SEEK_CUR); in main()
85 lseek(fd, -1, SEEK_CUR); in main()
/external/zlib/src/examples/
Dgzappend.c210 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()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
Dgzlog.c493 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()
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()
947 if (lseek(log->fd, 0, SEEK_CUR) != log->last + 4 + log->stored) in gzlog_compress()
/external/puffin/src/
Dfile_stream.cc38 auto cur_off = lseek(fd_, 0, SEEK_CUR); in GetSize()
49 auto off = lseek(fd_, 0, SEEK_CUR); in GetOffset()
/external/autotest/client/site_tests/platform_DMVerityBitCorruption/
Dplatform_DMVerityBitCorruption.py36 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
40 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
/external/u-boot/fs/yaffs2/
Dyportenv.h129 #ifndef SEEK_CUR
130 #define SEEK_CUR 1 macro
/external/toybox/toys/pending/
Ddd.c173 if (lseek(TT.in.fd, (off_t)(TT.in.offset * TT.in.sz), SEEK_CUR) < 0) { in dd_main()
192 xlseek(TT.out.fd, bs, SEEK_CUR); in dd_main()
215 xlseek(TT.in.fd, TT.in.sz, SEEK_CUR); in dd_main()
/external/e2fsprogs/util/
Dcopy_sparse.c177 lseek(ofd, bs, SEEK_CUR); in copy_sparse_file()
195 lseek64(ofd, offset-1, SEEK_CUR); in copy_sparse_file()
/external/ltp/testcases/kernel/syscalls/open/
Dopen12.c131 len1 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append()
133 len2 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append()
/external/zlib/src/
Dgzlib.c258 state->start = LSEEK(state->fd, 0, SEEK_CUR);
387 if (whence != SEEK_SET && whence != SEEK_CUR)
400 ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
496 offset = LSEEK(state->fd, 0, SEEK_CUR);
/external/python/cpython2/Modules/zlib/
Dgzlib.c258 state->start = LSEEK(state->fd, 0, SEEK_CUR);
387 if (whence != SEEK_SET && whence != SEEK_CUR)
400 ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
496 offset = LSEEK(state->fd, 0, SEEK_CUR);
/external/python/cpython3/Modules/_io/
Dfileio.c601 PyObject *pos = portable_lseek(self, NULL, SEEK_CUR);
694 pos = _lseeki64(self->fd, 0L, SEEK_CUR);
696 pos = lseek(self->fd, 0L, SEEK_CUR);
879 #if SEEK_CUR != 1
880 case 1: whence = SEEK_CUR; break;
/external/deqp/framework/delibs/deutil/
DdeFile.c142 case DE_FILEPOSITION_CURRENT: return SEEK_CUR; in mapSeekPosition()
156 return lseek(file->fd, 0, SEEK_CUR); in deFile_getPosition()
162 deInt64 curPos = lseek(file->fd, 0, SEEK_CUR); in deFile_getSize()
/external/ltp/testcases/kernel/syscalls/copy_file_range/
Dcopy_file_range01.c98 loff_t fd_off = SAFE_LSEEK(fd, 0, SEEK_CUR); in check_file_offset()
126 loff_t fd_off = SAFE_LSEEK(fd, 0, SEEK_CUR); in check_file_offset()
/external/lz4/programs/
Dlz4io.c741 int const seekResult = UTIL_fseek(file, 1 GB, SEEK_CUR); in LZ4IO_fwriteSparse()
758 { int const seekResult = UTIL_fseek(file, storedSkips, SEEK_CUR); in LZ4IO_fwriteSparse()
778 int const seekResult = UTIL_fseek(file, storedSkips, SEEK_CUR); in LZ4IO_fwriteSparse()
792 int const seekResult = UTIL_fseek(file, storedSkips-1, SEEK_CUR); in LZ4IO_fwriteSparseEnd()
989 if (where != SEEK_CUR) return -1; /* Only allows SEEK_CUR */ in fseek_u32()
993 errorNb = UTIL_fseek(fp, (long) s, SEEK_CUR); in fseek_u32()
1038 int const errorNb = fseek_u32(finput, size, SEEK_CUR); in selectDecoder()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress07.c185 if (lseek64(rwfd, holesize, SEEK_CUR) == -1) {
187 if (lseek(rwfd, holesize, SEEK_CUR) == -1) {

12345678