Home
last modified time | relevance | path

Searched refs:SEEK_CUR (Results 1 - 25 of 298) sorted by relevance

12345678910>>...12

/third_party/ltp/testcases/kernel/syscalls/llseek/
H A Dllseek03.c9 * For each of SEEK_SET, SEEK_CUR and SEEK_END verify that,
47 {SEEK_CUR, 1, 5, 3, "fgh"},
52 {SEEK_CUR, 4, 8, 0, NULL},
57 {SEEK_CUR, 8, 12, 0, NULL},
66 case SEEK_CUR: in str_whence()
67 return "SEEK_CUR"; in str_whence()
/third_party/ltp/testcases/kernel/syscalls/lseek/
H A Dlseek02.c36 {&bad_fd, SEEK_CUR, EBADF},
42 {&pfd1, SEEK_CUR, ESPIPE},
45 {&pfds[0], SEEK_CUR, ESPIPE},
48 {&pfd2, SEEK_CUR, ESPIPE},
/third_party/skia/third_party/externals/oboe/samples/parselib/src/main/cpp/stream/
H A DFileInputStream.cpp28 ::lseek(mFH, -numBytes, SEEK_CUR); in peek()
34 ::lseek(mFH, numBytes, SEEK_CUR); in advance()
39 return ::lseek(mFH, 0L, SEEK_CUR); in getPos()
/third_party/musl/libc-test/src/functional/
H A Dmemstream.c43 TEST_E(fseek(f,1,SEEK_CUR)>=0); in main()
47 TEST(i, fseek(f,-3,SEEK_CUR), -1, "invalid seek allowed"); in main()
50 TEST_E(fseek(f,-2,SEEK_CUR)>=0); in main()
66 TEST(i, fseek(f, 6, SEEK_CUR)<0, 1, ""); in main()
87 TEST_E(fseek(f, 0, SEEK_CUR)>=0); in main()
/third_party/node/test/wasi/c/
H A Dftruncate.c23 assert(0 == lseek(fd, 0, SEEK_CUR)); in main()
29 assert(0 == lseek(fd, 0, SEEK_CUR)); in main()
35 assert(0 == lseek(fd, 0, SEEK_CUR)); in main()
/third_party/libsnd/tests/
H A Dlossy_comp_test.c783 if ((k = (int) sf_seek (file, 0, SEEK_CUR)) != seekpos + 1) in lcomp_test_short()
784 { printf ("\n\nLine %d: sf_seek (SEEK_CUR) with 0 offset failed (%d should be %d)\n", __LINE__, k, seekpos + 1) ; in lcomp_test_short()
788 seekpos = (int) sf_seek (file, 0, SEEK_CUR) + BUFFER_SIZE / 5 ; in lcomp_test_short()
789 k = (int) sf_seek (file, BUFFER_SIZE / 5, SEEK_CUR) ; in lcomp_test_short()
792 { printf ("\n\nLine %d: sf_seek (forwards, SEEK_CUR) followed by sf_readf_short failed (%d, %d) (%d, %d).\n", __LINE__, data [0], orig [seekpos * channels], k, seekpos + 1) ; in lcomp_test_short()
797 seekpos = (int) sf_seek (file, 0, SEEK_CUR) - 20 ; in lcomp_test_short()
799 k = (int) sf_seek (file, -20, SEEK_CUR) ; in lcomp_test_short()
802 { printf ("\nLine %d: sf_seek (backwards, SEEK_CUR) followed by sf_readf_short failed (%d, %d) (%d, %d).\n", __LINE__, data [0], orig [seekpos * channels], k, seekpos) ; in lcomp_test_short()
982 if ((k = (int) sf_seek (file, 0, SEEK_CUR)) != seekpos + 1) in lcomp_test_int()
983 { printf ("\n\nLine %d: sf_seek (SEEK_CUR) wit in lcomp_test_int()
[all...]
H A Dfix_this.c234 if ((k = sf_seek (file, 0, SEEK_CUR)) != seekpos + 1) in lcomp_test_int()
235 { printf ("Line %d: sf_seek (SEEK_CUR) with 0 offset failed (%d should be %" PRId64 ")\n", __LINE__, k, seekpos + 1) ; in lcomp_test_int()
239 seekpos = sf_seek (file, 0, SEEK_CUR) + BUFFER_SIZE / 5 ; in lcomp_test_int()
240 k = sf_seek (file, BUFFER_SIZE / 5, SEEK_CUR) ; in lcomp_test_int()
243 { printf ("Line %d: sf_seek (forwards, SEEK_CUR) followed by sf_readf_int failed (%d, %d) (%d, %" PRId64 ").\n", __LINE__, data [0], orig [seekpos], k, seekpos + 1) ; in lcomp_test_int()
247 seekpos = sf_seek (file, 0, SEEK_CUR) - 20 ; in lcomp_test_int()
249 k = sf_seek (file, -20, SEEK_CUR) ; in lcomp_test_int()
252 { printf ("sf_seek (backwards, SEEK_CUR) followed by sf_readf_int failed (%d, %d) (%d, %" PRId64 ").\n", data [0], orig [seekpos], k, seekpos) ; in lcomp_test_int()
/third_party/ltp/testcases/kernel/syscalls/pread/
H A Dpread01.c62 l_seek(fildes, 0, SEEK_CUR, K4); in verify_pread()
66 l_seek(fildes, 0, SEEK_CUR, 0); in verify_pread()
69 l_seek(fildes, 0, SEEK_CUR, K1); in verify_pread()
72 l_seek(fildes, 0, SEEK_CUR, K1); in verify_pread()
/third_party/ltp/testcases/kernel/syscalls/sendfile/
H A Dsendfile09.c53 SAFE_LSEEK(fd, 1024 * 1024 - 1, SEEK_CUR); in setup()
69 before_pos = SAFE_LSEEK(in_fd, 0, SEEK_CUR); in run()
72 after_pos = SAFE_LSEEK(in_fd, 0, SEEK_CUR); in run()
H A Dsendfile02.c61 before_pos = SAFE_LSEEK(in_fd, 0, SEEK_CUR); in run()
64 after_pos = SAFE_LSEEK(in_fd, 0, SEEK_CUR); in run()
/third_party/ffmpeg/libavcodec/
H A Dmwsc.c58 bytestream2_seek_p(pb, -(pb_linesize + stride), SEEK_CUR); in rle_uncompress()
69 bytestream2_seek_p(pb, -(pb_linesize + stride), SEEK_CUR); in rle_uncompress()
70 bytestream2_seek(gbp, -(gbp_linesize + stride), SEEK_CUR); in rle_uncompress()
80 bytestream2_seek_p(pb, -(pb_linesize + stride), SEEK_CUR); in rle_uncompress()
/third_party/ltp/testcases/kernel/syscalls/pwrite/
H A Dpwrite01.c66 l_seek(fildes, 0, SEEK_CUR, 0); in verify_pwrite()
70 l_seek(fildes, 0, SEEK_CUR, K1 / 2); in verify_pwrite()
74 l_seek(fildes, 0, SEEK_CUR, K4); in verify_pwrite()
/third_party/ffmpeg/libavformat/
H A Dapngdec.c215 if ((ret = avio_seek(pb, -8, SEEK_CUR)) < 0 || in apng_read_header()
228 if ((ret = avio_seek(pb, -8, SEEK_CUR)) < 0) in apng_read_header()
232 if ((ret = avio_seek(pb, -8, SEEK_CUR)) < 0 || in apng_read_header()
357 if ((ret = avio_seek(pb, -46, SEEK_CUR)) < 0 || in apng_read_packet()
371 if ((ret = avio_seek(pb, -8, SEEK_CUR)) < 0 || in apng_read_packet()
379 if ((ret = avio_seek(pb, -8, SEEK_CUR)) < 0) in apng_read_packet()
390 avio_seek(pb, -8, SEEK_CUR); in apng_read_packet()
H A Dwc3movie.c159 avio_seek(pb, -8, SEEK_CUR); in wc3_read_header()
234 avio_seek(pb, -8, SEEK_CUR); in wc3_read_packet()
240 avio_seek(pb, -8, SEEK_CUR); in wc3_read_packet()
H A Dasync.c402 } else if (whence == SEEK_CUR) { in async_seek()
559 } else if (whence == SEEK_CUR) {
626 pos = ffurl_seek(h, 0, SEEK_CUR);
631 printf("read-error: AVERROR_EOF at %"PRId64"\n", ffurl_seek(h, 0, SEEK_CUR));
637 printf("read-error: %d at %"PRId64"\n", ret, ffurl_seek(h, 0, SEEK_CUR));
671 printf("read-error: %d at %"PRId64"\n", ret, ffurl_seek(h, 0, SEEK_CUR));
/third_party/ffmpeg/tests/
H A Dtiny_psnr.c160 fseek(f[i], s, SEEK_CUR); in run_psnr()
165 fseek(f[i], -12, SEEK_CUR); in run_psnr()
169 fseek(f[shift < 0], abs(shift), SEEK_CUR); in run_psnr()
171 fseek(f[0], skip_bytes, SEEK_CUR); in run_psnr()
172 fseek(f[1], skip_bytes, SEEK_CUR); in run_psnr()
H A Daudiomatch.c70 fseek(f[i], s, SEEK_CUR); in main()
75 fseek(f[i], -12, SEEK_CUR); in main()
/third_party/musl/porting/liteos_a/kernel/src/stdio/
H A Dfseek.c7 if (whence != SEEK_CUR && whence != SEEK_SET && whence != SEEK_END) { in __fseeko_unlocked()
13 if (whence == SEEK_CUR && f->rend) off -= f->rend - f->rpos; in __fseeko_unlocked()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl05.c44 TST_EXP_EQ_LI(flocks.l_whence, SEEK_CUR); in verify_fcntl()
55 flocks.l_whence = SEEK_CUR; in setup()
/third_party/musl/src/stdio/
H A Dfseek.c10 if (whence != SEEK_CUR && whence != SEEK_SET && whence != SEEK_END) { in __fseeko_unlocked()
16 if (whence == SEEK_CUR && f->rend) off -= f->rend - f->rpos; in __fseeko_unlocked()
/third_party/NuttX/fs/vfs/
H A Dfs_sendfile.c103 startpos = lseek(infd, 0, SEEK_CUR); in sendfile()
249 off_t curpos = lseek(infd, 0, SEEK_CUR); in sendfile()
/third_party/zlib/examples/
H A 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()
H A 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()
949 if (lseek(log->fd, 0, SEEK_CUR) != log->last + 4 + log->stored) in gzlog_compress()
/third_party/musl/porting/linux/user/include/
H A Dfcntl.h77 #undef SEEK_CUR macro
80 #define SEEK_CUR 1 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dfcntl.h76 #undef SEEK_CUR macro
79 #define SEEK_CUR 1 macro

Completed in 12 milliseconds

12345678910>>...12