/titanic_41/usr/src/cmd/abi/spectrans/parser/ |
H A D | extends.c | 52 char *localvalue = NULL, *buf2 = NULL; in do_extends() local 122 while (M.mi_nlines = readline(&buf2, efp)) { in do_extends() 125 if (!non_empty(buf2)) { /* is line non empty */ in do_extends() 126 free(buf2); in do_extends() 127 buf2 = NULL; in do_extends() 130 p = realloc(localvalue, sizeof (char)*(strlen(buf2)+1)); in do_extends() 136 split(buf2, key, localvalue); in do_extends() 142 free(buf2); in do_extends() 143 buf2 = NULL; in do_extends() 194 free(buf2); in do_extends() [all …]
|
H A D | frontend.c | 161 char *buf2 = NULL; in read_spec() local 205 while (meta_info.mi_nlines = readline(&buf2, spec_fp)) { in read_spec() 208 if (!non_empty(buf2)) { in read_spec() 209 free(buf2); in read_spec() 210 buf2 = NULL; in read_spec() 213 p = realloc(value, sizeof (char)*(strlen(buf2)+1)); in read_spec() 220 split(buf2, key, value); in read_spec() 309 free(buf2); in read_spec() 310 buf2 = NULL; in read_spec()
|
/titanic_41/usr/src/uts/common/io/net80211/ |
H A D | net80211_proto.c | 113 int8_t buf2[25]; in ieee80211_dump_pkt() local 117 bzero(buf2, sizeof (buf2)); in ieee80211_dump_pkt() 121 (void) snprintf(buf2, sizeof (buf2), "NODS %s", in ieee80211_dump_pkt() 123 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt() 124 (void) snprintf(buf2, sizeof (buf2), "->%s", in ieee80211_dump_pkt() 126 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt() 127 (void) snprintf(buf2, sizeof (buf2), "(%s)", in ieee80211_dump_pkt() 129 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt() 132 (void) snprintf(buf2, sizeof (buf2), "TODS %s", in ieee80211_dump_pkt() 134 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_mkupdate.c | 89 char buf2[MAXDNAME]; in res_nmkupdate() local 211 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 213 if (!inet_aton(buf2, &ina)) in res_nmkupdate() 226 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 228 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_nmkupdate() 238 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate() 241 n = dn_comp(buf2, cp, buflen, in res_nmkupdate() 280 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 282 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_nmkupdate() 307 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() [all …]
|
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_dump.c | 922 char buf2[256]; in emlxs_dump_word_txtfile() local 938 buf2[0] = 0; in emlxs_dump_word_txtfile() 942 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile() 946 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile() 947 (void) emlxs_fwrite((uint8_t *)buf2, strlen(buf2), 1, in emlxs_dump_word_txtfile() 1379 char *buf2; in emlxs_dump_parm_table() local 1382 buf2 = (char *)kmem_zalloc(8192, KM_SLEEP); in emlxs_dump_parm_table() 1391 (void) snprintf(buf2, 8192, in emlxs_dump_parm_table() 1397 (void) strlcat(buf1, buf2, 8192); in emlxs_dump_parm_table() 1409 kmem_free(buf2, 8192); in emlxs_dump_parm_table() [all …]
|
/titanic_41/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | rename.c | 33 char buf2[256]; in rename() local 38 strcpy(buf2, path2); in rename() 39 strcat(buf2, "x"); in rename() 40 path2 = buf2; in rename() 43 strcpy(buf2, path2); in rename() 44 strcat(buf2, "x"); in rename() 45 path2 = buf2; in rename()
|
/titanic_41/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | rename.c | 34 char buf2[256]; in rename() local 47 strcpy(buf2, path2); in rename() 48 strcat(buf2, "x"); in rename() 49 path2 = buf2; in rename() 52 strcpy(buf2, path2); in rename() 53 strcat(buf2, "x"); in rename() 54 path2 = buf2; in rename()
|
/titanic_41/usr/src/cmd/fs.d/nfs/rp_basic/ |
H A D | libnfs_basic.c | 103 char *p, *sp, *dp, buf2[SYMLINK_MAX]; in get_fs_locations() local 167 dp = buf2; in get_fs_locations() 168 bzero(buf2, sizeof (buf2)); in get_fs_locations() 192 printf("get_fs_locations: host %s\n", buf2); in get_fs_locations() 208 str_to_utf8(buf2, in get_fs_locations() 211 dp = buf2; in get_fs_locations() 212 bzero(buf2, sizeof (buf2)); in get_fs_locations() 220 printf("get_fs_locations: path %s\n", buf2); in get_fs_locations() 222 (void) make_pathname4(buf2, &fsl_array[i].rootpath); in get_fs_locations() 225 dp = buf2; in get_fs_locations() [all …]
|
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | asn1.c | 896 CK_BYTE *buf2 = NULL; in ber_encode_RSAPrivateKey() local 955 rc = ber_encode_INTEGER(FALSE, &buf2, &len, version, sizeof (version)); in ber_encode_RSAPrivateKey() 959 (void) memcpy(buf + offset, buf2, len); in ber_encode_RSAPrivateKey() 961 free(buf2); in ber_encode_RSAPrivateKey() 963 rc = ber_encode_INTEGER(FALSE, &buf2, &len, in ber_encode_RSAPrivateKey() 968 (void) memcpy(buf + offset, buf2, len); in ber_encode_RSAPrivateKey() 970 free(buf2); in ber_encode_RSAPrivateKey() 972 rc = ber_encode_INTEGER(FALSE, &buf2, &len, in ber_encode_RSAPrivateKey() 977 (void) memcpy(buf + offset, buf2, len); in ber_encode_RSAPrivateKey() 979 free(buf2); in ber_encode_RSAPrivateKey() [all …]
|
/titanic_41/usr/src/cmd/avs/sdbc/ |
H A D | sd_diag.c | 64 int buf2[MAXBUF]; variable 252 r = pread(fd, buf2, bufsize, (off_t)(seekpos << SCTRSHFT)); in do_sdtest1() 292 r = pread(fd, buf2, bufsize, (off_t)(seekpos << SCTRSHFT)); in do_sdtest2() 298 if (memcmp(buf1, buf2, bufsize)) { in do_sdtest2() 340 buf2[0] = '\0'; /* clear buf to make sure something is read */ in do_sdtest3() 341 r = pread(fd, buf2, bufsize, (off_t)(seekpos[i] << SCTRSHFT)); in do_sdtest3() 347 if (memcmp(buf1, buf2, bufsize)) { in do_sdtest3() 379 r = pread(fd, buf2, bufsize, (i*fba_num_bufsize) << SCTRSHFT); in do_sdtest4() 393 r = pread(fd, buf2, bufsize, (i*fba_num_bufsize) << SCTRSHFT); in do_sdtest4() 439 buf2[0] = '\0'; /* clear buf to make sure something is read */ in do_sdtest5() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | input.c | 43 static char buf2[INET6_ADDRSTRLEN]; variable 234 (void *)&n->rip6_prefix, buf2, in rip_input() 235 sizeof (buf2)), in rip_input() 347 buf2, sizeof (buf2)), in rip_input() 374 buf2, sizeof (buf2)), in rip_input() 418 (void *)&n->rip6_prefix, buf2, in rip_input() 419 sizeof (buf2)), in rip_input()
|
H A D | tables.c | 87 char buf2[INET6_ADDRSTRLEN]; in log_change() local 91 (void) inet_ntop(AF_INET6, (void *) &orig->rt_router, buf2, in log_change() 92 sizeof (buf2)); in log_change() 97 buf1, buf2, in log_change() 109 char buf2[INET6_ADDRSTRLEN]; in log_single() local 112 (void) inet_ntop(AF_INET6, (void *)&rt->rt_router, buf2, sizeof (buf2)); in log_single() 115 buf1, buf2, in log_single()
|
/titanic_41/usr/src/cmd/hal/hald/ |
H A D | device_info.c | 1197 char buf2[256]; in end() local 1223 strncpy (buf2, existing_string, sizeof (buf2)); in end() 1224 strncat (buf2, buf, sizeof (buf2) - strlen(buf2)); in end() 1226 strncpy (buf2, buf, sizeof (buf2)); in end() 1228 hal_device_property_set_string (pc->device, pc->merge_key, buf2); in end() 1235 char buf2[256]; in end() local 1261 strncpy (buf2, buf, sizeof (buf2)); in end() 1262 strncat (buf2, existing_string, sizeof (buf2) - strlen(buf2)); in end() 1264 strncpy (buf2, buf, sizeof (buf2)); in end() 1266 hal_device_property_set_string (pc->device, pc->merge_key, buf2); in end()
|
/titanic_41/usr/src/lib/nsswitch/ldap/common/ |
H A D | getnetent.c | 150 static int nettoa(int anet, char *buf, char *buf2, int buflen) in nettoa() argument 156 if (buf == NULL || buf2 == NULL) in nettoa() 161 if (inet_ntop(AF_INET, (const void *)&in, buf2, INET_ADDRSTRLEN) in nettoa() 164 if (strlcpy(buf, buf2, buflen) >= buflen) in nettoa()
|
H A D | gethostent.c | 81 char *buf1, *buf2; in _nss_ldap_hosts2str_int() local 129 buf2 = other_hosts; in _nss_ldap_hosts2str_int() 162 len = snprintf(buf2, buflen2, "\n%s ", ips[0]); in _nss_ldap_hosts2str_int() 163 TEST_AND_ADJUST(len, buf2, buflen2, result_host2str); in _nss_ldap_hosts2str_int()
|
/titanic_41/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_verify.c | 236 u_char buf2[MAXDNAME]; in ns_verify() local 253 n = ns_name_pton(name, buf2, sizeof(buf2)); in ns_verify() 256 n = ns_name_ntol(buf2, buf, sizeof(buf)); in ns_verify() 267 n = ns_name_pton(alg, buf2, sizeof(buf2)); in ns_verify() 270 n = ns_name_ntol(buf2, buf, sizeof(buf)); in ns_verify()
|
/titanic_41/usr/src/lib/libcryptoutil/common/ |
H A D | config_parsing.c | 548 char *buf2 = NULL; in get_metaslot_info() local 567 buf2 = malloc(TOKEN_LABEL_SIZE); in get_metaslot_info() 573 (void) strcpy(buf2, (const char *) puent->metaslot_ks_token); in get_metaslot_info() 574 *objectstore_token_info = buf2; in get_metaslot_info() 585 if (buf2 != NULL) { in get_metaslot_info() 586 free(buf2); in get_metaslot_info()
|
/titanic_41/usr/src/cmd/adbgen/common/ |
H A D | adbgen4.c | 44 char buf1[BUFSIZE], buf2[BUFSIZE]; variable 57 cur = buf2; in main()
|
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | bsd-snprintf.c | 666 char buf2[LONG_STRING]; in main() local 718 sprintf (buf2, fp_fmt[x], fp_nums[y]); in main() 719 if (strcmp (buf1, buf2)) { in main() 722 fp_fmt[x], buf1, buf2); in main() 731 sprintf(buf2, int_fmt[x], int_nums[y]); in main() 732 if (strcmp (buf1, buf2)) { in main() 735 int_fmt[x], buf1, buf2); in main()
|
/titanic_41/usr/src/lib/libsysevent/ |
H A D | libevchannel.c | 863 char *buf2 = NULL; /* allocated if stack buf too small */ in sysevent_evc_getpropnvl() local 888 (buf2 == NULL || uargs.generation != expgen)) { in sysevent_evc_getpropnvl() 889 if (buf2 != NULL) in sysevent_evc_getpropnvl() 890 free(buf2); in sysevent_evc_getpropnvl() 895 bufp = buf2 = malloc(sz); in sysevent_evc_getpropnvl() 897 if (buf2 == NULL) in sysevent_evc_getpropnvl() 913 if (buf2 != NULL) in sysevent_evc_getpropnvl() 914 free(buf2); in sysevent_evc_getpropnvl()
|
/titanic_41/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_dyndns.c | 1019 char buf[MAX_TCP_SIZE], buf2[MAX_TCP_SIZE]; in dyndns_establish_sec_ctx() local 1101 bzero(buf2, MAX_TCP_SIZE); in dyndns_establish_sec_ctx() 1102 if (recv(s, buf2, MAX_TCP_SIZE, 0) == -1) { in dyndns_establish_sec_ctx() 1108 ret = buf2[5] & 0xf; /* error field in TCP */ in dyndns_establish_sec_ctx() 1115 tmpptr = &buf2[2]; in dyndns_establish_sec_ctx() 1122 tmpptr = &buf2[59+(strlen(key_name)+2)*2]; in dyndns_establish_sec_ctx() 1127 in_tok.value = &buf2[61+(strlen(key_name)+2)*2]; in dyndns_establish_sec_ctx() 1552 char buf[NS_PACKETSZ], buf2[NS_PACKETSZ]; in dyndns_sec_add_remove_entry() local 1620 if (dyndns_udp_send_recv(s2, buf, buf_sz, buf2)) { in dyndns_sec_add_remove_entry() 1632 ret = buf2[3] & 0xf; /* error field in UDP */ in dyndns_sec_add_remove_entry() [all …]
|
/titanic_41/usr/src/lib/print/libpapi-dynamic/common/ |
H A D | nss.c | 92 char buf[128], buf2[128]; in solaris_lpsched_shortcircuit_hack() local 129 snprintf(buf2, sizeof (buf2), "/etc/lp/classes/%s", printer); in solaris_lpsched_shortcircuit_hack() 130 if ((access(buf, F_OK) < 0) && (access(buf2, F_OK) < 0)) { in solaris_lpsched_shortcircuit_hack()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | parms.c | 612 char buf[PARMS_MAXLINELEN], buf2[PARMS_MAXLINELEN]; in parse_parms() local 860 if (0 > parse_quote(&p, "|", &delim, buf2, in parse_parms() 861 sizeof (buf2)) || !gethost(buf2, &addr)) in parse_parms() 872 0 > parse_quote(&p, "|", &delim, buf2, in parse_parms() 873 sizeof (buf2)) || in parse_parms() 874 !getnet(buf2, &tg->tgate_nets[i].net, in parse_parms()
|
/titanic_41/usr/src/cmd/fs.d/udfs/mkfs/ |
H A D | mkfs.c | 158 static char buf2[MAXBSIZE]; variable 567 bzero(buf2, sectorsize); in wtvolseq() 569 maketag(tp, (struct tag *)buf2); in wtvolseq() 574 wtfs(blk1, sectorsize, buf2); in wtvolseq() 892 bzero(buf2, sectorsize); in volseqinit() 894 maketag(tp, (struct tag *)buf2); in volseqinit() 895 wtfs(nextblock, sectorsize, buf2); in volseqinit() 900 maketag(tp, (struct tag *)buf2); in volseqinit() 901 wtfs(fssize, sectorsize, buf2); in volseqinit()
|
/titanic_41/usr/src/cmd/sgs/elfdump/common/ |
H A D | corenote.c | 260 sl_fmtbuf_t buf1, buf2; in print_num_2up() local 277 fmt_num(state, fdesc2, fmt_type2, buf2)); in print_num_2up() 858 sl_fmtbuf_t buf1, buf2; in dump_prgregset() local 894 fmt_num(state, &fdesc2, SL_FMT_NUM_ZHEX, buf2)); in dump_prgregset() 1246 sl_fmtbuf_t buf1, buf2; in prtpct_2up() local 1257 prtpct_value(state, fdesc2, buf2)); in prtpct_2up() 1271 sl_fmtbuf_t buf1, buf2; in print_state_sname_2up() local 1285 buf2[0] = sname; in print_state_sname_2up() 1286 buf2[1] = '\0'; in print_state_sname_2up() 1293 buf2); in print_state_sname_2up() [all …]
|