| /freebsd-12.1/tools/test/iconv/posix/ |
| H A D | posix.c | 113 uint32_t outbuf[4]; in conv_ret() local 120 outptr = (char *)outbuf; in conv_ret() 135 uint32_t outbuf[2]; in conv_2big() local 142 outptr = (char *)outbuf; in conv_2big() 153 printf("outptr - outbuf = %d\n", (uint8_t *)outptr - (uint8_t *)outbuf); in conv_2big() 173 uint32_t outbuf[4]; in conv_einval() local 181 outptr = (char *)outbuf; in conv_einval() 192 printf("outptr - outbuf = %d\n", (uint8_t *)outptr - (uint8_t *)outbuf); in conv_einval() 212 uint32_t outbuf[4]; in conv_eilseq() local 220 outptr = (char *)outbuf; in conv_eilseq() [all …]
|
| /freebsd-12.1/usr.bin/rctl/ |
| H A D | rctl.c | 419 char *outbuf = NULL; in show_limits() local 424 outbuf = realloc(outbuf, outbuflen); in show_limits() 436 free(outbuf); in show_limits() 442 free(outbuf); in show_limits() 507 outbuf = realloc(outbuf, outbuflen); in show_usage() 520 free(outbuf); in show_usage() 525 copy = outbuf; in show_usage() 536 free(outbuf); in show_usage() 559 outbuf = realloc(outbuf, outbuflen); in show_rules() 570 free(outbuf); in show_rules() [all …]
|
| /freebsd-12.1/contrib/apr-util/xlate/ |
| H A D | xlate.c | 108 char inbuf[256], outbuf[256]; in check_sbcs() local 110 char *outbufptr = outbuf; in check_sbcs() 131 memcpy(convset->sbcs_table, outbuf, sizeof(outbuf)); in check_sbcs() 147 char inbuf[256], outbuf[256]; in check_sbcs() local 149 char *outbufptr = outbuf; in check_sbcs() 173 memcpy(convset->sbcs_table, outbuf, sizeof(outbuf)); in check_sbcs() 286 char *outbuf, in apr_xlate_conv_buffer() argument 295 char *outbufptr = outbuf; in apr_xlate_conv_buffer() 341 char *outbufptr = outbuf; in apr_xlate_conv_buffer() 395 *outbuf = table[(unsigned char)*inbuf]; in apr_xlate_conv_buffer() [all …]
|
| /freebsd-12.1/contrib/ncurses/progs/ |
| H A D | dump_entry.c | 67 static DYNBUF outbuf; variable 152 free_DYN(&outbuf); in _nc_leaks_dump_entry() 402 while (outbuf.used > 0 && outbuf.text[outbuf.used - 1] == ' ') in trim_trailing() 403 outbuf.text[--outbuf.used] = '\0'; in trim_trailing() 623 strcpy_DYN(&outbuf, 0); in fmt_entry() 633 char *p = outbuf.text; in fmt_entry() 940 outbuf.used -= 2; in fmt_entry() 947 outbuf.used -= 4; in fmt_entry() 951 outbuf.text[outbuf.used] = '\0'; in fmt_entry() 961 tterm->term_names, len, outbuf.used, outbuf.text); in fmt_entry() [all …]
|
| /freebsd-12.1/tools/test/iconv/gnu/ |
| H A D | gnu.c | 249 char *outbuf; in ctl_uc_hook() local 255 outbuf = malloc(40); in ctl_uc_hook() 256 outptr = &outbuf; in ctl_uc_hook() 279 char *outbuf; in ctl_wc_hook() local 285 outbuf = malloc(40); in ctl_wc_hook() 286 outptr = &outbuf; in ctl_wc_hook() 370 outptr = (char *)outbuf; in ctl_mb_to_uc_fb() 378 printf("mb_uc fallback: %c\n", outbuf[0]); in ctl_mb_to_uc_fb() 381 if (mb_uc_fb && (outbuf[0] == 0x3F)) in ctl_mb_to_uc_fb() 394 char outbuf[6]; in gnu_openinto() local [all …]
|
| /freebsd-12.1/sys/fs/cd9660/ |
| H A D | cd9660_rrip.c | 122 char *outbuf, *inbuf; local 128 outbuf = ana->outbuf; 142 *outbuf++ = '/'; 170 outbuf -= len; 208 outbuf += wlen; 212 ana->outbuf = outbuf; 282 ana->outbuf += wlen; 631 char *outbuf; 640 analyze.outbuf = outbuf; 675 char *outbuf; [all …]
|
| /freebsd-12.1/crypto/heimdal/lib/krb5/ |
| H A D | rd_safe.c | 87 krb5_data *outbuf, in krb5_rd_safe() argument 94 krb5_data_zero(outbuf); in krb5_rd_safe() 191 outbuf->length = safe.safe_body.user_data.length; in krb5_rd_safe() 192 outbuf->data = malloc(outbuf->length); in krb5_rd_safe() 193 if (outbuf->data == NULL && outbuf->length != 0) { in krb5_rd_safe() 196 krb5_data_zero(outbuf); in krb5_rd_safe() 199 memcpy (outbuf->data, safe.safe_body.user_data.data, outbuf->length); in krb5_rd_safe()
|
| /freebsd-12.1/contrib/wpa/src/eap_server/ |
| H A D | eap_server_pwd.c | 39 struct wpabuf *outbuf; member 163 wpabuf_free(data->outbuf); in eap_pwd_reset() 180 if (data->outbuf == NULL) { in eap_pwd_build_id_req() 186 wpabuf_free(data->outbuf); in eap_pwd_build_id_req() 187 data->outbuf = NULL; in eap_pwd_build_id_req() 284 if (data->outbuf == NULL) in eap_pwd_build_commit_req() 306 if (data->outbuf == NULL) in eap_pwd_build_commit_req() 399 if (data->outbuf == NULL) in eap_pwd_build_confirm_req() 406 if (data->outbuf == NULL) in eap_pwd_build_confirm_req() 524 wpabuf_free(data->outbuf); in eap_pwd_build_req() [all …]
|
| /freebsd-12.1/contrib/ipfilter/samples/ |
| H A D | proxy.c | 233 char netbuf[1024], outbuf[1024]; local 249 orptr = outbuf; 250 owptr = outbuf; 251 osz = sizeof(outbuf); 259 if (orptr - outbuf < sizeof(outbuf)) 264 if (osz < sizeof(outbuf)) 279 i = read(net, orptr, sizeof(outbuf) - (orptr - outbuf)); 292 if (osz == sizeof(outbuf) || owptr == orptr) { 293 orptr = outbuf; 294 owptr = outbuf;
|
| /freebsd-12.1/contrib/wpa/src/eap_peer/ |
| H A D | eap_pwd.c | 41 struct wpabuf *outbuf; member 197 wpabuf_free(data->outbuf); in eap_pwd_deinit() 337 if (data->outbuf == NULL) { in eap_pwd_perform_id_exchange() 658 if (data->outbuf == NULL) in eap_pwd_perform_commit_exchange() 679 if (data->outbuf == NULL) in eap_pwd_perform_commit_exchange() 844 if (data->outbuf == NULL) in eap_pwd_perform_confirm_exchange() 851 if (data->outbuf == NULL) { in eap_pwd_perform_confirm_exchange() 931 data->outbuf = NULL; in eap_pwd_process() 1051 if (data->outbuf == NULL) { in eap_pwd_process() 1096 wpabuf_free(data->outbuf); in eap_pwd_process() [all …]
|
| /freebsd-12.1/usr.bin/gzip/ |
| H A D | unbzip2.c | 44 static char *inbuf, *outbuf; in unbzip2() local 48 if (outbuf == NULL) in unbzip2() 49 outbuf = malloc(BUFLEN); in unbzip2() 50 if (inbuf == NULL || outbuf == NULL) in unbzip2() 86 bzs.next_out = outbuf; in unbzip2() 108 n = write(out, outbuf, BUFLEN - bzs.avail_out); in unbzip2()
|
| /freebsd-12.1/sys/fs/smbfs/ |
| H A D | smbfs_subr.c | 161 char outbuf[SMB_MAXFNAMELEN]; in smbfs_fname_tolocal() local 162 char *obuf = outbuf; in smbfs_fname_tolocal() 165 olen = sizeof(outbuf); in smbfs_fname_tolocal() 166 bzero(outbuf, sizeof(outbuf)); in smbfs_fname_tolocal() 188 *nmlen = sizeof(outbuf) - olen; in smbfs_fname_tolocal() 189 memcpy(name, outbuf, *nmlen); in smbfs_fname_tolocal()
|
| /freebsd-12.1/sys/sys/ |
| H A D | iconv.h | 160 size_t *inbytesleft, char **outbuf, size_t *outbytesleft); 162 size_t *inbytesleft, char **outbuf, size_t *outbytesleft, int casetype); 164 size_t *inbytesleft, char **outbuf, size_t *outbytesleft); 166 size_t *inbytesleft, char **outbuf, size_t *outbytesleft, int casetype); 182 char **outbuf, size_t *outbytesleft); 184 char **outbuf, size_t *outbytesleft, int casetype); 186 char **outbuf, size_t *outbytesleft); 188 char **outbuf, size_t *outbytesleft, int casetype);
|
| /freebsd-12.1/contrib/ofed/libibnetdisc/ |
| H A D | ibnetdisc_cache.c | 217 memcpy(outbuf, inbuf, len); in _unmarshall_buf() 723 outbuf[0] = num; in _marshall8() 730 outbuf[0] = num & 0x00FF; in _marshall16() 731 outbuf[1] = (num & 0xFF00) >> 8; in _marshall16() 738 outbuf[0] = num & 0x000000FF; in _marshall32() 748 outbuf[0] = (uint8_t) num; in _marshall64() 749 outbuf[1] = (uint8_t) (num >> 8); in _marshall64() 750 outbuf[2] = (uint8_t) (num >> 16); in _marshall64() 751 outbuf[3] = (uint8_t) (num >> 24); in _marshall64() 752 outbuf[4] = (uint8_t) (num >> 32); in _marshall64() [all …]
|
| /freebsd-12.1/usr.bin/calendar/ |
| H A D | events.c | 83 char *outbuf, *tmp; in convert() local 112 outbuf = output + converted; in convert() 115 converted = iconv(conv, (char **) &inbuf, &inleft, &outbuf, &outleft); in convert() 126 converted = outbuf - output; in convert() 135 outbuf = output + converted; in convert() 139 iconv(conv, NULL, NULL, &outbuf, &outleft); in convert() 142 *outbuf = '\0'; in convert()
|
| /freebsd-12.1/crypto/openssl/crypto/ct/ |
| H A D | ct_b64.c | 28 unsigned char *outbuf = NULL; in ct_base64_decode() local 36 outbuf = OPENSSL_malloc(outlen); in ct_base64_decode() 37 if (outbuf == NULL) { in ct_base64_decode() 42 outlen = EVP_DecodeBlock(outbuf, (unsigned char *)in, inlen); in ct_base64_decode() 56 *out = outbuf; in ct_base64_decode() 59 OPENSSL_free(outbuf); in ct_base64_decode()
|
| /freebsd-12.1/contrib/sendmail/src/ |
| H A D | sfsasl.c | 195 static const char *outbuf = NULL; local 197 static char *outbuf = NULL; local 231 outbuf = NULL; 238 if (outbuf == NULL) 257 SASL_DEALLOC(outbuf); 259 outbuf = NULL; 289 const char *outbuf; local 291 char *outbuf; local 327 if (outbuf != NULL) 334 &outbuf[total], outlen); [all …]
|
| /freebsd-12.1/sys/libkern/ |
| H A D | iconv_xlat.c | 83 size_t *inbytesleft, char **outbuf, size_t *outbytesleft, in iconv_xlat_conv() argument 91 if (inbuf == NULL || *inbuf == NULL || outbuf == NULL || *outbuf == NULL) in iconv_xlat_conv() 100 dst = *outbuf; in iconv_xlat_conv() 104 *outbuf += n; in iconv_xlat_conv()
|
| /freebsd-12.1/sys/dev/acpi_support/ |
| H A D | acpi_hp.c | 970 outbuf[0] = 0; in acpi_hp_get_cmi_block() 1022 while (strlen(outbuf) < outlen) in acpi_hp_get_cmi_block() 1023 strlcat(outbuf, " ", outsize); in acpi_hp_get_cmi_block() 1028 while (strlen(outbuf) < outlen) in acpi_hp_get_cmi_block() 1029 strlcat(outbuf, " ", outsize); in acpi_hp_get_cmi_block() 1033 while (strlen(outbuf) < outlen) in acpi_hp_get_cmi_block() 1034 strlcat(outbuf, " ", outsize); in acpi_hp_get_cmi_block() 1036 if (outbuf[i] == '\\') in acpi_hp_get_cmi_block() 1037 outbuf[i] = '/'; in acpi_hp_get_cmi_block() 1047 strlcat(outbuf, "/", outsize); in acpi_hp_get_cmi_block() [all …]
|
| /freebsd-12.1/contrib/pf/libevent/ |
| H A D | buffer.c | 92 evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf) in evbuffer_add_buffer() argument 97 if (outbuf->off == 0) { in evbuffer_add_buffer() 102 SWAP(&tmp, outbuf); in evbuffer_add_buffer() 103 SWAP(outbuf, inbuf); in evbuffer_add_buffer() 113 if (oldoff && outbuf->cb != NULL) in evbuffer_add_buffer() 114 (*outbuf->cb)(outbuf, 0, oldoff, outbuf->cbarg); in evbuffer_add_buffer() 119 res = evbuffer_add(outbuf, inbuf->buffer, inbuf->off); in evbuffer_add_buffer()
|
| /freebsd-12.1/contrib/gcclibs/libcpp/ |
| H A D | charset.c | 235 uchar *outbuf = *outbufp; in one_cppchar_to_utf8() local 256 *outbuf++ = *p++; in one_cppchar_to_utf8() 258 *outbufp = outbuf; in one_cppchar_to_utf8() 283 uchar *outbuf; in one_utf8_to_utf32() local 295 outbuf = *outbufp; in one_utf8_to_utf32() 344 uchar *outbuf = *outbufp; in one_utf8_to_utf16() local 460 uchar *outbuf; in conversion_loop() local 466 outbuf = to->text + to->len; in conversion_loop() 473 &outbuf, &outbytesleft); in conversion_loop() 556 char *outbuf; in convert_using_iconv() local [all …]
|
| /freebsd-12.1/crypto/heimdal/lib/gssapi/krb5/ |
| H A D | init_sec_context.c | 394 krb5_data outbuf; in init_auth() local 399 krb5_data_zero(&outbuf); in init_auth() 441 "realm-config", &outbuf); in init_auth() 444 if (outbuf.length < 1 || ((((unsigned char *)outbuf.data)[0]) & 2)) in init_auth() 446 krb5_data_free(&outbuf); in init_auth() 526 krb5_data outbuf; in init_auth_restart() local 535 krb5_data_zero(&outbuf); in init_auth_restart() 664 &outbuf); in init_auth_restart() 674 output_token->value = outbuf.data; in init_auth_restart() 680 krb5_data_free (&outbuf); in init_auth_restart() [all …]
|
| /freebsd-12.1/contrib/xz/src/liblzma/common/ |
| H A D | stream_encoder_mt.c | 65 lzma_outbuf *outbuf; member 250 thr->progress_out = thr->outbuf->size; in worker_encode() 280 &thr->outbuf->size, out_size, action); in worker_encode() 291 thr->outbuf->buf); in worker_encode() 316 thr->outbuf->size = 0; in worker_encode() 318 thr->in, in_size, thr->outbuf->buf, in worker_encode() 319 &thr->outbuf->size, out_size); in worker_encode() 336 thr->outbuf->unpadded_size in worker_encode() 338 assert(thr->outbuf->unpadded_size != 0); in worker_encode() 392 thr->outbuf->finished = state == THR_FINISH; in worker_start() [all …]
|
| /freebsd-12.1/contrib/bzip2/ |
| H A D | unzcrash.c | 41 uchar outbuf[M_BLOCK_OUT]; variable 107 outbuf, &nOut, zbuf, nZ, 0, 0 ); in main() 118 if (inbuf[i] != outbuf[i]) { in main() 132 if (inbuf[i] != outbuf[i]) { in main()
|
| /freebsd-12.1/sys/fs/msdosfs/ |
| H A D | msdosfs_conv.c | 805 outp = outbuf; in dos2unixchr() 832 outbuf[1] = '\0'; in dos2unixchr() 836 outp = outbuf; in dos2unixchr() 847 char *up, *outp, unicode[3], outbuf[3]; in unix2doschr() local 890 outp = outbuf; in unix2doschr() 921 win2unixchr(u_char *outbuf, uint16_t wc, struct msdosfsmount *pmp) in win2unixchr() argument 926 outp = outbuf; in win2unixchr() 949 outp = outbuf; in win2unixchr() 959 u_char *outp, outbuf[3]; in unix2winchr() local 967 outp = outbuf; in unix2winchr() [all …]
|