Home
last modified time | relevance | path

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

12345678910>>...23

/external/syslinux/utils/
Disohybrid.in139 seek(FILE, 17*2048, SEEK_SET) or die "$0: $file: $!\n";
145 seek(FILE, $br_cat_offset*2048, SEEK_SET) or die "$0: $file: $!\n";
166 seek(FILE, $de_lba*2048+0x40, SEEK_SET) or die "$0: $file: $!\n";
199 seek(FILE, 440, SEEK_SET) or die "$0: $file: $!\n";
207 seek(FILE, 0, SEEK_SET) or die "$0: $file: $!\n";
249 seek(FILE, $imgstat[7], SEEK_SET) or die "$0: $file: $!\n";
Dpxelinux-options207 return undef unless (seek($file, 0, SEEK_SET));
247 return undef unless (seek($file, $boff, SEEK_SET));
255 return undef unless (seek($file, $aoff, SEEK_SET));
283 return undef unless (seek($file, $patch_start, SEEK_SET));
299 return undef unless (seek($file, $hdr->{'hdroffset'} + 16, SEEK_SET));
305 return undef unless (seek($file, 8+3*4, SEEK_SET));
/external/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()
193 if (ext2fs_llseek(raw_fd, 0, SEEK_SET) < 0) { in qcow2_write_raw_image()
242 if (ext2fs_llseek(raw_fd, img.image_size - 1, SEEK_SET) < 0) { in qcow2_write_raw_image()
/external/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()
287 if (lseek(fd, offset, SEEK_SET) < 0) { in main()
394 if (lseek(fd, offset, SEEK_SET) < 0) { in main()
420 if (lseek(fd, offset, SEEK_SET) < 0) { in main()
469 if (lseek(fd, offset, SEEK_SET) < 0) { in main()
[all …]
Ddiotest1.c145 SAFE_LSEEK(cleanup, fd1, offset, SEEK_SET); in main()
148 SAFE_LSEEK(cleanup, fd2, offset, SEEK_SET); in main()
153 SAFE_LSEEK(cleanup, fd1, offset, SEEK_SET); in main()
/external/libvpx/libvpx/third_party/libwebm/mkvparser/
Dmkvreader.cc69 status = _fseeki64(m_file, 0L, SEEK_SET); in GetFileSize()
74 fseek(m_file, 0L, SEEK_SET); in GetFileSize()
117 const int status = _fseeki64(m_file, offset, SEEK_SET); in Read()
122 fseeko(m_file, static_cast<off_t>(offset), SEEK_SET); in Read()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c91 .l_whence = SEEK_SET, in fn_ofd_w()
104 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_ofd_w()
131 .l_whence = SEEK_SET, in fn_posix_w()
143 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_posix_w()
170 .l_whence = SEEK_SET, in fn_ofd_r()
184 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_ofd_r()
231 .l_whence = SEEK_SET, in fn_posix_r()
244 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_posix_r()
/external/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) {
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek02.c52 {&bad_fd, SEEK_SET, EBADF},
58 {&pfd1, SEEK_SET, ESPIPE},
61 {&pfds[0], SEEK_SET, ESPIPE},
64 {&pfd2, SEEK_SET, ESPIPE},
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock.c68 if (writeb_lock(fd, offset, SEEK_SET, BYTES) < 0)
71 lseek(fd, offset, SEEK_SET);
76 if (unb_lock(fd, offset, SEEK_SET, BYTES) < 0)
/external/sfntly/cpp/src/sfntly/port/
Dfile_input_stream.cc121 fseek(file_, position_, SEEK_SET); in Skip()
144 fseek(file_, position_ - unread_count, SEEK_SET); in Unread()
147 fseek(file_, position_ - unread_count, SEEK_SET); in Unread()
167 fseek(file_, 0, SEEK_SET); in Open()
/external/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()
121 if(_lseeki64(fd, where, SEEK_SET) < 0) in tool_ftruncate64()
/external/google-breakpad/src/client/mac/handler/
Dbreakpad_nlist_64.cc207 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()
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/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite01.c135 l_seek(fildes, K1 / 2, SEEK_SET, K1 / 2); in main()
153 l_seek(fildes, K3, SEEK_SET, K3); in main()
188 l_seek(fildes, 0, SEEK_SET, 0); in main()
284 offloc = lseek(fildes, count * K1, SEEK_SET); in check_file_contents()
/external/f2fs-tools/lib/
Dlibf2fs_io.c73 if (lseek64(c.kd, (off64_t)offset, SEEK_SET) < 0) in dev_read_version()
168 if (lseek64(fd, (off64_t)offset, SEEK_SET) < 0) in dev_read()
207 if (lseek64(fd, (off64_t)offset, SEEK_SET) < 0) in dev_write()
221 if (lseek64(c.dump_fd, (off64_t)offset, SEEK_SET) < 0) in dev_write_dump()
242 if (lseek64(fd, (off64_t)offset, SEEK_SET) < 0) in dev_fill()
323 lseek(c.devices[0].fd, 0, SEEK_SET); in f2fs_finalize_device()
/external/clang/test/Analysis/
Dstream.c5 #define SEEK_SET 0 /* Seek from beginning of file. */ macro
25 fseek(p, 1, SEEK_SET); // expected-warning {{Stream pointer might be NULL}} in f2()
45 fseek(p, 1, SEEK_SET); // no-warning in f5()
/external/ltp/testcases/kernel/syscalls/pread/
Dpread01.c133 l_seek(fildes, 0, SEEK_SET, 0); in main()
176 l_seek(fildes, K4, SEEK_SET, K4); in main()
219 l_seek(fildes, K1 / 2, SEEK_SET, K1 / 2); in setup()
232 l_seek(fildes, K3, SEEK_SET, K3); in setup()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev07.c69 SAFE_LSEEK(fd, initial_file_offset, SEEK_SET); in test_partially_valid_iovec()
84 SAFE_LSEEK(fd, 0, SEEK_SET); in test_partially_valid_iovec()
111 SAFE_LSEEK(fd, initial_file_offset, SEEK_SET); in test_partially_valid_iovec()
/external/fsck_msdos/
Dboot.c128 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/tests-mx32/
Dlseek.c46 long long rc = lseek(-1, offset, SEEK_SET); in main()
50 long rc = syscall(__NR_lseek, -1L, offset, SEEK_SET); in main()
/external/strace/tests/
Dlseek.c46 long long rc = lseek(-1, offset, SEEK_SET); in main()
50 long rc = syscall(__NR_lseek, -1L, offset, SEEK_SET); in main()
/external/strace/tests-m32/
Dlseek.c46 long long rc = lseek(-1, offset, SEEK_SET); in main()
50 long rc = syscall(__NR_lseek, -1L, offset, SEEK_SET); in main()
/external/swiftshader/third_party/LLVM/runtime/libprofile/
DPathProfiling.c103 lseek(outFile, arrayHeaderLocation, SEEK_SET); in writeArrayTable()
111 lseek(outFile, arrayCurrentLocation, SEEK_SET); in writeArrayTable()
254 lseek(outFile, headerLocation, SEEK_SET); in pathProfAtExitHandler()
262 lseek(outFile, currentLocation, SEEK_SET); in pathProfAtExitHandler()
/external/strace/xlat/
Dwhence_codes.h6 #if defined(SEEK_SET) || (defined(HAVE_DECL_SEEK_SET) && HAVE_DECL_SEEK_SET)
7 XLAT(SEEK_SET),
/external/syslinux/memdisk/
Dpostprocess.pl44 seek(OUT, 0x1f1, SEEK_SET); # setup_sects
48 seek(OUT, $xsize, SEEK_SET);

12345678910>>...23