Home
last modified time | relevance | path

Searched refs:tmpbuf (Results 1 – 25 of 90) sorted by path

1234

/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioBuffer.cc70 void* tmpbuf; in alloc() local
144 tmpbuf = bufaddr; in alloc()
155 (void) memcpy(bufaddr, tmpbuf, ncpy); in alloc()
161 (void) zfree((char *)tmpbuf); in alloc()
166 (void) free((char *)tmpbuf); in alloc()
H A DAudioTypeG72X.cc246 unsigned char tmpbuf[32]; in Flush() local
262 tmpbuf, (int *)&cnt, &g72x_state); in Flush()
266 tmpbuf, (int *)&cnt, &g72x_state); in Flush()
272 err = outbuf->AppendData(tmpbuf, cnt, pos); in Flush()
H A DAudioTypeSampleRate.cc173 unsigned char *tmpbuf; in Flush() local
182 tmpbuf = new unsigned char[cnt]; in Flush()
185 nsamp = resampler.filter(NULL, 0, (short *)tmpbuf); in Flush()
191 err = outbuf->AppendData(tmpbuf, cnt, pos); in Flush()
195 delete[] tmpbuf; in Flush()
/illumos-gate/usr/src/cmd/backup/restore/
H A Dtape.c430 #define tmpbuf tmpspcl.s_spcl in getvol() macro
572 if (readhdr(&tmpbuf) == FAIL) { in getvol()
580 tmpbuf.c_volume); in getvol()
618 if (tmpbuf.c_type == TS_TAPE && (tmpbuf.c_flags & DR_NEWHEADER)) { in getvol()
623 recsread = tmpbuf.c_firstrec; in getvol()
624 tapea = tmpbuf.c_tapea; in getvol()
627 tmpbuf.c_count); in getvol()
628 for (i = tmpbuf.c_count; i > 0; i--) in getvol()
630 } else if (tmpbuf.c_firstrec != 0) { in getvol()
640 i = tapea - tmpbuf.c_tapea - 2; in getvol()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dgetprm.c194 wchar_t tmpbuf[MAXFULLNAME]; local
228 (void) wcsncpy(tmpbuf, n, cl-n);
229 tmpbuf[cl-n] = NULLCHAR;
230 (void) wcstombs(sys, tmpbuf, MAXFULLNAME);
235 wcsncpy(tmpbuf, cl+1, cr-cl-1);
236 tmpbuf[cr-cl-1] = '\0';
237 (void) wcstombs(fwd, tmpbuf, MAXFULLNAME);
H A Dunknown.c54 char buf[LOGLEN], *ctoday, *logname, tmpbuf[MAXBASENAME+1]; local
72 (void) strncpy(tmpbuf, argv[1], MAXBASENAME);
73 tmpbuf[MAXBASENAME] = '\0';
75 ctoday, tmpbuf, (logname == NULL ? "<unknown>" : logname));
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dkcmd.c729 char tmpbuf[KCMD_BUFSIZ + 8]; in deswrite_compat() local
731 unsigned char *len_buf = (unsigned char *)tmpbuf; in deswrite_compat()
734 unsigned char *lenbuf2 = (unsigned char *)tmpbuf; in deswrite_compat()
735 if (len + 4 > sizeof (tmpbuf)) in deswrite_compat()
741 (void) memcpy(tmpbuf + 4, buf, len); in deswrite_compat()
743 inputd.data = (krb5_pointer)tmpbuf; in deswrite_compat()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dcmds.c445 char *cp, *tp2, tmpbuf[MAXPATHLEN]; in mput() local
465 tp2 = tmpbuf; in mput()
479 tp = tmpbuf; in mput()
651 char *tp = argv[1], *tp2, tmpbuf[MAXPATHLEN]; in getit() local
662 tp2 = tmpbuf; in getit()
673 argv[2] = tmpbuf; in getit()
702 char *cp, *tp, *tp2, tmpbuf[MAXPATHLEN]; in mget() local
732 strcpy(tmpbuf, cp); in mget()
733 tp = tmpbuf; in mget()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.c2164 char tmpbuf[MAXLINELEN]; in vrrpd_read_vrconf() local
2166 str = tmpbuf; in vrrpd_read_vrconf()
2167 (void) strlcpy(tmpbuf, line, MAXLINELEN); in vrrpd_read_vrconf()
2173 if ((str - tmpbuf == strlen(tmpbuf)) || (*str == '#')) { in vrrpd_read_vrconf()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa.c1073 uint8_t tmpbuf[8]; in wpa_supplicant_process_3_of_4_gtk() local
1077 (void) memcpy(tmpbuf, gtk + 16, 8); in wpa_supplicant_process_3_of_4_gtk()
1079 (void) memcpy(gtk + 24, tmpbuf, 8); in wpa_supplicant_process_3_of_4_gtk()
1307 uint8_t ek[32], tmpbuf[8], gtk[32]; in wpa_supplicant_process_1_of_2() local
1464 (void) memcpy(tmpbuf, gtk + 16, 8); in wpa_supplicant_process_1_of_2()
1466 (void) memcpy(gtk + 24, tmpbuf, 8); in wpa_supplicant_process_1_of_2()
/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c62 char tmpbuf[BUFSIZ]; /* Temporary buffer for stdin */ variable
141 while (fread(tmpbuf, 1, BUFSIZ, stdin) != 0) { in main()
142 if (fwrite(tmpbuf, 1, BUFSIZ, infile) == 0) in main()
158 (void) memset(tmpbuf, '\0', sizeof (tmpbuf)); in main()
/illumos-gate/usr/src/cmd/dladm/
H A Ddladm.c2769 char tmpbuf[MAXLINKNAMELEN]; in print_link_topology() local
2813 tmpbuf, sizeof (tmpbuf)) != DLADM_STATUS_OK) { in print_link_topology()
2862 NULL, tmpbuf, sizeof (tmpbuf)) != DLADM_STATUS_OK) { in print_link_topology()
2866 if (tmpbuf[0] != '\0') in print_link_topology()
2867 tmpbuf[strlen(tmpbuf) - 1] = '\0'; in print_link_topology()
2875 NULL, NULL, tmpbuf, sizeof (tmpbuf)) != in print_link_topology()
3124 char tmpbuf[DLADM_STRSIZE]; in print_xaggr_cb() local
3170 tmpbuf); in print_xaggr_cb()
3176 tmpbuf); in print_xaggr_cb()
6094 char tmpbuf[DLADM_STRSIZE]; in print_wlan_attr_cb() local
[all …]
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_db.c882 char tmpbuf[MAXLINELEN]; in process_link_line() local
891 (void) strlcpy(tmpbuf, buf, MAXLINELEN); in process_link_line()
896 len = strlen(tmpbuf); in process_link_line()
898 if (!isspace(tmpbuf[i])) in process_link_line()
901 if (i == len || tmpbuf[i] == '#') in process_link_line()
904 str = tmpbuf + i; in process_link_line()
930 if (str >= tmpbuf + len) in process_link_line()
1272 char tmpbuf[MAXLINELEN]; in generate_link_line() local
1273 char *ptr = tmpbuf; in generate_link_line()
1274 char *lim = tmpbuf + MAXLINELEN; in generate_link_line()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dfme.c511 char tmpbuf[OBBUFNMSZ]; in serialize_observation() local
523 (void) snprintf(tmpbuf, in serialize_observation()
566 char tmpbuf[OBBUFNMSZ]; in destroy_fme_bufs() local
597 char *tmpbuf = alloca(OBBUFNMSZ); in reconstitute_observations() local
609 tmpbuf); in reconstitute_observations()
621 tmpbuf, estr); in reconstitute_observations()
633 tmpbuf, sepptr + 1); in reconstitute_observations()
662 fmep->fmcase, tmpbuf, pkd, pkdlen); in reconstitute_observations()
703 char *tmpbuf = alloca(OBBUFNMSZ); in fme_restart() local
782 tmpbuf); in fme_restart()
[all …]
H A Dplatform.c119 static char tmpbuf[MAXPATHLEN]; variable
404 tmpbuf[0] = '\0'; in hc_path()
420 (void) strlcat(tmpbuf, "/", MAXPATHLEN); in hc_path()
421 (void) strlcat(tmpbuf, name, MAXPATHLEN); in hc_path()
423 (void) strlcat(tmpbuf, numbuf, MAXPATHLEN); in hc_path()
429 return (tmpbuf); in hc_path()
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c197 (void) strncat(tmpbuf, x, strlen(x)); \
638 char *tmpbuf; in main() local
2090 tmpbuf = calloc(sblock.fs_ncg / 50 + 500, 1); in main()
2091 if (tmpbuf == NULL) { in main()
2147 free(tmpbuf); in main()
2152 free(tmpbuf); in main()
2251 free(tmpbuf); in main()
2256 free(tmpbuf); in main()
2282 (void) fprintf(stderr, "%s", tmpbuf); in main()
2283 free(tmpbuf); in main()
[all …]
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c106 char *buf_off, *tmpbuf; in main() local
164 if (tmpbuf == NULL) { in main()
169 buf = tmpbuf; in main()
194 tmpbuf[buf_len - 1] = ','; in main()
200 (void) strcpy(tmpbuf, buf); in main()
201 tmpbuf[buf_len++] = ','; in main()
202 tmpbuf[buf_len] = '\0'; in main()
221 free(tmpbuf); in main()
236 free(tmpbuf); in main()
280 nptr = &tmpbuf[delim[2]]; in main()
[all …]
/illumos-gate/usr/src/cmd/kbd/
H A Dkbd.c884 char *tmpbuf; in get_layouts() local
897 if ((tmpbuf = strdup(result)) != NULL) { in get_layouts()
898 layout_names[i] = tmpbuf; in get_layouts()
906 if (strcmp(tmpbuf, "US-English") == 0) in get_layouts()
/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Dnetwork.c804 char tmpbuf[10]; in accept_tcp_connection() local
820 tmpbuf, sizeof(tmpbuf), in accept_tcp_connection()
828 if (end - p > 2 + strlen(tmpbuf)) { in accept_tcp_connection()
830 strcpy(p, tmpbuf); in accept_tcp_connection()
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c2196 char buf[BUFSIZ+1], tmpbuf[BUFSIZ+1], cname[BUFSIZ+1]; in genent_publickey() local
2246 (void) strcpy(tmpbuf, &(t[5])); in genent_publickey()
2247 if ((p = strchr(tmpbuf, '@')) == 0) { in genent_publickey()
2253 if (isdigit(*tmpbuf)) { in genent_publickey()
2255 uid = atoi(tmpbuf); in genent_publickey()
2268 if ((hp = getipnodebyname(tmpbuf, AF_INET6, in genent_publickey()
2272 "errnum %d %s skipping\n"), tmpbuf, errnum, in genent_publickey()
2286 "skipping\n"), tmpbuf); in genent_publickey()
2295 "skipping\n"), tmpbuf); in genent_publickey()
2407 tmpbuf); in genent_publickey()
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dstreamio.c152 char tmpbuf [MSGMAX + EXCESS_3_2_LEN]; in write3_2() local
156 (void) memmove(tmpbuf + HEAD_SIZE, msgbuf, size); in write3_2()
157 (void) htos(tmpbuf + HEAD_SIZE, size + EXCESS_3_2_LEN); in write3_2()
158 (void) memcpy (tmpbuf + HEAD_AUTHCODE, AuthCode, HEAD_AUTHCODE_LEN); in write3_2()
162 rval = write_fifo(md->writefd, tmpbuf, size + EXCESS_3_2_LEN); in write3_2()
/illumos-gate/usr/src/cmd/make/bin/
H A Dimplicit.cc228 char *tmpbuf; in find_suffix_rule() local
230 tmpbuf = getmem(source->hash.length + 8); in find_suffix_rule()
232 memset(tmpbuf,0,source->hash.length + 8); in find_suffix_rule()
242 strncpy(tmpbuf, source->string_mb, p - source->string_mb + 1); in find_suffix_rule()
243 strcat(tmpbuf, "s."); in find_suffix_rule()
244 strcat(tmpbuf, p+1); in find_suffix_rule()
246 source->string_mb = tmpbuf; in find_suffix_rule()
249 strcpy(tmpbuf, "s."); in find_suffix_rule()
250 strcat(tmpbuf, source->string_mb); in find_suffix_rule()
252 source->string_mb = tmpbuf; in find_suffix_rule()
/illumos-gate/usr/src/cmd/man/
H A Dman.c1263 char cmdbuf[BUFSIZ], tmpbuf[BUFSIZ]; in format() local
1326 (void) snprintf(tmpbuf, BUFSIZ, "-Owidth=%d ", manwidth); in format()
1328 path, cattool, manpname, (manwidth > 0) ? tmpbuf : "", pager); in format()
/illumos-gate/usr/src/cmd/mdb/common/modules/fctl/
H A Dfctl.c976 char *tmpbuf; /* for tokenising the buffer */ in fc_dump_logmsg() local
1007 tmpbuf = strchr(tmppkt, '='); in fc_dump_logmsg()
1008 *tmpbuf = 0; in fc_dump_logmsg()
1039 char *tmpbuf; /* for tokenising the buffer */ in fc_dump_old_logmsg() local
1069 tmpbuf = strchr(tmppkt, '='); in fc_dump_old_logmsg()
1070 *tmpbuf = 0; in fc_dump_old_logmsg()
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_lex.c50 get_mb(unsigned char *tmpbuf, unsigned char fc) in get_mb() argument
58 tmpbuf[insize++] = fc; /* size of tmpbuf is MB_LEN_MAX+1 */ in get_mb()
62 tmpbuf[insize] = '\0'; in get_mb()
67 inptr = (const char *)tmpbuf; in get_mb()
96 tmpbuf[insize++] = (unsigned char)c; in get_mb()
113 tmpbuf[insize] = '\0'; in get_mb()

1234