/bionic/libc/kernel/uapi/linux/netfilter/ |
D | x_tables.h | 100 …h(pos,ehead,esize) for((pos) = (typeof(pos)) (ehead); (pos) < (typeof(pos)) ((char *) (ehead) + (e… argument 101 …pos,entry) for((pos) = (struct xt_entry_match *) entry->elems; (pos) < (struct xt_entry_match *) (… argument
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | fmemopen.c | 29 size_t pos; /* current position */ member 41 for (i = 0; i < l && i + st->pos < st->len; i++) in fmemopen_read() 42 b[i] = st->string[st->pos + i]; in fmemopen_read() 43 st->pos += i; in fmemopen_read() 54 for (i = 0; i < l && i + st->pos < st->size; i++) in fmemopen_write() 55 st->string[st->pos + i] = b[i]; in fmemopen_write() 56 st->pos += i; in fmemopen_write() 58 if (st->pos >= st->len) { in fmemopen_write() 59 st->len = st->pos; in fmemopen_write() 80 base = st->pos; in fmemopen_seek() [all …]
|
D | open_memstream.c | 33 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 …]
|
D | open_wmemstream.c | 34 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 …]
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | base64.c | 197 char *pos; local 209 pos = strchr(Base64, ch); 210 if (pos == 0) /* A non-base64 character. */ 218 target[tarindex] = (pos - Base64) << 2; 226 target[tarindex] |= (pos - Base64) >> 4; 227 nextbyte = ((pos - Base64) & 0x0f) << 4; 240 target[tarindex] |= (pos - Base64) >> 2; 241 nextbyte = ((pos - Base64) & 0x03) << 6; 254 target[tarindex] |= (pos - Base64);
|
/bionic/linker/ |
D | linker_utils.cpp | 40 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/libc/arch-arm64/generic/bionic/ |
D | strcmp.S | 56 #define pos x11 macro 89 clz pos, syndrome 91 lsl data1, data1, pos 92 lsl data2, data2, pos 118 clz pos, syndrome 123 lsl data1, data1, pos 124 lsl data2, data2, pos
|
D | strncmp.S | 57 #define pos x12 macro 127 clz pos, syndrome 129 lsl data1, data1, pos 130 lsl data2, data2, pos 156 clz pos, syndrome 161 lsl data1, data1, pos 162 lsl data2, data2, pos
|
D | memcmp.S | 52 #define pos x11 macro 105 clz pos, diff 106 lsl data1, data1, pos 107 lsl data2, data2, pos
|
D | string_copy.S | 93 #define pos x12 macro 133 clz pos, has_nul1 134 add tmp1, pos, #0x8 167 clz pos, has_nul2 168 add tmp1, pos, #0x8
|
D | strnlen.S | 52 #define pos x13 macro 132 clz pos, has_nul2 133 add len, len, pos, lsr #3 /* Bits to bytes. */
|
/bionic/tests/ |
D | string_test.cpp | 448 size_t pos = random() % state.MAX_LEN; in TEST() local 450 if (pos >= state.len[i] - 1) { in TEST() 457 state.ptr1[pos] = seek_char; in TEST() 458 expected = state.ptr1 + pos; in TEST() 482 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); in TEST() local 485 if (pos >= state.len[i] - 1) { in TEST() 490 memcpy(state.ptr1, state.ptr2, pos); in TEST() 491 if (state.ptr1[pos] > state.ptr2[pos]) { in TEST() 493 } else if (state.ptr1[pos] == state.ptr2[pos]) { in TEST() 494 state.ptr1[pos + 1] = '\0'; in TEST() [all …]
|
D | stdio_test.cpp | 1284 fpos_t pos; in TEST() local 1286 EXPECT_EQ(0, fgetpos(fp, &pos)) << strerror(errno); in TEST() 1287 EXPECT_EQ(0xfedcba12LL, pos); in TEST() 1289 EXPECT_EQ(-1, fgetpos(fp, &pos)) << strerror(errno); in TEST() 1330 fpos_t pos; in AssertFileOffsetAt() local 1332 EXPECT_EQ(0, fgetpos(fp, &pos)); in AssertFileOffsetAt() 1335 EXPECT_EQ(offset, static_cast<off64_t>(pos)); in AssertFileOffsetAt()
|
/bionic/libc/bionic/ |
D | libc_init_common.cpp | 215 int pos = 0; in __is_valid_environment_variable() local 217 while (pos < MAX_ENV_LEN) { in __is_valid_environment_variable() 218 if (name[pos] == '\0') { in __is_valid_environment_variable() 221 if (name[pos] == '=' && first_equal_pos < 0) { in __is_valid_environment_variable() 222 first_equal_pos = pos; in __is_valid_environment_variable() 224 pos++; in __is_valid_environment_variable() 228 if (pos >= MAX_ENV_LEN) { in __is_valid_environment_variable()
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | regcomp.c | 164 static void doinsert(struct parse *p, sop op, sopno opnd, sopno pos); 165 static void dofwd(struct parse *p, sopno pos, sopno value); 200 #define INSERT(op, pos) doinsert(p, (sop)(op), HERE()-(pos)+1, pos) argument 201 #define AHEAD(pos) dofwd(p, pos, HERE()-(pos)) argument 202 #define ASTERN(sop, pos) EMIT(sop, HERE()-pos) argument 399 sopno pos; in p_ere_exp() local 410 pos = HERE(); in p_ere_exp() 494 INSERT(OPLUS_, pos); in p_ere_exp() 495 ASTERN(O_PLUS, pos); in p_ere_exp() 496 INSERT(OQUEST_, pos); in p_ere_exp() [all …]
|
/bionic/tools/versioner/src/ |
D | Preprocessor.cpp | 318 size_t pos = line.find("*/", line_index); in mergeGuards() local 319 if (pos == std::string::npos) { in mergeGuards() 326 current_location.column = pos + 2; in mergeGuards() 331 size_t pos = line.find_first_not_of(" \t", line_index); in mergeGuards() local 332 if (pos == std::string::npos) { in mergeGuards() 337 current_location.column = pos + 1; in mergeGuards() 338 if (line[pos] != '/') { in mergeGuards() 344 if (line.length() <= pos + 1) { in mergeGuards() 351 if (line[pos + 1] == '/') { in mergeGuards() 354 } else if (line[pos + 1] == '*') { in mergeGuards() [all …]
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | getopt_long.c | 158 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/ |
D | stdio.cpp | 561 int fsetpos(FILE* fp, const fpos_t* pos) { in fsetpos() argument 562 return fseeko(fp, *pos, SEEK_SET); in fsetpos() 565 int fsetpos64(FILE* fp, const fpos64_t* pos) { in fsetpos64() argument 566 return fseeko64(fp, *pos, SEEK_SET); in fsetpos64() 585 int fgetpos(FILE* fp, fpos_t* pos) { in fgetpos() argument 586 *pos = ftello(fp); in fgetpos() 587 return (*pos == -1) ? -1 : 0; in fgetpos() 590 int fgetpos64(FILE* fp, fpos64_t* pos) { in fgetpos64() argument 591 *pos = ftello64(fp); in fgetpos64() 592 return (*pos == -1) ? -1 : 0; in fgetpos64()
|
/bionic/tools/relocation_packer/src/ |
D | elf_file_unittest.cc | 30 size_t pos = data_dir.rfind('/'); in GetDataFilePath() local 31 ASSERT_NE(std::string::npos, pos); in GetDataFilePath() 33 data_dir.erase(pos); in GetDataFilePath()
|
/bionic/libc/kernel/uapi/drm/ |
D | exynos_drm.h | 140 struct drm_exynos_pos pos; member
|
/bionic/libc/kernel/uapi/linux/ |
D | virtio_gpu.h | 72 struct virtio_gpu_cursor_pos pos; member
|
D | soundcard.h | 661 #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
|