/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | passutils.c | 68 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 D | pkg.c | 119 char *tmpbuf = alloca(2 * MAXPATHLEN); in read_thru() local 122 while (fgets(tmpbuf, 2 * MAXPATHLEN, fp) != NULL) { in read_thru() 124 topo_mod_dprintf(mp, "%s", tmpbuf); in read_thru() 125 else if (strstr(tmpbuf, substr) != NULL) { in read_thru() 137 char *tmpbuf = alloca(BUFLEN); in construct_fru_fmri() local 143 while (fgets(tmpbuf, BUFLEN, fp) != NULL) { in construct_fru_fmri() 144 if (strstr(tmpbuf, "VERSION:") != NULL) { in construct_fru_fmri() 145 token = strtok(tmpbuf, ":"); in construct_fru_fmri() 148 } else if (strstr(tmpbuf, "BASEDIR:") != NULL) { in construct_fru_fmri() 149 token = strtok(tmpbuf, ":"); in construct_fru_fmri() [all …]
|
/illumos-gate/usr/src/cmd/grpck/ |
H A D | grpck.c | 106 char *buf_off, *tmpbuf; in main() local 163 tmpbuf = realloc(buf, (bufsize + MYBUFSIZE)); in main() 164 if (tmpbuf == NULL) { in main() 169 buf = tmpbuf; in main() 190 if ((tmpbuf = strdup(buf)) == NULL) { in main() 194 tmpbuf[buf_len - 1] = ','; in main() 196 if ((tmpbuf = malloc(buf_len + 2)) == NULL) { in main() 200 (void) strcpy(tmpbuf, buf); in main() 201 tmpbuf[buf_len++] = ','; in main() 202 tmpbuf[buf_len] = '\0'; in main() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irpmarshall.c | 236 char tmpbuf[24]; in irp_unmarshall_pw() local 237 char *tb = &tmpbuf[0]; in irp_unmarshall_pw() 258 tb = tmpbuf; in irp_unmarshall_pw() 259 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 263 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() 275 tb = tmpbuf; in irp_unmarshall_pw() 276 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 280 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() 300 tb = tmpbuf; in irp_unmarshall_pw() 301 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() [all …]
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | mac.c | 86 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() 134 (void) prom_getprop(node, supported_net, tmpbuf); in mac_init() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypalias.c | 61 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 D | stdhosts.c | 236 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 D | smbfs_subr.c | 146 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 D | getprm.c | 194 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 D | unknown.c | 54 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 D | streamio.c | 152 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/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | str_conv.c | 300 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/cmd/audio/utilities/ |
H A D | AudioTypeSampleRate.cc | 174 unsigned char *tmpbuf; in Flush() local 183 tmpbuf = new unsigned char[cnt]; in Flush() 186 nsamp = resampler.filter(NULL, 0, (short *)tmpbuf); in Flush() 192 err = outbuf->AppendData(tmpbuf, cnt, pos); in Flush() 196 delete[] tmpbuf; in Flush()
|
H A D | AudioTypeG72X.cc | 247 unsigned char tmpbuf[32]; in Flush() local 263 tmpbuf, (int *)&cnt, &g72x_state); in Flush() 267 tmpbuf, (int *)&cnt, &g72x_state); in Flush() 273 err = outbuf->AppendData(tmpbuf, cnt, pos); in Flush()
|
H A D | AudioBuffer.cc | 70 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/os/ |
H A D | sendto_kdc.c | 135 char tmpbuf[max(NI_MAXHOST + NI_MAXSERV + 30, 200)]; in krb5int_debug_fprint() local 145 #define putf(FMT,X) (sprintf(tmpbuf,FMT,X),putstr(tmpbuf)) in krb5int_debug_fprint() 163 sprintf(tmpbuf, "%lu/", (unsigned long) kerr); 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() 215 sprintf(tmpbuf, "%ld.%06ld", 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() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/inet/ |
H A D | nsap_addr.c | 83 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/cmd/msgfmt/ |
H A D | gnu_lex.c | 50 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/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus_hba.c | 51 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/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | princ_xdr.c | 222 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 D | csplit.c | 62 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/contrib/ast/src/lib/libpp/ |
H A D | ppdata.c | 65 static char tmpbuf[MAXTOKEN+1]; /* very temporary buffer */ variable 172 &tmpbuf[0], /* tmpbuf */
|
/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | vsnprintf.c | 62 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 D | snprintf.c | 49 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 D | rpc_svcout.c | 207 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()
|