Searched refs:pos (Results 301 - 325 of 520) sorted by relevance

<<11121314151617181920>>

/haiku/src/kits/translation/
H A DTranslatorRoster.cpp735 off_t pos = source->Seek(0, SEEK_SET); local
736 if (pos != 0)
737 return pos < 0 ? (status_t)pos : B_IO_ERROR;
790 off_t pos = source->Seek(0, SEEK_SET); local
791 if (pos != 0) {
793 return pos < 0 ? status_t(pos) : B_IO_ERROR;
1598 off_t pos = source->Seek(0, SEEK_SET); local
1599 if (pos !
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dattrib.h299 extern s64 ntfs_attr_pread(ntfs_attr *na, const s64 pos, s64 count,
301 extern s64 ntfs_attr_pwrite(ntfs_attr *na, const s64 pos, s64 count,
308 extern s64 ntfs_attr_mst_pread(ntfs_attr *na, const s64 pos,
310 extern s64 ntfs_attr_mst_pwrite(ntfs_attr *na, const s64 pos,
326 extern int ntfs_make_room_for_attr(MFT_RECORD *m, u8 *pos, u32 size);
H A Dwin32_io.c283 s64 pos; /* Logical current position on the volume. */ member in struct:__anon144
821 fd->pos = 0;
862 fd->pos = 0;
945 fd->pos = 0;
1152 fd->pos = 0;
1294 abs_ofs = fd->pos + offset;
1317 fd->pos = abs_ofs;
1324 * @pos: at which position to do i/o from/to
1330 * error returns -1 and errno set. Transfer starts from position @pos on @fd.
1333 * - @pos,
1338 ntfs_device_win32_pio(win32_fd *fd, const s64 pos, const s64 count, void *rbuf, const void *wbuf) argument
1428 ntfs_device_win32_pread_simple(win32_fd *fd, const s64 pos, const s64 count, void *b) argument
1620 ntfs_device_win32_pwrite_simple(win32_fd *fd, const s64 pos, const s64 count, const void *b) argument
[all...]
H A Dsecurity.c404 const le32 *pos = (const le32*)sd; local
405 const le32 *end = pos + (len >> 2);
408 while (pos < end) {
409 hash = le32_to_cpup(pos) + ntfs_rol32(hash, 3);
410 pos++;
3899 int pos; local
3971 pos = sizeof(SECURITY_DESCRIPTOR_RELATIVE);
3980 pnacl = (ACL*)&newattr[pos];
3985 pnhead->dacl = cpu_to_le32(pos);
3986 pos
4592 unsigned int pos; local
4742 int pos; local
5117 s64 pos; local
[all...]
/haiku/src/build/libroot/
H A Dfs.cpp281 string::size_type pos = normalizedPath.rfind('/'); local
282 if (pos != string::npos)
283 normalizedPath.resize(pos);
729 _kern_seek(int fd, off_t pos, int seekType) argument
738 off_t result = lseek(descriptor->fd, pos, seekType);
747 _kern_read(int fd, off_t pos, void *buffer, size_t bufferSize) argument
756 if (pos != -1) {
757 off_t result = lseek(descriptor->fd, pos, SEEK_SET);
773 _kern_write(int fd, off_t pos, const void *buffer, size_t bufferSize) argument
782 if (pos !
1127 read_pos(int fd, off_t pos, void *buffer, size_t bufferSize) argument
1145 write_pos(int fd, off_t pos, const void *buffer, size_t bufferSize) argument
1178 _kern_readv(int fd, off_t pos, const struct iovec *vec, size_t count) argument
1191 _kern_writev(int fd, off_t pos, const struct iovec *vec, size_t count) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/xfs/
H A DInode.h317 status_t ReadAt(off_t pos, uint8* buffer, size_t* length);
329 TreePointer* GetPtrFromRoot(int pos);
330 TreePointer* GetPtrFromNode(int pos, void* buffer);
331 size_t GetPtrOffsetIntoRoot(int pos);
332 size_t GetPtrOffsetIntoNode(int pos);
/haiku/src/system/boot/loader/
H A Dvfs.cpp56 ssize_t ReadAt(off_t pos, void *buffer, size_t bufferSize);
58 ssize_t WriteAt(off_t pos, const void *buffer, size_t bufferSize);
223 Directory::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument
230 Directory::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument
307 MemoryDisk::ReadAt(void* cookie, off_t pos, void* buffer, size_t bufferSize) argument
309 if (pos < 0)
311 if ((size_t)pos >= fSize)
314 if (pos + bufferSize > fSize)
315 bufferSize = fSize - pos;
317 memcpy(buffer, fData + pos, bufferSiz
323 WriteAt(void* cookie, off_t pos, const void* buffer, size_t bufferSize) argument
378 ReadAt(off_t pos, void *buffer, size_t bufferSize) argument
396 WriteAt(off_t pos, const void *buffer, size_t bufferSize) argument
[all...]
/haiku/headers/os/drivers/
H A Dfs_interface.h129 off_t pos, const iovec* vecs, size_t count, size_t* _numBytes);
131 void* cookie, off_t pos, const iovec* vecs, size_t count,
172 off_t pos, off_t length);
184 off_t pos, void* buffer, size_t* length);
186 off_t pos, const void* buffer, size_t* length);
227 off_t pos, void* buffer, size_t* length);
229 off_t pos, const void* buffer, size_t* length);
337 extern status_t read_pages(int fd, off_t pos, const struct iovec* vecs,
339 extern status_t write_pages(int fd, off_t pos, const struct iovec* vecs,
/haiku/headers/private/fs_shell/
H A Dfssh_fs_interface.h141 fssh_fs_cookie cookie, fssh_off_t pos, const fssh_iovec *vecs,
144 fssh_fs_cookie cookie, fssh_off_t pos, const fssh_iovec *vecs,
189 fssh_off_t pos, fssh_off_t length);
202 fssh_fs_cookie cookie, fssh_off_t pos, void *buffer,
205 fssh_fs_cookie cookie, fssh_off_t pos, const void *buffer,
249 fssh_fs_cookie cookie, fssh_off_t pos, void *buffer,
252 fssh_fs_cookie cookie, fssh_off_t pos, const void *buffer,
368 extern fssh_status_t fssh_read_pages(int fd, fssh_off_t pos,
371 extern fssh_status_t fssh_write_pages(int fd, fssh_off_t pos,
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DFile.cpp178 File::Read(off_t pos, void* buffer, size_t size, size_t& _bytesRead) argument
180 if (pos < 0)
191 if ((uint64)pos >= fileSize) {
196 if (fileSize - pos < size)
197 size = fileSize - pos;
202 status_t error = file_cache_read(fFileCache, NULL, pos, buffer, &bytesRead);
212 File::Write(off_t pos, const void* buffer, size_t size, size_t& _bytesWritten, argument
225 if (pos < 0)
226 pos = fileSize;
228 uint64 newFileSize = (uint64)pos
[all...]
H A DNode.cpp115 Node::Read(off_t pos, void* buffer, size_t size, size_t& _bytesRead) argument
122 Node::Write(off_t pos, const void* buffer, size_t size, size_t& _bytesWritten, argument
H A DNode.h43 virtual status_t Read(off_t pos, void* buffer, size_t size,
45 virtual status_t Write(off_t pos, const void* buffer,
/haiku/src/tools/fs_shell/
H A Dcommand_cp.cpp86 fssh_off_t pos, void *buffer, int size) = 0;
88 fssh_off_t pos, const void *buffer, int size) = 0;
202 fssh_off_t pos, void *buffer, int size)
204 fssh_ssize_t bytesRead = fs_read_attr(fFD, name, type, pos, buffer,
210 fssh_off_t pos, const void *buffer, int size)
212 fssh_ssize_t bytesWritten = fs_write_attr(fFD, name, type, pos, buffer,
586 fssh_off_t pos, void *buffer, int size)
594 fssh_ssize_t bytesRead = _kern_read(attrFD, pos, buffer, size);
603 fssh_off_t pos, const void *buffer, int size)
611 fssh_ssize_t bytesWritten = _kern_write(attrFD, pos, buffe
201 ReadAttr(const char *name, uint32_t type, fssh_off_t pos, void *buffer, int size) argument
209 WriteAttr(const char *name, uint32_t type, fssh_off_t pos, const void *buffer, int size) argument
585 ReadAttr(const char *name, uint32_t type, fssh_off_t pos, void *buffer, int size) argument
602 WriteAttr(const char *name, uint32_t type, fssh_off_t pos, const void *buffer, int size) argument
1008 fssh_off_t pos = 0; local
[all...]
/haiku/src/add-ons/kernel/file_systems/layers/log_overlay/
H A Dlog_overlay.cpp145 overlay_read_pages(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, argument
148 DO_LOG("read_pages cookie: %p; pos: %" B_PRIdOFF "; vecs: %p; count: %"
149 B_PRIuSIZE "; num_bytes: %" B_PRIuSIZE "\n", cookie, pos, vecs, count,
151 OVERLAY_CALL(read_pages, cookie, pos, vecs, count, numBytes)
159 overlay_write_pages(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, argument
162 DO_LOG("write_pages cookie: %p; pos: %" B_PRIdOFF "; vecs: %p; count: %"
163 B_PRIuSIZE "; num_bytes: %" B_PRIuSIZE "\n", cookie, pos, vecs, count,
165 OVERLAY_CALL(write_pages, cookie, pos, vecs, count, numBytes)
414 overlay_read(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, argument
417 DO_LOG("read cookie: %p; pos
427 overlay_write(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, const void *buffer, size_t *length) argument
611 overlay_read_attr(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, void *buffer, size_t *length) argument
624 overlay_write_attr(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, const void *buffer, size_t *length) argument
[all...]
/haiku/src/bin/pcmcia-cs/
H A Dyacc_cis.y173 u_int pos = 0;
175 pos = v->ofs[v->ns-1];
176 pos += strlen(v->str+pos)+1;
178 v->ofs[v->ns] = pos;
179 strcpy(v->str+pos, $3);
H A Dpack_cis.c359 u_int i, j, pos; local
368 pos = 5*nf+5;
372 b[4+i*5+j] = ((ofs+pos) >> (8*j)) & 0xff;
373 pos += pack_tuple(&target, b+pos);
374 pos += pack_chain(mfc[i], b+pos);
376 return ofs+pos;
/haiku/src/add-ons/kernel/drivers/graphics/3dfx/
H A Ddriver.cpp85 static status_t device_read(void* dev, off_t pos, void* buf, size_t* len);
86 static status_t device_write(void* dev, off_t pos, const void* buf,
435 device_read(void* dev, off_t pos, void* buf, size_t* len) argument
439 (void)pos;
448 device_write(void* dev, off_t pos, const void* buf, size_t* len) argument
452 (void)pos;
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DInode.h122 off_t pos, uint8* buffer, size_t* _length);
124 const char* name, int32 type, off_t pos,
145 status_t FindBlockRun(off_t pos, block_run& run,
148 status_t ReadAt(off_t pos, uint8* buffer, size_t* length);
149 status_t WriteAt(Transaction& transaction, off_t pos,
229 uint32 type, off_t pos, const uint8* data,
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DShareVolume.cpp755 ShareVolume::Read(Node* _node, void* cookie, off_t pos, void* _buffer, argument
769 request.pos = pos;
774 off_t pos; member in struct:ReadRequestHandler
778 ReadRequestHandler(uint8* buffer, off_t pos, int32 bufferSize) argument
780 pos(pos),
817 if (reply->pos != pos)
825 pos
843 Write(Node* _node, void* cookie, off_t pos, const void* _buffer, size_t bufferSize, size_t* bytesWritten) argument
1608 ReadAttr(Node* _node, const char* name, int type, off_t pos, void* _buffer, size_t bufferSize, size_t* _bytesRead) argument
1662 off_t pos; member in struct:ReadRequestHandler
1666 ReadRequestHandler(uint8* buffer, off_t pos, int32 bufferSize) argument
1731 WriteAttr(Node* _node, const char* name, int type, off_t pos, const void* _buffer, size_t bufferSize, size_t* bytesWritten) argument
[all...]
/haiku/src/apps/mail/
H A DContent.cpp400 int32 pos = 0;
458 while (line[pos] == ' ')
459 pos++;
467 for (int32 pos = 0; pos < length;) {
469 if (begin && is_quote_char(line[pos])) {
472 while (pos < length && line[pos] != '\n') {
477 for (next = pos + 1; next < length; next++) {
485 runs[index].offset = pos;
[all...]
/haiku/src/libs/icon/flat_icon/
H A DLittleEndianBuffer.cpp290 int32 pos = fHandle - fBuffer; local
292 fHandle = fBuffer + pos;
/haiku/src/tests/system/kernel/device_manager/playground/
H A Ddevice_manager.h173 status_t (*device_read)(void *cookie, off_t pos, void *buffer,
175 status_t (*device_write)(void *cookie, off_t pos, const void *buffer,
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/
H A DBeOSKernelVolume.cpp407 BeOSKernelVolume::Read(void* node, void* cookie, off_t pos, void* buffer, argument
413 return fFSOps->read(fVolumeCookie, node, cookie, pos, buffer, bytesRead);
418 BeOSKernelVolume::Write(void* node, void* cookie, off_t pos, argument
424 return fFSOps->write(fVolumeCookie, node, cookie, pos, buffer,
601 BeOSKernelVolume::ReadAttr(void* node, void* _cookie, off_t pos, argument
616 buffer, bytesRead, pos);
621 BeOSKernelVolume::WriteAttr(void* node, void* _cookie, off_t pos, argument
636 buffer, bytesWritten, pos);
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_subr_sbuf.c322 sbuf_setpos(struct sbuf *s, ssize_t pos) argument
328 KASSERT(pos >= 0,
329 ("attempt to seek to a negative position (%jd)", (intmax_t)pos));
330 KASSERT(pos < s->s_size,
332 (intmax_t)pos, (intmax_t)s->s_size));
336 if (pos < 0 || pos > s->s_len)
338 s->s_len = pos;
/haiku/src/bin/bfs_tools/lib/
H A DDisk.h79 virtual ssize_t ReadAt(off_t pos, void *buffer, size_t size);
80 virtual ssize_t WriteAt(off_t pos, const void *buffer, size_t size);

Completed in 365 milliseconds

<<11121314151617181920>>