Searched refs:lseek (Results 1 - 25 of 143) sorted by relevance

123456

/haiku-fatelf/src/bin/coreutils/lib/
H A Dlseek.c4 /* An lseek() function that detects pipes.
35 #undef lseek macro
41 /* mingw lseek mistakenly succeeds on pipes, sockets, and terminals. */
54 /* BeOS lseek mistakenly succeeds on pipes... */
64 return lseek (fd, offset, whence);
H A Dftello.c22 /* Get lseek. */
36 if (lseek (fileno (fp), 0, SEEK_CUR) == -1)
H A Dftruncate.c40 if (lseek (fd, (length - 1), SEEK_SET) < 0)
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dlseek.c1 /* An lseek() function that detects pipes.
32 #undef lseek macro
38 /* mingw lseek mistakenly succeeds on pipes, sockets, and terminals. */
51 /* BeOS lseek mistakenly succeeds on pipes... */
61 return lseek (fd, offset, whence);
H A Dftello.c22 /* Get lseek. */
36 if (lseek (fileno (fp), 0, SEEK_CUR) == -1)
H A Dunistd.h263 <http://www.opengroup.org/susv3xsh/lseek.html>. */
264 # define lseek rpl_lseek
265 extern off_t lseek (int fd, off_t offset, int whence);
268 # undef lseek macro
269 # define lseek(f,o,w) \ macro
270 (GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \
271 "systems - use gnulib module lseek for portability"), \
272 lseek (f, o, w))
H A Dunistd.in.h262 <http://www.opengroup.org/susv3xsh/lseek.html>. */
263 # define lseek rpl_lseek macro
264 extern off_t lseek (int fd, off_t offset, int whence);
267 # undef lseek macro
268 # define lseek(f,o,w) \ macro
269 (GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \
270 "systems - use gnulib module lseek for portability"), \
271 lseek (f, o, w))
H A Dfflush.c74 avoid losing data, the lseek is also necessary. */
96 pos = lseek (fileno (stream), pos, SEEK_SET);
99 /* After a successful lseek, update the file descriptor's position cache
H A Dfseeko.c23 /* Get off_t and lseek. */
37 if (lseek (fileno (fp), 0, SEEK_CUR) == -1)
101 off_t pos = lseek (fileno (fp), offset, whence);
/haiku-fatelf/src/bin/network/wget/lib/
H A Dlseek.c1 /* An lseek() function that detects pipes.
32 #undef lseek macro
38 /* mingw lseek mistakenly succeeds on pipes, sockets, and terminals. */
51 /* BeOS lseek mistakenly succeeds on pipes... */
61 return lseek (fd, offset, whence);
H A Dfseeko.c23 /* Get off_t and lseek. */
39 if (lseek (fileno (fp), 0, SEEK_CUR) == -1)
99 lseek (fileno (fp),
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dlseek.c15 lseek(int fd, off_t pos, int whence) function
/haiku-fatelf/src/build/libroot/
H A Dfs_freebsd.cpp38 off_t cur = lseek(fd, 0, SEEK_CUR);
40 perror("lseek 1");
53 off_t sdCur = lseek(fd, -(cur % sectorSize), SEEK_CUR);
55 perror("lseek oneblock");
63 if (lseek(fd, -sectorSize + (cur % sectorSize) + nbytes, SEEK_CUR)
79 if (lseek(fd, -(sectorSize - seekDiff), SEEK_CUR) == -1)
80 perror("lseek seekDiff");
82 off_t sdCur = lseek(fd,0,SEEK_CUR);
103 off_t sdCur = lseek(fd, 0, SEEK_CUR);
105 perror("lseek las
[all...]
/haiku-fatelf/src/system/libroot/posix/glibc/include/
H A Dunistd.h20 lseek(fd, pos, whence)
/haiku-fatelf/src/system/libroot/posix/stdio/
H A Dstdio.c74 (void) lseek(fp->_file, (off_t)0, SEEK_END);
89 ret = lseek(fp->_file, (off_t)offset, whence);
/haiku-fatelf/src/tests/system/benchmarks/libMicro/
H A Dlseek.c32 * lseek
67 "notes: measures lseek()\n",
110 if (lseek(ts->ts_fd, 0L, SEEK_SET) != 0) {
113 if (lseek(ts->ts_fd, opts, SEEK_SET) != opts) {
H A DMakefile.benchmarks66 lseek \
/haiku-fatelf/src/tools/fs_shell/
H A Dpartition_support.cpp105 lseek(fd, restriction->startOffset, SEEK_SET);
129 pos = lseek(fd, 0, SEEK_CUR);
183 return lseek(fd, offset, to_platform_seek_mode(whence));
190 pos = lseek(fd, 0, SEEK_CUR);
210 pos = lseek(fd, pos, SEEK_SET);
H A Duio.cpp58 return readv_pos(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count);
94 return writev_pos(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count);
/haiku-fatelf/src/libs/util/
H A Dlogin.c67 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), L_SET);
H A Dlogout.c72 (void)lseek(fd, -(off_t)sizeof(UTMP), L_INCR);
/haiku-fatelf/src/tools/fixup_amiga_boot_checksum/
H A Dfixup_amiga_boot_checksum.c41 lseek(fd, 0LL, SEEK_SET);
/haiku-fatelf/src/kits/storage/
H A DFileDescriptorIO.cpp65 off_t result = lseek(fFD, position, seekMode);
73 off_t result = lseek(fFD, 0, SEEK_CUR);
/haiku-fatelf/src/libs/compat/freebsd_network/
H A Dfirmware.c77 firmwareFileSize = lseek(fileDescriptor, 0, SEEK_END);
81 lseek(fileDescriptor, 0, SEEK_SET);
/haiku-fatelf/src/tests/kits/media/soundplayer/
H A DSoundPlayerTest.cpp33 lseek(fd, 44, SEEK_SET); // skip wav header
74 lseek(fd, 10000000, SEEK_CUR); // skip 10 MB

Completed in 209 milliseconds

123456