Home
last modified time | relevance | path

Searched refs:buf1 (Results 1 – 25 of 66) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dump.c927 char buf1[256]; in emlxs_dump_word_txtfile() local
943 buf1[0] = 0; in emlxs_dump_word_txtfile()
947 (void) snprintf(buf1, sizeof (buf1), "\n%04x:", j * 4); in emlxs_dump_word_txtfile()
948 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile()
951 (void) snprintf(buf1, sizeof (buf1), " %08x", ptr[j]); in emlxs_dump_word_txtfile()
952 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile()
1384 char *buf1; in emlxs_dump_parm_table() local
1387 buf1 = (char *)kmem_zalloc(8192, KM_SLEEP); in emlxs_dump_parm_table()
1391 (void) snprintf(buf1, 8192, in emlxs_dump_parm_table()
1403 (void) strlcat(buf1, buf2, 8192); in emlxs_dump_parm_table()
[all …]
H A Demlxs_dfc.c442 dfc1->buf1 = (void *)((uintptr_t)dfc32.buf1); in emlxs_dfc_copyin()
473 dfc2->buf1 = 0; in emlxs_dfc_copyin()
483 if (dfc1->buf1_size && dfc1->buf1) { in emlxs_dfc_copyin()
485 dfc2->buf1 = kmem_zalloc(dfc1->buf1_size, KM_SLEEP); in emlxs_dfc_copyin()
487 if (ddi_copyin(dfc1->buf1, dfc2->buf1, dfc1->buf1_size, in emlxs_dfc_copyin()
568 if (dfc2->buf1) { in emlxs_dfc_copyout()
569 if (ddi_copyout(dfc2->buf1, dfc1->buf1, dfc1->buf1_size, in emlxs_dfc_copyout()
578 kmem_free(dfc2->buf1, dfc2->buf1_size); in emlxs_dfc_copyout()
579 dfc2->buf1 = 0; in emlxs_dfc_copyout()
629 dfc32.buf1 = (uint32_t)((uintptr_t)dfc1->buf1); in emlxs_dfc_copyout()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dinput.c40 static char buf1[INET6_ADDRSTRLEN]; variable
98 (void) inet_ntop(from.sin6_family, &from.sin6_addr, buf1, in in_data()
99 sizeof (buf1)); in in_data()
107 rmsg.msg_flags, buf1); in in_data()
115 buf1); in in_data()
144 buf1, sizeof (buf1)); in rip_input()
165 msg->rip6_vers, buf1); in rip_input()
175 buf1); in rip_input()
220 n->rip6_prefix_length, buf1); in rip_input()
234 buf1); in rip_input()
[all …]
H A Dif.c71 char buf1[INET6_ADDRSTRLEN]; in if_dump2() local
115 inet_ntop(AF_INET6, (void *)&ifp->int_addr, buf1, in if_dump2()
116 sizeof (buf1))); in if_dump2()
118 inet_ntop(AF_INET6, (void *)&ifp->int_dstaddr, buf1, in if_dump2()
119 sizeof (buf1))); in if_dump2()
122 inet_ntop(AF_INET6, (void *)&ifp->int_addr, buf1, in if_dump2()
123 sizeof (buf1)), in if_dump2()
H A Dtables.c84 char buf1[INET6_ADDRSTRLEN]; in log_change() local
88 (void) inet_ntop(AF_INET6, (void *) &new->rt_dst, buf1, sizeof (buf1)); in log_change()
95 buf1, buf2, in log_change()
106 char buf1[INET6_ADDRSTRLEN]; in log_single() local
109 (void) inet_ntop(AF_INET6, (void *)&rt->rt_dst, buf1, sizeof (buf1)); in log_single()
113 buf1, buf2, in log_single()
527 char buf1[INET6_ADDRSTRLEN]; in rtdumpentry() local
551 inet_ntop(AF_INET6, (void *)&rt->rt_dst, buf1, sizeof (buf1)), in rtdumpentry()
554 inet_ntop(AF_INET6, (void *)&rt->rt_router, buf1, sizeof (buf1)), in rtdumpentry()
H A Dtrace.c168 char buf1[INET6_ADDRSTRLEN]; in traceaction() local
171 inet_ntop(AF_INET6, (void *)&rt->rt_dst, buf1, in traceaction()
172 sizeof (buf1)), in traceaction()
175 inet_ntop(AF_INET6, (void *)&rt->rt_router, buf1, in traceaction()
176 sizeof (buf1)), in traceaction()
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_proto.c116 int8_t buf1[100]; in ieee80211_dump_pkt() local
120 bzero(buf1, sizeof (buf1)); in ieee80211_dump_pkt()
127 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
130 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
133 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
138 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
141 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
144 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
149 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
152 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgethostent.c79 char *buf1, *buf2; in _nss_ldap_hosts2str_int() local
126 buf1 = first_host; in _nss_ldap_hosts2str_int()
157 len = snprintf(buf1, buflen1, "%s", ips[0]); in _nss_ldap_hosts2str_int()
158 TEST_AND_ADJUST(len, buf1, buflen1, result_host2str); in _nss_ldap_hosts2str_int()
191 len = snprintf(buf1, buflen1, " %s", cname); in _nss_ldap_hosts2str_int()
194 len = snprintf(buf1, buflen1, " %s.%s", cname, in _nss_ldap_hosts2str_int()
197 TEST_AND_ADJUST(len, buf1, buflen1, result_host2str); in _nss_ldap_hosts2str_int()
211 len = snprintf(buf1, buflen1, " %s", in _nss_ldap_hosts2str_int()
215 len = snprintf(buf1, buflen1, " %s.%s", in _nss_ldap_hosts2str_int()
217 TEST_AND_ADJUST(len, buf1, buflen1, in _nss_ldap_hosts2str_int()
/illumos-gate/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c589 char buf1[32]; in show_sockopts() local
627 (void) snprintf(buf1, sizeof (buf1), "SO_LINGER(%d),", in show_sockopts()
629 (void) strlcat(buf, buf1, sizeof (buf)); in show_sockopts()
634 (void) snprintf(buf1, sizeof (buf1), "SO_SNDBUF(%d),", *val); in show_sockopts()
635 (void) strlcat(buf, buf1, sizeof (buf)); in show_sockopts()
640 (void) snprintf(buf1, sizeof (buf1), "SO_RCVBUF(%d),", *val); in show_sockopts()
641 (void) strlcat(buf, buf1, sizeof (buf)); in show_sockopts()
649 (void) snprintf(buf1, sizeof (buf1), "IP_NEXTHOP(%s),", in show_sockopts()
651 (void) strlcat(buf, buf1, sizeof (buf)); in show_sockopts()
/illumos-gate/usr/src/cmd/adbgen/common/
H A Dadbgen4.c42 char buf1[BUFSIZE], buf2[BUFSIZE]; variable
53 gets(buf1); in main()
54 last = buf1; in main()
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c547 char *buf1 = NULL; in get_metaslot_info() local
558 buf1 = malloc(SLOT_DESCRIPTION_SIZE); in get_metaslot_info()
559 if (buf1 == NULL) { in get_metaslot_info()
564 (void) strcpy(buf1, (const char *) puent->metaslot_ks_slot); in get_metaslot_info()
565 *objectstore_slot_info = buf1; in get_metaslot_info()
582 if (buf1 != NULL) { in get_metaslot_info()
583 free(buf1); in get_metaslot_info()
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_strlen2.c6 char buf1[4]; in func() local
12 strcpy(buf1, input1); in func()
H A Dsm_overflow6.c13 char buf1[10]; in main() local
18 sprintf(buf1, "%s", str); in main()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_misc.c40 char buf1[30]; in sctp_display() local
83 (void) mi_sprintf(buf1, "SCTPUnkState(%d)", sctp->sctp_state); in sctp_display()
84 cp = buf1; in sctp_display()
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Ddyn.c1401 Conv_dyn_posflag1_buf_t buf1, buf2; in cmd_body() local
1413 &buf1)); in cmd_body()
1419 &buf1), in cmd_body()
1429 Conv_dyn_flag_buf_t buf1, buf2; in cmd_body() local
1441 &buf1)); in cmd_body()
1447 &buf1), in cmd_body()
1457 Conv_dyn_flag1_buf_t buf1, buf2; in cmd_body() local
1469 0, &buf1)); in cmd_body()
1475 0, &buf1), in cmd_body()
1485 Conv_dyn_feature1_buf_t buf1, buf2; in cmd_body() local
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_rsa.c401 CK_ULONG buf1[16]; in rsa_hash_pkcs_sign() local
446 tmp = (CK_BYTE *)buf1; in rsa_hash_pkcs_sign()
531 CK_ULONG buf1[16]; in rsa_hash_pkcs_verify() local
574 tmp = (CK_BYTE *)buf1; in rsa_hash_pkcs_verify()
656 CK_ULONG buf1[16]; in rsa_hash_pkcs_sign_final() local
693 tmp = (CK_BYTE *)buf1; in rsa_hash_pkcs_sign_final()
738 CK_ULONG buf1[16]; in rsa_hash_pkcs_verify_final() local
773 tmp = (CK_BYTE *)buf1; in rsa_hash_pkcs_verify_final()
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A Dzh_CN.gbk%zh_CN.iso2022-CN.c505 unsigned char buf1 = (unsigned char) (st->keepc[0] & ONEBYTE); in isGB2312Char() local
509 if ((buf1 >= 0xA1 && buf1 <= 0xA9) || \ in isGB2312Char()
510 (buf1 >= 0xB0 && buf1 <= 0xF7)) in isGB2312Char()
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_format.c856 uint32_t *buf0, *buf1; in auimpl_format_setup() local
859 buf1 = kmem_alloc(cnv_max, KM_NOSLEEP); in auimpl_format_setup()
860 if ((buf0 == NULL) || (buf1 == NULL)) { in auimpl_format_setup()
866 if (buf1) in auimpl_format_setup()
867 kmem_free(buf1, cnv_max); in auimpl_format_setup()
877 sp->s_cnv_buf1 = buf1; in auimpl_format_setup()
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dcorenote.c296 sl_fmtbuf_t buf1, buf2; in print_num_2up() local
311 fmt_num(state, fdesc1, fmt_type1, buf1), in print_num_2up()
957 sl_fmtbuf_t buf1, buf2; in dump_prgregset() local
973 fmt_num(state, &fdesc1, SL_FMT_NUM_ZHEX, buf1)); in dump_prgregset()
989 fmt_num(state, &fdesc1, SL_FMT_NUM_ZHEX, buf1), in dump_prgregset()
1360 sl_fmtbuf_t buf1, buf2; in prtpct_2up() local
1369 prtpct_value(state, fdesc1, buf1), in prtpct_2up()
1385 sl_fmtbuf_t buf1, buf2; in print_state_sname_2up() local
1405 fmt_num(state, state_fdesc, SL_FMT_NUM_DEC, buf1), in print_state_sname_2up()
1458 sl_fmtbuf_t buf1, buf2; in dump_lwpsinfo() local
[all …]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptape.c1173 char buf1[3000], buf2[3000]; in changevol() local
1220 (void) snprintf(buf1, sizeof (buf1), gettext( in changevol()
1222 msg(buf1); in changevol()
1223 broadcast(buf1); in changevol()
1273 (void) snprintf(buf1, sizeof (buf1), gettext( in changevol()
1275 msg(buf1); in changevol()
1277 (void) snprintf(buf1, sizeof (buf1), gettext( in changevol()
1280 while (!query(buf1)) { in changevol()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_debug.c151 char buf1[QL_LOG_LENGTH]; in ql_el_msg() local
217 (void) strncpy(buf1, fmt1 + (QL_LOG_LENGTH - 1), left); in ql_el_msg()
246 (void) strncpy(&entry->buf[rval1], &buf1[0], left); in ql_el_msg()
/illumos-gate/usr/src/lib/libstmf/common/
H A Dstore.c1393 char buf1[MAXNAMELEN]; in iPsCreateDeleteGroup() local
1464 if (scf_property_get_name(prop, buf1, sizeof (buf1)) == -1) { in iPsCreateDeleteGroup()
1473 if (strstr(buf1, STMF_MEMBER_LIST_SUFFIX)) { in iPsCreateDeleteGroup()
1478 pgRefName, buf1, scf_strerror(scf_error())); in iPsCreateDeleteGroup()
1485 pgRefName, buf1, scf_strerror(scf_error())); in iPsCreateDeleteGroup()
1520 if (snprintf(buf1, sizeof (buf1), "%s-%lld", in iPsCreateDeleteGroup()
1521 STMF_GROUP_PREFIX, groupIdx) > sizeof (buf1)) { in iPsCreateDeleteGroup()
1524 buf1); in iPsCreateDeleteGroup()
1528 if (scf_pg_get_property(pg, buf1, prop) == -1) { in iPsCreateDeleteGroup()
1531 "failed - %s", pgRefName, buf1, in iPsCreateDeleteGroup()
[all …]
/illumos-gate/usr/src/cmd/refer/
H A Drefer6.c32 char buf1[BUFSIZ], buf2[50]; in putref() local
61 tx = caps(tx, buf1); in putref()
/illumos-gate/usr/src/uts/common/io/
H A Dopenprom.c1156 char *propname, *propval, *buf1, *buf2; in oprom_copyprop() local
1182 buf1 = kmem_alloc(OBP_MAXPROPNAME, KM_SLEEP); in oprom_copyprop()
1184 buf1[0] = '\0'; in oprom_copyprop()
1185 while (propname = (char *)prom_nextprop(nodeid, buf1, buf2)) { in oprom_copyprop()
1188 (void) strcpy(buf1, propname); in oprom_copyprop()
1205 kmem_free(buf1, OBP_MAXPROPNAME); in oprom_copyprop()
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c265 res_queriesmatch(const u_char *buf1, const u_char *eom1, in res_queriesmatch() argument
268 const u_char *cp = buf1 + HFIXEDSZ; in res_queriesmatch()
269 int qdcount = ntohs(((const HEADER*)buf1)->qdcount); in res_queriesmatch()
271 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) in res_queriesmatch()
278 if ((((const HEADER *)buf1)->opcode == ns_o_update) && in res_queriesmatch()
288 n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()

123