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

12

/seL4-test-master/projects/musllibc/src/stdio/
H A Dfsetpos.c3 int fsetpos(FILE *f, const fpos_t *pos) argument
5 return __fseeko(f, *(const off_t *)pos, SEEK_SET);
H A Dftell.c7 off_t pos = f->seek(f, 0, local
10 if (pos < 0) return pos;
13 return pos - (f->rend - f->rpos) + (f->wpos - f->wbase);
18 off_t pos; local
20 pos = __ftello_unlocked(f);
22 return pos;
27 off_t pos = __ftello(f); local
28 if (pos > LONG_MAX) {
32 return pos;
[all...]
H A Dfgetpos.c3 int fgetpos(FILE *restrict f, fpos_t *restrict pos) argument
7 *(off_t *)pos = off;
H A Dopen_wmemstream.c10 size_t pos; member in struct:cookie
26 base = (size_t [3]){0, c->pos, c->len}[whence];
29 return c->pos = base+off;
37 if (len + c->pos >= c->space) {
38 len2 = 2*c->space+1 | c->pos+len+1;
47 len2 = mbsnrtowcs(c->buf+c->pos, (void *)&buf, len, c->space-c->pos, &c->mbs);
49 c->pos += len2;
50 if (c->pos >= c->len) c->len = c->pos;
[all...]
H A Dfmemopen.c7 size_t pos, len, size; member in struct:cookie
21 base = (size_t [3]){0, c->pos, c->len}[whence];
23 return c->pos = base+off;
29 size_t rem = c->len - c->pos;
30 if (c->pos > c->len) rem = 0;
35 memcpy(buf, c->buf+c->pos, len);
36 c->pos += len;
41 memcpy(f->rpos, c->buf+c->pos, rem);
42 c->pos += rem;
55 if (c->mode == 'a') c->pos
[all...]
H A Dopen_memstream.c9 size_t pos; member in struct:cookie
24 base = (size_t [3]){0, c->pos, c->len}[whence];
26 return c->pos = base+off;
38 if (len + c->pos >= c->space) {
39 len2 = 2*c->space+1 | c->pos+len+1;
46 memcpy(c->buf+c->pos, buf, len);
47 c->pos += len;
48 if (c->pos >= c->len) c->len = c->pos;
49 *c->sizep = c->pos;
[all...]
H A Dvfwscanf.c99 off_t pos = 0, cnt; local
115 while (iswspace((c=getwc(f)))) pos++;
127 pos++;
195 while (iswspace((c=getwc(f)))) pos++;
204 store_int(dest, size, pos);
274 pos++;
305 pos += cnt;
H A Dvfscanf.c72 off_t pos = 0; local
88 pos += shcnt(f);
100 pos++;
172 store_int(dest, size, pos);
179 pos += shcnt(f);
314 pos += shcnt(f);
/seL4-test-master/tools/riscv-pk/util/
H A Dsnprintf.c12 size_t pos = 0; local
24 if (++pos < n) out[pos-1] = '0';
25 if (++pos < n) out[pos-1] = 'x';
31 if (++pos < n) out[pos-1] = (d < 10 ? '0'+d : 'a'+d-10);
42 if (++pos < n) out[pos-1] = '-';
48 if (pos
[all...]
/seL4-test-master/projects/util_libs/libethdrivers/src/plat/imx6/uboot/
H A Dlist.h342 * @pos: the &struct list_head to use as a loop cursor.
345 #define list_for_each(pos, head) \
346 for (pos = (head)->next; prefetch(pos->next), pos != (head); \
347 pos = pos->next)
351 * @pos: the &struct list_head to use as a loop cursor.
359 #define __list_for_each(pos, head) \
360 for (pos
[all...]
/seL4-test-master/projects/util_libs/libethdrivers/src/plat/zynq7000/uboot/
H A Dlist.h344 * @pos: the &struct list_head to use as a loop cursor.
347 #define list_for_each(pos, head) \
348 for (pos = (head)->next; prefetch(pos->next), pos != (head); \
349 pos = pos->next)
353 * @pos: the &struct list_head to use as a loop cursor.
361 #define __list_for_each(pos, head) \
362 for (pos
[all...]
/seL4-test-master/projects/util_libs/libethdrivers/src/plat/tx2/uboot/
H A Dlist.h349 * @pos: the &struct list_head to use as a loop cursor.
352 #define list_for_each(pos, head) \
353 for (pos = (head)->next; prefetch(pos->next), pos != (head); \
354 pos = pos->next)
358 * @pos: the &struct list_head to use as a loop cursor.
366 #define __list_for_each(pos, head) \
367 for (pos
[all...]
/seL4-test-master/projects/musllibc/src/linux/
H A Dreadahead.c5 ssize_t readahead(int fd, off_t pos, size_t len) argument
7 return syscall(SYS_readahead, fd, __SYSCALL_LL_O(pos), len);
H A Dsync_file_range.c6 int sync_file_range(int fd, off_t pos, off_t len, unsigned flags) argument
10 __SYSCALL_LL_E(pos), __SYSCALL_LL_E(len));
13 __SYSCALL_LL_O(pos), __SYSCALL_LL_E(len), flags);
/seL4-test-master/tools/riscv-pk/machine/
H A Dfp_emulation.h14 # define GET_F32_REG(insn, pos, regs) ({ \
15 register int32_t value asm("a0") = SHIFT_RIGHT(insn, (pos)-3) & 0xf8; \
19 # define SET_F32_REG(insn, pos, regs, val) ({ \
21 uintptr_t offset = SHIFT_RIGHT(insn, (pos)-3) & 0xf8; \
25 # define GET_F64_REG(insn, pos, regs) ({ \
26 register uintptr_t value asm("a0") = SHIFT_RIGHT(insn, (pos)-3) & 0xf8; \
30 # define SET_F64_REG(insn, pos, regs, val) ({ \
33 uintptr_t offset = SHIFT_RIGHT(insn, (pos)-3) & 0xf8; \
53 # define GET_F64_REG(insn, pos, regs) (*(int64_t*)((void*)((regs) + 32) + (SHIFT_RIGHT(insn, (pos)
[all...]
H A Demulation.h38 #define GET_REG(insn, pos, regs) ({ \
40 (uintptr_t*)((uintptr_t)regs + (SHIFT_RIGHT(insn, (pos) - LOG_REGBYTES) & (mask))); \
/seL4-test-master/projects/seL4_libs/libsel4simple/include/simple/
H A Dsimple_helpers.h20 bool simple_is_untyped_cap(simple_t *simple, seL4_CPtr pos);
/seL4-test-master/projects/musllibc/src/regex/
H A Dregexec.c54 prev_c = next_c; pos += pos_add_next; \
66 && (pos > 0 || reg_notbol) \
76 && (pos != 0 && next_c != L'\0' \
79 && (pos == 0 || next_c == L'\0' \
164 regoff_t pos; member in struct:__anon416
177 regoff_t pos = -1; local
265 reach_pos[i].pos = -1;
268 pos = 0;
279 if (reach_pos[trans_i->state_id].pos < pos)
493 regoff_t pos; member in struct:__anon417
599 regoff_t pos = 0; local
[all...]
/seL4-test-master/projects/util_libs/libutils/include/utils/
H A Dcircular_buffer.h40 static inline off_t _next_pos(circ_buf_t *cb, off_t pos) argument
42 return (pos + 1) % cb->size;
/seL4-test-master/projects/seL4_libs/libsel4simple/src/
H A Dsimple.c15 bool simple_is_untyped_cap(simple_t *simple, seL4_CPtr pos) argument
21 if (ut_pos == pos) {
/seL4-test-master/projects/seL4_libs/libsel4utils/src/
H A Delf.c64 unsigned int pos = 0; local
65 while (pos < segment_size && error == seL4_NoError) {
79 } else if (loadee_vaddr + (MIN(segment_size - pos, PAGE_SIZE_4K)) >
124 if (pos < file_size) {
125 memcpy(loader_vaddr + (dst % PAGE_SIZE_4K), (void *)src, MIN(nbytes, file_size - pos));
142 pos += nbytes;
/seL4-test-master/kernel/include/kernel/
H A Dboot.h27 #define SLOT_PTR(pptr, pos) (((slot_ptr_t)(pptr)) + (pos))
/seL4-test-master/projects/seL4_libs/libsel4allocman/src/
H A Dbootstrap.c505 seL4_CPtr pos = simple_get_nth_cap(simple,i); local
512 if (pos == cnode || simple_is_untyped_cap(simple, pos)) continue;
516 slot = _cspace_single_level_make_path(bs->alloc->cspace.cspace, pos);
518 slot = _cspace_two_level_make_path(bs->alloc->cspace.cspace, pos);
524 if(pos == bs->tcb.capPtr || pos == bs->pd.capPtr) {
525 error = seL4_CNode_Copy(slot.root, pos, slot.capDepth,
526 bs->old_cnode.capPtr, pos, bs->old_cnode.capDepth,
530 slot.root, pos, slo
[all...]
/seL4-test-master/tools/riscv-pk/pk/
H A Dsyscall.c294 size_t sys_brk(size_t pos) argument
296 return do_brk(pos);
/seL4-test-master/tools/nanopb/
H A Dpb_decode.c758 size_t pos = stream->bytes_left; local
760 while (extension != NULL && pos == stream->bytes_left)
968 size_t pos = stream->bytes_left; local
973 if (pos != stream->bytes_left)

Completed in 197 milliseconds

12