/glibc-2.36/iconvdata/ |
D | bug-iconv14.c | 35 char *outbuf; in with_escape_sequence() local 38 outbuf = out; in with_escape_sequence() 40 TEST_COMPARE (iconv (c, &inbuf, &inleft, &outbuf, &outleft), (size_t) -1); in with_escape_sequence() 45 TEST_COMPARE (outbuf - out, 2); in with_escape_sequence() 51 outbuf = out; in with_escape_sequence() 53 TEST_COMPARE (iconv (c, &inbuf, &inleft, &outbuf, &outleft), 0); in with_escape_sequence() 57 TEST_COMPARE (outbuf - out, 2); in with_escape_sequence() 62 outbuf = out; in with_escape_sequence() 64 TEST_COMPARE (iconv (c, NULL, 0, &outbuf, &outleft), 0); in with_escape_sequence() 66 TEST_COMPARE (outbuf - out, 0); in with_escape_sequence() [all …]
|
D | bug-iconv9.c | 22 char outbuf[100]; in do_test() local 23 char *out = outbuf; in do_test() 24 size_t outlen = sizeof (outbuf); in do_test() 45 if (out - outbuf != sizeof (expected) - 1 in do_test() 46 || memcmp (outbuf, expected, sizeof (expected) - 1) != 0) in do_test() 49 for (size_t i = 0; i < out - outbuf; ++i) in do_test() 50 printf ("\\x%02hhx", outbuf[i]); in do_test()
|
D | iso-2022-kr.c | 52 if (outbuf + 4 > outend) \ 55 *outbuf++ = ESC; \ 56 *outbuf++ = '$'; \ 57 *outbuf++ = ')'; \ 58 *outbuf++ = 'C'; \ 89 if (__glibc_unlikely (outbuf == outend)) \ 95 *outbuf++ = SI; \
|
D | bug-iconv15.c | 31 char *outbuf = out; in do_test() local 41 TEST_VERIFY (iconv (cd, &inbuf, &inleft, &outbuf, &outleft) != (size_t) -1); in do_test() 45 TEST_VERIFY (outbuf == out); in do_test() 49 TEST_VERIFY (iconv (cd, NULL, NULL, &outbuf, &outleft) != (size_t) -1); in do_test() 52 TEST_VERIFY (outbuf == out); in do_test()
|
D | iso-2022-jp-3.c | 91 if (__glibc_likely (outbuf + 4 <= outend)) \ 94 put32u (outbuf, ch); \ 95 outbuf += 4; \ 121 if (__glibc_unlikely (outbuf + need > outend)) \ 136 *outbuf++ = ESC; \ 137 *outbuf++ = '$'; \ 138 *outbuf++ = 'B'; \ 141 *outbuf++ = (lasttwo >> 8) & 0xff; \ 142 *outbuf++ = lasttwo & 0xff; \ 147 *outbuf++ = ESC; \ [all …]
|
D | bug-iconv5.c | 21 char *outbuf; in do_test() local 27 outbuf = buf; in do_test() 29 n = iconv (cd, &inbuf, &inlen, &outbuf, &outlen); in do_test() 40 outbuf = buf; in do_test() 42 n = iconv (cd, &inbuf, &inlen, &outbuf, &outlen); in do_test()
|
D | big5hkscs.c | 17776 if (__glibc_likely (outbuf + 4 <= outend)) \ 17779 *((uint32_t *) outbuf) = data->__statep->__count >> 3; \ 17780 outbuf += sizeof (uint32_t); \ 17789 if (__glibc_likely (outbuf + 2 <= outend)) \ 17793 *outbuf++ = (lasttwo >> 8) & 0xff; \ 17794 *outbuf++ = lasttwo & 0xff; \
|
D | tscii.c | 93 if (__glibc_unlikely (outbuf + 4 > outend)) \ 100 *((uint32_t *) outbuf) = data->__statep->__count >> 8; \ 101 outbuf += sizeof (uint32_t); \ 114 if (__glibc_likely (outbuf + 2 <= outend)) \ 116 *outbuf++ = last & 0xff; \ 117 *outbuf++ = (last >> 8) & 0xff; \ 127 if (__glibc_likely (outbuf < outend)) \ 129 *outbuf++ = last & 0xff; \
|
D | euc-jisx0213.c | 82 if (__glibc_likely (outbuf + 4 <= outend)) \ 85 *((uint32_t *) outbuf) = data->__statep->__count >> 3; \ 86 outbuf += sizeof (uint32_t); \ 95 if (__glibc_likely (outbuf + 2 <= outend)) \ 99 *outbuf++ = (lasttwo >> 8) & 0xff; \ 100 *outbuf++ = lasttwo & 0xff; \
|
D | tst-e2big.c | 34 char *outbuf = alloca (outbufsize); in test() local 53 outptr = outbuf; in test() 64 empty_output = (outptr == outbuf && outlen == outbufsize); in test() 74 encoding, outptr - outbuf); in test()
|
D | bug-iconv11.c | 53 char *outbuf = output; in test_ibm93x() local 56 inbuf, inbytesleft, outbuf, outbytesleft); in test_ibm93x() 59 size_t ret = iconv (cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); in test_ibm93x() 63 inbuf - input, inbytesleft, outbuf - output, outbytesleft); in test_ibm93x()
|
D | shift_jisx0213.c | 82 if (__glibc_likely (outbuf + 4 <= outend)) \ 85 *((uint32_t *) outbuf) = data->__statep->__count >> 3; \ 86 outbuf += sizeof (uint32_t); \ 95 if (__glibc_likely (outbuf + 2 <= outend)) \ 99 *outbuf++ = (lasttwo >> 8) & 0xff; \ 100 *outbuf++ = lasttwo & 0xff; \
|
/glibc-2.36/iconv/ |
D | skeleton.c | 289 *inptrp -= (outbuf - outerr) \ 292 *inptrp -= (outbuf - outerr) \ 296 *inptrp -= ((outbuf - outerr) / FROM_LOOP_MIN_NEEDED_TO) \ 302 *inptrp -= (outbuf - outerr) \ 305 *inptrp -= (outbuf - outerr) \ 308 *inptrp -= ((outbuf - outerr) / TO_LOOP_MIN_NEEDED_TO) \ 427 unsigned char *outbuf = data->__outbuf; in FUNCTION_NAME() local 428 unsigned char *outstart = outbuf; in FUNCTION_NAME() 451 data->__outbuf = outbuf; in FUNCTION_NAME() 455 if (outbuf > outstart) in FUNCTION_NAME() [all …]
|
D | iconv.c | 30 iconv (iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, in iconv() argument 34 char *outstart = outbuf ? *outbuf : NULL; in iconv() 40 if (outbuf == NULL || *outbuf == NULL) in iconv() 43 result = __gconv (gcd, NULL, NULL, (unsigned char **) outbuf, in iconv() 53 (unsigned char **) outbuf, in iconv() 54 (unsigned char *) (*outbuf + *outbytesleft), in iconv() 60 *outbytesleft -= *outbuf - outstart; in iconv()
|
D | tst-iconv6.c | 47 uint32_t outbuf[3] = { 0, 0, 0 }; in do_test() local 58 outptr = (char *) outbuf; in do_test() 59 outlen = sizeof (outbuf); in do_test() 91 if (outptr != (char *) &outbuf[1]) in do_test() 95 , outptr, &outbuf[1]); in do_test() 102 , outlen, sizeof (outbuf) - sizeof (uint32_t)); in do_test() 106 if (outbuf[0] != 0x41 || outbuf[1] != 0 || outbuf[2] != 0) in do_test()
|
D | gconv.c | 31 const unsigned char *inbufend, unsigned char **outbuf, in __gconv() argument 45 cd->__data[last_step].__outbuf = outbuf != NULL ? *outbuf : NULL; in __gconv() 72 assert (outbuf != NULL && *outbuf != NULL); in __gconv() 85 if (outbuf != NULL && *outbuf != NULL) in __gconv() 86 *outbuf = cd->__data[last_step].__outbuf; in __gconv()
|
D | tst-iconv9.c | 48 char *outbuf; in do_test() local 63 outbuf = ascii_out; in do_test() 65 n = iconv (cd, &inbuf, &inbytes, &outbuf, &outbytes); in do_test() 67 *outbuf = '\0'; in do_test() 76 outbuf = ascii_out; in do_test() 78 n = iconv (cd, &inbuf, &inbytes, &outbuf, &outbytes); in do_test() 80 *outbuf = '\0'; in do_test()
|
D | iconv_prog.c | 414 write_output (const char *outbuf, const char *outptr, FILE **output, in write_output() argument 433 if (fwrite (outbuf, 1, outptr - outbuf, *output) < (size_t) (outptr - outbuf) in write_output() 454 char outbuf[OUTBUF_SIZE]; in process_block() local 462 outptr = outbuf; in process_block() 475 if (outptr != outbuf) in process_block() 477 ret = write_output (outbuf, outptr, output, output_file); in process_block() 486 outptr = outbuf; in process_block() 490 if (outptr != outbuf) in process_block() 492 ret = write_output (outbuf, outptr, output, output_file); in process_block()
|
D | tst-iconv5.c | 95 char *inbuf, *outbuf; in test_unalign() local 114 outbuf = outbufp->str2; in test_unalign() 121 outbuf, outbytesleft); in test_unalign() 126 memcpy (inbuf, outbuf, retlen); in test_unalign() 130 outbuf, outbytesleft); in test_unalign()
|
D | iconv_charmap.c | 290 unsigned char outbuf[64]; in convert_charseq() local 293 char *outptr = (char *) outbuf; in convert_charseq() 294 size_t outlen = sizeof (outbuf); in convert_charseq() 298 if (outptr != (char *) outbuf) in convert_charseq() 301 outlen = sizeof (outbuf) - outlen; in convert_charseq() 302 assert ((char *) outbuf + outlen == outptr); in convert_charseq() 308 memcpy (result->bytes, outbuf, outlen); in convert_charseq()
|
/glibc-2.36/localedata/ |
D | tst-iconv-math-trans.c | 54 char outbuf[500]; in do_test() local 55 char *outptr = outbuf; in do_test() 56 size_t outlen = sizeof (outbuf); in do_test() 86 if (memcmp (outbuf, expected, sizeof (expected)) != 0) in do_test() 89 (int) (sizeof (outbuf) - outlen), outbuf, expected); in do_test() 92 else if (outlen != sizeof (outbuf) - sizeof (expected)) in do_test() 95 sizeof (outbuf) - 15); in do_test() 99 printf ("output is \"%s\" which is OK\n", outbuf); in do_test()
|
D | bug-iconv-trans.c | 14 char outbuf[500]; in main() local 15 char *outptr = outbuf; in main() 16 size_t outlen = sizeof (outbuf); in main() 52 if (memcmp (outbuf, expected, sizeof (expected)) != 0) in main() 55 (int) (sizeof (outbuf) - outlen), outbuf, expected); in main() 58 else if (outlen != sizeof (outbuf) - sizeof (expected)) in main() 61 sizeof (outbuf) - 15); in main() 65 printf ("output is \"%s\" which is OK\n", outbuf); in main()
|
/glibc-2.36/wcsmbs/ |
D | mbrtowc.c | 43 unsigned char *outbuf = (unsigned char *) (pwc ?: buf); in __mbrtowc() local 56 outbuf = (unsigned char *) buf; in __mbrtowc() 65 data.__outbuf = outbuf; in __mbrtowc() 66 data.__outbufend = outbuf + sizeof (wchar_t); in __mbrtowc() 100 if (data.__outbuf != (unsigned char *) outbuf in __mbrtowc() 101 && *(wchar_t *) outbuf == L'\0') in __mbrtowc()
|
D | mbrtoc16.c | 61 unsigned char *outbuf = (unsigned char *) &wc; in mbrtoc16() local 83 data.__outbuf = outbuf; in mbrtoc16() 84 data.__outbufend = outbuf + sizeof (wchar_t); in mbrtoc16() 126 if (data.__outbuf != outbuf && wc == L'\0') in mbrtoc16()
|
/glibc-2.36/nss/nss_files/ |
D | files-hosts.c | 146 struct alloc_buffer outbuf; in gethostbyname3_multi() local 149 outbuf = alloc_buffer_create (bufferend, buffer + buflen - bufferend); in gethostbyname3_multi() 200 target = alloc_buffer_alloc (&outbuf, struct in_addr); in gethostbyname3_multi() 205 target = alloc_buffer_alloc (&outbuf, struct in6_addr); in gethostbyname3_multi() 228 alloc_buffer_copy_string (&outbuf, alias)); in gethostbyname3_multi() 239 alloc_buffer_copy_string (&outbuf, new_name)); in gethostbyname3_multi() 253 if (alloc_buffer_has_failed (&outbuf)) in gethostbyname3_multi() 289 (&outbuf, char *, addresses_count + 1); in gethostbyname3_multi() 291 (&outbuf, char *, aliases_count + 1); in gethostbyname3_multi()
|