/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | Inode.h | 84 status_t Read(OpenFileCookie* cookie, off_t pos, 86 status_t Write(OpenFileCookie* cookie, off_t pos, 89 status_t ReadDirect(OpenStateCookie* cookie, off_t pos, 91 status_t WriteDirect(OpenStateCookie* cookie, off_t pos, 132 status_t ReadDirUp(struct dirent* de, uint32 pos, 135 const char* name, uint32 pos, uint32 size);
|
H A D | RequestBuilder.cpp | 261 RequestBuilder::LockT(LockType type, uint64 pos, uint64 len, argument 273 fRequest->Stream().AddUHyper(pos); 399 int pos = 0; local 400 *(uint64*)(owner + pos) = ownerId; 401 pos += sizeof(uint64); 403 fRequest->Stream().AddOpaque(owner, pos); 499 RequestBuilder::Read(const uint32* id, uint32 stateSeq, uint64 pos, uint32 len) argument 511 fRequest->Stream().AddUHyper(pos); 708 int pos = strlen(id); local 712 memcpy(id + pos, serve 766 Write(const uint32* id, uint32 stateSeq, const void* buffer, uint64 pos, uint32 len, bool stable) argument [all...] |
/haiku/src/build/libroot/ |
H A D | fs_attr_haiku.cpp | 139 _haiku_build_fs_read_attr(int fd, const char* attribute, uint32 type, off_t pos, argument 153 pos, buffer, readBytes); 157 pos, buffer, readBytes); 172 _haiku_build_fs_write_attr(int fd, const char* attribute, uint32 type, off_t pos, argument 186 pos, buffer, writeBytes); 190 pos, buffer, writeBytes);
|
/haiku/src/servers/app/ |
H A D | EventStream.cpp | 183 uint32 pos = atomic_get((int32*)&fCursorBuffer->pos); local 185 uint32 pos = fCursorBuffer->pos; local 188 where.x = pos >> 16UL; 189 where.y = pos & 0xffff;
|
/haiku/src/kits/locale/ |
H A D | MutableLocaleRoster.cpp | 214 int32 pos; local 218 while ((pos = langName.FindLast('_')) >= 0) { 221 langName.Truncate(pos); 309 int32 pos; local 313 while ((pos = langName.FindLast('_')) >= 0) { 316 langName.Truncate(pos);
|
/haiku/src/system/boot/platform/riscv/ |
H A D | devices.cpp | 39 virtual ssize_t ReadAt(void* cookie, off_t pos, void* buffer, 41 virtual ssize_t WriteAt(void* cookie, off_t pos, const void* buffer, argument 71 VirtioBlockDevice::ReadAt(void* cookie, off_t pos, void* buffer, argument 74 // dprintf("ReadAt(%p, %ld, %p, %ld)\n", cookie, pos, buffer, bufferSize); 76 off_t offset = pos % BlockSize(); 77 pos /= BlockSize(); 89 blkReq.sectorNum = pos;
|
/haiku/headers/private/kernel/boot/ |
H A D | vfs.h | 34 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, 36 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, 64 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize); 65 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize); 106 virtual ssize_t ReadAt(void* cookie, off_t pos, void* buffer, 108 virtual ssize_t WriteAt(void* cookie, off_t pos, const void* buffer,
|
/haiku/src/add-ons/screen_savers/slideshowsaver/ |
H A D | SlideShowSaver.cpp | 470 SlideShowSaver::LayoutCaption(BView *view, BFont &font, BPoint &pos, BRect &rect) argument 480 pos.x = (bounds.left + bounds.right - width)/2; 482 pos.y = bounds.bottom - fontHeight.descent - 5; 486 rect.OffsetTo(pos); 494 BPoint pos; local 496 LayoutCaption(view, font, pos, rect); 508 pos += BPoint(1, 1); 511 view->DrawString(fCaption.String(), pos); 513 pos -= BPoint(1, 1); 515 view->DrawString(fCaption.String(), pos); [all...] |
/haiku/src/apps/mediaplayer/interface/ |
H A D | SubtitleBitmap.cpp | 301 int32 pos = 0; local 302 while (pos < string.Length()) { 303 int32 nextPos = pos; 306 if (nextPos > pos) { 309 string.CopyInto(subString, pos, nextPos - pos); 312 pos = nextPos + tagLength;
|
/haiku/src/bin/cddb_lookup/ |
H A D | cddb_server.cpp | 262 int32 pos = line.FindFirst(" / "); local 263 if (pos >= 0 && artist.ICompare("Various") == 0) { 266 line.MoveInto(trackArtist, 0, pos); 297 int32 pos = cddbServer.FindFirst(":"); local 298 if (pos == B_ERROR) { 308 newCddbServer.MoveInto(portString, pos + 1, 309 newCddbServer.CountChars() - pos + 1);
|
/haiku/src/apps/terminal/ |
H A D | BasicTerminalBuffer.h | 103 bool FindWord(const TermPos& pos, 110 bool PreviousLinePos(TermPos& pos) const; 111 bool NextLinePos(TermPos& pos, bool normalize) const; 216 bool _PreviousChar(TermPos& pos, UTF8Char& c) const; 217 bool _NextChar(TermPos& pos, UTF8Char& c) const; 220 TerminalLine*& line, TermPos& pos) const; 222 TerminalLine*& line, TermPos& pos) const;
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | reparse.c | 296 int pos; local 302 pos = 0; 317 while (curni && ok && !morelinks && (pos < (count - 1)) && --max) { 318 if ((count >= (pos + 2)) 319 && (path[pos] == const_cpu_to_le16('.')) 320 && (path[pos+1] == const_cpu_to_le16('\\'))) { 321 path[pos+1] = const_cpu_to_le16('/'); 322 pos += 2; 324 if ((count >= (pos + 3)) 325 && (path[pos] [all...] |
/haiku/src/bin/bfs_tools/lib/ |
H A D | Inode.cpp | 665 DataStream::FindBlockRun(off_t pos) argument 669 if (pos > fInode->data.size) 680 if (fCurrent >= 0 && pos >= fRunFileOffset && pos < fRunBlockEnd) 686 && pos >= fInode->data.max_direct_range) { 688 && pos >= fInode->data.max_indirect_range) { 696 off_t start = pos - fInode->data.max_indirect_range; 721 if (fLevel != 1 || pos < fRunFileOffset) { 733 if (fRunBlockEnd > pos) 745 if (fRunFileOffset > pos) { 771 ReadAt(off_t pos, void *buffer, size_t size) argument 819 WriteAt(off_t pos, const void *buffer, size_t size) argument [all...] |
/haiku/src/system/boot/loader/file_systems/tarfs/ |
H A D | tarfs.cpp | 83 virtual ssize_t ReadAt(void* cookie, off_t pos, void* buffer, 85 virtual ssize_t WriteAt(void* cookie, off_t pos, 145 virtual ssize_t ReadAt(void* cookie, off_t pos, void* buffer, 147 virtual ssize_t WriteAt(void* cookie, off_t pos, 266 TarFS::File::ReadAt(void* cookie, off_t pos, void* buffer, size_t bufferSize) argument 269 B_PRIdOFF "\n", pos, bufferSize, fSize)); 271 if (pos < 0 || !buffer) 274 if (pos >= fSize || bufferSize == 0) 277 size_t toRead = fSize - pos; 281 memcpy(buffer, (char*)fHeader + BLOCK_SIZE + pos, toRea 288 WriteAt(void* cookie, off_t pos, const void* buffer, size_t bufferSize) argument 567 ReadAt(void* cookie, off_t pos, void* buffer, size_t bufferSize) argument 574 WriteAt(void* cookie, off_t pos, const void* buffer, size_t bufferSize) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/iso9660/ |
H A D | kernel_interface.cpp | 307 TRACE(("fs_walk - success, found vnode at block %lld, pos " 358 uint32 pos = vnodeID & 0x3fffffff; 361 TRACE(("fs_read_vnode - block = %u, pos = %u, raw = %Lu node %p\n", 362 (unsigned)block, (unsigned) pos, vnodeID, newNode)); 364 if (pos > volume->logicalBlkSize[FS_DATA_FORMAT]) { 375 status_t result = InitNode(volume, newNode, data + pos, NULL); 424 fs_read_pages(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, argument 433 if (pos >= fileSize) { 437 if (pos + bytesLeft > fileSize) { 438 bytesLeft = fileSize - pos; 524 fs_read(fs_volume* _volume, fs_vnode* _node, void* cookie, off_t pos, void* buffer, size_t* _length) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | Inode.cpp | 714 const char* name, uint32 type, off_t pos, const uint8* data, size_t length, 724 uint32 spaceNeeded = sizeof(small_data) + nameLength + 3 + pos + length + 1; 751 if (item->data_size > pos + length 753 || ((uint8*)last + pos + length - item->DataSize()) 757 if (force && ((uint8*)last + pos + length - item->DataSize()) 761 uint32 needed = pos + length - item->DataSize() - 786 if (pos + length != item->DataSize()) { 803 item->data_size = HOST_ENDIAN_TO_BFS_INT16(pos + length); 808 if ((uint64)oldDataSize < (uint64)pos) { 810 memset(item->Data() + oldDataSize, 0, pos 713 _AddSmallData(Transaction& transaction, NodeGetter& nodeGetter, const char* name, uint32 type, off_t pos, const uint8* data, size_t length, bool force) argument 1044 ReadAttribute(const char* name, int32 type, off_t pos, uint8* buffer, size_t* _length) argument 1094 WriteAttribute(Transaction& transaction, const char* name, int32 type, off_t pos, const uint8* buffer, size_t* _length, bool* _created) argument 1472 FindBlockRun(off_t pos, block_run& run, off_t& offset) argument 1575 ReadAt(off_t pos, uint8* buffer, size_t* _length) argument 1582 WriteAt(Transaction& transaction, off_t pos, const uint8* buffer, size_t* _length) argument 1669 FillGapWithZeros(off_t pos, off_t newSize) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | Inode.cpp | 173 Inode::FindBlock(off_t pos, off_t& physical, off_t* _length) argument 178 search_key.SetOffset(pos + 1); 193 off_t diff = pos - search_key.Offset(); 203 B_PRIdOFF "\n", ID(), pos, physical); 211 Inode::ReadAt(off_t pos, uint8* buffer, size_t* _length) argument 216 // set/check boundaries for pos/length 217 if (pos < 0) { 218 ERROR("inode %" B_PRIdINO ": ReadAt failed(pos %" B_PRIdOFF 219 ", length %lu)\n", ID(), pos, length); 223 if (pos > [all...] |
/haiku/src/libs/print/libprint/ |
H A D | Halftone.cpp | 140 const uchar *pos = left + x; local 144 elements[i] = *pos; 145 if (pos >= right) 146 pos = left; 148 pos++;
|
/haiku/src/libs/stdc++/legacy/ |
H A D | iostream.cc | 187 istream& istream::seekg(streampos pos) argument 189 pos = _strbuf->pubseekpos(pos, ios::in); 190 if (pos == streampos(EOF)) 197 streampos pos = _IO_seekoff (_strbuf, off, (int) dir, _IOS_INPUT); local 198 if (pos == streampos(EOF)) 206 streampos pos = _strbuf->pubseekoff(0, ios::cur, ios::in); 208 streampos pos = _IO_seekoff (_strbuf, 0, _IO_seek_cur, _IOS_INPUT); local 210 if (pos == streampos(EOF)) 212 return pos; [all...] |
/haiku/src/bin/ |
H A D | catattr.cpp | 181 off_t pos = 0; local 183 while (pos < info.size) { 198 // read next chunk of data at pos 199 pos += bytesRead; 200 bytesRead = fs_read_attr(fd, attribute, info.type, pos, buffer, 203 if (bytesRead < size && pos + bytesRead < info.size) {
|
/haiku/src/kits/storage/ |
H A D | ResourceStrings.cpp | 321 int32 pos = id % fHashTableSize; local 322 entry->next = fHashTable[pos]; 323 fHashTable[pos] = entry; 338 int32 pos = id % fHashTableSize; local 339 entry = fHashTable[pos];
|
/haiku/src/add-ons/kernel/file_systems/ufs2/ |
H A D | Inode.cpp | 101 off_t pos; local 117 pos = FindBlock(startBlockNumber, blockOffset); 120 length += read_pos(fd, pos, buffer + length, remainingLength); 128 pos = FindBlock(startBlockNumber, blockOffset); 129 length = read_pos(fd, pos, buffer, *_length);
|
/haiku/src/kits/package/ |
H A D | PackageInfoParser.cpp | 51 int32 offset = error.pos - packageInfoString.String(); 67 if (error.pos[i - inLineOffset] == '\t') 95 int32 offset = error.pos - versionString.String(); 120 int32 offset = error.pos - expressionString.String(); 145 int32 offset = error.pos - expressionString.String(); 313 fPos = token.pos; 322 throw ParseError("expected string", string.pos); 326 *_tokenPos = string.pos; 350 throw ParseError(error, arch.pos); 368 throw ParseError("expected string (a version)", word.pos); 1204 Validate(const BString& urlString, const char* pos) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/ntfs/ |
H A D | kernel_interface.cpp | 467 off_t pos, const iovec* vecs, size_t count, size_t* _numBytes) 473 TRACE("read_pages inode: %" B_PRIdINO", pos: %" B_PRIdOFF "; vecs: %p; " 474 "count: %" B_PRIuSIZE "; numBytes: %" B_PRIuSIZE "\n", node->inode, pos, 482 if (pos < 0 || pos >= ni->data_size) 485 size_t bytesLeft = min_c(*_numBytes, size_t(ni->data_size - pos)); 489 const int read = ntfs_fuse_read(ni, pos, (char*)vecs[i].iov_base, ioSize); 493 pos += read; 507 off_t pos, const iovec* vecs, size_t count, size_t* _numBytes) 513 TRACE("write_pages inode: %" B_PRIdINO", pos 466 fs_read_pages(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, const iovec* vecs, size_t count, size_t* _numBytes) argument 506 fs_write_pages(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, const iovec* vecs, size_t count, size_t* _numBytes) argument 868 fs_read(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, void* buffer, size_t* length) argument 884 fs_write(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, const void* buffer, size_t* _length) argument 1162 _ntfs_readdir_callback(void* _cookie, const ntfschar* ntfs_name, const int ntfs_name_len, const int name_type, const s64 pos, const MFT_REF mref, const unsigned dt_type) argument 1219 s64 pos = 0; local [all...] |
/haiku/src/add-ons/kernel/file_systems/ext2/ |
H A D | DirectoryIterator.cpp | 268 uint16 pos = 0; local 271 status = _AllocateBestEntryInBlock(nameLength, pos, newLength); 274 pos); 447 DirectoryIterator::_AllocateBestEntryInBlock(uint8 nameLength, uint16& pos, argument 464 while (pos < maxSize) { 465 dirEntry = (ext2_dir_entry*)&block[pos]; 468 "dirEntry->Length() pos %d\n", pos); 484 bestPos = pos; 489 pos 505 _AddEntry(Transaction& transaction, const char* name, uint8 nameLength, ino_t id, uint8 type, uint16 newLength, uint16 pos, bool hasPrevious) argument 862 uint16 pos = 0; local [all...] |