Searched refs:pos (Results 26 - 50 of 800) sorted by relevance

1234567891011>>

/haiku-fatelf/src/bin/less/
H A Dposition.c61 add_forw_pos(pos)
62 POSITION pos;
71 table[sc_height - 1] = pos;
78 add_back_pos(pos)
79 POSITION pos;
88 table[0] = pos;
122 scrpos.pos = NULL_POSITION;
126 if (scrpos.pos != NULL_POSITION)
127 table[scrpos.ln-1] = scrpos.pos;
136 onscreen(pos)
[all...]
H A Dbrac.c36 POSITION pos; local
46 pos = position((forwdir) ? TOP : BOTTOM);
47 if (pos == NULL_POSITION || ch_seek(pos))
/haiku-fatelf/src/kits/shared/
H A DNaturalCompare.cpp42 int32 pos = 0; local
43 while (!isdigit(source[pos]) && !isspace(source[pos])
44 && source[pos] != '\0') {
45 pos++;
47 strlcpy(chunk.buffer, source, pos + 1);
48 chunk.length = pos;
49 return pos;
60 int32 pos = 0; local
61 while (isdigit(source[pos])) {
[all...]
/haiku-fatelf/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-fatelf/src/tools/fs_shell/
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-fatelf/src/system/boot/platform/cfe/
H A DHandle.cpp49 Handle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument
52 if (pos == -1)
53 pos = 0;//XXX
54 err = cfe_readblk(fHandle, pos, buffer, bufferSize);
64 Handle::WriteAt(void *cookie, off_t pos, const void *buffer, argument
68 if (pos == -1)
69 pos = 0;//XXX
70 err = cfe_writeblk(fHandle, pos, buffer, bufferSize);
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dlseek.c15 lseek(int fd, off_t pos, int whence) argument
17 off_t result = _kern_seek(fd, pos, whence);
/haiku-fatelf/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();
H A DReadTest.cpp29 off_t pos; local
32 pos = mem.Position();
36 CPPUNIT_ASSERT(mem.Position() == pos + err);
39 pos = mem.Position();
42 CPPUNIT_ASSERT(mem.Position() == pos);
45 pos = mem.Seek(0, SEEK_END);
48 CPPUNIT_ASSERT(mem.Position() == pos);
/haiku-fatelf/src/bin/network/wget/src/
H A Dcss-url.c111 get_uri_string (const char *at, int *pos, int *length) argument
115 strncpy(buf,at + *pos, *length);
119 if (0 != strncasecmp (at + *pos, "url(", 4))
122 *pos += 4;
125 while (isspace (at[*pos]))
127 (*pos)++;
131 while (isspace (at[*pos + *length - 1]))
136 if (at[*pos] == '\'' || at[*pos] == '"')
138 (*pos)
158 int pos, length; local
[all...]
/haiku-fatelf/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-fatelf/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-fatelf/src/system/libroot/posix/glibc/libio/
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-fatelf/src/bin/coreutils/lib/
H A Dfflush.c91 update_fpos_cache (FILE *fp, off_t pos) argument
96 fp_->_offset = pos;
107 u.o = pos;
172 off_t pos = ftello (stream);
173 if (pos == -1)
198 int result = fseeko (stream, pos, SEEK_SET);
206 pos = lseek (fileno (stream), pos, SEEK_SET);
207 if (pos == -1)
211 update_fpos_cache (stream, pos);
[all...]
/haiku-fatelf/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...]
/haiku-fatelf/src/kits/network/libbind/irs/
H A Dlcl_ng.c277 char *pos, *gpos; local
297 pos = lp->l_line;
298 while (*pos != '\0') {
299 if (*pos == '(') {
308 pos++;
309 gpos = strsep(&pos, ")");
334 spos = strsep(&pos, ", \t");
340 if (pos == NULL)
342 while (*pos == ' ' || *pos
359 char *pos, *spos, *linep = NULL, *olinep; local
[all...]
/haiku-fatelf/src/kits/support/
H A DBufferIO.cpp53 BBufferIO::ReadAt(off_t pos, void* buffer, size_t size) argument
68 return fStream->ReadAt(pos, buffer, size);
73 || pos < fBufferStart
74 || pos > fBufferStart + (off_t)fBufferUsed
75 || pos + size > fBufferStart + fBufferUsed) {
82 ssize_t sizeRead = fStream->ReadAt(pos, fBuffer, fBufferSize);
89 fBufferStart = pos;
96 memcpy(buffer, fBuffer + pos - fBufferStart, size);
103 BBufferIO::WriteAt(off_t pos, const void* buffer, size_t size) argument
112 return fStream->WriteAt(pos, buffe
[all...]
H A DDataIO.cpp116 off_t pos = const_cast<BPositionIO*>(this)->Seek(currentPos, SEEK_SET);
118 if (pos != currentPos)
119 return pos < 0 ? (status_t)pos : B_ERROR;
171 BMemoryIO::ReadAt(off_t pos, void *buffer, size_t size) argument
173 if (buffer == NULL || pos < 0)
177 if (pos < (off_t)fLength) {
178 sizeRead = min_c((off_t)size, (off_t)fLength - pos);
179 memcpy(buffer, fBuffer + pos, sizeRead);
186 BMemoryIO::WriteAt(off_t pos, cons argument
290 ReadAt(off_t pos, void *buffer, size_t size) argument
305 WriteAt(off_t pos, const void *buffer, size_t size) argument
[all...]
/haiku-fatelf/src/libs/pdflib/libs/pdflib/
H A Dp_bmp.c79 #define PDF_GET_BYTE(pos) *pos, pos += sizeof(pdc_byte)
80 #define PDF_GET_SHORT(pos) pdc_get_le_short(pos), pos += sizeof(pdc_short)
81 #define PDF_GET_USHORT(pos) pdc_get_le_ushort(pos), pos += sizeof(pdc_ushort)
82 #define PDF_GET_LONG(pos) pdc_get_le_lon
358 pdc_byte buf[256], *pos, *cmap, bdummy; local
[all...]
/haiku-fatelf/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioResampler.h27 virtual status_t Read(void* buffer, int64 pos, int64 frames);
42 int64 ConvertFromSource(int64 pos) const;
43 int64 ConvertToSource(int64 pos) const;
46 status_t _ReadLinear(void* buffer, int64 pos,
/haiku-fatelf/src/system/boot/platform/atari_m68k/
H A DHandle.h23 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize);
24 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
39 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize);
40 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dlist.h175 * @pos: the &struct list_head to use as a loop counter.
178 #define list_for_each(pos, head) \
179 for (pos = (head)->next; pos != (head); pos = pos->next)
183 * @pos: the &struct list_head to use as a loop counter.
187 #define list_for_each_safe(pos, n, head) \
188 for (pos = (head)->next, n = pos
[all...]

Completed in 144 milliseconds

1234567891011>>