Home
last modified time | relevance | path

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

12

/haiku/src/build/libroot/
H A Dfs_freebsd.cpp38 off_t cur = lseek(fd, 0, SEEK_CUR); in haiku_freebsd_read()
53 off_t sdCur = lseek(fd, -(cur % sectorSize), SEEK_CUR); in haiku_freebsd_read()
63 if (lseek(fd, -sectorSize + (cur % sectorSize) + nbytes, SEEK_CUR) in haiku_freebsd_read()
79 if (lseek(fd, -(sectorSize - seekDiff), SEEK_CUR) == -1) in haiku_freebsd_read()
82 off_t sdCur = lseek(fd,0,SEEK_CUR); in haiku_freebsd_read()
103 off_t sdCur = lseek(fd, 0, SEEK_CUR); in haiku_freebsd_read()
113 if (lseek(fd, -(sectorSize - nbytesDiff), SEEK_CUR) == -1) in haiku_freebsd_read()
138 off_t cur = lseek(fd, 0, SEEK_CUR); in haiku_freebsd_write()
153 off_t sdCur = lseek(fd, -(cur % sectorSize), SEEK_CUR); in haiku_freebsd_write()
165 if (lseek(fd, -sectorSize + (cur % sectorSize) + nbytes, SEEK_CUR) in haiku_freebsd_write()
[all …]
H A Dfs.cpp738 off_t result = lseek(descriptor->fd, pos, seekType); in _kern_seek()
757 off_t result = lseek(descriptor->fd, pos, SEEK_SET); in _kern_read()
783 off_t result = lseek(descriptor->fd, pos, SEEK_SET); in _kern_write()
1130 off_t result = lseek(fd, pos, SEEK_SET); in read_pos()
1161 off_t result = lseek(fd, pos, SEEK_SET); in write_pos()
1181 off_t result = lseek(fd, pos, SEEK_SET); in _kern_readv()
1194 off_t result = lseek(fd, pos, SEEK_SET); in _kern_writev()
/haiku/src/tools/fs_shell/
H A Dpartition_support.cpp105 lseek(fd, restriction->startOffset, SEEK_SET); in restricted_file_opened()
129 pos = lseek(fd, 0, SEEK_CUR); in restricted_file_restrict_io()
183 return lseek(fd, offset, to_platform_seek_mode(whence)); in fssh_lseek()
190 pos = lseek(fd, 0, SEEK_CUR); in fssh_lseek()
210 pos = lseek(fd, pos, SEEK_SET); in fssh_lseek()
H A Duio.cpp66 return _kern_readv(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count); in fssh_readv()
105 return _kern_writev(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count); in fssh_writev()
/haiku/src/kits/storage/
H A DFileDescriptorIO.cpp65 off_t result = lseek(fFD, position, seekMode); in Seek()
73 off_t result = lseek(fFD, 0, SEEK_CUR); in Position()
H A DFdIO.cpp94 off_t newPosition = lseek(fFd, position, seekMode); in Seek()
/haiku/src/system/libroot/posix/unistd/
H A Dlseek.c15 lseek(int fd, off_t pos, int whence) in lseek() function
H A DJamfile32 lseek.c
/haiku/src/libs/compat/freebsd_network/
H A Dfirmware.c89 firmwareFileSize = lseek(fileDescriptor, 0, SEEK_END); in firmware_get()
93 lseek(fileDescriptor, 0, SEEK_SET); in firmware_get()
/haiku/src/tests/system/libroot/posix/
H A Dfseek_test.cpp108 } else if (lseek(fd, 0, SEEK_CUR) != 0) { in glibc_test()
126 } else if (lseek(fd, 0, SEEK_CUR) != 0) { in glibc_test()
144 } else if (lseek(fd, 0, SEEK_CUR) != 0) { in glibc_test()
162 } else if (lseek(fd, 0, SEEK_CUR) != 0) { in glibc_test()
180 } else if (lseek(fd, 0, SEEK_CUR) != 0) { in glibc_test()
198 } else if (lseek(fd, 0, SEEK_CUR) != 0) { in glibc_test()
H A Dtst-wprintf2.c58 lseek(fd, SEEK_SET, 0); in main()
/haiku/src/tests/kits/media/soundplayer/
H A DSoundPlayerTest.cpp33 lseek(fd, 44, SEEK_SET); // skip wav header in main()
74 lseek(fd, 10000000, SEEK_CUR); // skip 10 MB in main()
/haiku/src/system/libroot/posix/glibc/include/
H A Dunistd.h20 lseek(fd, pos, whence)
/haiku/src/tools/fixup_amiga_boot_checksum/
H A Dfixup_amiga_boot_checksum.c41 lseek(fd, 0LL, SEEK_SET); in main()
/haiku/src/tests/add-ons/kernel/file_systems/bfs/fragmenter/
H A Dfragmenter.cpp63 if (lseek(fd, pos, SEEK_SET) < 0 in read_from()
75 if (lseek(fd, pos, SEEK_SET) < 0 in write_to()
/haiku/src/tools/
H A Dset_haiku_revision.cpp400 if (lseek(fFD, position, SEEK_SET) < 0) in Read()
421 if (lseek(fFD, position, SEEK_SET) < 0) in Write()
441 off_t currentPos = lseek(fFD, 0, SEEK_END); in FileSize()
445 return lseek(fFD, currentPos, SEEK_SET); in FileSize()
/haiku/src/tests/kits/media/playwav/
H A Dplaywav.cpp65 lseek(fd, 44, SEEK_SET); // skip wav header in main()
/haiku/src/tests/kits/media/playsound/
H A Dplaywav.cpp86 lseek(fd, 44, SEEK_SET); in main()
/haiku/src/tools/hack_coff/
H A Dhack-coff.c73 if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1 in main()
/haiku/src/bin/network/ftpd/
H A Dmd5hl.c68 if (lseek(f, ofs, SEEK_SET) < 0) in MD5FileChunk()
/haiku/src/tools/remote_disk_server/
H A Dremote_disk_server.cpp208 off_t oldOffset = lseek(fImageFD, offset, SEEK_SET); in _HandleReadRequest()
253 off_t oldOffset = lseek(fImageFD, offset, SEEK_SET); in _HandleWriteRequest()
/haiku/src/tools/fixup_next_boot_floppy/
H A Dfixup_next_boot_floppy.c126 lseek(fd, labelOffsets[i] * 0x200LL, SEEK_SET); in main()
/haiku/src/bin/
H A Ddstcheck.cpp157 lseek(fd, 0, SEEK_SET); in main()
/haiku/src/tests/add-ons/kernel/file_systems/shared/consistency_check/
H A Dconsistency_check.cpp203 lseek(file, length + 1, SEEK_CUR); in main()
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dunix_io.c247 return lseek(DEV_FD(dev), offset, whence); in ntfs_device_unix_io_seek()

12