Searched refs:ws (Results 1 - 17 of 17) sorted by relevance

/seL4-refos-master/libs/libmuslc/src/multibyte/
H A Dwcsrtombs.c3 size_t wcsrtombs(char *restrict s, const wchar_t **restrict ws, size_t n, mbstate_t *restrict st) argument
9 for (n=0, ws2=*ws; *ws2; ws2++) {
19 if (**ws-1u >= 0x7fu) {
20 if (!**ws) {
22 *ws = 0;
25 l = wcrtomb(s, **ws, 0);
30 *s++ = **ws;
33 (*ws)++;
36 if (**ws-1u >= 0x7fu) {
37 if (!**ws) {
[all...]
H A Dmbstowcs.c4 size_t mbstowcs(wchar_t *restrict ws, const char *restrict s, size_t wn) argument
6 return mbsrtowcs(ws, (void*)&s, wn, 0);
H A Dwcstombs.c4 size_t wcstombs(char *restrict s, const wchar_t *restrict ws, size_t n) argument
6 return wcsrtombs(s, &(const wchar_t *){ws}, n, 0);
H A Dmbsrtowcs.c8 size_t mbsrtowcs(wchar_t *restrict ws, const char **restrict src, size_t wn, mbstate_t *restrict st) argument
15 if (ws) {
24 if (!ws) return strlen((const char *)s);
32 *ws++ = CODEUNIT(c);
35 *ws = 0;
40 if (!ws) for (;;) {
74 *ws++ = *s++;
75 *ws++ = *s++;
76 *ws++ = *s++;
77 *ws
[all...]
H A Dmbsnrtowcs.c6 wchar_t *ws, wbuf[256]; local
9 if (!wcs) ws = wbuf, wn = sizeof wbuf / sizeof *wbuf;
10 else ws = wcs;
19 l = mbsrtowcs(ws, &s, n2, st);
25 if (ws != wbuf) {
26 ws += l;
32 l = mbrtowc(ws, s, n, st);
48 ws++; wn--;
H A Dwcsnrtombs.c7 const wchar_t *ws = *wcs; local
12 while ( ws && n && ( (n2=wn)>=n || n2>32 ) ) {
15 l = wcsrtombs(s, &ws, n2, 0);
27 if (ws) while (n && wn) {
28 l = wcrtomb(s, *ws, 0);
30 if (!l) ws = 0;
34 ws++; wn--;
39 if (dst) *wcs = ws;
/seL4-refos-master/libs/librefos/src/refos-util/
H A Dwalloc.c32 walloc_list_init(walloc_state_t *ws, seL4_Word startAddr, seL4_Word endAddr) argument
45 ws->startAddr = startAddr;
46 ws->endAddr = endAddr;
47 ws->npages = sz / REFOS_PAGE_SIZE;
48 cbpool_init(&ws->pool, ws->npages);
51 chash_init(&ws->windowCptrMap, WALLOC_WINDOW_CPTR_MAP_HASHSIZE);
53 ws->initialised = true;
54 ws->magic = WALLOC_MAGIC;
58 walloc_list_deinit(walloc_state_t *ws) argument
71 walloc_list_ext(walloc_state_t *ws, int npages, seL4_CPtr *window, uint32_t permission, uint32_t flags) argument
111 walloc_list(walloc_state_t *ws, int npages, seL4_CPtr *window) argument
117 walloc_list_get_start_page(walloc_state_t *ws, seL4_Word vaddr) argument
127 walloc_list_get_window_at_vaddr(walloc_state_t *ws, seL4_Word vaddr) argument
136 walloc_list_free(walloc_state_t *ws, uint32_t addr, int npages) argument
[all...]
/seL4-refos-master/projects/refos/impl/libs/librefos/src/refos-util/
H A Dwalloc.c32 walloc_list_init(walloc_state_t *ws, seL4_Word startAddr, seL4_Word endAddr) argument
45 ws->startAddr = startAddr;
46 ws->endAddr = endAddr;
47 ws->npages = sz / REFOS_PAGE_SIZE;
48 cbpool_init(&ws->pool, ws->npages);
51 chash_init(&ws->windowCptrMap, WALLOC_WINDOW_CPTR_MAP_HASHSIZE);
53 ws->initialised = true;
54 ws->magic = WALLOC_MAGIC;
58 walloc_list_deinit(walloc_state_t *ws) argument
71 walloc_list_ext(walloc_state_t *ws, int npages, seL4_CPtr *window, uint32_t permission, uint32_t flags) argument
111 walloc_list(walloc_state_t *ws, int npages, seL4_CPtr *window) argument
117 walloc_list_get_start_page(walloc_state_t *ws, seL4_Word vaddr) argument
127 walloc_list_get_window_at_vaddr(walloc_state_t *ws, seL4_Word vaddr) argument
136 walloc_list_free(walloc_state_t *ws, uint32_t addr, int npages) argument
[all...]
/seL4-refos-master/libs/libmuslc/src/string/
H A Dstpncpy.c14 const size_t *ws; local
19 wd=(void *)d; ws=(const void *)s;
20 for (; n>=sizeof(size_t) && !HASZERO(*ws);
21 n-=sizeof(size_t), ws++, wd++) *wd = *ws;
22 d=(void *)wd; s=(const void *)ws;
H A Dstpcpy.c14 const size_t *ws; local
19 wd=(void *)d; ws=(const void *)s;
20 for (; !HASZERO(*ws); *wd++ = *ws++);
21 d=(void *)wd; s=(const void *)ws;
H A Dmemccpy.c15 const size_t *ws; local
22 wd=(void *)d; ws=(const void *)s;
23 for (; n>=sizeof(size_t) && !HASZERO(*ws^k);
24 n-=sizeof(size_t), ws++, wd++) *wd = *ws;
25 d=(void *)wd; s=(const void *)ws;
H A Dstrlcpy.c16 const size_t *ws; local
22 wd=(void *)d; ws=(const void *)s;
23 for (; n>=sizeof(size_t) && !HASZERO(*ws);
24 n-=sizeof(size_t), ws++, wd++) *wd = *ws;
25 d=(void *)wd; s=(const void *)ws;
/seL4-refos-master/libs/libmuslc/src/stdio/
H A Dfputws.c5 int fputws(const wchar_t *restrict ws, FILE *restrict f) argument
16 while (ws && (l = wcsrtombs((void *)buf, (void*)&ws, sizeof buf, 0))+1 > 1)
H A Dvswprintf.c9 wchar_t *ws; member in struct:cookie
20 while (c->l && l && (i=mbtowc(c->ws, (void *)s, l))>=0) {
24 c->ws++;
26 *c->ws = 0;
H A Dvfprintf.c468 wchar_t wc[2], *ws; local
630 ws = arg.p;
631 for (i=l=0; i<p && *ws && (l=wctomb(mb, *ws++))>=0 && l<=p-i; i+=l);
636 ws = arg.p;
637 for (i=0; i<0U+p && *ws && i+(l=wctomb(mb, *ws++))<=p; i+=l)
/seL4-refos-master/libs/libmuslc/src/misc/
H A Dopenpty.c10 int openpty(int *pm, int *ps, char *name, const struct termios *tio, const struct winsize *ws) argument
29 if (ws) ioctl(s, TIOCSWINSZ, ws);
H A Dforkpty.c9 int forkpty(int *pm, char *name, const struct termios *tio, const struct winsize *ws) argument
15 if (openpty(&m, &s, name, tio, ws) < 0) return -1;

Completed in 87 milliseconds