/haiku/src/kits/support/ |
H A D | DataIO.cpp | 294 off_t pos = const_cast<BPositionIO*>(this)->Seek(currentPos, SEEK_SET); 296 if (pos != currentPos) 297 return pos < 0 ? (status_t)pos : B_ERROR; 349 BMemoryIO::ReadAt(off_t pos, void* buffer, size_t size) argument 351 if (buffer == NULL || pos < 0) 355 if (pos < (off_t)fLength) { 356 sizeRead = min_c((off_t)size, (off_t)fLength - pos); 357 memcpy(buffer, fBuffer + pos, sizeRead); 365 BMemoryIO::WriteAt(off_t pos, cons argument 477 ReadAt(off_t pos, void* buffer, size_t size) argument 493 WriteAt(off_t pos, const void* buffer, size_t size) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/udf/ |
H A D | Icb.cpp | 227 off_t pos = logicalBlock << fVolume->BlockShift(); local 228 if (uint64(pos) >= Length()) { 233 DEBUG_INIT_ETC("Icb", ("pos: %" B_PRIdOFF, pos)); 246 status = list.FindExtent(pos, &extent, &isEmpty); 249 "%" B_PRIdOFF ". status = 0x%" B_PRIx32 " `%s'\n", pos, status, 259 status = list.FindExtent(pos, &extent, &isEmpty); 262 "%" B_PRIdOFF ". status = 0x%" B_PRIx32 " `%s'\n", pos, 272 // RETURN(_Read(list, pos, buffer, length, block)); 301 Icb::Read(off_t pos, voi argument 367 _Read(DescriptorList &list, off_t pos, void *_buffer, size_t *length, uint32 *block) argument [all...] |
/haiku/src/tools/fs_shell/ |
H A D | fd.cpp | 44 fssh_dprintf("fd[%d] = %p: type = %d, ref_count = %d, ops = %p, u.vnode = %p, u.mount = %p, cookie = %p, open_mode = %x, pos = %lld\n", 46 descriptor->u.vnode, descriptor->u.mount, descriptor->cookie, (int)descriptor->open_mode, descriptor->pos); 67 descriptor->pos = 0; 469 _kern_read(int fd, fssh_off_t pos, void *buffer, fssh_size_t length) argument 482 if (pos == -1) 483 pos = descriptor->pos; 486 bytesRead = descriptor->ops->fd_read(descriptor, pos, buffer, &length); 493 descriptor->pos = pos 504 _kern_readv(int fd, fssh_off_t pos, const fssh_iovec *vecs, fssh_size_t count) argument 548 _kern_write(int fd, fssh_off_t pos, const void *buffer, fssh_size_t length) argument 583 _kern_writev(int fd, fssh_off_t pos, const fssh_iovec *vecs, fssh_size_t count) argument 627 _kern_seek(int fd, fssh_off_t pos, int seekType) argument [all...] |
H A D | driver_settings.cpp | 141 char *pos = *_pos; local 148 while (pos[0] 149 && ((allowNewLine && (isspace(pos[0]) || is_parameter_separator(pos[0]) 150 || pos[0] == '#')) 151 || (!allowNewLine && (pos[0] == '\t' || pos[0] == ' ')) 152 || (assignmentMode == ALLOW_ASSIGNMENT && pos[0] == '='))) { 154 if (pos[0] == '#') { 155 while (pos[ 250 char *pos = *_pos; local [all...] |
/haiku/headers/private/storage/sniffer/ |
H A D | Parser.h | 72 Token(TokenType type = EmptyToken, const ssize_t pos = -1); 92 StringToken(const std::string &str, const ssize_t pos); 106 IntToken(const int32 value, const ssize_t pos); 120 FloatToken(const double value, const ssize_t pos); 157 void AddToken(TokenType type, ssize_t pos); 158 void AddString(const std::string &str, ssize_t pos); 159 void AddInt(const char *str, ssize_t pos); 160 void AddFloat(const char *str, ssize_t pos); 283 inline void ThrowOutOfMemError(ssize_t pos);
|
/haiku/src/tests/add-ons/kernel/file_systems/random_read/ |
H A D | random_read.cpp | 88 off_t pos = rand() % size; local 91 off_t max = size - pos; 97 ssize_t bytesRead = file.ReadAt(pos, buffer, bytes); 100 bytes, pos, strerror(bytesRead)); 103 bytesRead, bytes, pos); 108 off_t bufferPos = pos; 130 "%ld, should be %08lx, is %08lx)!\n", pos, bytes, 148 "is %08lx)!\n", pos, bytes, bufferPos, num, *numBuffer); 174 "%ld, should be %08lx, is %08lx)!\n", pos, bytes,
|
/haiku/src/system/libnetwork/netresolv/net/ |
H A D | base64.c | 223 char *pos; local 238 pos = strchr(Base64, ch); 239 if (pos == NULL) /*%< A non-base64 character. */ 247 target[tarindex] = (u_char)(pos - Base64) << 2; 256 (uint32_t)(pos - Base64) >> 4; 257 nextbyte = (u_char)((pos - Base64) & 0x0f) << 4; 271 (uint32_t)(pos - Base64) >> 2; 272 nextbyte = (u_char)((pos - Base64) & 0x03) << 6; 285 target[tarindex] |= (u_char)(pos - Base64);
|
/haiku/src/add-ons/kernel/file_systems/ext2/ |
H A D | InodeAllocator.cpp | 159 uint32 pos = 0; local 162 fVolume->InodesPerGroup(), pos, checksum); 167 && pos > (fVolume->InodesPerGroup() 169 group->SetUnusedInodes(fVolume->InodesPerGroup() - pos - 1, 177 id = pos + blockGroup * fVolume->InodesPerGroup() + 1; 185 uint32 blockGroup, uint32 numInodes, uint32& pos, uint32& checksum) 195 pos = 0; 196 inodeBitmap.FindNextUnmarked(pos); 198 if (pos == inodeBitmap.NumBits()) { 206 if (!inodeBitmap.Mark(pos, 184 _MarkInBitmap(Transaction& transaction, fsblock_t bitmapBlock, uint32 blockGroup, uint32 numInodes, uint32& pos, uint32& checksum) argument 230 uint32 pos = (id - 1) % fVolume->InodesPerGroup(); local [all...] |
/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | parser.c | 192 size_t pos = 0; local 209 #define ENTER_STRING_STATE(st) do { vt->parser_state = st; string_start = bytes + pos + 1; } while(0) 212 for( ; pos < len; pos++) { 213 unsigned char c = bytes[pos]; 217 append_strbuffer(vt, string_start, bytes + pos - string_start); 218 string_start = bytes + pos + 1; 241 append_strbuffer(vt, string_start, bytes + pos - string_start); 244 string_start = bytes + pos + 1; 258 do_string(vt, string_start, bytes + pos [all...] |
/haiku/src/apps/icon-o-matic/generic/gui/ |
H A D | NummericalTextView.cpp | 180 int32 pos = 0; local 181 while (text[pos]) { 184 && pos == selectionStart) { 185 pos = selectionEnd; 187 if (text[pos] == c) { 191 pos++;
|
/haiku/src/kits/network/libnetservices/ |
H A D | DataRequest.cpp | 67 int pos = 0; local 70 pos = meta.FindFirst(';', pos); 73 if (pos >= 0) { 74 parameter.Truncate(pos); 75 meta.Remove(0, pos+1);
|
/haiku/src/add-ons/kernel/file_systems/xfs/ |
H A D | BPlusTree.h | 121 TreeKey* GetKeyFromNode(int pos, void* buffer); 122 TreePointer* GetPtrFromNode(int pos, void* buffer); 123 TreeKey* GetKeyFromRoot(int pos); 124 TreePointer* GetPtrFromRoot(int pos); 135 size_t GetPtrOffsetIntoNode(int pos); 136 size_t GetPtrOffsetIntoRoot(int pos);
|
/haiku/src/system/boot/loader/file_systems/bfs/ |
H A D | Stream.cpp | 198 Stream::FindBlockRun(off_t pos, block_run& run, off_t& offset) argument 202 if (data.MaxDirectRange() > 0 && pos >= data.MaxDirectRange()) { 204 && pos >= data.MaxIndirectRange()) { 215 off_t start = pos - data.MaxIndirectRange(); 258 if (runBlockEnd > pos) { 281 if (runBlockEnd > pos) { 288 //PRINT(("FindBlockRun() failed in direct range: size = %lld, pos = %lld\n",data.size,pos)); 296 Stream::ReadAt(off_t pos, uint8* buffer, size_t* _length) argument 298 // set/check boundaries for pos/lengt [all...] |
H A D | Link.cpp | 46 Link::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument 53 Link::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument
|
/haiku/src/add-ons/media/plugins/au_reader/ |
H A D | au_reader.cpp | 312 int64 pos; local 316 pos = (*frame * fBitsPerFrame) / 8; 318 pos = (*frame * fDataSize) / fFrameCount; 319 pos = (pos / fBlockAlign) * fBlockAlign; // round down to a block start 320 TRACE("auReader::Seek to frame %lld, pos %lld\n", *frame, pos); 323 pos = (*time * fFrameRate * fBitsPerFrame) / (1000000LL * 8); 325 pos = (*time * fDataSize) / fDuration; 326 pos [all...] |
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | logfile.c | 49 * @pos: position in logfile at which the restart page header resides 57 static BOOL ntfs_check_restart_page_header(RESTART_PAGE_HEADER *rp, s64 pos) argument 79 * We must be either at !pos (1st restart page) or at pos = system page 82 if (pos && pos != logfile_system_page_size) { 351 * @pos: position in @log_na at which the restart page resides 375 RESTART_PAGE_HEADER *rp, s64 pos, RESTART_PAGE_HEADER **wrp, 384 if (!ntfs_check_restart_page_header(rp, pos)) { 415 else if (ntfs_attr_pread(log_na, pos, 374 ntfs_check_and_load_restart_page(ntfs_attr *log_na, RESTART_PAGE_HEADER *rp, s64 pos, RESTART_PAGE_HEADER **wrp, LSN *lsn) argument 494 s64 size, pos; local 730 s64 pos, count; local [all...] |
/haiku/src/apps/serialconnect/ |
H A D | TermView.cpp | 63 VTermPos pos; local 70 for (pos.row = updatedChars.start_row; pos.row <= updatedChars.end_row; 71 pos.row++) { 73 int y = pos.row * fFontHeight + (int)ceil(height.ascent) 82 pos.col = updatedChars.start_col; 83 _GetCell(pos, cell); 85 for (pos.col = updatedChars.start_col; 86 pos.col <= updatedChars.end_col;) { 89 _GetCell(pos, newCel 425 _GetCell(VTermPos pos, VTermScreenCell& cell) argument 462 _MoveCursor(VTermPos pos, VTermPos oldPos, int visible) argument 559 _MoveCursor(VTermPos pos, VTermPos oldPos, int visible, void* user) argument [all...] |
/haiku/headers/os/kernel/ |
H A D | fs_attr.h | 24 off_t pos, void *buffer, size_t readBytes); 26 off_t pos, const void *buffer, size_t readBytes);
|
/haiku/src/add-ons/media/media-add-ons/usb_webcam/ |
H A D | CamBufferedFilterInterface.h | 20 virtual ssize_t ReadAt(off_t pos, void *buffer, size_t size); 23 virtual ssize_t WriteAt(off_t pos, const void *buffer, size_t size);
|
/haiku/src/system/kernel/device_manager/ |
H A D | BaseDevice.cpp | 75 BaseDevice::Read(void* cookie, off_t pos, void* buffer, size_t* _length) argument 82 BaseDevice::Write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
|
/haiku/src/tools/restest/ |
H A D | OffsetFile.h | 21 ssize_t ReadAt(off_t pos, void *buffer, size_t size); 22 ssize_t WriteAt(off_t pos, const void *buffer,
|
/haiku/src/add-ons/mail_daemon/inbound_protocols/pop3/ |
H A D | MessageIO.h | 22 virtual ssize_t ReadAt(off_t pos, void* buffer, 24 virtual ssize_t WriteAt(off_t pos, const void* buffer,
|
/haiku/headers/private/fs_shell/ |
H A D | fssh_fs_attr.h | 24 uint32_t type, fssh_off_t pos, void *buffer, 27 uint32_t type, fssh_off_t pos, const void *buffer,
|
/haiku/headers/build/os/kernel/ |
H A D | fs_attr.h | 25 off_t pos, void *buffer, size_t readBytes); 27 off_t pos, const void *buffer, size_t readBytes);
|
/haiku/src/system/boot/loader/file_systems/amiga_ffs/ |
H A D | File.h | 26 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize); 27 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
|