/bionic/libc/upstream-openbsd/lib/libc/locale/ |
D | wctob.c | 36 mbstate_t mbs; in wctob() local 39 memset(&mbs, 0, sizeof(mbs)); in wctob() 40 if (c == WEOF || wcrtomb(buf, c, &mbs) != 1) in wctob()
|
D | wctomb.c | 36 static mbstate_t mbs; in wctomb() local 41 memset(&mbs, 0, sizeof(mbs)); in wctomb() 44 if ((rval = wcrtomb(s, wchar, &mbs)) == (size_t)-1) in wctomb()
|
D | btowc.c | 36 mbstate_t mbs; in btowc() local 47 memset(&mbs, 0, sizeof(mbs)); in btowc() 49 if (mbrtowc(&wc, &cc, 1, &mbs) > 1) in btowc()
|
D | mbstowcs.c | 38 mbstate_t mbs; in mbstowcs() local 41 memset(&mbs, 0, sizeof(mbs)); in mbstowcs() 43 return (mbsrtowcs(pwcs, &sp, n, &mbs)); in mbstowcs()
|
D | wcstombs.c | 37 mbstate_t mbs; in wcstombs() local 40 memset(&mbs, 0, sizeof(mbs)); in wcstombs() 42 return (wcsrtombs(s, &pwcsp, n, &mbs)); in wcstombs()
|
D | mbtowc.c | 38 static mbstate_t mbs; in mbtowc() local 43 memset(&mbs, 0, sizeof(mbs)); in mbtowc() 46 rval = mbrtowc(pwc, s, n, &mbs); in mbtowc()
|
D | mbrlen.c | 34 static mbstate_t mbs; in mbrlen() local 37 ps = &mbs; in mbrlen()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vswscanf.c | 55 mbstate_t mbs; in vswscanf() local 70 bzero(&mbs, sizeof(mbs)); in vswscanf() 72 if ((mlen = wcsrtombs(mbstr, &strp, len, &mbs)) == (size_t)-1) { in vswscanf()
|
D | vswprintf.c | 43 mbstate_t mbs; in vswprintf() local 82 bzero(&mbs, sizeof(mbs)); in vswprintf() 83 nwc = mbsrtowcs(s, (const char **)&mbp, n, &mbs); in vswprintf()
|
D | open_wmemstream.c | 37 mbstate_t mbs; /* conversion state of the stream */ member 64 len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs); in wmemstream_write() 105 bzero(&st->mbs, sizeof(st->mbs)); in wmemstream_seek() 154 bzero(&st->mbs, sizeof(st->mbs)); in open_wmemstream()
|
D | vfwscanf.c | 122 mbstate_t mbs; in __vfwscanf() local 374 bzero(&mbs, sizeof(mbs)); in __vfwscanf() 379 nconv = wcrtomb(mbp, wi, &mbs); in __vfwscanf() 384 &mbs); in __vfwscanf() 439 bzero(&mbs, sizeof(mbs)); in __vfwscanf() 444 nconv = wcrtomb(mbp, wi, &mbs); in __vfwscanf() 449 &mbs); in __vfwscanf() 500 bzero(&mbs, sizeof(mbs)); in __vfwscanf() 506 nconv = wcrtomb(mbp, wi, &mbs); in __vfwscanf() 511 &mbs); in __vfwscanf() [all …]
|
D | vfscanf.c | 116 mbstate_t mbs; in __svfscanf() local 356 bzero(&mbs, sizeof(mbs)); in __svfscanf() 357 nconv = mbrtowc(wcp, buf, n, &mbs); in __svfscanf() 438 bzero(&mbs, sizeof(mbs)); in __svfscanf() 439 nconv = mbrtowc(wcp, buf, n, &mbs); in __svfscanf() 542 bzero(&mbs, sizeof(mbs)); in __svfscanf() 543 nconv = mbrtowc(wcp, buf, n, &mbs); in __svfscanf()
|
D | vfprintf.c | 157 mbstate_t mbs; in __wcsconv() local 165 memset(&mbs, 0, sizeof(mbs)); in __wcsconv() 167 nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs); in __wcsconv() 183 memset(&mbs, 0, sizeof(mbs)); in __wcsconv() 185 clen = wcrtomb(buf, *p++, &mbs); in __wcsconv() 202 memset(&mbs, 0, sizeof(mbs)); in __wcsconv() 204 nbytes, &mbs)) == (size_t)-1) { in __wcsconv() 635 mbstate_t mbs; in __vfprintf() local 638 memset(&mbs, 0, sizeof(mbs)); in __vfprintf() 640 (wchar_t)GETARG(wint_t), &mbs); in __vfprintf()
|
D | vfwprintf.c | 132 mbstate_t mbs; in __xfputwc() local 141 bzero(&mbs, sizeof(mbs)); in __xfputwc() 142 len = wcrtomb(buf, wc, &mbs); in __xfputwc() 168 mbstate_t mbs; in __mbsconv() local 187 bzero(&mbs, sizeof(mbs)); in __mbsconv() 189 nconv = mbrlen(p, MB_CUR_MAX, &mbs); in __mbsconv() 212 bzero(&mbs, sizeof(mbs)); in __mbsconv() 215 nconv = mbrtowc(wcp, p, insize, &mbs); in __mbsconv()
|