Home
last modified time | relevance | path

Searched refs:outbuf (Results 1 – 25 of 62) sorted by relevance

123

/glibc-2.36/iconvdata/
Dbug-iconv14.c35 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 …]
Dbug-iconv9.c22 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()
Diso-2022-kr.c52 if (outbuf + 4 > outend) \
55 *outbuf++ = ESC; \
56 *outbuf++ = '$'; \
57 *outbuf++ = ')'; \
58 *outbuf++ = 'C'; \
89 if (__glibc_unlikely (outbuf == outend)) \
95 *outbuf++ = SI; \
Dbug-iconv15.c31 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()
Diso-2022-jp-3.c91 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 …]
Dbug-iconv5.c21 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()
Dbig5hkscs.c17776 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; \
Dtscii.c93 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; \
Deuc-jisx0213.c82 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; \
Dtst-e2big.c34 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()
Dbug-iconv11.c53 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()
Dshift_jisx0213.c82 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/
Dskeleton.c289 *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 …]
Diconv.c30 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()
Dtst-iconv6.c47 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()
Dgconv.c31 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()
Dtst-iconv9.c48 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()
Diconv_prog.c414 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()
Dtst-iconv5.c95 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()
Diconv_charmap.c290 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/
Dtst-iconv-math-trans.c54 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()
Dbug-iconv-trans.c14 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/
Dmbrtowc.c43 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()
Dmbrtoc16.c61 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/
Dfiles-hosts.c146 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()

123