Searched refs:buf2 (Results 1 - 25 of 70) sorted by relevance

123

/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Drename.c33 char buf2[256]; local
38 strcpy(buf2, path2);
39 strcat(buf2, "x");
40 path2 = buf2;
43 strcpy(buf2, path2);
44 strcat(buf2, "x");
45 path2 = buf2;
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Drename.c34 char buf2[256]; local
47 strcpy(buf2, path2);
48 strcat(buf2, "x");
49 path2 = buf2;
52 strcpy(buf2, path2);
53 strcat(buf2, "x");
54 path2 = buf2;
/illumos-gate/usr/src/cmd/abi/spectrans/parser/
H A Dextends.c52 char *localvalue = NULL, *buf2 = NULL; local
122 while (M.mi_nlines = readline(&buf2, efp)) {
125 if (!non_empty(buf2)) { /* is line non empty */
126 free(buf2);
127 buf2 = NULL;
130 p = realloc(localvalue, sizeof (char)*(strlen(buf2)+1));
136 split(buf2, key, localvalue);
142 free(buf2);
143 buf2 = NULL;
194 free(buf2);
315 char key[20], buf[BUFSIZ], *buf2 = NULL, *localvalue = NULL, *p; local
[all...]
H A Dfrontend.c161 char *buf2 = NULL; local
205 while (meta_info.mi_nlines = readline(&buf2, spec_fp)) {
208 if (!non_empty(buf2)) {
209 free(buf2);
210 buf2 = NULL;
213 p = realloc(value, sizeof (char)*(strlen(buf2)+1));
220 split(buf2, key, value);
309 free(buf2);
310 buf2 = NULL;
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_proto.c117 int8_t buf2[25]; local
121 bzero(buf2, sizeof (buf2));
125 (void) snprintf(buf2, sizeof (buf2), "NODS %s",
127 (void) strncat(buf1, buf2, sizeof (buf2));
128 (void) snprintf(buf2, sizeof (buf2), "->%s",
130 (void) strncat(buf1, buf2, sizeo
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c89 char buf2[MAXDNAME]; local
211 if (!getword_str(buf2, sizeof buf2, &startp, endp))
213 if (!inet_aton(buf2, &ina))
226 if (!getword_str(buf2, sizeof buf2, &startp, endp))
228 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr);
238 if (!getword_str(buf2, sizeof buf2, &startp,
241 n = dn_comp(buf2, c
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/rp_basic/
H A Dlibnfs_basic.c103 char *p, *sp, *dp, buf2[SYMLINK_MAX]; local
167 dp = buf2;
168 bzero(buf2, sizeof (buf2));
192 printf("get_fs_locations: host %s\n", buf2);
208 str_to_utf8(buf2,
211 dp = buf2;
212 bzero(buf2, sizeof (buf2));
220 printf("get_fs_locations: path %s\n", buf2);
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dump.c922 char buf2[256]; local
938 buf2[0] = 0;
942 (void) strlcat(buf2, buf1, sizeof (buf2));
946 (void) strlcat(buf2, buf1, sizeof (buf2));
947 (void) emlxs_fwrite((uint8_t *)buf2, strlen(buf2), 1,
1379 char *buf2; local
1382 buf2
1427 char buf2[512]; local
1462 char buf2[512]; local
1510 char buf2[512]; local
1541 char *buf2; local
1619 char *buf2; local
1690 char *buf2; /* text buffer */ local
1770 char *buf2; /* text buffer */ local
1902 char *buf2; /* string ops buffer */ local
2126 char *buf2; local
2168 char *buf2; local
2496 char buf2[256]; local
3240 char buf2[2048] = { 0 }; local
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dasn1.c896 CK_BYTE *buf2 = NULL; local
955 rc = ber_encode_INTEGER(FALSE, &buf2, &len, version, sizeof (version));
959 (void) memcpy(buf + offset, buf2, len);
961 free(buf2);
963 rc = ber_encode_INTEGER(FALSE, &buf2, &len,
968 (void) memcpy(buf + offset, buf2, len);
970 free(buf2);
972 rc = ber_encode_INTEGER(FALSE, &buf2, &len,
977 (void) memcpy(buf + offset, buf2, len);
979 free(buf2);
[all...]
/illumos-gate/usr/src/cmd/adbgen/common/
H A Dadbgen4.c44 char buf1[BUFSIZE], buf2[BUFSIZE]; variable
57 cur = buf2;
/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,
235 sizeof (buf2)),
347 buf2, sizeof (buf2)),
374 buf2, sizeof (buf2)),
418 (void *)&n->rip6_prefix, buf2,
419 sizeof (buf2)),
H A Dtables.c87 char buf2[INET6_ADDRSTRLEN]; local
91 (void) inet_ntop(AF_INET6, (void *) &orig->rt_router, buf2, local
92 sizeof (buf2));
97 buf1, buf2,
109 char buf2[INET6_ADDRSTRLEN]; local
112 (void) inet_ntop(AF_INET6, (void *)&rt->rt_router, buf2, sizeof (buf2)); local
115 buf1, buf2,
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c64 int buf2[MAXBUF]; variable
252 r = pread(fd, buf2, bufsize, (off_t)(seekpos << SCTRSHFT));
292 r = pread(fd, buf2, bufsize, (off_t)(seekpos << SCTRSHFT));
298 if (memcmp(buf1, buf2, bufsize)) {
340 buf2[0] = '\0'; /* clear buf to make sure something is read */
341 r = pread(fd, buf2, bufsize, (off_t)(seekpos[i] << SCTRSHFT));
347 if (memcmp(buf1, buf2, bufsize)) {
379 r = pread(fd, buf2, bufsize, (i*fba_num_bufsize) << SCTRSHFT);
393 r = pread(fd, buf2, bufsize, (i*fba_num_bufsize) << SCTRSHFT);
439 buf2[
[all...]
/illumos-gate/usr/src/cmd/hal/hald/
H A Ddevice_info.c1197 char buf2[256]; local
1223 strncpy (buf2, existing_string, sizeof (buf2));
1224 strncat (buf2, buf, sizeof (buf2) - strlen(buf2));
1226 strncpy (buf2, buf, sizeof (buf2));
1228 hal_device_property_set_string (pc->device, pc->merge_key, buf2);
1235 char buf2[25 local
[all...]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetnetent.c147 * buf2 is untruncated version.
150 static int nettoa(int anet, char *buf, char *buf2, int buflen) argument
156 if (buf == NULL || buf2 == NULL)
161 if (inet_ntop(AF_INET, (const void *)&in, buf2, INET_ADDRSTRLEN)
164 if (strlcpy(buf, buf2, buflen) >= buflen)
H A Dgethostent.c81 char *buf1, *buf2; local
129 buf2 = other_hosts;
162 len = snprintf(buf2, buflen2, "\n%s ", ips[0]);
163 TEST_AND_ADJUST(len, buf2, buflen2, result_host2str);
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_verify.c236 u_char buf2[MAXDNAME]; local
253 n = ns_name_pton(name, buf2, sizeof(buf2));
256 n = ns_name_ntol(buf2, buf, sizeof(buf));
267 n = ns_name_pton(alg, buf2, sizeof(buf2));
270 n = ns_name_ntol(buf2, buf, sizeof(buf));
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c548 char *buf2 = NULL; local
567 buf2 = malloc(TOKEN_LABEL_SIZE);
573 (void) strcpy(buf2, (const char *) puent->metaslot_ks_token);
574 *objectstore_token_info = buf2;
585 if (buf2 != NULL) {
586 free(buf2);
/illumos-gate/usr/src/lib/libsysevent/
H A Dlibevchannel.c863 char *buf2 = NULL; /* allocated if stack buf too small */ local
888 (buf2 == NULL || uargs.generation != expgen)) {
889 if (buf2 != NULL)
890 free(buf2);
895 bufp = buf2 = malloc(sz);
897 if (buf2 == NULL)
913 if (buf2 != NULL)
914 free(buf2);
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_dyndns.c1019 char buf[MAX_TCP_SIZE], buf2[MAX_TCP_SIZE]; local
1101 bzero(buf2, MAX_TCP_SIZE);
1102 if (recv(s, buf2, MAX_TCP_SIZE, 0) == -1) {
1108 ret = buf2[5] & 0xf; /* error field in TCP */
1115 tmpptr = &buf2[2];
1122 tmpptr = &buf2[59+(strlen(key_name)+2)*2];
1127 in_tok.value = &buf2[61+(strlen(key_name)+2)*2];
1552 char buf[NS_PACKETSZ], buf2[NS_PACKETSZ]; local
1620 if (dyndns_udp_send_recv(s2, buf, buf_sz, buf2)) {
1632 ret = buf2[
1785 char buf[NS_PACKETSZ], buf2[NS_PACKETSZ]; local
[all...]
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/
H A Dnss.c92 char buf[128], buf2[128]; local
129 snprintf(buf2, sizeof (buf2), "/etc/lp/classes/%s", printer);
130 if ((access(buf, F_OK) < 0) && (access(buf2, F_OK) < 0)) {
/illumos-gate/usr/src/cmd/refer/
H A Drefer6.c34 char buf1[BUFSIZ], buf2[50]; local
88 tx = revauth(tx, buf2);
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dcorenote.c261 sl_fmtbuf_t buf1, buf2; local
278 fmt_num(state, fdesc2, fmt_type2, buf2));
900 sl_fmtbuf_t buf1, buf2; local
936 fmt_num(state, &fdesc2, SL_FMT_NUM_ZHEX, buf2));
1289 sl_fmtbuf_t buf1, buf2; local
1300 prtpct_value(state, fdesc2, buf2));
1314 sl_fmtbuf_t buf1, buf2; local
1328 buf2[0] = sname;
1329 buf2[1] = '\0';
1336 buf2);
1387 sl_fmtbuf_t buf1, buf2; local
1701 sl_fmtbuf_t buf1, buf2; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dparms.c612 char buf[PARMS_MAXLINELEN], buf2[PARMS_MAXLINELEN]; local
860 if (0 > parse_quote(&p, "|", &delim, buf2,
861 sizeof (buf2)) || !gethost(buf2, &addr))
872 0 > parse_quote(&p, "|", &delim, buf2,
873 sizeof (buf2)) ||
874 !getnet(buf2, &tg->tgate_nets[i].net,
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/
H A Dmkfs.c158 static char buf2[MAXBSIZE]; variable
567 bzero(buf2, sectorsize);
569 maketag(tp, (struct tag *)buf2);
574 wtfs(blk1, sectorsize, buf2);
892 bzero(buf2, sectorsize);
894 maketag(tp, (struct tag *)buf2);
895 wtfs(nextblock, sectorsize, buf2);
900 maketag(tp, (struct tag *)buf2);
901 wtfs(fssize, sectorsize, buf2);

Completed in 131 milliseconds

123