Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dftell.c45 fpos_t pos; in ftello() local
49 pos = -1; in ftello()
60 pos = fp->_offset; in ftello()
62 pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR); in ftello()
63 if (pos == -1) in ftello()
72 pos -= fp->_r; in ftello()
74 pos -= fp->_ur; in ftello()
81 pos += fp->_p - fp->_bf._base; in ftello()
84 return (pos); in ftello()
Dfmemopen.c29 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 …]
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 = MIN(st->pos, st->len); in memstream_seek()
[all …]
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 …]
Dfgetpos.c40 fgetpos(FILE *fp, fpos_t *pos) in fgetpos() argument
42 return((*pos = ftello(fp)) == (fpos_t)-1); in fgetpos()
Dfsetpos.c40 fsetpos(FILE *iop, const fpos_t *pos) in fsetpos() argument
42 return (fseeko(iop, (off_t)*pos, SEEK_SET)); in fsetpos()
/bionic/libc/kernel/uapi/linux/netfilter/
Dx_tables.h118 …h(pos,ehead,esize) for((pos) = (typeof(pos)) (ehead); (pos) < (typeof(pos)) ((char *) (ehead) + (e… argument
120pos,entry) for((pos) = (struct xt_entry_match *) entry->elems; (pos) < (struct xt_entry_match *) (… argument
/bionic/libc/dns/net/
Dbase64.c222 char *pos; local
237 pos = strchr(Base64, ch);
238 if (pos == 0) /* A non-base64 character. */
246 target[tarindex] = (pos - Base64) << 2;
255 (u_int32_t)(pos - Base64) >> 4;
256 target[tarindex+1] = ((pos - Base64) & 0x0f)
267 (u_int32_t)(pos - Base64) >> 2;
268 target[tarindex+1] = ((pos - Base64) & 0x03)
278 target[tarindex] |= (pos - Base64);
/bionic/libc/arch-arm64/generic/bionic/
Dstrcmp.S56 #define pos x11 macro
88 clz pos, syndrome
90 lsl data1, data1, pos
91 lsl data2, data2, pos
117 clz pos, syndrome
122 lsl data1, data1, pos
123 lsl data2, data2, pos
Dstrncmp.S57 #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
Dmemcmp.S52 #define pos x11 macro
105 clz pos, diff
106 lsl data1, data1, pos
107 lsl data2, data2, pos
Dstring_copy.S93 #define pos x12 macro
133 clz pos, has_nul1
134 add tmp1, pos, #0x8
167 clz pos, has_nul2
168 add tmp1, pos, #0x8
Dstrlen.S51 #define pos x12 macro
103 clz pos, has_nul2
104 add len, len, pos, lsr #3 /* Bits to bytes. */
Dstrnlen.S52 #define pos x13 macro
132 clz pos, has_nul2
133 add len, len, pos, lsr #3 /* Bits to bytes. */
/bionic/tests/
Dstring_test.cpp438 size_t pos = random() % state.MAX_LEN; in TEST() local
440 if (pos >= state.len[i] - 1) { in TEST()
447 state.ptr1[pos] = seek_char; in TEST()
448 expected = state.ptr1 + pos; in TEST()
465 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); in TEST() local
468 if (pos >= state.len[i] - 1) { in TEST()
473 memcpy(state.ptr1, state.ptr2, pos); in TEST()
474 if (state.ptr1[pos] > state.ptr2[pos]) { in TEST()
476 } else if (state.ptr1[pos] == state.ptr2[pos]) { in TEST()
477 state.ptr1[pos + 1] = '\0'; in TEST()
[all …]
/bionic/libc/bionic/
Dlibc_init_common.cpp211 int pos = 0; in __is_valid_environment_variable() local
213 while (pos < MAX_ENV_LEN) { in __is_valid_environment_variable()
214 if (name[pos] == '\0') { in __is_valid_environment_variable()
217 if (name[pos] == '=' && first_equal_pos < 0) { in __is_valid_environment_variable()
218 first_equal_pos = pos; in __is_valid_environment_variable()
220 pos++; in __is_valid_environment_variable()
224 if (pos >= MAX_ENV_LEN) { in __is_valid_environment_variable()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c164 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
400 sopno pos; in p_ere_exp() local
411 pos = HERE(); in p_ere_exp()
495 INSERT(OPLUS_, pos); in p_ere_exp()
496 ASTERN(O_PLUS, pos); in p_ere_exp()
497 INSERT(OQUEST_, pos); in p_ere_exp()
[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/tools/relocation_packer/src/
Delf_file_unittest.cc30 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/
Dexynos_drm.h161 struct drm_exynos_pos pos; member
/bionic/libc/kernel/uapi/linux/
Dsoundcard.h821 #define SEQ_PANNING(dev,voice,pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos + 128) / 2) argument
832 #define SEQ_SONGPOS(pos) _TIMER_EVENT(TMR_SPP, pos) argument
/bionic/libc/upstream-dlmalloc/
Dmalloc.c4948 char* pos = ((size_t)(br - (char*)(p)) >= MIN_CHUNK_SIZE)? in internal_memalign() local
4950 mchunkptr newp = (mchunkptr)pos; in internal_memalign()
4951 size_t leadsize = pos - (char*)(p); in internal_memalign()