Home
last modified time | relevance | path

Searched refs:lseek (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/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.c69 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()
104 data = lseek(fd, 0L, SEEK_CUR); in lseek_0300()
121 off_t data = lseek(fd, -1L, SEEK_END); in lseek_0400()
138 off_t data = lseek(fd, -10L, SEEK_SET); in lseek_0500()
155 off_t data = lseek(fd, 10L, SEEK_END); in lseek_0600()
/third_party/curl/src/
Dtool_cb_see.c67 if(LSEEK_ERROR == lseek(in->fd, 0, SEEK_SET)) in tool_seek_cb()
73 if(LSEEK_ERROR == lseek(in->fd, step, SEEK_CUR)) in tool_seek_cb()
82 if(LSEEK_ERROR == lseek(in->fd, offset, whence)) in tool_seek_cb()
95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
111 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
/third_party/skia/third_party/externals/oboe/samples/parselib/src/main/cpp/stream/
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()
44 ::lseek(mFH, pos, SEEK_SET); in setPos()
/third_party/ffmpeg/libavformat/
Dos_support.h45 # ifdef lseek
46 # undef lseek
48 # define lseek(f,p,w) _lseeki64((f), (p), (w)) macro
64 # ifdef lseek
65 # undef lseek
67 # define lseek(f,p,w) lseek64((f), (p), (w)) macro
/third_party/NuttX/fs/vfs/
Dfs_sendfile.c103 startpos = lseek(infd, 0, SEEK_CUR); in sendfile()
111 if (lseek(infd, *offset, SEEK_SET) == (off_t)-1) in sendfile()
249 off_t curpos = lseek(infd, 0, SEEK_CUR); in sendfile()
261 if (lseek(infd, startpos, SEEK_SET) == (off_t)-1) in sendfile()
/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/node/test/wasi/c/
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/python/Lib/test/
Dtest_largefile.py105 self.assertEqual(os.lseek(f.fileno(), 0, 0), 0)
106 self.assertEqual(os.lseek(f.fileno(), 42, 0), 42)
107 self.assertEqual(os.lseek(f.fileno(), 42, 1), 84)
108 self.assertEqual(os.lseek(f.fileno(), 0, 1), 84)
109 self.assertEqual(os.lseek(f.fileno(), 0, 2), size+1+0)
110 self.assertEqual(os.lseek(f.fileno(), -10, 2), size+1-10)
111 self.assertEqual(os.lseek(f.fileno(), -size-1, 2), 0)
112 self.assertEqual(os.lseek(f.fileno(), size, 0), size)
/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/boost/tools/boost_install/test/iostreams/zlib-1.2.11/examples/
Dgzlog.c415 if (lseek(log->fd, 0, SEEK_SET) < 0 || in log_head()
451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || in log_mark()
476 if (back != 8 && (lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last()
491 return lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last()
493 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()
644 if (lseek(log->fd, log->first - (log->back > 8 ? 2 : 1), in log_compress()
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()
[all …]
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()
355 lseek(gz.fd, lastoff - (lastbit != 0), SEEK_SET); in gzscan()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
374 lseek(gz.fd, --end, SEEK_SET); in gzscan()
378 lseek(gz.fd, end, SEEK_SET); in gzscan()
/third_party/zlib/examples/
Dgzlog.c415 if (lseek(log->fd, 0, SEEK_SET) < 0 || in log_head()
451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || in log_mark()
476 if (back != 8 && (lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last()
491 return lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last()
493 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()
644 if (lseek(log->fd, log->first - (log->back > 8 ? 2 : 1), in log_compress()
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()
[all …]
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()
355 lseek(gz.fd, lastoff - (lastbit != 0), SEEK_SET); in gzscan()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
374 lseek(gz.fd, --end, SEEK_SET); in gzscan()
378 lseek(gz.fd, end, SEEK_SET); in gzscan()
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/examples/
Dgzlog.c415 if (lseek(log->fd, 0, SEEK_SET) < 0 || in log_head()
451 ret = lseek(log->fd, HEAD, SEEK_SET) < 0 || in log_mark()
476 if (back != 8 && (lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last()
491 return lseek(log->fd, log->last - len, SEEK_SET) < 0 || in log_last()
493 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()
644 if (lseek(log->fd, log->first - (log->back > 8 ? 2 : 1), in log_compress()
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()
[all …]
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()
355 lseek(gz.fd, lastoff - (lastbit != 0), SEEK_SET); in gzscan()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
374 lseek(gz.fd, --end, SEEK_SET); in gzscan()
378 lseek(gz.fd, end, SEEK_SET); in gzscan()
/third_party/toybox/toys/posix/
Dtail.c72 off_t pos = lseek(fd, 0, SEEK_END); in try_lseek()
79 if (lseek(fd, bytes, SEEK_END)<0) lseek(fd, 0, SEEK_SET); in try_lseek()
93 if (pos != lseek(fd, pos, SEEK_SET)) { in try_lseek()
122 lseek(fd, bytes, SEEK_SET); in try_lseek()
/third_party/e2fsprogs/lib/ext2fs/
Dllseek.c56 #define my_llseek lseek
115 return lseek(fd, (off_t) offset, origin); in ext2fs_llseek()
139 return lseek (fd, (off_t) offset, origin); in ext2fs_llseek()
/third_party/e2fsprogs/lib/blkid/
Dllseek.c55 #define llseek lseek
102 return lseek(fd, (off_t) offset, whence); in blkid_llseek()
141 return lseek(fd, (off_t) offset, origin); in blkid_llseek()
/third_party/ltp/testcases/kernel/fs/doio/
DREADME41 lseek. All system calls are checked for proper returns. The writes or the
64 # run 30 secs: random iosize, random lseek up to eof
68 # run 30 secs: grow by lseek then write single byte, trunc every 10 itervals
71 # run forever: 5 copies of random iosize, random lseek to beyond eof,
75 # run forever: 5 copies of random iosize, random lseek to beyond eof,
Dwrite_log.c226 offset = lseek(wfile->w_afd, 0, SEEK_CUR) - reclen; in wlog_record_write()
235 if ((lseek(wfile->w_rfd, offset, SEEK_SET)) == -1) { in wlog_record_write()
276 if ((lseek(fd, 0, SEEK_END)) == -1) { in wlog_scan_backward()
282 offset = lseek(fd, 0, SEEK_CUR); in wlog_scan_backward()
311 if ((lseek(fd, offset, SEEK_SET)) == -1) { in wlog_scan_backward()
/third_party/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress07.c171 if (lseek(rwfd, sparseoff, SEEK_SET) < 0) {
187 if (lseek(rwfd, holesize, SEEK_CUR) == -1) {
231 if (lseek(rwfd, sparseoff + e_pageskip * pagesize, SEEK_SET) == -1) {
250 if (lseek(rofd, sparseoff, SEEK_SET) == -1) {
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Dread_checkzero.c54 offset = lseek(fd, 4096, SEEK_END); in read_eof()
57 offset = lseek(fd, offset - 4096, SEEK_SET); in read_eof()
/third_party/littlefs/bd/
Dlfs_filebd.c89 off_t res1 = lseek(bd->fd, in lfs_filebd_read()
121 off_t res1 = lseek(bd->fd, in lfs_filebd_prog()
143 off_t res1 = lseek(bd->fd, in lfs_filebd_prog()
171 off_t res1 = lseek(bd->fd, (off_t)block*cfg->block_size, SEEK_SET); in lfs_filebd_erase()
/third_party/boost/boost/iostreams/detail/config/
Drtl.hpp44 # define BOOST_IOSTREAMS_FD_SEEK lseek
63 # define BOOST_IOSTREAMS_FD_SEEK lseek

12345678910>>...14