| /illumos-gate/usr/src/lib/iconv_modules/utf-8/common/binarytables/test/ |
| H A D | sb_to_utf8_test.c | 75 uchar_t tmp_buf[1024]; in validate() local 91 for( j = sizeof (tmp_buf) - tmp_len -1; \ in validate() 93 l = (l << 8) + ((uint_t)tmp_buf[j]); \ in validate() 101 for(; j < sizeof (tmp_buf) - tmp_len ; j++) \ in validate() 102 l = (l << 8) + ((uint_t)tmp_buf[j]); \ in validate() 108 tmp = tmp_buf; \ in validate() 109 tmp_len = sizeof (tmp_buf); \ in validate() 119 for( j = 0; j < sizeof (tmp_buf) - tmp_len ; j++) \ in validate() 120 printf("%02x", (uchar_t)tmp_buf[j]); \ in validate() 124 tmp = tmp_buf; \ in validate() [all …]
|
| H A D | utf8_to_ebcdic_test.c | 80 char tmp_buf[1024]; in validate() local 140 tmp = tmp_buf; \ in validate() 142 intp = (uint_t*)&tmp_buf[0]; \ in validate() 162 for (j = 0; j < sizeof (tmp_buf) - tmp_len; j++) { \ in validate() 163 chkprint("%02x", (uchar_t)tmp_buf[j]);\ in validate() 170 tmp = tmp_buf; \ in validate() 171 tmp_len = sizeof (tmp_buf); \ in validate() 186 if (sizeof (tmp_buf) - tmp_len != source_len) { \ in validate() 190 if ((uchar_t)tmp_buf[j] != (uchar_t)source_buf[j]) { \ in validate()
|
| /illumos-gate/usr/src/lib/libc/port/stdio/ |
| H A D | vwscanf.c | 101 char *tmp_buf; in _vswscanf_c89() local 115 tmp_buf = alloca(sizeof (char) * (clen + 1)); in _vswscanf_c89() 116 if (tmp_buf == NULL) in _vswscanf_c89() 118 wlen = wcstombs(tmp_buf, wstr, clen + 1); in _vswscanf_c89() 125 strbuf._ptr = strbuf._base = (unsigned char *)tmp_buf; in _vswscanf_c89() 126 strbuf._cnt = strlen(tmp_buf); in _vswscanf_c89()
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
| H A D | ping_aux.c | 237 char tmp_buf[INET6_ADDRSTRLEN]; in check_reply() local 404 tmp_buf, sizeof (tmp_buf)); in check_reply() 407 Printf("%s is alive\n", tmp_buf); in check_reply() 410 targethost, tmp_buf); in check_reply() 608 tmp_buf, sizeof (tmp_buf)); in check_reply() 612 tmp_buf, sizeof (tmp_buf)); in check_reply() 615 Printf("%s is alive\n", tmp_buf); in check_reply() 618 targethost, tmp_buf); in check_reply() 911 tmp_buf, sizeof (tmp_buf)); in check_reply() 915 tmp_buf, sizeof (tmp_buf)); in check_reply() [all …]
|
| H A D | ping_aux6.c | 278 char tmp_buf[INET6_ADDRSTRLEN]; in check_reply6() local 436 tmp_buf, sizeof (tmp_buf)); in check_reply6() 438 Printf("%s is alive\n", tmp_buf); in check_reply6() 441 targethost, tmp_buf); in check_reply6() 736 tmp_buf, sizeof (tmp_buf)); in check_reply6() 740 tmp_buf, sizeof (tmp_buf)); in check_reply6() 744 Printf("%s is alive\n", tmp_buf); in check_reply6() 747 targethost, tmp_buf); in check_reply6()
|
| H A D | ping.c | 1045 char tmp_buf[INET6_ADDRSTRLEN]; in get_hostinfo() local 1065 (void) inet_ntop(AF_INET, (void *)&addr, tmp_buf, in get_hostinfo() 1066 sizeof (tmp_buf)); in get_hostinfo() 1075 (void) strcpy(host, tmp_buf); in get_hostinfo() 1799 char tmp_buf[INET6_ADDRSTRLEN]; in send_scheduled_probe() local 1818 tmp_buf, sizeof (tmp_buf))); in send_scheduled_probe()
|
| /illumos-gate/usr/src/uts/common/io/qede/ |
| H A D | qede_gld.c | 1460 uint8_t *buf, *tmp_buf; local 1484 tmp_buf = ((uint8_t *)buf) + copy_len; 1496 (void) memcpy(data2->uabc, tmp_buf, 1500 (void) memcpy(data2->uabc, tmp_buf, copy_len); 1501 tmp_buf = tmp_buf + copy_len; 1537 tmp_buf = qede->nvm_buf; 1541 (void) memcpy(tmp_buf, data1->uabc, buf_size); 1545 (void) memcpy(tmp_buf, 1550 tmp_buf = tmp_buf + buf_size; 1551 qede->nvm_buf = tmp_buf; [all …]
|
| /illumos-gate/usr/src/lib/print/libipp-listener/common/ |
| H A D | print-job.c | 124 char tmp_buf[INET6_ADDRSTRLEN]; in ipp_print_job() local 130 &peer.sin_addr, tmp_buf, in ipp_print_job() 131 sizeof (tmp_buf))); in ipp_print_job()
|
| /illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
| H A D | iscsi_ioctl.c | 500 *tmp_buf, in iscsi_create_sendtgts_list() local 535 tmp_buf = kmem_zalloc(tmp_buf_len, KM_SLEEP); in iscsi_create_sendtgts_list() 536 (void) strncpy(tmp_buf, in_str, tmp_buf_len); in iscsi_create_sendtgts_list() 542 if (parse_addr_port_tpgt(tmp_buf, &addr_str, &type, in iscsi_create_sendtgts_list() 545 kmem_free(tmp_buf, tmp_buf_len); in iscsi_create_sendtgts_list() 554 kmem_free(tmp_buf, tmp_buf_len); in iscsi_create_sendtgts_list() 570 kmem_free(tmp_buf, tmp_buf_len); in iscsi_create_sendtgts_list() 597 kmem_free(tmp_buf, tmp_buf_len); in iscsi_create_sendtgts_list() 601 kmem_free(tmp_buf, tmp_buf_len); in iscsi_create_sendtgts_list()
|
| /illumos-gate/usr/src/uts/common/rpc/sec_gss/ |
| H A D | rpcsec_gss.c | 1341 char *tmp_buf; local 1377 tmp_buf = kmem_alloc(xdr_buf_len, KM_SLEEP); 1378 xdrmem_create(&xdrs, tmp_buf, xdr_buf_len, XDR_ENCODE); 1380 kmem_free(tmp_buf, xdr_buf_len); 1389 kmem_free(tmp_buf, xdr_buf_len); 1397 if (!marshall_verf(ap, &xdrs, tmp_buf)) { 1398 kmem_free(tmp_buf, xdr_buf_len); 1406 if (!XDR_PUTBYTES(out_xdrs, tmp_buf, XDR_GETPOS(&xdrs))) { 1407 kmem_free(tmp_buf, xdr_buf_len); 1412 kmem_free(tmp_buf, xdr_buf_len);
|
| /illumos-gate/usr/src/lib/libfru/libfrupicl/ |
| H A D | frupicl.c | 107 char *tmp_buf = NULL; in get_strprop_by_name() local 114 tmp_buf = malloc((sizeof (*tmp_buf) * prop_info.size)); in get_strprop_by_name() 115 if (tmp_buf == NULL) { in get_strprop_by_name() 119 if ((picl_err = picl_get_propval(proph, tmp_buf, prop_info.size)) in get_strprop_by_name() 121 free(tmp_buf); in get_strprop_by_name() 125 *string = tmp_buf; in get_strprop_by_name()
|
| /illumos-gate/usr/src/lib/libfru/libfrupicltree/ |
| H A D | frupicltree.c | 112 char *tmp_buf = NULL; in get_strprop_by_name() local 126 tmp_buf = malloc((sizeof (*tmp_buf) * buf_size)); in get_strprop_by_name() 127 if (tmp_buf == NULL) { in get_strprop_by_name() 131 if ((picl_err = ptree_get_propval(proph, tmp_buf, buf_size)) in get_strprop_by_name() 133 free(tmp_buf); in get_strprop_by_name() 137 *string = tmp_buf; in get_strprop_by_name()
|
| /illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
| H A D | ql_xioctl.c | 3711 caddr_t tmp_buf, bptr; in ql_send_els_rnid() local 3783 tmp_buf = kmem_zalloc(SEND_RNID_RSP_SIZE, KM_SLEEP); in ql_send_els_rnid() 3784 if (tmp_buf == NULL) { in ql_send_els_rnid() 3792 rval = ql_get_rnid_params(ha, SEND_RNID_RSP_SIZE, tmp_buf); in ql_send_els_rnid() 3795 kmem_free(tmp_buf, SEND_RNID_RSP_SIZE); in ql_send_els_rnid() 3802 bcopy(tmp_buf, &rnid_data, sizeof (EXT_RNID_DATA)); in ql_send_els_rnid() 3805 tmp_buf[0] = (char)(EXT_DEF_RNID_DFORMAT_TOPO_DISC); in ql_send_els_rnid() 3806 tmp_buf[1] = (2 * EXT_DEF_WWN_NAME_SIZE); in ql_send_els_rnid() 3807 tmp_buf[2] = 0; in ql_send_els_rnid() 3808 tmp_buf[3] = sizeof (EXT_RNID_DATA); in ql_send_els_rnid() [all …]
|
| /illumos-gate/usr/src/lib/rpcsec_gss/ |
| H A D | rpcsec_gss.c | 809 char tmp_buf[512]; local 828 xdrmem_create(&xdrs, tmp_buf, sizeof (tmp_buf), XDR_ENCODE); 841 if (!marshall_verf(ap, &xdrs, tmp_buf)) 847 if (!XDR_PUTBYTES(out_xdrs, tmp_buf, XDR_GETPOS(&xdrs)))
|
| /illumos-gate/usr/src/stand/lib/sock/ |
| H A D | socket.c | 800 char *tmp_buf; in recvfrom() local 916 tmp_buf = (char *)buf; in recvfrom() 920 bcopy(mp->b_rptr, tmp_buf, len); in recvfrom() 925 bcopy(mp->b_rptr, tmp_buf, datalen); in recvfrom() 928 tmp_buf += datalen; in recvfrom()
|
| /illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
| H A D | in.lpd.c | 70 char tmp_buf[INET6_ADDRSTRLEN]; in remote_host_name() local 86 &peer.sin6_addr, tmp_buf, sizeof (tmp_buf)))); in remote_host_name()
|
| /illumos-gate/usr/src/cmd/ldapcachemgr/ |
| H A D | cachemgr_getldap.c | 2751 char *tmp_buf = NULL, *ptr = NULL, *status = NULL; in test_server_change() local 2773 if ((tmp_buf = malloc(tlen)) == NULL) in test_server_change() 2776 cout = (ldap_get_change_out_t *)tmp_buf; in test_server_change() 2800 free(tmp_buf); in test_server_change() 2815 (void) chg_notify_statusChange(tmp_buf); in test_server_change() 2826 char *tmp_buf, *ptr, *status; in create_buf_and_notify() local 2836 if ((tmp_buf = malloc(tlen)) == NULL) in create_buf_and_notify() 2839 cout = (ldap_get_change_out_t *)tmp_buf; in create_buf_and_notify() 2855 (void) chg_notify_statusChange(tmp_buf); in create_buf_and_notify()
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
| H A D | ipsecconf.c | 3725 char *tmp_buf; in parse_action() local 3772 tmp_buf = buf; in parse_action() 3780 if (tmp_buf == buf) /* No action token */ in parse_action() 3785 if ((*action = malloc(strlen(tmp_buf) + 1)) == in parse_action() 3790 (void) strcpy(*action, tmp_buf); in parse_action() 3796 if ((*action = malloc(strlen(tmp_buf) + 1)) == in parse_action() 3801 (void) strcpy(*action, tmp_buf); in parse_action() 3815 if ((*action = malloc(strlen(tmp_buf) + 1)) == in parse_action() 3820 (void) strcpy(*action, tmp_buf); in parse_action() 3851 char *tmp_buf; in parse_pattern_or_prop() local [all …]
|
| /illumos-gate/usr/src/lib/libdladm/common/ |
| H A D | linkprop.c | 2839 char tmp_buf[DLADM_STRSIZE]; in dladm_cid2str() local 2881 hexlen = sizeof (tmp_buf); in dladm_cid2str() 2883 cid->dc_len - sizeof (en), tmp_buf, &hexlen) != 0) in dladm_cid2str() 2887 duidtype, ennum, tmp_buf); in dladm_cid2str() 2909 hexlen = sizeof (tmp_buf); in dladm_cid2str() 2912 tmp_buf, &hexlen) != 0) in dladm_cid2str() 2916 duidtype, tmp_buf); in dladm_cid2str() 2922 hexlen = sizeof (tmp_buf); in dladm_cid2str() 2924 tmp_buf, &hexlen) != 0) in dladm_cid2str() 2927 (void) snprintf(buf, DLADM_STRSIZE, "0x%s", tmp_buf); in dladm_cid2str() [all …]
|
| /illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
| H A D | ixgbe_e610.c | 117 u32 *tmp_buf = NULL; in ixgbe_aci_send_cmd_execute() local 161 tmp_buf = (u32*)ixgbe_malloc(hw, tmp_buf_size); in ixgbe_aci_send_cmd_execute() 162 if (!tmp_buf) in ixgbe_aci_send_cmd_execute() 171 memset(tmp_buf, 0xFF, tmp_buf_size); in ixgbe_aci_send_cmd_execute() 172 memcpy(tmp_buf, buf, buf_size); in ixgbe_aci_send_cmd_execute() 183 IXGBE_LE32_TO_CPU(tmp_buf[i])); in ixgbe_aci_send_cmd_execute() 267 tmp_buf[i] = IXGBE_READ_REG(hw, PF_HIBA(i)); in ixgbe_aci_send_cmd_execute() 268 tmp_buf[i] = IXGBE_CPU_TO_LE32(tmp_buf[i]); in ixgbe_aci_send_cmd_execute() 270 memcpy(buf, tmp_buf, buf_size); in ixgbe_aci_send_cmd_execute() 274 if (tmp_buf) in ixgbe_aci_send_cmd_execute() [all …]
|
| /illumos-gate/usr/src/uts/common/fs/zfs/ |
| H A D | btree.c | 699 uint8_t *tmp_buf = kmem_alloc(size, KM_SLEEP); in zfs_btree_insert_into_parent() local 700 bcpy(parent->btc_elems + keep_count * size, tmp_buf, in zfs_btree_insert_into_parent() 712 bcpy(tmp_buf, buf, size); in zfs_btree_insert_into_parent() 722 bcpy(tmp_buf, buf, size); in zfs_btree_insert_into_parent() 732 bcpy(tmp_buf, new_parent->btc_elems, size); in zfs_btree_insert_into_parent() 735 kmem_free(tmp_buf, size); in zfs_btree_insert_into_parent()
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
| H A D | route.c | 1561 char *tmp_buf; in search_rtfile() local 1593 tmp_buf = strdup(file_line); in search_rtfile() 1595 if (!args_to_rtcmd(thisrt, NULL, tmp_buf)) { in search_rtfile() 1598 free(tmp_buf); in search_rtfile() 1602 free(tmp_buf); in search_rtfile()
|
| /illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/ |
| H A D | pkinit_crypto_openssl.c | 1791 unsigned char *tmp_buf = NULL, *tmp_buf2 = NULL, *vfy_buf = NULL; in cms_envelopeddata_verify() local 1830 if ((tmp_buf = realloc(tmp_buf, size + 1024 * 10)) == NULL) in cms_envelopeddata_verify() 1832 i = BIO_read(out, &(tmp_buf[size]), 1024 * 10); in cms_envelopeddata_verify() 1841 print_buffer_bin(tmp_buf, tmp_buf_len, "/tmp/client_enc_keypack"); in cms_envelopeddata_verify() 1872 retval = wrap_signeddata(tmp_buf, tmp_buf_len, in cms_envelopeddata_verify() 1882 vfy_buf = tmp_buf; in cms_envelopeddata_verify() 1887 retval = wrap_signeddata(tmp_buf, tmp_buf_len, in cms_envelopeddata_verify() 1897 vfy_buf = tmp_buf; in cms_envelopeddata_verify() 1927 if (tmp_buf != NULL) in cms_envelopeddata_verify() 1928 free(tmp_buf); in cms_envelopeddata_verify()
|
| /illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
| H A D | softKeystoreUtil.c | 2857 CK_BYTE crypt_salt[KS_KEY_SALT_SIZE], tmp_buf[KS_KEY_SALT_SIZE]; in soft_keystore_pin_initialized() local 2876 (void) bzero(tmp_buf, KS_KEY_SALT_SIZE); in soft_keystore_pin_initialized() 2878 if (memcmp(crypt_salt, tmp_buf, KS_KEY_SALT_SIZE) == 0) { in soft_keystore_pin_initialized()
|
| /illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/ |
| H A D | lm_l4sp.c | 414 lm_tcp_gen_buf_t * tmp_buf = NULL; in lm_tcp_rx_fill_grq() local 416 tmp_buf = (lm_tcp_gen_buf_t *)curr_entry; in lm_tcp_rx_fill_grq() 418 if (tmp_buf->flags & GEN_FLAG_FREE_WHEN_DONE) in lm_tcp_rx_fill_grq()
|