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

/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfgetpos.c40 fgetpos(FILE *fp, fpos_t *pos) argument
42 return((*pos = ftello(fp)) == (fpos_t)-1);
H A Dfsetpos.c40 fsetpos(FILE *iop, const fpos_t *pos) argument
42 return (fseeko(iop, (off_t)*pos, SEEK_SET));
H A Dftell.c45 fpos_t pos; local
49 pos = -1;
60 pos = fp->_offset;
62 pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR);
63 if (pos == -1)
72 pos -= fp->_r;
74 pos -= fp->_ur;
81 pos += fp->_p - fp->_bf._base;
84 return (pos);
H A Dfmemopen.c29 size_t pos; /* current position */ member in struct:state
41 for (i = 0; i < l && i + st->pos < st->len; i++)
42 b[i] = st->string[st->pos + i];
43 st->pos += i;
54 for (i = 0; i < l && i + st->pos < st->size; i++)
55 st->string[st->pos + i] = b[i];
56 st->pos += i;
58 if (st->pos >= st->len) {
59 st->len = st->pos;
80 base = st->pos;
[all...]
H A Dopen_wmemstream.c33 size_t *psize; /* point to min(pos, len) */
34 size_t pos; /* current position */ member in struct:state
47 end = (st->pos + l);
63 nmc = (st->size - st->pos) * sizeof(wchar_t);
64 len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs);
67 st->pos += len;
69 if (st->pos > st->len) {
70 st->len = st->pos;
74 *st->psize = st->pos;
89 base = st->pos;
[all...]
H A Dopen_memstream.c32 size_t *psize; /* point to min(pos, len) */
33 size_t pos; /* current position */ member in struct:state
45 end = (st->pos + l);
62 st->string[st->pos + i] = b[i];
63 st->pos += l;
65 if (st->pos > st->len) {
66 st->len = st->pos;
70 *st->psize = st->pos;
85 base = st->pos;
97 st->pos
[all...]
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dx_tables.h118 #define xt_entry_foreach(pos,ehead,esize) for((pos) = (typeof(pos)) (ehead); (pos) < (typeof(pos)) ((char *) (ehead) + (esize)); (pos) = (typeof(pos)) ((char *) (pos) + (pos)->next_offset))
120 #define xt_ematch_foreach(pos,entr
[all...]
/bionic/libc/dns/net/
H A 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/
H A Dstrcmp.S56 #define pos x11 define
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
H A Dstrncmp.S57 #define pos x12 define
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
H A Dstrlen.S51 #define pos x12 define
103 clz pos, has_nul2
104 add len, len, pos, lsr #3 /* Bits to bytes. */
H A Dmemcmp.S52 #define pos x11 define
105 clz pos, diff
106 lsl data1, data1, pos
107 lsl data2, data2, pos
H A Dstring_copy.S93 #define pos x12 define
133 clz pos, has_nul1
134 add tmp1, pos, #0x8
167 clz pos, has_nul2
168 add tmp1, pos, #0x8
H A Dstrnlen.S52 #define pos x13 define
132 clz pos, has_nul2
133 add len, len, pos, lsr #3 /* Bits to bytes. */
/bionic/libc/bionic/
H A Dlibc_init_common.cpp211 int pos = 0; local
213 while (pos < MAX_ENV_LEN) {
214 if (name[pos] == '\0') {
217 if (name[pos] == '=' && first_equal_pos < 0) {
218 first_equal_pos = pos;
220 pos++;
224 if (pos >= MAX_ENV_LEN) {
/bionic/tests/
H A Dstring_test.cpp438 size_t pos = random() % state.MAX_LEN; local
440 if (pos >= state.len[i] - 1) {
447 state.ptr1[pos] = seek_char;
448 expected = state.ptr1 + pos;
465 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); local
468 if (pos >= state.len[i] - 1) {
473 memcpy(state.ptr1, state.ptr2, pos);
474 if (state.ptr1[pos] > state.ptr2[pos]) {
476 } else if (state.ptr1[pos]
494 size_t pos = random() % state.MAX_LEN; local
518 size_t pos = random() % state.MAX_LEN; local
548 size_t pos = random() % state.MAX_LEN; local
575 size_t pos = random() % state.MAX_LEN; local
612 size_t pos = strlen(state.ptr1); local
633 size_t pos = 1 + (random() % (state.MAX_LEN - 1)); local
743 size_t pos = random() % state.MAX_LEN; local
768 size_t pos = random() % state.MAX_LEN; local
797 size_t pos = random() % state.MAX_LEN; local
820 int pos = (state.len[i] == 0) ? 0 : (random() % state.len[i]); local
842 int pos = (state.len[i] == 0) ? 0 : (random() % state.len[i]); local
858 size_t pos = random() % (state.MAX_LEN - state.len[i]); local
881 size_t pos = random () % (state.MAX_LEN - state.len[i]); local
899 size_t pos = random() % (state.MAX_LEN - state.len[i]); local
919 size_t pos = 64; local
933 ASSERT_TRUE(memmove(ptr2 + pos, ptr, len) == ptr2 + pos); local
[all...]
/bionic/libc/upstream-netbsd/lib/libc/regex/
H A 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)
201 #define AHEAD(pos) dofwd(p, pos, HERE()-(pos))
202 #define ASTERN(sop, pos) EMIT(sop, HERE()-pos)
400 sopno pos; local
622 sopno pos, i; local
1704 doinsert( struct parse *p, sop op, sopno opnd, sopno pos) argument
1745 dofwd( struct parse *p, sopno pos, sopno value) argument
[all...]
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
H A Dgetopt_long.c158 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; local
171 pos = cstart;
173 if (pos >= panonopt_end)
174 pos -= nnonopts;
176 pos += nopts;
177 swap = nargv[pos];
179 ((char **) nargv)[pos] = nargv[cstart];
/bionic/tools/relocation_packer/src/
H A Delf_file_unittest.cc30 size_t pos = data_dir.rfind('/'); local
31 ASSERT_NE(std::string::npos, pos);
33 data_dir.erase(pos);
/bionic/libc/kernel/uapi/drm/
H A Dexynos_drm.h161 struct drm_exynos_pos pos; member in struct:drm_exynos_ipp_config
/bionic/libc/kernel/uapi/linux/
H A Dsoundcard.h821 #define SEQ_PANNING(dev,voice,pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos + 128) / 2)
832 #define SEQ_SONGPOS(pos) _TIMER_EVENT(TMR_SPP, pos)
/bionic/libc/upstream-dlmalloc/
H A Dmalloc.c4948 char* pos = ((size_t)(br - (char*)(p)) >= MIN_CHUNK_SIZE)? local
4950 mchunkptr newp = (mchunkptr)pos;
4951 size_t leadsize = pos - (char*)(p);

Completed in 235 milliseconds