Home
last modified time | relevance | path

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

123

/titanic_44/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dump.c921 char buf1[256]; in emlxs_dump_word_txtfile() local
937 buf1[0] = 0; in emlxs_dump_word_txtfile()
941 (void) snprintf(buf1, sizeof (buf1), "\n%04x:", j * 4); in emlxs_dump_word_txtfile()
942 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile()
945 (void) snprintf(buf1, sizeof (buf1), " %08x", ptr[j]); in emlxs_dump_word_txtfile()
946 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile()
1378 char *buf1; in emlxs_dump_parm_table() local
1381 buf1 = (char *)kmem_zalloc(8192, KM_SLEEP); in emlxs_dump_parm_table()
1385 (void) snprintf(buf1, 8192, in emlxs_dump_parm_table()
1397 (void) strlcat(buf1, buf2, 8192); in emlxs_dump_parm_table()
[all …]
H A Demlxs_dfc.c441 dfc1->buf1 = (void *)((uintptr_t)dfc32.buf1); in emlxs_dfc_copyin()
472 dfc2->buf1 = 0; in emlxs_dfc_copyin()
482 if (dfc1->buf1_size && dfc1->buf1) { in emlxs_dfc_copyin()
484 dfc2->buf1 = kmem_zalloc(dfc1->buf1_size, KM_SLEEP); in emlxs_dfc_copyin()
486 if (ddi_copyin(dfc1->buf1, dfc2->buf1, dfc1->buf1_size, in emlxs_dfc_copyin()
567 if (dfc2->buf1) { in emlxs_dfc_copyout()
568 if (ddi_copyout(dfc2->buf1, dfc1->buf1, dfc1->buf1_size, in emlxs_dfc_copyout()
577 kmem_free(dfc2->buf1, dfc2->buf1_size); in emlxs_dfc_copyout()
578 dfc2->buf1 = 0; in emlxs_dfc_copyout()
628 dfc32.buf1 = (uint32_t)((uintptr_t)dfc1->buf1); in emlxs_dfc_copyout()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dinput.c42 static char buf1[INET6_ADDRSTRLEN]; variable
100 (void) inet_ntop(from.sin6_family, &from.sin6_addr, buf1, in in_data()
101 sizeof (buf1)); in in_data()
109 rmsg.msg_flags, buf1); in in_data()
117 buf1); in in_data()
146 buf1, sizeof (buf1)); in rip_input()
167 msg->rip6_vers, buf1); in rip_input()
177 buf1); in rip_input()
222 n->rip6_prefix_length, buf1); in rip_input()
236 buf1); in rip_input()
[all …]
H A Dif.c73 char buf1[INET6_ADDRSTRLEN]; in if_dump2() local
117 inet_ntop(AF_INET6, (void *)&ifp->int_addr, buf1, in if_dump2()
118 sizeof (buf1))); in if_dump2()
120 inet_ntop(AF_INET6, (void *)&ifp->int_dstaddr, buf1, in if_dump2()
121 sizeof (buf1))); in if_dump2()
124 inet_ntop(AF_INET6, (void *)&ifp->int_addr, buf1, in if_dump2()
125 sizeof (buf1)), in if_dump2()
H A Dtables.c86 char buf1[INET6_ADDRSTRLEN]; in log_change() local
90 (void) inet_ntop(AF_INET6, (void *) &new->rt_dst, buf1, sizeof (buf1)); in log_change()
97 buf1, buf2, in log_change()
108 char buf1[INET6_ADDRSTRLEN]; in log_single() local
111 (void) inet_ntop(AF_INET6, (void *)&rt->rt_dst, buf1, sizeof (buf1)); in log_single()
115 buf1, buf2, in log_single()
529 char buf1[INET6_ADDRSTRLEN]; in rtdumpentry() local
553 inet_ntop(AF_INET6, (void *)&rt->rt_dst, buf1, sizeof (buf1)), in rtdumpentry()
556 inet_ntop(AF_INET6, (void *)&rt->rt_router, buf1, sizeof (buf1)), in rtdumpentry()
H A Dtrace.c170 char buf1[INET6_ADDRSTRLEN]; in traceaction() local
173 inet_ntop(AF_INET6, (void *)&rt->rt_dst, buf1, in traceaction()
174 sizeof (buf1)), in traceaction()
177 inet_ntop(AF_INET6, (void *)&rt->rt_router, buf1, in traceaction()
178 sizeof (buf1)), in traceaction()
/titanic_44/usr/src/uts/common/io/net80211/
H A Dnet80211_proto.c112 int8_t buf1[100]; in ieee80211_dump_pkt() local
116 bzero(buf1, sizeof (buf1)); in ieee80211_dump_pkt()
123 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
126 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
129 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
134 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
137 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
140 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
145 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
148 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
[all …]
/titanic_44/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c63 int buf1[MAXBUF]; variable
242 r = pwrite(fd, buf1, bufsize, (off_t)(seekpos << SCTRSHFT)); in do_sdtest1()
285 gen_data(buf1, bufsize); in do_sdtest2()
286 r = pwrite(fd, buf1, bufsize, (off_t)(seekpos << SCTRSHFT)); in do_sdtest2()
298 if (memcmp(buf1, buf2, bufsize)) { in do_sdtest2()
323 gen_data(buf1, bufsize); in do_sdtest3()
332 r = pwrite(fd, buf1, bufsize, (off_t)(seekpos[i] << SCTRSHFT)); in do_sdtest3()
347 if (memcmp(buf1, buf2, bufsize)) { in do_sdtest3()
386 r = pwrite(fd, buf1, bufsize, (i*fba_num_bufsize) << SCTRSHFT); in do_sdtest4()
400 r = pwrite(fd, buf1, bufsize, (i*fba_num_bufsize) << SCTRSHFT); in do_sdtest4()
[all …]
/titanic_44/usr/src/lib/nsswitch/ldap/common/
H A Dgethostent.c81 char *buf1, *buf2; in _nss_ldap_hosts2str_int() local
128 buf1 = first_host; in _nss_ldap_hosts2str_int()
159 len = snprintf(buf1, buflen1, "%s", ips[0]); in _nss_ldap_hosts2str_int()
160 TEST_AND_ADJUST(len, buf1, buflen1, result_host2str); in _nss_ldap_hosts2str_int()
193 len = snprintf(buf1, buflen1, " %s", cname); in _nss_ldap_hosts2str_int()
196 len = snprintf(buf1, buflen1, " %s.%s", cname, in _nss_ldap_hosts2str_int()
199 TEST_AND_ADJUST(len, buf1, buflen1, result_host2str); in _nss_ldap_hosts2str_int()
213 len = snprintf(buf1, buflen1, " %s", in _nss_ldap_hosts2str_int()
217 len = snprintf(buf1, buflen1, " %s.%s", in _nss_ldap_hosts2str_int()
219 TEST_AND_ADJUST(len, buf1, buflen1, in _nss_ldap_hosts2str_int()
/titanic_44/usr/src/cmd/adbgen/common/
H A Dadbgen4.c44 char buf1[BUFSIZE], buf2[BUFSIZE]; variable
55 gets(buf1); in main()
56 last = buf1; in main()
/titanic_44/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c605 char buf1[32]; in show_sockopts() local
644 (void) snprintf(buf1, sizeof (buf1), "SO_LINGER(%d),", in show_sockopts()
646 (void) strlcat(buf, buf1, sizeof (buf)); in show_sockopts()
651 (void) snprintf(buf1, sizeof (buf1), "SO_SNDBUF(%d),", val); in show_sockopts()
652 (void) strlcat(buf, buf1, sizeof (buf)); in show_sockopts()
656 (void) snprintf(buf1, sizeof (buf1), "SO_RCVBUF(%d),", val); in show_sockopts()
657 (void) strlcat(buf, buf1, sizeof (buf)); in show_sockopts()
665 (void) snprintf(buf1, sizeof (buf1), "IP_NEXTHOP(%s),", in show_sockopts()
667 (void) strlcat(buf, buf1, sizeof (buf)); in show_sockopts()
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dbsd-snprintf.c665 char buf1[LONG_STRING]; in main() local
717 snprintf(buf1, sizeof (buf1), fp_fmt[x], fp_nums[y]); in main()
719 if (strcmp (buf1, buf2)) { in main()
722 fp_fmt[x], buf1, buf2); in main()
730 snprintf(buf1, sizeof (buf1), int_fmt[x], int_nums[y]); in main()
732 if (strcmp (buf1, buf2)) { in main()
735 int_fmt[x], buf1, buf2); in main()
/titanic_44/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()
/titanic_44/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()
/titanic_44/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()
/titanic_44/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 …]
/titanic_44/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()
/titanic_44/usr/src/cmd/sgs/elfdump/common/
H A Dcorenote.c260 sl_fmtbuf_t buf1, buf2; in print_num_2up() local
275 fmt_num(state, fdesc1, fmt_type1, buf1), in print_num_2up()
858 sl_fmtbuf_t buf1, buf2; in dump_prgregset() local
874 fmt_num(state, &fdesc1, SL_FMT_NUM_ZHEX, buf1)); in dump_prgregset()
890 fmt_num(state, &fdesc1, SL_FMT_NUM_ZHEX, buf1), in dump_prgregset()
1246 sl_fmtbuf_t buf1, buf2; in prtpct_2up() local
1255 prtpct_value(state, fdesc1, buf1), in prtpct_2up()
1271 sl_fmtbuf_t buf1, buf2; in print_state_sname_2up() local
1291 fmt_num(state, state_fdesc, SL_FMT_NUM_DEC, buf1), in print_state_sname_2up()
1344 sl_fmtbuf_t buf1, buf2; in dump_lwpsinfo() local
[all …]
/titanic_44/usr/src/cmd/backup/dump/
H A Ddumptape.c1247 char buf1[3000], buf2[3000]; in changevol() local
1294 (void) snprintf(buf1, sizeof (buf1), gettext( in changevol()
1296 msg(buf1); in changevol()
1297 broadcast(buf1); in changevol()
1347 (void) snprintf(buf1, sizeof (buf1), gettext( in changevol()
1349 msg(buf1); in changevol()
1351 (void) snprintf(buf1, sizeof (buf1), gettext( in changevol()
1354 while (!query(buf1)) { in changevol()
/titanic_44/usr/src/cmd/refer/
H A Drefer6.c34 char buf1[BUFSIZ], buf2[50]; in putref() local
63 tx = caps(tx, buf1); in putref()
/titanic_44/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 …]
/titanic_44/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c267 res_queriesmatch(const u_char *buf1, const u_char *eom1, in res_queriesmatch() argument
270 const u_char *cp = buf1 + HFIXEDSZ; in res_queriesmatch()
271 int qdcount = ntohs(((const HEADER*)buf1)->qdcount); in res_queriesmatch()
273 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2) in res_queriesmatch()
280 if ((((const HEADER *)buf1)->opcode == ns_o_update) && in res_queriesmatch()
290 n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()
/titanic_44/usr/src/cmd/diff/
H A Ddiff.c224 char buf1[BUFSIZ], buf2[BUFSIZ]; in main() local
419 i = fread(buf1, 1, BUFSIZ, input[0]); in main()
436 while (i = fread(buf1, 1, BUFSIZ, input[0])) in main()
437 (void) fwrite(buf1, 1, i, stdout); in main()
445 if (buf1[j] != buf2[j]) in main()
1457 char buf1[BUFSIZ], buf2[BUFSIZ]; in compare() local
1519 if ((i = readlink(file1, buf1, BUFSIZ)) == -1) { in compare()
1532 if (strncmp(buf1, buf2, i) == 0) in compare()
1579 i = read(f1, buf1, BUFSIZ); in compare()
1593 if (buf1[j] != buf2[j]) in compare()
/titanic_44/usr/src/uts/common/io/
H A Dopenprom.c1258 char *propname, *propval, *buf1, *buf2; in oprom_copyprop() local
1284 buf1 = kmem_alloc(OBP_MAXPROPNAME, KM_SLEEP); in oprom_copyprop()
1286 buf1[0] = '\0'; in oprom_copyprop()
1287 while (propname = (char *)prom_nextprop(nodeid, buf1, buf2)) { in oprom_copyprop()
1290 (void) strcpy(buf1, propname); in oprom_copyprop()
1307 kmem_free(buf1, OBP_MAXPROPNAME); in oprom_copyprop()
/titanic_44/usr/src/uts/common/io/scsi/impl/
H A Dscsi_subr.c1102 static char buf1[SCSI_ERRMSG_BUF_LEN]; in scsi_generic_errmsg() local
1190 bzero(buf1, SCSI_ERRMSG_BUF_LEN); in scsi_generic_errmsg()
1191 (void) sprintf(&buf1[strlen(buf1)], in scsi_generic_errmsg()
1195 buflen = strlen(buf1); in scsi_generic_errmsg()
1199 (void) sprintf(&buf1[buflen], in scsi_generic_errmsg()
1202 (void) sprintf(&buf1[buflen], in scsi_generic_errmsg()
1206 label, CE_CONT, "%s\n", buf1); in scsi_generic_errmsg()

123