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

/bionic/libc/stdio/
H A Dftell.c44 fpos_t pos; local
48 pos = -1;
59 pos = fp->_offset;
61 pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR);
62 if (pos == -1)
71 pos -= fp->_r;
73 pos -= fp->_ur;
80 pos += fp->_p - fp->_bf._base;
83 return (pos);
95 long pos; local
[all...]
/bionic/libc/upstream-freebsd/lib/libc/stdio/
H A Dfgetpos.c42 fgetpos(FILE * __restrict fp, fpos_t * __restrict pos) argument
47 if ((*pos = ftello(fp)) == (fpos_t)-1)
H A Dfsetpos.c46 fsetpos(FILE *iop, const fpos_t *pos) argument
48 return (fseeko(iop, (off_t)*pos, SEEK_SET));
/bionic/libc/kernel/common/linux/
H A Dplist.h39 #define plist_for_each(pos, head) list_for_each_entry(pos, &(head)->node_list, plist.node_list)
40 #define plist_for_each_safe(pos, n, head) list_for_each_entry_safe(pos, n, &(head)->node_list, plist.node_list)
41 #define plist_for_each_entry(pos, head, mem) list_for_each_entry(pos, &(head)->node_list, mem.plist.node_list)
42 #define plist_for_each_entry_safe(pos, n, head, m) list_for_each_entry_safe(pos, n, &(head)->node_list, m.plist.node_list)
H A Dmca.h40 unsigned char pos[8]; member in struct:mca_device
H A Dsoundcard.h844 #define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)
855 #define SEQ_SONGPOS(pos) _TIMER_EVENT(TMR_SPP, pos)
/bionic/linker/
H A Dlinker_environ.cpp86 int pos = 0; local
88 while (pos < MAX_ENV_LEN) {
89 if (name[pos] == '\0') {
92 if (name[pos] == '=' && first_equal_pos < 0) {
93 first_equal_pos = pos;
95 pos++;
99 if (pos >= MAX_ENV_LEN) {
/bionic/tests/
H A Dstring_test.cpp396 int pos = random() % state.MAX_LEN; local
398 if (pos >= state.len[i] - 1) {
405 state.ptr1[pos] = seek_char;
406 expected = state.ptr1 + pos;
425 int pos = 1 + (random() % (state.MAX_LEN - 1)); local
428 if (pos >= state.len[i] - 1) {
433 memcpy(state.ptr1, state.ptr2, pos);
434 if (state.ptr1[pos] > state.ptr2[pos]) {
436 } else if (state.ptr1[pos]
456 size_t pos = random() % state.MAX_LEN; local
489 int pos = random() % state.MAX_LEN; local
519 size_t pos = random() % state.MAX_LEN; local
556 size_t pos = strlen(state.ptr1); local
579 int pos = 1 + (random() % (state.MAX_LEN - 1)); local
616 size_t pos; local
646 int pos = random() % state.MAX_LEN; local
673 int pos = random() % state.MAX_LEN; local
696 int pos = random() % state.MAX_LEN; local
721 int pos = (state.len[i] == 0) ? 0 : (random() % state.len[i]); local
749 int pos = (state.len[i] == 0) ? 0 : (random() % state.len[i]); local
774 int pos = (state.len[i] == 0) ? 0 : (random() % state.len[i]); local
792 size_t pos = random() % (state.MAX_LEN - state.len[i]); local
817 size_t pos = random () % (state.MAX_LEN - state.len[i]); local
837 size_t pos = random() % (state.MAX_LEN - state.len[i]); local
[all...]
/bionic/libc/netbsd/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/kernel/common/linux/sunrpc/
H A Dsched.h94 #define task_for_each(task, pos, head) list_for_each(pos, head) if ((task=list_entry(pos, struct rpc_task, u.tk_wait.list)),1)
96 #define alltask_for_each(task, pos, head) list_for_each(pos, head) if ((task=list_entry(pos, struct rpc_task, tk_task)),1)
/bionic/libc/upstream-netbsd/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/libc/kernel/tools/
H A Dcpp.py218 self.pos = 0 # current character position in current line
227 self.pos = 0
236 if self.eof or self.pos > self.len:
241 tok.colno = self.pos
248 if self.pos > self.len:
249 self.pos = 0
255 if self.pos == self.len:
258 return self.text[self.pos]
262 if self.pos + n > self.len:
264 return self.text[self.pos
[all...]
/bionic/libc/upstream-dlmalloc/
H A Dmalloc.c4946 char* pos = ((size_t)(br - (char*)(p)) >= MIN_CHUNK_SIZE)? local
4948 mchunkptr newp = (mchunkptr)pos;
4949 size_t leadsize = pos - (char*)(p);

Completed in 410 milliseconds