Searched refs:pos (Results 1 - 25 of 510) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/glibc/libio/
H A Dftello.c38 _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 Dftello64.c39 _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 Dioftell.c37 _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 Dioseekpos.c34 _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 Diofgetpos64.c39 _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 Dfmemopen.c87 _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 Diofgetpos.c38 _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 Dpath_util.cpp33 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 Dpartition_support.cpp122 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 Duio.cpp50 fssh_off_t pos = -1;
52 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
64 fssh_readv_pos(int fd, fssh_off_t pos, const struct fssh_iovec *vec, argument
72 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
75 return readv_pos(fd, pos, systemVecs, count);
86 fssh_off_t pos = -1;
88 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
100 fssh_writev_pos(int fd, fssh_off_t pos, const struct fssh_iovec *vec, argument
108 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
111 return writev_pos(fd, pos, systemVec
[all...]
/haiku/headers/private/input/
H A Dshared_cursor_area.h16 uint32 pos; member in struct:shared_cursor
/haiku/src/tests/system/libroot/posix/
H A Dtst-ungetwc2.c19 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 DErr.cpp20 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 Dread.c33 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 Dwrite.c31 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 Dlseek.c15 lseek(int fd, off_t pos, int whence) argument
17 off_t result = _kern_seek(fd, pos, whence);
/haiku/src/add-ons/print/transports/ipp/
H A DIpp.cpp39 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/system/boot/platform/openfirmware/
H A DHandle.cpp49 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/bin/makeudfimage/
H A DEmbeddedStream.cpp24 corresponding to the extent starting at byte position \a pos of
31 EmbeddedStream::_GetExtent(off_t pos, size_t size, data_extent &extent) argument
33 if (pos >= fSize) {
39 extent.offset = fOffset + pos;
40 extent.size = fSize - pos;
/haiku/src/build/libshared/
H A DNaturalCompare.cpp43 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 DStringIO.cpp28 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 DWriteTest.cpp27 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();
/haiku/src/servers/syslog_daemon/
H A Dsyslog_output.cpp122 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 DErr.h31 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 Dbastring.cc136 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...]

Completed in 283 milliseconds

1234567891011>>