Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 25 of 921) sorted by relevance

12345678910>>...37

/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dflock.c30 lseek(fd, 2, SEEK_SET); in flock_0100()
48 lseek(fd, 2, SEEK_SET); in flock_0200()
66 lseek(fd, 2, SEEK_SET); in flock_0300()
84 lseek(fd, 2, SEEK_SET); in flock_0400()
102 lseek(fd, 2, SEEK_SET); in flock_0500()
131 lseek(fd, 2, SEEK_SET); in flock_0700()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dlseek.c45 lseek64(fd, 0, SEEK_SET); in lseek64_0100()
46 offset = lseek64(fd, DataArry[i], SEEK_SET); in lseek64_0100()
69 off_t data = lseek(fd, 0L, SEEK_SET); in lseek_0100()
86 off_t data = lseek(fd, 8L, SEEK_SET); in lseek_0200()
103 off_t data = lseek(fd, 10L, SEEK_SET); in lseek_0300()
138 off_t data = lseek(fd, -10L, SEEK_SET); in lseek_0500()
/third_party/ffmpeg/libavformat/
Daacdec.c119 avio_seek(s->pb, offset, SEEK_SET); in adts_aac_get_frame_length()
130 avio_seek(s->pb, offset + 1, SEEK_SET); in adts_aac_get_frame_length()
138 avio_seek(s->pb, offset + 3, SEEK_SET); in adts_aac_get_frame_length()
151 avio_seek(s->pb, offset + 5, SEEK_SET); in adts_aac_get_frame_length()
166 avio_seek(s->pb, offset + 6, SEEK_SET); in adts_aac_get_raw_data_block_num()
193 avio_seek(s->pb, 0, SEEK_SET); in adts_aac_get_duration()
195 avio_seek(s->pb, 2, SEEK_SET); in adts_aac_get_duration()
247 avio_seek(s->pb, 0, SEEK_SET); in adts_aac_get_duration()
269 avio_seek(s->pb, cur, SEEK_SET); in adts_aac_read_header()
Dcache.c180 r = lseek(c->fd, physical_target, SEEK_SET); in cache_read()
201 r = ffurl_seek(c->inner, c->logical_pos, SEEK_SET); in cache_read()
236 if (ffurl_seek(c->inner, c->inner_pos, SEEK_SET) < 0) in cache_seek()
246 whence = SEEK_SET; in cache_seek()
250 whence = SEEK_SET; in cache_seek()
254 if (whence == SEEK_SET && pos >= 0 && pos < c->end) { in cache_seek()
262 if ((whence == SEEK_SET && pos >= c->logical_pos || in cache_seek()
264 if ( (whence == SEEK_SET && c->read_ahead_limit >= pos - c->logical_pos) in cache_seek()
269 if (whence == SEEK_SET) in cache_seek()
Dwavenc.c432 avio_seek(pb, 4, SEEK_SET); in wav_write_trailer()
434 avio_seek(pb, file_size, SEEK_SET); in wav_write_trailer()
446 avio_seek(pb, wav->fact_pos, SEEK_SET); in wav_write_trailer()
452 avio_seek(pb, file_size, SEEK_SET); in wav_write_trailer()
458 avio_seek(pb, 0, SEEK_SET); in wav_write_trailer()
463 avio_seek(pb, wav->ds64 - 8, SEEK_SET); in wav_write_trailer()
472 avio_seek(pb, wav->data - 4, SEEK_SET); in wav_write_trailer()
475 avio_seek(pb, file_size, SEEK_SET); in wav_write_trailer()
542 avio_seek(pb, start + 16, SEEK_SET); in end_guid()
544 avio_seek(pb, end, SEEK_SET); in end_guid()
[all …]
Dvag.c55 avio_seek(s->pb, 0x1000, SEEK_SET); in vag_read_header()
58 avio_seek(s->pb, 0, SEEK_SET); in vag_read_header()
62 avio_seek(s->pb, st->codecpar->channels > 1 ? 0x80 : 0x30, SEEK_SET); in vag_read_header()
Dflvenc.c467 avio_seek(pb, metadata_count_pos, SEEK_SET); in write_metadata()
470 avio_seek(pb, flv->metadata_size_pos, SEEK_SET); in write_metadata()
606 avio_seek(s->pb, flv->metadata_size_pos, SEEK_SET); in shift_data()
609 avio_seek(s->pb, flv->metadata_totalsize_pos, SEEK_SET); in shift_data()
624 avio_seek(s->pb, flv->keyframes_info_offset + metadata_size, SEEK_SET); in shift_data()
627 avio_seek(read_pb, flv->keyframes_info_offset, SEEK_SET); in shift_data()
786 avio_seek(pb, flv->videosize_offset, SEEK_SET); in flv_write_trailer()
789 avio_seek(pb, flv->audiosize_offset, SEEK_SET); in flv_write_trailer()
792 avio_seek(pb, flv->lasttimestamp_offset, SEEK_SET); in flv_write_trailer()
795 avio_seek(pb, flv->lastkeyframetimestamp_offset, SEEK_SET); in flv_write_trailer()
[all …]
/third_party/e2fsprogs/lib/ext2fs/
Dqcow2.c67 if (ext2fs_llseek(fd, 0, SEEK_SET < 0)) { in qcow2_read_header()
100 if (ext2fs_llseek(fd, img->l1_offset, SEEK_SET) < 0) { in qcow2_read_l1_table()
124 if (ext2fs_llseek(fd, offset, SEEK_SET) < 0) in qcow2_read_l2_table()
141 if (ext2fs_llseek(fdout, off_out, SEEK_SET) < 0) in qcow2_copy_data()
144 if (ext2fs_llseek(fdin, off_in, SEEK_SET) < 0) in qcow2_copy_data()
203 if (ext2fs_llseek(raw_fd, 0, SEEK_SET) < 0) { in qcow2_write_raw_image()
252 if (ext2fs_llseek(raw_fd, img.image_size - 1, SEEK_SET) < 0) { in qcow2_write_raw_image()
/third_party/musl/libc-test/src/functionalext/supplement/mman/
Dmmap.c45 fseek(fptr, 0L, SEEK_SET); in mmap_0100()
83 fseek(fptr, 0L, SEEK_SET); in mmap_0200()
137 fseek(fptr, 0L, SEEK_SET); in mmap_0400()
174 fseek(fptr, 0L, SEEK_SET); in mmap_0500()
212 fseek(fptr, 0L, SEEK_SET); in mmap_0600()
247 fseek(fptr, 0L, SEEK_SET); in mmap_0700()
281 fseek(fptr, 0L, SEEK_SET); in mmap_0800()
312 fseek(fptr, 0L, SEEK_SET); in mmap_0900()
346 fseek(fptr, 0L, SEEK_SET); in mmap_1000()
382 fseek(fptr, 0L, SEEK_SET); in mmap_1100()
/third_party/ltp/testcases/kernel/syscalls/llseek/
Dllseek03.c46 {SEEK_SET, 1, 1, 3, "bcd"},
51 {SEEK_SET, 8, 8, 0, NULL},
56 {SEEK_SET, 10, 10, 0, NULL},
64 case SEEK_SET: in str_whence()
/third_party/ltp/testcases/kernel/io/direct_io/
Ddiotest4.c103 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()
288 if (lseek(fd, offset, SEEK_SET) < 0) { in main()
391 if (lseek(fd, offset, SEEK_SET) < 0) { in main()
417 if (lseek(fd, offset, SEEK_SET) < 0) { in main()
467 if (lseek(fd, offset, SEEK_SET) < 0) { in main()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
Dfgets.c33 fseek(fptr, 0L, SEEK_SET); in fgets_0100()
60 fseek(fptr, 0L, SEEK_SET); in fgets_0200()
86 fseek(fptr, 0L, SEEK_SET); in fgets_0300()
112 fseek(fptr, 0L, SEEK_SET); in fgets_0400()
138 fseek(fptr, 0L, SEEK_SET); in fgets_0500()
Dfseeko.c40 int result = fseeko(fp, 0L, SEEK_SET); in fseeko_0100()
70 int result = fseeko(fp, 8L, SEEK_SET); in fseeko_0200()
100 int code = fseeko(fp, 10L, SEEK_SET); in fseeko_0300()
166 int result = fseeko(fp, -10L, SEEK_SET); in fseeko_0500()
/third_party/ltp/testcases/kernel/syscalls/lseek/
Dlseek02.c35 {&bad_fd, SEEK_SET, EBADF},
41 {&pfd1, SEEK_SET, ESPIPE},
44 {&pfds[0], SEEK_SET, ESPIPE},
47 {&pfd2, SEEK_SET, ESPIPE},
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c76 .l_whence = SEEK_SET, in fn_ofd_w()
89 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_ofd_w()
116 .l_whence = SEEK_SET, in fn_posix_w()
128 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_posix_w()
155 .l_whence = SEEK_SET, in fn_ofd_r()
169 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_ofd_r()
216 .l_whence = SEEK_SET, in fn_posix_r()
229 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_posix_r()
/third_party/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress07.c169 if (lseek64(rwfd, sparseoff, SEEK_SET) < 0) {
171 if (lseek(rwfd, sparseoff, SEEK_SET) < 0) {
229 if (lseek64(rwfd, sparseoff + e_pageskip * pagesize, SEEK_SET) == -1) {
231 if (lseek(rwfd, sparseoff + e_pageskip * pagesize, SEEK_SET) == -1) {
248 if (lseek64(rofd, sparseoff, SEEK_SET) == -1) {
250 if (lseek(rofd, sparseoff, SEEK_SET) == -1) {
/third_party/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite01.c49 l_seek(fildes, count * K1, SEEK_SET, count * K1); in check_file_contents()
67 l_seek(fildes, K1 / 2, SEEK_SET, K1 / 2); in verify_pwrite()
71 l_seek(fildes, K3, SEEK_SET, K3); in verify_pwrite()
80 l_seek(fildes, 0, SEEK_SET, 0); in verify_pwrite()
/third_party/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.c66 if (writeb_lock(fd, offset, SEEK_SET, BYTES) < 0) in main()
69 lseek(fd, offset, SEEK_SET); in main()
74 if (unb_lock(fd, offset, SEEK_SET, BYTES) < 0) in main()
/third_party/musl/libc-test/src/functionalext/supplement/stat/
Dfstatat.c37 lseek(fd, 0, SEEK_SET); in fstatat_0100()
61 lseek(fd, 0, SEEK_SET); in fstatat_0200()
91 lseek(fd, 0, SEEK_SET); in fstatat_0300()
115 lseek(fd, 0, SEEK_SET); in fstatat_time64_0100()
/third_party/curl/src/
Dtool_cb_see.c63 if(whence != SEEK_SET) in tool_seek_cb()
67 if(LSEEK_ERROR == lseek(in->fd, 0, SEEK_SET)) in tool_seek_cb()
124 if(_lseeki64(fd, where, SEEK_SET) < 0) in tool_ftruncate64()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/
Dfile_input_stream.cc125 fseek(file_, position_, SEEK_SET); in Skip()
148 fseek(file_, position_ - unread_count, SEEK_SET); in Unread()
151 fseek(file_, position_ - unread_count, SEEK_SET); in Unread()
171 fseek(file_, 0, SEEK_SET); in Open()
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/
Dfile_input_stream.cc125 fseek(file_, position_, SEEK_SET); in Skip()
148 fseek(file_, position_ - unread_count, SEEK_SET); in Unread()
151 fseek(file_, position_ - unread_count, SEEK_SET); in Unread()
171 fseek(file_, 0, SEEK_SET); in Open()
/third_party/musl/libc-test/src/functional/
Dungetc.c27 TEST(i, fseek(f, 0, SEEK_SET), 0, "%d != %d (%m)"); in main()
39 TEST(i, fseek(f, 0, SEEK_SET), 0, "%d != %d"); in main()
45 TEST(i, fseek(f, 0, SEEK_SET), 0, "%d != %d"); in main()
Dmemstream.c60 TEST_E(fseek(f, 0, SEEK_SET)>=0); in main()
74 TEST_E(fseek(f, 0, SEEK_SET)>=0); in main()
81 TEST_E(fseek(f, 6, SEEK_SET)>=0); in main()
85 TEST_E(fseek(f, 0, SEEK_SET)>=0); in main()
/third_party/quickjs/tests/
Dtest_std.js45 f.seek(0, std.SEEK_SET);
53 f.seek(0, std.SEEK_SET);
72 f.seek(0, std.SEEK_SET);
90 f.seek(0, std.SEEK_SET);
168 assert(os.seek(fd, 0, std.SEEK_SET) === 0);
176 assert(os.seek(fd, BigInt(6), std.SEEK_SET), BigInt(6));

12345678910>>...37