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.c126 free(buf2); in do_extends()
127 buf2 = NULL; in do_extends()
142 free(buf2); in do_extends()
143 buf2 = NULL; in do_extends()
194 free(buf2); in do_extends()
195 buf2 = NULL; in do_extends()
261 free(buf2); in do_extends()
335 buf2 = line_to_buf(buf2, buf); in arch_match()
339 buf2 = line_to_buf(buf2, buf); in arch_match()
379 free(buf2); in arch_match()
[all …]
H A Dfrontend.c161 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()
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_proto.c121 bzero(buf2, sizeof (buf2)); 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()
155 (void) strncat(buf1, buf2, sizeof (buf2)); in ieee80211_dump_pkt()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c234 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
318 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
370 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
383 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
453 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
527 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
558 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
622 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
656 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
667 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dump.c948 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile()
952 (void) strlcat(buf2, buf1, sizeof (buf2)); in emlxs_dump_word_txtfile()
3317 (void) snprintf(buf2, sizeof (buf2), in emlxs_dump_menlo_log()
3348 (void) snprintf(buf2, sizeof (buf2), "\n"); in emlxs_dump_menlo_log()
3351 (void) strlcat(buf2, "-", sizeof (buf2)); in emlxs_dump_menlo_log()
3378 (void) snprintf(buf2, sizeof (buf2), in emlxs_dump_menlo_log()
3408 (void) strlcat(buf2, "-", sizeof (buf2)); in emlxs_dump_menlo_log()
3436 (void) snprintf(buf2, sizeof (buf2), in emlxs_dump_menlo_log()
3467 (void) strlcat(buf2, "-", sizeof (buf2)); in emlxs_dump_menlo_log()
3469 (void) strlcat(buf1, buf2, sizeof (buf2)); in emlxs_dump_menlo_log()
[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.c961 free(buf2); in ber_encode_RSAPrivateKey()
970 free(buf2); in ber_encode_RSAPrivateKey()
979 free(buf2); in ber_encode_RSAPrivateKey()
989 free(buf2); in ber_encode_RSAPrivateKey()
998 free(buf2); in ber_encode_RSAPrivateKey()
1007 free(buf2); in ber_encode_RSAPrivateKey()
1017 free(buf2); in ber_encode_RSAPrivateKey()
1027 free(buf2); in ber_encode_RSAPrivateKey()
1036 free(buf2); in ber_encode_RSAPrivateKey()
1045 buf2, len); in ber_encode_RSAPrivateKey()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dinput.c43 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 Dtables.c87 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()
/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/nsswitch/ldap/common/
H A Dgetnetent.c150 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 Dgethostent.c81 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()
/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/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/cmd/adbgen/common/
H A Dadbgen4.c44 char buf1[BUFSIZE], buf2[BUFSIZE]; variable
57 cur = buf2; in main()
/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()
1115 tmpptr = &buf2[2]; in dyndns_establish_sec_ctx()
1122 tmpptr = &buf2[59+(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
1632 ret = buf2[3] & 0xf; /* error field in UDP */ in dyndns_sec_add_remove_entry()
1647 (void) dyndns_get_nshort(buf2, &rid); in dyndns_sec_add_remove_entry()
1785 char buf[NS_PACKETSZ], buf2[NS_PACKETSZ]; in dyndns_add_remove_entry() local
1832 ret = buf2[3] & 0xf; /* error field in UDP */ in dyndns_add_remove_entry()
[all …]
/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()
937 sl_fmtbuf_t buf1, buf2; in dump_prgregset() local
1340 sl_fmtbuf_t buf1, buf2; in prtpct_2up() local
1351 prtpct_value(state, fdesc2, buf2)); in prtpct_2up()
1365 sl_fmtbuf_t buf1, buf2; in print_state_sname_2up() local
1379 buf2[0] = sname; in print_state_sname_2up()
1380 buf2[1] = '\0'; in print_state_sname_2up()
1387 buf2); in print_state_sname_2up()
1438 sl_fmtbuf_t buf1, buf2; in dump_lwpsinfo() local
[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.c34 char buf1[BUFSIZ], buf2[50]; in putref() local
88 tx = revauth(tx, buf2); in putref()

123