/bionic/libc/stdio/ |
H A D | ftell.c | 44 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 D | fgetpos.c | 42 fgetpos(FILE * __restrict fp, fpos_t * __restrict pos) argument 47 if ((*pos = ftello(fp)) == (fpos_t)-1)
|
H A D | fsetpos.c | 46 fsetpos(FILE *iop, const fpos_t *pos) argument 48 return (fseeko(iop, (off_t)*pos, SEEK_SET));
|
/bionic/libc/kernel/common/linux/ |
H A D | plist.h | 39 #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 D | mca.h | 40 unsigned char pos[8]; member in struct:mca_device
|
H A D | soundcard.h | 844 #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 D | linker_environ.cpp | 86 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 D | string_test.cpp | 396 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 D | base64.c | 222 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 D | sched.h | 94 #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 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) 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 D | getopt_long.c | 158 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 D | cpp.py | 218 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 D | malloc.c | 4946 char* pos = ((size_t)(br - (char*)(p)) >= MIN_CHUNK_SIZE)? local 4948 mchunkptr newp = (mchunkptr)pos; 4949 size_t leadsize = pos - (char*)(p);
|