Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpassutils.c68 char *tmpbuf = NULL; in pkcs11_get_pass() local
79 tmpbuf = getpassphrase(prompt); in pkcs11_get_pass()
80 if (tmpbuf == NULL) in pkcs11_get_pass()
83 if (strnlen(tmpbuf, min_psize) >= min_psize) in pkcs11_get_pass()
96 databuf = strdup(tmpbuf); in pkcs11_get_pass()
97 (void) memset(tmpbuf, 0, strlen(tmpbuf)); /* clean up */ in pkcs11_get_pass()
108 tmpbuf = getpassphrase(prompt); in pkcs11_get_pass()
109 if (tmpbuf == NULL) { in pkcs11_get_pass()
116 if (strcmp(databuf, tmpbuf) != 0) { in pkcs11_get_pass()
118 (void) memset(tmpbuf, 0, strlen(tmpbuf)); in pkcs11_get_pass()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dpkg.c119 char *tmpbuf = alloca(2 * MAXPATHLEN); in read_thru() local
124 topo_mod_dprintf(mp, "%s", tmpbuf); in read_thru()
137 char *tmpbuf = alloca(BUFLEN); in construct_fru_fmri() local
144 if (strstr(tmpbuf, "VERSION:") != NULL) { in construct_fru_fmri()
145 token = strtok(tmpbuf, ":"); in construct_fru_fmri()
149 token = strtok(tmpbuf, ":"); in construct_fru_fmri()
194 static char tmpbuf[BUFLEN]; in pkg_fmri_create() local
202 pcout = popen(tmpbuf, "r"); in pkg_fmri_create()
207 (void) fgets(tmpbuf, BUFLEN, pcout); in pkg_fmri_create()
209 topo_mod_dprintf(mp, "%s", tmpbuf); in pkg_fmri_create()
[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/stand/lib/inet/
H A Dmac.c86 char tmpbuf[MAXNAMELEN]; in mac_init() local
99 (void) snprintf(tmpbuf, sizeof (tmpbuf), in mac_init()
101 prom_panic(tmpbuf); in mac_init()
121 bzero(tmpbuf, sizeof (tmpbuf)); in mac_init()
127 len < sizeof (tmpbuf)) { in mac_init()
128 (void) prom_getprop(node, netiftype, tmpbuf); in mac_init()
130 len < sizeof (tmpbuf)) { in mac_init()
131 (void) prom_getprop(node, chosen_net, tmpbuf); in mac_init()
133 len < sizeof (tmpbuf)) { in mac_init()
138 if ((wp = strstr(tmpbuf, ",")) != NULL) in mac_init()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirpmarshall.c258 tb = tmpbuf; in irp_unmarshall_pw()
275 tb = tmpbuf; in irp_unmarshall_pw()
300 tb = tmpbuf; in irp_unmarshall_pw()
317 tb = tmpbuf; in irp_unmarshall_pw()
507 tb = tmpbuf; in irp_unmarshall_gr()
678 tb = tmpbuf; in irp_unmarshall_sv()
832 tb = tmpbuf; in irp_unmarshall_pr()
1032 tb = tmpbuf; in irp_unmarshall_ho()
1046 tb = tmpbuf; in irp_unmarshall_ho()
1415 tb = tmpbuf; in irp_unmarshall_nw()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypalias.c61 char tmpbuf[MAXNAMLEN] = {NULL}; local
73 strncpy(tmpbuf, result, NAME_MAX);
74 strcpy(result, tmpbuf);
90 char tmpbuf[MAXNAMLEN] = {NULL}; local
103 (void) strncpy(tmpbuf, result, MAXALIASLEN);
104 (void) strcpy(result, tmpbuf);
H A Dstdhosts.c236 char tmpbuf[OUTPUTSIZ+1]; /* Buffer before writing out */ in verify_and_output() local
237 char *tmpbufp = tmpbuf; /* Current point in output string */ in verify_and_output()
314 fputs(tmpbuf, stdout); in verify_and_output()
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr.c146 uchar_t tmpbuf[SMB_MAXFNAMELEN+1]; in smbfs_fname_tolocal() local
159 if (ctx->f_namesz < sizeof (tmpbuf)) { in smbfs_fname_tolocal()
168 dst = tmpbuf; in smbfs_fname_tolocal()
178 ASSERT(outlen < sizeof (tmpbuf)); in smbfs_fname_tolocal()
179 tmpbuf[outlen] = '\0'; in smbfs_fname_tolocal()
180 bcopy(tmpbuf, ctx->f_name, outlen + 1); in smbfs_fname_tolocal()
440 uint16_t tmpbuf[FSTYPSZ]; in smbfs_decode_fs_attr_info() local
443 if (nlen > sizeof (tmpbuf)) in smbfs_decode_fs_attr_info()
444 nlen = sizeof (tmpbuf); in smbfs_decode_fs_attr_info()
445 error = md_get_mem(mdp, tmpbuf, nlen, MB_MSYSTEM); in smbfs_decode_fs_attr_info()
[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/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/audio/utilities/
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()
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 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()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dstr_conv.c300 char tmpbuf[MAX_CHARS_FOR_INT_TYPE(int) * 4 + 8]; in krb5_deltat_to_string() local
309 memset (tmpbuf, 0, sizeof (tmpbuf)); in krb5_deltat_to_string()
319 if (tmpbuf[sizeof(tmpbuf)-1] != 0) in krb5_deltat_to_string()
323 if (strlen (tmpbuf) > buflen) in krb5_deltat_to_string()
326 strncpy (buffer, tmpbuf, buflen); in krb5_deltat_to_string()
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dnsap_addr.c83 char *tmpbuf = inet_nsap_ntoa_tmpbuf; in inet_nsap_ntoa() local
89 ascii = tmpbuf; in inet_nsap_ntoa()
90 start = tmpbuf; in inet_nsap_ntoa()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsendto_kdc.c145 #define putf(FMT,X) (sprintf(tmpbuf,FMT,X),putstr(tmpbuf)) in krb5int_debug_fprint()
164 putstr(tmpbuf); in krb5int_debug_fprint()
176 if (strerror_r(err, tmpbuf, sizeof(tmpbuf)) == 0) in krb5int_debug_fprint()
177 p = tmpbuf; in krb5int_debug_fprint()
217 putstr(tmpbuf); in krb5int_debug_fprint()
233 strcpy(tmpbuf, "dgram"); in krb5int_debug_fprint()
235 strcpy(tmpbuf, "stream"); in krb5int_debug_fprint()
243 strcpy(tmpbuf + strlen(tmpbuf), " AF_UNSPEC"); in krb5int_debug_fprint()
245 sprintf(tmpbuf + strlen(tmpbuf), " af%d", ai->ai_addr->sa_family); in krb5int_debug_fprint()
247 sprintf(tmpbuf + strlen(tmpbuf), " %s.%s", addrbuf, portbuf); in krb5int_debug_fprint()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_hba.c51 char *tmpbuf; in pci_di_prop_set() local
53 if (di_prop_lookup_strings(DDI_DEV_T_ANY, din, dpnm, &tmpbuf) == 1) in pci_di_prop_set()
55 TOPO_PROP_IMMUTABLE, tmpbuf, &err); in pci_di_prop_set()
62 char *tmpbuf; in pci_pi_prop_set() local
64 if (di_path_prop_lookup_strings(din, dpnm, &tmpbuf) == 1) in pci_pi_prop_set()
66 TOPO_PROP_IMMUTABLE, tmpbuf, &err); in pci_pi_prop_set()
/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()
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppdata.c65 static char tmpbuf[MAXTOKEN+1]; /* very temporary buffer */ variable
172 &tmpbuf[0], /* tmpbuf */
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dprinc_xdr.c222 char *tmpbuf; local
257 if ((tmpbuf = (char *) malloc(new_tl_data->tl_data_length)) == NULL)
259 memcpy(tmpbuf, xdralloc_getdata(&xdrs), new_tl_data->tl_data_length);
260 new_tl_data->tl_data_contents = (krb5_octet *)tmpbuf;
/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/lib/libc/port/print/
H A Dvsnprintf.c62 unsigned char tmpbuf[1]; /* dummy buffer for _doprnt() if NULL string */ in _vsnprintf_c89() local
85 siop._base = siop._ptr = tmpbuf; in _vsnprintf_c89()
H A Dsnprintf.c49 unsigned char tmpbuf[1]; /* dummy buffer for _doprnt() if NULL string */ in snprintf() local
72 siop._base = siop._ptr = tmpbuf; in snprintf()
/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_svcout.c207 char tmpbuf[32]; in write_netid_register() local
213 (void) snprintf(tmpbuf, sizeof (tmpbuf), "%s\t\t", sp); in write_netid_register()
214 print_err_message(tmpbuf, "cannot find %s netid.", transp); in write_netid_register()
220 print_err_message(tmpbuf, "cannot create %s service.", transp); in write_netid_register()
238 print_err_message(tmpbuf, in write_netid_register()
1128 char tmpbuf[32]; in write_inetd_register() local
1150 (void) snprintf(tmpbuf, sizeof (tmpbuf), "%s\t\t", sp); in write_inetd_register()
1151 print_err_message(tmpbuf, "cannot create %s service.", transp); in write_inetd_register()
1174 print_err_message(tmpbuf, in write_inetd_register()

1234