Searched refs:pos (Results 126 - 150 of 520) sorted by relevance

1234567891011>>

/haiku/src/tests/kits/game/push_game_sound_test/
H A Dpush_game_sound_test.cpp130 size_t pos = 0; /*pushGameSound.CurrentPosition();*/ local
138 memcpy(buffer + pos + partPos, decoded, size);
168 pos += bufferPartSize;
169 if (bufferSize <= pos)
170 pos = 0;
174 while (pushGameSound.CurrentPosition() >= pos + bufferPartSize
175 || pushGameSound.CurrentPosition() < pos)
/haiku/src/build/libbe/support/
H A DArchivable.cpp266 string::size_type pos = 0; local
268 while (pos != string::npos)
270 pos = origName.find_first_of("::", oldpos);
271 spacenames.push_back(string(origName, oldpos, pos - oldpos));
272 pos = origName.find_first_not_of("::", pos);
273 oldpos = pos;
/haiku/src/kits/package/
H A DPackageInfoParser.h123 const char* pos; member in struct:BPackageKit::BPackageInfo::Parser::ParseError
126 : message(_message), pos(_pos)
135 const char* pos; member in struct:BPackageKit::BPackageInfo::Parser::Token
141 pos(_pos)
146 this->text.SetTo(pos, length);
167 virtual void Validate(const BString &string, const char *pos) = 0;
174 virtual void Validate(const BString &string, const char* pos);
/haiku/src/tools/fs_shell/
H A Dunistd.cpp48 extern "C" ssize_t _kern_read(int fd, off_t pos, void *buffer, size_t bufferSize);
49 extern "C" ssize_t _kern_write(int fd, off_t pos, const void *buffer, size_t bufferSize);
374 fssh_off_t pos = -1; local
375 if (FSShell::restricted_file_restrict_io(fd, pos, count) < 0)
389 fssh_read_pos(int fd, fssh_off_t pos, void *buffer, fssh_size_t count) argument
391 if (FSShell::restricted_file_restrict_io(fd, pos, count) < 0)
394 return read_pos(fd, pos, buffer, count);
396 return _kern_read(fd, pos, buffer, count);
405 fssh_off_t pos = -1; local
406 if (FSShell::restricted_file_restrict_io(fd, pos, coun
420 fssh_write_pos(int fd, fssh_off_t pos, const void *buffer, fssh_size_t count) argument
[all...]
H A Dfd.h23 fssh_status_t (*fd_read)(struct file_descriptor *, fssh_off_t pos,
25 fssh_status_t (*fd_write)(struct file_descriptor *, fssh_off_t pos,
27 fssh_off_t (*fd_seek)(struct file_descriptor *, fssh_off_t pos,
58 fssh_off_t pos; member in struct:FSShell::file_descriptor
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DBitmapBlock.cpp245 BitmapBlock::_FindNext(uint32& pos, bool marked) argument
247 TRACE("BitmapBlock::_FindNext(): pos: %" B_PRIu32 "\n", pos);
253 if (pos >= fNumBits) {
254 pos = fNumBits;
258 uint32 index = pos >> 5;
259 uint32 bit = pos & 0x1F;
286 pos = fNumBits;
294 pos = fNumBits;
304 pos
315 FindPreviousMarked(uint32& pos) argument
[all...]
/haiku/src/apps/terminal/
H A DBasicTerminalBuffer.cpp378 TermPos pos(start);
380 if (IsFullWidthChar(pos.y, pos.x))
381 pos.x--;
384 while (pos.y < end.y) {
385 TerminalLine* line = _GetPartialLineString(string, pos.y, pos.x,
389 pos.x = 0;
390 pos.y++;
395 _GetPartialLineString(string, end.y, pos
400 FindWord(const TermPos& pos, TerminalCharClassifier* classifier, bool findNonWords, TermPos& _start, TermPos& _end) const argument
482 NextLinePos(TermPos& pos, bool normalize) const argument
1677 _PreviousChar(TermPos& pos, UTF8Char& c) const argument
1709 _NextChar(TermPos& pos, UTF8Char& c) const argument
[all...]
/haiku/src/system/libroot/os/
H A Ddriver_settings.cpp168 char *pos = *_pos; local
175 while (pos[0]
176 && ((allowNewLine && (isspace(pos[0]) || is_parameter_separator(pos[0])
177 || pos[0] == '#'))
178 || (!allowNewLine && (pos[0] == '\t' || pos[0] == ' '))
179 || (assignmentMode == ALLOW_ASSIGNMENT && pos[0] == '='))) {
181 if (pos[0] == '#') {
182 while (pos[
277 char *pos = *_pos; local
[all...]
H A Dfs_attr.cpp49 fs_read_attr(int fd, const char* attribute, uint32 /*type*/, off_t pos, argument
52 ssize_t bytes = _kern_read_attr(fd, attribute, pos, buffer, readBytes);
58 fs_write_attr(int fd, const char* attribute, uint32 type, off_t pos, argument
64 // On BeOS, it was documented that the "pos" argument is ignored, however,
79 ssize_t bytes = _kern_write_attr(fd, attribute, type, pos, buffer,
/haiku/src/kits/storage/
H A DQuery.cpp527 const char* pos = start; local
530 while (pos[0]) {
531 if (pos[0] == '\\') {
532 pos++;
535 if (pos[0] == '"')
537 else if (!quotes && pos[0] == '%') {
538 const char* end = strchr(pos + 1, '%');
542 parsedPredicate.Append(start, pos - start);
546 BString date(pos + 1, start - 1 - pos);
[all...]
H A DOffsetFile.cpp74 OffsetFile::ReadAt(off_t pos, void *buffer, size_t size) argument
79 result = fFile->ReadAt(pos + fOffset, buffer, size);
85 OffsetFile::WriteAt(off_t pos, const void *buffer, size_t size) argument
90 result = fFile->WriteAt(pos + fOffset, buffer, size);
/haiku/src/add-ons/kernel/drivers/audio/cmedia/
H A Dmidi.c61 static status_t midi_read(void *cookie, off_t pos, void *data, size_t *len);
62 static status_t midi_write(void *cookie, off_t pos, const void *data, size_t *len);
156 off_t pos,
160 return (*mpu401->read_hook)(cookie, pos, ptr, nread);
167 off_t pos,
171 return (*mpu401->write_hook)(cookie, pos, ptr, nwritten);
154 midi_read( void * cookie, off_t pos, void * ptr, size_t * nread) argument
165 midi_write( void * cookie, off_t pos, const void * ptr, size_t * nwritten) argument
/haiku/src/add-ons/kernel/drivers/audio/emuxki/
H A Dmidi.c81 static status_t midi_read(void *cookie, off_t pos, void *data, size_t *len);
82 static status_t midi_write(void *cookie, off_t pos, const void *data, size_t *len);
176 off_t pos,
180 return (*mpu401->read_hook)(cookie, pos, ptr, nread);
187 off_t pos,
191 return (*mpu401->write_hook)(cookie, pos, ptr, nwritten);
174 midi_read( void * cookie, off_t pos, void * ptr, size_t * nread) argument
185 midi_write( void * cookie, off_t pos, const void * ptr, size_t * nwritten) argument
/haiku/src/tests/add-ons/kernel/file_systems/bfs/fragmenter/
H A Dfragmenter.cpp61 read_from(int fd, off_t pos, void *buffer, size_t size) argument
63 if (lseek(fd, pos, SEEK_SET) < 0
66 size, pos);
73 write_to(int fd, off_t pos, const void *buffer, size_t size) argument
75 if (lseek(fd, pos, SEEK_SET) < 0
78 size, pos);
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DAttribute.cpp113 Attribute::Read(attr_cookie* cookie, off_t pos, uint8* buffer, size_t* _length) argument
115 if (pos < 0LL)
133 if (pos + *_length > entry->DataLength())
134 length = entry->DataLength() - pos;
136 length = *_length - pos;
138 + sizeof(btrfs_dir_entry) + (uint32)pos, length);
/haiku/src/system/boot/platform/generic/
H A Dtext_menu.cpp196 char *pos = strchr(buffer, '\n'); local
197 if (pos != NULL)
198 bytes = pos - buffer;
201 pos = strrchr(buffer, ' ');
202 if (pos != NULL)
203 bytes = pos - buffer;
581 size_t pos = 0; local
619 if (pos > 0)
620 pos--;
627 if (pos < dataLengt
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A Dfuse_opt.c69 static int fuse_opt_insert_arg_common(struct fuse_args *args, int pos, argument
72 assert(pos <= args->argc);
76 if (pos != args->argc - 1) {
78 memmove(&args->argv[pos + 1], &args->argv[pos],
79 sizeof(char *) * (args->argc - pos - 1));
80 args->argv[pos] = newarg;
85 int fuse_opt_insert_arg(struct fuse_args *args, int pos, const char *arg) argument
87 return fuse_opt_insert_arg_common(args, pos, arg);
90 int fuse_opt_insert_arg_compat(struct fuse_args *args, int pos,
92 fuse_opt_insert_arg_compat(struct fuse_args *args, int pos, const char *arg) argument
[all...]
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dps2_standard_mouse.cpp101 mouse_movement* pos)
144 if (pos != NULL) {
145 pos->xdelta = xDelta;
146 pos->ydelta = yDelta;
147 pos->buttons = buttons;
148 pos->clicks = cookie->click_count;
149 pos->modifiers = 0;
150 pos->timestamp = currentTime;
151 pos->wheel_ydelta = yDeltaWheel;
152 pos
100 ps2_packet_to_movement(standard_mouse_cookie* cookie, uint8 packet[], mouse_movement* pos) argument
437 standard_mouse_read(void* cookie, off_t pos, void* buffer, size_t* _length) argument
445 standard_mouse_write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
[all...]
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/
H A DRemoteDisk.cpp170 RemoteDisk::ReadAt(off_t pos, void *_buffer, size_t bufferSize) argument
176 if (!buffer || pos < 0)
184 ssize_t bytesRead = _ReadFromPacket(pos, buffer, bufferSize);
194 request.offset = htonll(pos);
216 size_t packetBytesRead = _ReadFromPacket(pos, buffer, bufferSize);
232 RemoteDisk::WriteAt(off_t pos, const void *_buffer, size_t bufferSize) argument
238 if (!buffer || pos < 0)
249 request->offset = htonll(pos);
282 pos += toWrite;
345 RemoteDisk::_ReadFromPacket(off_t& pos, uint argument
[all...]
/haiku/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioAdapter.h32 virtual status_t Read(void* buffer, int64 pos, int64 frames);
/haiku/src/libs/stdc++/legacy/
H A Dindstream.cc92 streampos indirectbuf::seekpos(streampos pos, int mode) argument
99 ret_val = gbuf->seekpos(pos, mode);
102 ret_val = gbuf->seekpos(pos, ios::in);
104 ret_val = pbuf->seekpos(pos, ios::out);
/haiku/src/system/boot/platform/amiga_m68k/
H A Dconsole.cpp22 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer,
24 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer,
46 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize);
47 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
71 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize);
72 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
87 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize);
88 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
133 ConsoleHandle::ReadAt(void */*cookie*/, off_t /*pos*/, void *buffer,
143 ConsoleHandle::WriteAt(void */*cookie*/, off_t /*pos*/, cons
290 ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument
345 WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument
460 ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument
523 WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument
553 ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument
622 WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument
[all...]
/haiku/src/add-ons/kernel/drivers/audio/echo/
H A Dmidi.cpp33 static status_t midi_read(void *cookie, off_t pos, void *data, size_t *len);
34 static status_t midi_write(void *cookie, off_t pos, const void *data, size_t *len);
109 midi_read(void* cookie, off_t pos, void* ptr, size_t* nread) argument
134 midi_write(void* cookie, off_t pos, const void* ptr, size_t* _nwritten) argument
/haiku/src/system/boot/loader/
H A DFileMapDisk.cpp92 FileMapDisk::ReadAt(void *cookie, off_t pos, void *_buffer, argument
95 TRACE(("FileMapDisk::ReadAt(%p, %lld, , %ld)\n", cookie, pos, bufferSize));
99 return fNode->ReadAt(cookie, pos, _buffer, bufferSize);
105 FileMapDisk::WriteAt(void */*cookie*/, off_t pos, const void *buffer, argument
/haiku/src/add-ons/kernel/file_systems/xfs/
H A DAttribute.h31 virtual status_t Read(attr_cookie* cookie, off_t pos,

Completed in 144 milliseconds

1234567891011>>