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...]
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));
/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.c41 int pos = 0; local
54 if (str[pos] == '\0')
56 if (str[pos] == '=' && first_equal_pos < 0)
57 first_equal_pos = pos;
58 pos++;
59 } while (pos < MAX_ENV_LEN);
61 if (pos >= MAX_ENV_LEN) /* Too large */
H A Dlinker_format.c84 char *pos; member in struct:__anon731
100 int avail = bo->end - bo->pos;
105 memcpy(bo->pos, data, avail);
106 bo->pos += avail;
107 bo->pos[0] = '\0';
122 bo->pos = bo->buffer;
123 bo->pos[0] = '\0';
370 char *pos = buffer; local
377 if (pos < end) {
378 *pos
[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/unistd/
H A Dgetopt_long.c137 int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; local
150 pos = cstart;
152 if (pos >= panonopt_end)
153 pos -= nnonopts;
155 pos += nopts;
156 swap = nargv[pos];
158 ((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 384 milliseconds