/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | ftello.c | 38 _IO_off64_t pos; local 42 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0); 46 pos -= fp->_IO_save_end - fp->_IO_save_base; 50 if (pos == _IO_pos_BAD) 58 if ((_IO_off64_t) (off_t) pos != pos) 65 return pos;
|
H A D | ftello64.c | 39 _IO_off64_t pos; local 43 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0); 47 pos -= fp->_IO_save_end - fp->_IO_save_base; 51 if (pos == _IO_pos_BAD) 59 return pos;
|
H A D | ioftell.c | 37 _IO_off64_t pos; local 41 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0); 45 pos -= fp->_IO_save_end - fp->_IO_save_base; 49 if (pos == _IO_pos_BAD) 57 if ((_IO_off64_t) (off_t) pos != pos) 64 return pos;
|
H A D | ioseekpos.c | 34 _IO_seekpos_unlocked(_IO_FILE *fp, _IO_off64_t pos, int mode) argument 49 return _IO_SEEKPOS(fp, pos, mode); 54 _IO_seekpos(_IO_FILE *fp, _IO_off64_t pos, int mode) argument 61 retval = _IO_seekpos_unlocked(fp, pos, mode);
|
H A D | iofgetpos64.c | 39 _IO_off64_t pos; local 43 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0); 47 pos -= fp->_IO_save_end - fp->_IO_save_base; 51 if (pos == _IO_pos_BAD) 61 posp->__pos = pos;
|
H A D | fmemopen.c | 87 _IO_off64_t pos; member in struct:fmemopen_cookie_struct 99 if (c->pos + s > c->size) 101 if ((size_t) c->pos == c->size) 103 s = c->size - c->pos; 106 memcpy (b, &(c->buffer[c->pos]), s); 108 c->pos += s; 109 if ((size_t) c->pos > c->maxpos) 110 c->maxpos = c->pos; 126 if (c->pos + s + addnullc > c->size) 128 if ((size_t) (c->pos [all...] |
H A D | iofgetpos.c | 38 _IO_off64_t pos; local 43 pos = _IO_seekoff_unlocked (fp, 0, _IO_seek_cur, 0); 47 pos -= fp->_IO_save_end - fp->_IO_save_base; 49 if (pos == _IO_pos_BAD) 59 else if ((_IO_off64_t) (__typeof (posp->__pos)) pos != pos) 68 posp->__pos = pos;
|
/haiku/src/tools/fs_shell/ |
H A D | path_util.cpp | 33 int pos = len - 1; local 34 while (pos > 0 && path[pos] != '/') 35 pos--; 36 if (path[pos] == '/') 37 pos++; 39 path += pos; 40 len -= pos;
|
H A D | partition_support.cpp | 122 restricted_file_restrict_io(int fd, fssh_off_t& pos, fssh_off_t size) argument 128 if (pos < 0) { 129 pos = lseek(fd, 0, SEEK_CUR); 130 if (pos < 0) 133 pos += restriction->startOffset; 135 if (pos < restriction->startOffset || pos > restriction->endOffset) { 140 fssh_off_t maxSize = restriction->endOffset - pos; 185 fssh_off_t pos; 190 pos [all...] |
H A D | uio.cpp | 25 extern "C" ssize_t _kern_readv(int fd, off_t pos, const struct iovec *vecs, size_t count); 26 extern "C" ssize_t _kern_writev(int fd, off_t pos, const struct iovec *vecs, size_t count); 58 fssh_off_t pos = -1; 60 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0) 72 fssh_readv_pos(int fd, fssh_off_t pos, const struct fssh_iovec *vec, int count) argument 79 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0) 83 return readv_pos(fd, pos, systemVecs, count); 85 return _kern_readv(fd, pos, systemVecs, count); 97 fssh_off_t pos = -1; 99 if (FSShell::restricted_file_restrict_io(fd, pos, lengt 111 fssh_writev_pos(int fd, fssh_off_t pos, const struct fssh_iovec *vec, int count) argument [all...] |
/haiku/headers/private/input/ |
H A D | shared_cursor_area.h | 16 uint32 pos; member in struct:shared_cursor
|
/haiku/headers/compatibility/bsd/sys/ |
H A D | uio.h | 22 preadv(int fd, const struct iovec *vecs, int count, off_t pos) argument 24 return readv_pos(fd, pos, vecs, count); 29 pwritev(int fd, const struct iovec *vecs, int count, off_t pos) argument 31 return writev_pos(fd, pos, vecs, count);
|
/haiku/src/tests/system/libroot/posix/ |
H A D | tst-ungetwc2.c | 19 long int pos; local 49 pos = ftell(fp); 50 printf("After get a character: %ld\n", pos); 51 if (pos != 1) 60 pos = ftell(fp); 61 printf("After unget a character: %ld\n", pos); 62 if (pos != 0) 67 pos = ftell(fp); 68 printf("After reget a character: %ld\n", pos); 69 if (pos ! [all...] |
/haiku/src/kits/storage/sniffer/ |
H A D | Err.cpp | 20 Err::Err(const char *msg, const ssize_t pos) argument 24 SetTo(msg, pos); 27 Err::Err(const std::string &msg, const ssize_t pos) argument 31 SetTo(msg, pos); 52 Err::SetTo(const char *msg, const ssize_t pos) { argument 54 SetPos(pos); 59 Err::SetTo(const std::string &msg, const ssize_t pos) { argument 60 return SetTo(msg.c_str(), pos); 94 Err::SetPos(ssize_t pos) { argument 95 fPos = pos; [all...] |
/haiku/src/system/libroot/posix/unistd/ |
H A D | read.c | 33 read_pos(int fd, off_t pos, void* buffer, size_t bufferSize) argument 35 if (pos < 0) 38 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_read(fd, pos, buffer, bufferSize)); 43 pread(int fd, void* buffer, size_t bufferSize, off_t pos) argument 45 if (pos < 0) 48 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_read(fd, pos, buffer, bufferSize));
|
H A D | write.c | 31 write_pos(int fd, off_t pos, const void *buffer, size_t bufferSize) argument 33 if (pos < 0) 36 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_write(fd, pos, buffer, bufferSize)); 41 pwrite(int fd, const void *buffer, size_t bufferSize, off_t pos) argument 43 if (pos < 0) 46 RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_write(fd, pos, buffer, bufferSize));
|
H A D | lseek.c | 15 lseek(int fd, off_t pos, int whence) argument 17 off_t result = _kern_seek(fd, pos, whence);
|
/haiku/src/system/boot/platform/openfirmware/ |
H A D | Handle.cpp | 49 Handle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument 51 if (pos == -1 || of_seek(fHandle, pos) != OF_FAILED) 59 Handle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument 61 if (pos == -1 || of_seek(fHandle, pos) != OF_FAILED)
|
/haiku/src/add-ons/print/transports/ipp/ |
H A D | Ipp.cpp | 39 char *_ParseString(BString& outStr, char*& pos); 89 char* pos; local 107 if ((pos=strchr(packet, '"')) != NULL) { 109 if (_ParseString(str, pos)) 111 if (pos && _ParseString(str, pos)) 113 if (pos && _ParseString(str, pos)) 116 if (pos) 117 printer->fAttributes = pos; 153 _ParseString(BString& outStr, char*& pos) argument [all...] |
/haiku/src/build/libshared/ |
H A D | NaturalCompare.cpp | 43 int32 pos = 0; local 44 while (!isdigit(source[pos]) && !isspace(source[pos]) 45 && source[pos] != '\0') { 46 pos++; 48 strlcpy(chunk.buffer, source, pos + 1); 49 chunk.length = pos; 50 return pos; 61 int32 pos = 0; local 62 while (isdigit(source[pos])) { [all...] |
/haiku/src/add-ons/input_server/methods/pen/compat/ |
H A D | StringIO.cpp | 28 BStringIO::ReadAt(off_t pos, void *buffer, size_t size) argument 34 BStringIO::WriteAt(off_t pos, const void *buffer, size_t size) argument 36 if (pos > (2147483647L)/*INT32_MAX*/) 38 if (fString->Length() < pos) 39 fString->Insert(' ', (int32)(pos - fString->Length()), fString->Length()); 40 fString->Remove((int32)pos, size); 41 fString->Insert((const char *)buffer, size, (int32)pos); 46 BStringIO::Seek(off_t pos, uint32 seek_mode) argument 50 fPosition += pos; 53 fPosition = pos; [all...] |
/haiku/src/tests/kits/support/bmemoryio/ |
H A D | WriteTest.cpp | 27 off_t pos; local 31 pos = mem.Position(); 35 CPPUNIT_ASSERT(mem.Position() == pos + err); // Check if Position changed 39 pos = mem.Position(); 43 CPPUNIT_ASSERT(mem.Position() == pos); 47 pos = mem.Position(); 51 CPPUNIT_ASSERT(mem.Position() == pos); 55 pos = mem.Position(); 58 CPPUNIT_ASSERT(mem.Position() == pos); 63 pos [all...] |
/haiku/src/servers/syslog_daemon/ |
H A D | syslog_output.cpp | 122 int32 pos = 0; local 128 pos = strftime(header, sizeof(header), "%Y-%m-%d %H:%M:%S ", &when); 135 pos += snprintf(header + pos, sizeof(header) - pos, "%s", 142 pos += snprintf(header + pos, sizeof(header) - pos, " '%s'", 147 pos += snprintf(header + pos, sizeo [all...] |
/haiku/headers/private/storage/sniffer/ |
H A D | Err.h | 31 Err(const char *msg, const ssize_t pos); 32 Err(const std::string &msg, const ssize_t pos); 37 status_t SetTo(const char *msg, const ssize_t pos); 38 status_t SetTo(const std::string &msg, const ssize_t pos); 42 void SetPos(ssize_t pos);
|
/haiku/headers/cpp/std/ |
H A D | bastring.cc | 136 copy (size_t pos, const charT *s, size_t n) argument 139 traits::copy (data () + pos, s, n); 144 move (size_t pos, const charT *s, size_t n) argument 147 traits::move (data () + pos, s, n); 153 replace (size_type pos, size_type n1, const charT* s, size_type n2) argument 156 OUTOFRANGE (pos > len); 157 if (n1 > len - pos) 158 n1 = len - pos; 165 p->copy (0, data (), pos); 166 p->copy (pos 182 set(size_t pos, const charT c, size_t n) argument 189 replace(size_type pos, size_type n1, size_type n2, charT c) argument 245 find(const charT* s, size_type pos, size_type n) const argument 277 rfind(const charT* s, size_type pos, size_type n) const argument 314 find_first_of(const charT* s, size_type pos, size_type n) const argument 326 find_last_of(const charT* s, size_type pos, size_type n) const argument 342 find_first_not_of(const charT* s, size_type pos, size_type n) const argument 366 find_last_not_of(const charT* s, size_type pos, size_type n) const argument 397 compare(const basic_string& _str, size_type pos, size_type n) const argument 416 compare(const charT* s, size_type pos, size_type n) const argument [all...] |