Searched refs:SEEK_CUR (Results 1 - 25 of 67) sorted by relevance

123

/haiku/headers/compatibility/bsd/
H A Dunistd.h17 #define L_INCR SEEK_CUR
/haiku/src/build/libroot/
H A Dfs_freebsd.cpp38 off_t cur = lseek(fd, 0, SEEK_CUR);
53 off_t sdCur = lseek(fd, -(cur % sectorSize), SEEK_CUR);
63 if (lseek(fd, -sectorSize + (cur % sectorSize) + nbytes, SEEK_CUR)
79 if (lseek(fd, -(sectorSize - seekDiff), SEEK_CUR) == -1)
82 off_t sdCur = lseek(fd,0,SEEK_CUR);
103 off_t sdCur = lseek(fd, 0, SEEK_CUR);
113 if (lseek(fd, -(sectorSize - nbytesDiff), SEEK_CUR) == -1)
138 off_t cur = lseek(fd, 0, SEEK_CUR);
153 off_t sdCur = lseek(fd, -(cur % sectorSize), SEEK_CUR);
165 if (lseek(fd, -sectorSize + (cur % sectorSize) + nbytes, SEEK_CUR)
[all...]
/haiku/src/libs/stdc++/legacy/
H A Dstdiostream.cc48 #ifndef SEEK_CUR
49 #define SEEK_CUR 1 macro
100 (dir == ios::cur) ? SEEK_CUR :
/haiku/src/tests/system/libroot/posix/
H A Dfseek_test.cpp77 if (fseek(fp, 0, SEEK_CUR) != 0) {
78 printf("%d: fseek(fp, 0, SEEK_CUR) failed\n", __LINE__);
93 if (fseeko(fp, 0, SEEK_CUR) != 0) {
94 printf("%d: fseek(fp, 0, SEEK_CUR) failed\n", __LINE__);
108 } else if (lseek(fd, 0, SEEK_CUR) != 0) {
126 } else if (lseek(fd, 0, SEEK_CUR) != 0) {
138 if (fseek(fp, -((int) sizeof(outstr) - 1), SEEK_CUR) != 0) {
144 } else if (lseek(fd, 0, SEEK_CUR) != 0) {
156 if (fseeko(fp, -((int) sizeof(outstr) - 1), SEEK_CUR) != 0) {
162 } else if (lseek(fd, 0, SEEK_CUR) !
[all...]
/haiku/src/system/libroot/posix/unistd/
H A Dlockf.cpp19 fileLock.l_whence = SEEK_CUR;
/haiku/src/tests/kits/support/bmemoryio/
H A DMallocSeekTest.cpp29 err = mem.Seek(3, SEEK_CUR);
H A DSeekTest.cpp30 err = mem.Seek(3, SEEK_CUR);
/haiku/src/tests/add-ons/translators/exif/
H A Ddump_exif.cpp76 stream.Seek(-2, SEEK_CUR);
84 stream.Seek(length - 2, SEEK_CUR);
/haiku/src/tools/fs_shell/
H A Dpartition_support.cpp129 pos = lseek(fd, 0, SEEK_CUR);
165 return SEEK_CUR;
190 pos = lseek(fd, 0, SEEK_CUR);
H A Duio.cpp66 return _kern_readv(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count);
105 return _kern_writev(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count);
/haiku/headers/private/kernel/boot/
H A Dstdio.h28 #ifndef SEEK_CUR
29 # define SEEK_CUR 1 macro
/haiku/src/kits/support/
H A DDataPositionIOWrapper.cpp73 case SEEK_CUR:
/haiku/src/tests/kits/translation/
H A DBitmapStreamTest.cpp382 // Test SEEK_CUR
384 CPPUNIT_ASSERT(stream.Seek(-nPos, SEEK_CUR) == 0);
388 CPPUNIT_ASSERT(stream.Seek(nPos, SEEK_CUR) == nPos);
392 CPPUNIT_ASSERT(stream.Seek(-11, SEEK_CUR) == nPos);
396 CPPUNIT_ASSERT(stream.Seek(8, SEEK_CUR) == nPos);
400 SEEK_CUR) == B_BAD_VALUE);
404 SEEK_CUR) == B_BAD_VALUE);
/haiku/src/add-ons/translators/bmp/
H A DBMPTranslator.cpp630 inSource->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
773 inSource->Seek(bitsRowBytes * -2, SEEK_CUR);
816 inSource->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
838 inSource->Seek(bitsRowBytes * -2, SEEK_CUR);
881 inSource->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
924 inSource->Seek(bitsRowBytes * -2, SEEK_CUR);
1231 outDestination->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
1280 outDestination->Seek(bitsRowBytes * -2, SEEK_CUR);
1354 outDestination->Seek((msheader.height - 1) * bitsRowBytes, SEEK_CUR);
1387 outDestination->Seek(bitsRowBytes * -2, SEEK_CUR);
[all...]
/haiku/src/apps/packageinstaller/
H A DPackageInfo.cpp176 fPackageFile->Seek(4, SEEK_CUR);
180 fPackageFile->Seek(8, SEEK_CUR);
279 fPackageFile->Seek(4, SEEK_CUR);
315 fPackageFile->Seek(4, SEEK_CUR);
369 fPackageFile->Seek(length, SEEK_CUR);
426 fPackageFile->Seek(length, SEEK_CUR);
467 fPackageFile->Seek(4, SEEK_CUR);
474 fPackageFile->Seek(length, SEEK_CUR);
508 fPackageFile->Seek(21, SEEK_CUR);
513 fPackageFile->Seek(11, SEEK_CUR);
[all...]
/haiku/headers/cpp/
H A Diostdio.h52 #define SEEK_CUR 1 macro
/haiku/src/add-ons/input_server/methods/pen/compat/
H A DStringIO.cpp49 case SEEK_CUR:
/haiku/src/kits/storage/
H A DFileDescriptorIO.cpp73 off_t result = lseek(fFD, 0, SEEK_CUR);
H A DFdIO.cpp102 return const_cast<BFdIO*>(this)->BFdIO::Seek(0, SEEK_CUR);
/haiku/src/tools/restest/
H A DOffsetFile.cpp108 case SEEK_CUR:
/haiku/src/kits/app/
H A DPropertyInfo.cpp295 flatData.Seek(strlen(fPropInfo[pi].name) + 1, SEEK_CUR);
299 flatData.Seek(strlen(fPropInfo[pi].usage) + 1, SEEK_CUR);
341 flatData.Seek(-sizeof(tmpInt), SEEK_CUR);
346 + 1, SEEK_CUR);
377 flatData.Seek(strlen(fValueInfo[vi].name) + 1, SEEK_CUR);
381 flatData.Seek(strlen(fValueInfo[vi].usage) + 1, SEEK_CUR);
/haiku/src/bin/unzip/
H A Dcrypt.c242 SEEK_CUR)) {
255 if ((flag & 8) != 0 && fseek(source, 16L, SEEK_CUR)) {
281 SEEK_CUR)) {
337 if ((flag & 8) != 0 && fseek(source, 16L, SEEK_CUR)) {
H A Dcryptf.c245 SEEK_CUR)) {
258 if ((flag & 8) != 0 && fseek(source, 16L, SEEK_CUR)) {
284 SEEK_CUR)) {
340 if ((flag & 8) != 0 && fseek(source, 16L, SEEK_CUR)) {
/haiku/src/tests/kits/media/soundplayer/
H A DSoundPlayerTest.cpp74 lseek(fd, 10000000, SEEK_CUR); // skip 10 MB
/haiku/src/libs/print/libprint/
H A DPrintProcess.cpp85 fFile->Seek(sizeof(offset) + sizeof(dummy), SEEK_CUR); local

Completed in 380 milliseconds

123