Home
last modified time | relevance | path

Searched refs:buf2 (Results 1 – 25 of 69) sorted by relevance

123

/illumos-gate/usr/src/cmd/abi/spectrans/parser/
H A Dextends.c50 char *localvalue = NULL, *buf2 = NULL; in do_extends() local
120 while (M.mi_nlines = readline(&buf2, efp)) { in do_extends()
123 if (!non_empty(buf2)) { /* is line non empty */ in do_extends()
124 free(buf2); in do_extends()
125 buf2 = NULL; in do_extends()
128 p = realloc(localvalue, sizeof (char)*(strlen(buf2)+1)); in do_extends()
134 split(buf2, key, localvalue); in do_extends()
140 free(buf2); in do_extends()
141 buf2 = NULL; in do_extends()
192 free(buf2); in do_extends()
[all …]
H A Dfrontend.c159 char *buf2 = NULL; in read_spec() local
203 while (meta_info.mi_nlines = readline(&buf2, spec_fp)) { in read_spec()
206 if (!non_empty(buf2)) { in read_spec()
207 free(buf2); in read_spec()
208 buf2 = NULL; in read_spec()
211 p = realloc(value, sizeof (char)*(strlen(buf2)+1)); in read_spec()
218 split(buf2, key, value); in read_spec()
307 free(buf2); in read_spec()
308 buf2 = NULL; in read_spec()
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_proto.c117 int8_t buf2[25]; in ieee80211_dump_pkt() local
121 bzero(buf2, sizeof (buf2)); in ieee80211_dump_pkt()
125 (void) snprintf(buf2, sizeof (buf2), "NODS %s", in ieee80211_dump_pkt()
127 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
128 (void) snprintf(buf2, sizeof (buf2), "->%s", in ieee80211_dump_pkt()
130 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
131 (void) snprintf(buf2, sizeof (buf2), "(%s)", in ieee80211_dump_pkt()
133 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
136 (void) snprintf(buf2, sizeof (buf2), "TODS %s", in ieee80211_dump_pkt()
138 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c85 char buf2[MAXDNAME]; in res_nmkupdate() local
207 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
209 if (!inet_aton(buf2, &ina)) in res_nmkupdate()
222 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
224 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_nmkupdate()
234 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
237 n = dn_comp(buf2, cp, buflen, in res_nmkupdate()
276 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
278 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_nmkupdate()
303 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dump.c928 char buf2[256]; in emlxs_dump_word_txtfile() local
944 buf2[0] = 0; in emlxs_dump_word_txtfile()
948 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile()
952 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile()
953 (void) emlxs_fwrite((uint8_t *)buf2, strlen(buf2), 1, in emlxs_dump_word_txtfile()
1385 char *buf2; in emlxs_dump_parm_table() local
1388 buf2 = (char *)kmem_zalloc(8192, KM_SLEEP); in emlxs_dump_parm_table()
1397 (void) snprintf(buf2, 8192, in emlxs_dump_parm_table()
1403 (void) strlcat(buf1, buf2, 8192); in emlxs_dump_parm_table()
1415 kmem_free(buf2, 8192); in emlxs_dump_parm_table()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/rp_basic/
H A Dlibnfs_basic.c103 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 …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dasn1.c896 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 …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dinput.c41 static char buf2[INET6_ADDRSTRLEN]; variable
232 (void *)&n->rip6_prefix, buf2, in rip_input()
233 sizeof (buf2)), in rip_input()
345 buf2, sizeof (buf2)), in rip_input()
372 buf2, sizeof (buf2)), in rip_input()
416 (void *)&n->rip6_prefix, buf2, in rip_input()
417 sizeof (buf2)), in rip_input()
H A Dtables.c85 char buf2[INET6_ADDRSTRLEN]; in log_change() local
89 (void) inet_ntop(AF_INET6, (void *) &orig->rt_router, buf2, in log_change()
90 sizeof (buf2)); in log_change()
95 buf1, buf2, in log_change()
107 char buf2[INET6_ADDRSTRLEN]; in log_single() local
110 (void) inet_ntop(AF_INET6, (void *)&rt->rt_router, buf2, sizeof (buf2)); in log_single()
113 buf1, buf2, in log_single()
/illumos-gate/usr/src/cmd/hal/hald/
H A Ddevice_info.c1197 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()
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_strlen2.c7 char buf2[4]; in func() local
15 strcpy(buf2, input2); in func()
H A Dsm_array_overflow4.c12 char buf[4], buf2[4]; in main() local
27 strcpy(buf2, arg0); in main()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_verify.c230 u_char buf2[MAXDNAME]; in ns_verify() local
247 n = ns_name_pton(name, buf2, sizeof(buf2)); in ns_verify()
250 n = ns_name_ntol(buf2, buf, sizeof(buf)); in ns_verify()
261 n = ns_name_pton(alg, buf2, sizeof(buf2)); in ns_verify()
264 n = ns_name_ntol(buf2, buf, sizeof(buf)); in ns_verify()
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetnetent.c148 static int nettoa(int anet, char *buf, char *buf2, int buflen) in nettoa() argument
154 if (buf == NULL || buf2 == NULL) in nettoa()
159 if (inet_ntop(AF_INET, (const void *)&in, buf2, INET_ADDRSTRLEN) in nettoa()
162 if (strlcpy(buf, buf2, buflen) >= buflen) in nettoa()
H A Dgethostent.c79 char *buf1, *buf2; in _nss_ldap_hosts2str_int() local
127 buf2 = other_hosts; in _nss_ldap_hosts2str_int()
160 len = snprintf(buf2, buflen2, "\n%s ", ips[0]); in _nss_ldap_hosts2str_int()
161 TEST_AND_ADJUST(len, buf2, buflen2, result_host2str); in _nss_ldap_hosts2str_int()
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c548 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()
/illumos-gate/usr/src/lib/libsysevent/
H A Dlibevchannel.c863 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()
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_dyndns.c1019 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 …]
/illumos-gate/usr/src/cmd/adbgen/common/
H A Dadbgen4.c42 char buf1[BUFSIZE], buf2[BUFSIZE]; variable
55 cur = buf2; in main()
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Dnss.c92 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()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dparms.c612 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()
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/
H A Dmkfs.c158 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()
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dcorenote.c296 sl_fmtbuf_t buf1, buf2; in print_num_2up() local
313 fmt_num(state, fdesc2, fmt_type2, buf2)); in print_num_2up()
957 sl_fmtbuf_t buf1, buf2; in dump_prgregset() local
993 fmt_num(state, &fdesc2, SL_FMT_NUM_ZHEX, buf2)); in dump_prgregset()
1360 sl_fmtbuf_t buf1, buf2; in prtpct_2up() local
1371 prtpct_value(state, fdesc2, buf2)); in prtpct_2up()
1385 sl_fmtbuf_t buf1, buf2; in print_state_sname_2up() local
1399 buf2[0] = sname; in print_state_sname_2up()
1400 buf2[1] = '\0'; in print_state_sname_2up()
1407 buf2); in print_state_sname_2up()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Ddyn.c1401 Conv_dyn_posflag1_buf_t buf1, buf2; in cmd_body() local
1420 conv_dyn_posflag1(flags, 0, &buf2)); in cmd_body()
1429 Conv_dyn_flag_buf_t buf1, buf2; in cmd_body() local
1448 conv_dyn_flag(flags, 0, &buf2)); in cmd_body()
1457 Conv_dyn_flag1_buf_t buf1, buf2; in cmd_body() local
1476 conv_dyn_flag1(flags1, 0, &buf2)); in cmd_body()
1485 Conv_dyn_feature1_buf_t buf1, buf2; in cmd_body() local
1504 conv_dyn_feature1(flags, 0, &buf2)); in cmd_body()
1535 Conv_inv_buf_t buf1, buf2; in cmd_body() local
1554 conv_ehdr_mach(ldmach, 0, &buf2)); in cmd_body()
/illumos-gate/usr/src/cmd/refer/
H A Drefer6.c32 char buf1[BUFSIZ], buf2[50]; in putref() local
86 tx = revauth(tx, buf2); in putref()

123