Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 15 of 15) sorted by relevance

/bionic/libc/kernel/uapi/linux/netfilter/
Dx_tables.h100 …h(pos,ehead,esize) for((pos) = (typeof(pos)) (ehead); (pos) < (typeof(pos)) ((char *) (ehead) + (e… argument
101pos,entry) for((pos) = (struct xt_entry_match *) entry->elems; (pos) < (struct xt_entry_match *) (… argument
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_wmemstream.c34 size_t pos; /* current position */ member
47 end = (st->pos + l); in wmemstream_write()
63 nmc = (st->size - st->pos) * sizeof(wchar_t); in wmemstream_write()
64 len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs); in wmemstream_write()
67 st->pos += len; in wmemstream_write()
69 if (st->pos > st->len) { in wmemstream_write()
70 st->len = st->pos; in wmemstream_write()
74 *st->psize = st->pos; in wmemstream_write()
89 base = st->pos; in wmemstream_seek()
107 st->pos = base + off; in wmemstream_seek()
[all …]
Dopen_memstream.c33 size_t pos; /* current position */ member
45 end = (st->pos + l); in memstream_write()
62 st->string[st->pos + i] = b[i]; in memstream_write()
63 st->pos += l; in memstream_write()
65 if (st->pos > st->len) { in memstream_write()
66 st->len = st->pos; in memstream_write()
70 *st->psize = st->pos; in memstream_write()
85 base = st->pos; in memstream_seek()
97 st->pos = base + off; in memstream_seek()
98 *st->psize = MINIMUM(st->pos, st->len); in memstream_seek()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/net/
Dbase64.c189 char *pos; in b64_pton() local
201 pos = strchr(Base64, ch); in b64_pton()
202 if (pos == 0) /* A non-base64 character. */ in b64_pton()
210 target[tarindex] = (pos - Base64) << 2; in b64_pton()
218 target[tarindex] |= (pos - Base64) >> 4; in b64_pton()
219 nextbyte = ((pos - Base64) & 0x0f) << 4; in b64_pton()
232 target[tarindex] |= (pos - Base64) >> 2; in b64_pton()
233 nextbyte = ((pos - Base64) & 0x03) << 6; in b64_pton()
246 target[tarindex] |= (pos - Base64); in b64_pton()
/bionic/linker/
Dlinker_utils.cpp40 size_t pos = 0; in format_string() local
41 while (pos < str->size()) { in format_string()
42 pos = str->find("$", pos); in format_string()
43 if (pos == std::string::npos) break; in format_string()
47 if (str->substr(pos + 1, token.size()) == token) { in format_string()
48 str->replace(pos, token.size() + 1, replacement); in format_string()
50 pos += replacement.size() - 1; in format_string()
52 } else if (str->substr(pos + 1, token.size() + 2) == "{" + token + "}") { in format_string()
53 str->replace(pos, token.size() + 3, replacement); in format_string()
54 pos += replacement.size() - 1; in format_string()
[all …]
/bionic/tests/
Dstring_test.cpp458 size_t pos = random() % state.MAX_LEN; in TEST() local
460 if (pos >= state.len[i] - 1) { in TEST()
467 state.ptr1[pos] = seek_char; in TEST()
468 expected = state.ptr1 + pos; in TEST()
492 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); in TEST() local
495 if (pos >= state.len[i] - 1) { in TEST()
500 memcpy(state.ptr1, state.ptr2, pos); in TEST()
501 if (state.ptr1[pos] > state.ptr2[pos]) { in TEST()
503 } else if (state.ptr1[pos] == state.ptr2[pos]) { in TEST()
504 state.ptr1[pos + 1] = '\0'; in TEST()
[all …]
Dstdio_test.cpp1262 int pos = 0; in TEST() local
1263 ASSERT_EQ(1, sscanf("\xc4\x80", "%ls%n", w, &pos)); in TEST()
1265 ASSERT_EQ(2, pos); in TEST()
2299 fpos_t pos; in TEST() local
2301 EXPECT_EQ(0, fgetpos(fp, &pos)) << strerror(errno); in TEST()
2302 EXPECT_EQ(0xfedcba12LL, pos); in TEST()
2304 EXPECT_EQ(-1, fgetpos(fp, &pos)) << strerror(errno); in TEST()
2345 fpos_t pos; in AssertFileOffsetAt() local
2347 EXPECT_EQ(0, fgetpos(fp, &pos)); in AssertFileOffsetAt()
2350 EXPECT_EQ(offset, static_cast<off64_t>(pos)); in AssertFileOffsetAt()
/bionic/libc/bionic/
Dlibc_init_common.cpp248 int pos = 0; in __is_valid_environment_variable() local
250 while (pos < MAX_ENV_LEN) { in __is_valid_environment_variable()
251 if (name[pos] == '\0') { in __is_valid_environment_variable()
254 if (name[pos] == '=' && first_equal_pos < 0) { in __is_valid_environment_variable()
255 first_equal_pos = pos; in __is_valid_environment_variable()
257 pos++; in __is_valid_environment_variable()
261 if (pos >= MAX_ENV_LEN) { in __is_valid_environment_variable()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c174 static void doinsert(struct parse *p, sop op, size_t opnd, sopno pos);
175 static void dofwd(struct parse *p, sopno pos, sop value);
217 #define INSERT(op, pos) doinsert(p, (op), HERE()-(pos)+1, pos) argument
218 #define AHEAD(pos) dofwd(p, pos, HERE()-(pos)) argument
219 #define ASTERN(sop, pos) EMIT(sop, HERE()-pos) argument
447 sopno pos; in p_ere_exp() local
466 pos = HERE(); in p_ere_exp()
641 INSERT(OPLUS_, pos); in p_ere_exp()
642 ASTERN(O_PLUS, pos); in p_ere_exp()
643 INSERT(OQUEST_, pos); in p_ere_exp()
[all …]
/bionic/tools/versioner/src/
DPreprocessor.cpp309 size_t pos = line.find("*/", line_index); in mergeGuards() local
310 if (pos == std::string::npos) { in mergeGuards()
317 current_location.column = pos + 2; in mergeGuards()
322 size_t pos = line.find_first_not_of(" \t", line_index); in mergeGuards() local
323 if (pos == std::string::npos) { in mergeGuards()
328 current_location.column = pos + 1; in mergeGuards()
329 if (line[pos] != '/') { in mergeGuards()
335 if (line.length() <= pos + 1) { in mergeGuards()
342 if (line[pos + 1] == '/') { in mergeGuards()
345 } else if (line[pos + 1] == '*') { in mergeGuards()
[all …]
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dgetopt_long.c158 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; in permute_args() local
171 pos = cstart; in permute_args()
173 if (pos >= panonopt_end) in permute_args()
174 pos -= nnonopts; in permute_args()
176 pos += nopts; in permute_args()
177 swap = nargv[pos]; in permute_args()
179 ((char **) nargv)[pos] = nargv[cstart]; in permute_args()
/bionic/libc/stdio/
Dstdio.cpp643 int fsetpos(FILE* fp, const fpos_t* pos) { in fsetpos() argument
645 return fseeko(fp, *pos, SEEK_SET); in fsetpos()
648 int fsetpos64(FILE* fp, const fpos64_t* pos) { in fsetpos64() argument
650 return fseeko64(fp, *pos, SEEK_SET); in fsetpos64()
671 int fgetpos(FILE* fp, fpos_t* pos) { in fgetpos() argument
673 *pos = ftello(fp); in fgetpos()
674 return (*pos == -1) ? -1 : 0; in fgetpos()
677 int fgetpos64(FILE* fp, fpos64_t* pos) { in fgetpos64() argument
679 *pos = ftello64(fp); in fgetpos64()
680 return (*pos == -1) ? -1 : 0; in fgetpos64()
/bionic/libc/kernel/uapi/linux/
Dsoundcard.h661 #define SEQ_PANNING(dev,voice,pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos + 128) / 2) argument
670 #define SEQ_SONGPOS(pos) _TIMER_EVENT(TMR_SPP, pos) argument
Dvirtio_gpu.h91 struct virtio_gpu_cursor_pos pos; member
Dcoda.h446 int pos; member