/seL4-test-master/projects/musllibc/src/multibyte/ |
H A D | wcsrtombs.c | 3 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 D | mbstowcs.c | 4 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 D | wcstombs.c | 4 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 D | mbsrtowcs.c | 8 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 D | mbsnrtowcs.c | 6 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 D | wcsnrtombs.c | 7 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-test-master/projects/musllibc/src/string/ |
H A D | stpncpy.c | 14 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 D | stpcpy.c | 14 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 D | memccpy.c | 15 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 D | strlcpy.c | 16 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-test-master/projects/musllibc/src/stdio/ |
H A D | fputws.c | 5 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 D | vswprintf.c | 9 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 D | vfprintf.c | 468 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-test-master/projects/musllibc/src/misc/ |
H A D | openpty.c | 10 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 D | forkpty.c | 9 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;
|