/titanic_50/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()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/cmd/grpck/ |
H A D | grpck.c | 109 char *buf_off, *tmpbuf; in main() local 166 tmpbuf = realloc(buf, (bufsize + MYBUFSIZE)); in main() 167 if (tmpbuf == NULL) { in main() 172 buf = tmpbuf; in main() 193 if ((tmpbuf = strdup(buf)) == NULL) { in main() 197 tmpbuf[buf_len - 1] = ','; in main() 199 if ((tmpbuf = malloc(buf_len + 2)) == NULL) { in main() 203 (void) strcpy(tmpbuf, buf); in main() 204 tmpbuf[buf_len++] = ','; in main() 205 tmpbuf[buf_len] = '\0'; in main() [all …]
|
/titanic_50/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 …]
|
/titanic_50/usr/src/lib/libresolv2/common/irs/ |
H A D | irpmarshall.c | 240 char tmpbuf[24]; in irp_unmarshall_pw() local 241 char *tb = &tmpbuf[0]; in irp_unmarshall_pw() 262 tb = tmpbuf; in irp_unmarshall_pw() 263 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 267 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() 279 tb = tmpbuf; in irp_unmarshall_pw() 280 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() 284 t = strtol(tmpbuf, &tb, 10); in irp_unmarshall_pw() 304 tb = tmpbuf; in irp_unmarshall_pw() 305 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || in irp_unmarshall_pw() [all …]
|
/titanic_50/usr/src/cmd/ypcmd/ |
H A D | ypalias.c | 63 char tmpbuf[MAXNAMLEN] = {NULL}; local 75 strncpy(tmpbuf, result, NAME_MAX); 76 strcpy(result, tmpbuf); 92 char tmpbuf[MAXNAMLEN] = {NULL}; local 105 (void) strncpy(tmpbuf, result, MAXALIASLEN); 106 (void) strcpy(result, tmpbuf);
|
H A D | stdhosts.c | 239 char tmpbuf[OUTPUTSIZ+1]; /* Buffer before writing out */ in verify_and_output() local 240 char *tmpbufp = tmpbuf; /* Current point in output string */ in verify_and_output() 317 fputs(tmpbuf, stdout); in verify_and_output()
|
/titanic_50/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_subr.c | 140 uchar_t tmpbuf[SMB_MAXFNAMELEN+1]; in smbfs_fname_tolocal() local 153 if (ctx->f_namesz < sizeof (tmpbuf)) { in smbfs_fname_tolocal() 162 dst = tmpbuf; in smbfs_fname_tolocal() 172 ASSERT(outlen < sizeof (tmpbuf)); in smbfs_fname_tolocal() 173 tmpbuf[outlen] = '\0'; in smbfs_fname_tolocal() 174 bcopy(tmpbuf, ctx->f_name, outlen + 1); in smbfs_fname_tolocal()
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | getprm.c | 196 wchar_t tmpbuf[MAXFULLNAME]; local 230 (void) wcsncpy(tmpbuf, n, cl-n); 231 tmpbuf[cl-n] = NULLCHAR; 232 (void) wcstombs(sys, tmpbuf, MAXFULLNAME); 237 wcsncpy(tmpbuf, cl+1, cr-cl-1); 238 tmpbuf[cr-cl-1] = NULL; 239 (void) wcstombs(fwd, tmpbuf, MAXFULLNAME);
|
H A D | unknown.c | 56 char buf[LOGLEN], *ctoday, *logname, tmpbuf[MAXBASENAME+1]; local 74 (void) strncpy(tmpbuf, argv[1], MAXBASENAME); 75 tmpbuf[MAXBASENAME] = '\0'; 77 ctoday, tmpbuf, (logname == NULL ? "<unknown>" : logname));
|
/titanic_50/usr/src/cmd/lp/lib/msgs/ |
H A D | streamio.c | 156 char tmpbuf [MSGMAX + EXCESS_3_2_LEN]; in write3_2() local 160 (void) memmove(tmpbuf + HEAD_SIZE, msgbuf, size); in write3_2() 161 (void) htos(tmpbuf + HEAD_SIZE, size + EXCESS_3_2_LEN); in write3_2() 162 (void) memcpy (tmpbuf + HEAD_AUTHCODE, AuthCode, HEAD_AUTHCODE_LEN); in write3_2() 166 rval = write_fifo(md->writefd, tmpbuf, size + EXCESS_3_2_LEN); in write3_2()
|
/titanic_50/usr/src/cmd/audio/utilities/ |
H A D | AudioTypeSampleRate.cc | 169 unsigned char *tmpbuf; in Flush() local 178 tmpbuf = new unsigned char[cnt]; in Flush() 181 nsamp = resampler.filter(NULL, 0, (short *)tmpbuf); in Flush() 187 err = outbuf->AppendData(tmpbuf, cnt, pos); in Flush() 191 delete tmpbuf; in Flush()
|
H A D | AudioTypeG72X.cc | 248 unsigned char tmpbuf[32]; in Flush() local 264 tmpbuf, (int *)&cnt, &g72x_state); in Flush() 268 tmpbuf, (int *)&cnt, &g72x_state); in Flush() 274 err = outbuf->AppendData(tmpbuf, cnt, pos); in Flush()
|
H A D | AudioBuffer.cc | 72 void* tmpbuf; in alloc() local 146 tmpbuf = bufaddr; in alloc() 157 (void) memcpy(bufaddr, tmpbuf, ncpy); in alloc() 163 (void) zfree((char *)tmpbuf); in alloc() 168 (void) free((char *)tmpbuf); in alloc()
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus_hba.c | 42 char *tmpbuf; in pci_di_prop_set() local 44 if (di_prop_lookup_strings(DDI_DEV_T_ANY, din, dpnm, &tmpbuf) == 1) in pci_di_prop_set() 46 TOPO_PROP_IMMUTABLE, tmpbuf, &err); in pci_di_prop_set() 53 char *tmpbuf; in pci_pi_prop_set() local 55 if (di_path_prop_lookup_strings(din, dpnm, &tmpbuf) == 1) in pci_pi_prop_set() 57 TOPO_PROP_IMMUTABLE, tmpbuf, &err); in pci_pi_prop_set()
|
/titanic_50/usr/src/cmd/msgfmt/ |
H A D | gnu_lex.c | 52 get_mb(unsigned char *tmpbuf, unsigned char fc) in get_mb() argument 60 tmpbuf[insize++] = fc; /* size of tmpbuf is MB_LEN_MAX+1 */ in get_mb() 64 tmpbuf[insize] = '\0'; in get_mb() 69 inptr = (const char *)tmpbuf; in get_mb() 98 tmpbuf[insize++] = (unsigned char)c; in get_mb() 115 tmpbuf[insize] = '\0'; in get_mb()
|
/titanic_50/usr/src/lib/libpp/common/ |
H A D | ppdata.c | 65 static char tmpbuf[MAXTOKEN+1]; /* very temporary buffer */ variable 171 &tmpbuf[0], /* tmpbuf */
|
/titanic_50/usr/src/lib/libc/port/print/ |
H A D | vsnprintf.c | 64 unsigned char tmpbuf[1]; /* dummy buffer for _doprnt() if NULL string */ in _vsnprintf_c89() local 87 siop._base = siop._ptr = tmpbuf; in _vsnprintf_c89()
|
H A D | snprintf.c | 51 unsigned char tmpbuf[1]; /* dummy buffer for _doprnt() if NULL string */ in snprintf() local 74 siop._base = siop._ptr = tmpbuf; in snprintf()
|
/titanic_50/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | princ_xdr.c | 224 char *tmpbuf; local 259 if ((tmpbuf = (char *) malloc(new_tl_data->tl_data_length)) == NULL) 261 memcpy(tmpbuf, xdralloc_getdata(&xdrs), new_tl_data->tl_data_length); 262 new_tl_data->tl_data_contents = (krb5_octet *)tmpbuf;
|
/titanic_50/usr/src/cmd/csplit/ |
H A D | csplit.c | 58 char tmpbuf[BUFSIZ]; /* Temporary buffer for stdin */ variable 137 while (fread(tmpbuf, 1, BUFSIZ, stdin) != 0) { in main() 138 if (fwrite(tmpbuf, 1, BUFSIZ, infile) == 0) in main() 154 (void) memset(tmpbuf, '\0', sizeof (tmpbuf)); in main()
|
/titanic_50/usr/src/cmd/rpcgen/ |
H A D | rpc_svcout.c | 206 char tmpbuf[32]; in write_netid_register() local 212 (void) snprintf(tmpbuf, sizeof (tmpbuf), "%s\t\t", sp); in write_netid_register() 213 print_err_message(tmpbuf, "cannot find %s netid.", transp); in write_netid_register() 219 print_err_message(tmpbuf, "cannot create %s service.", transp); in write_netid_register() 237 print_err_message(tmpbuf, in write_netid_register() 1127 char tmpbuf[32]; in write_inetd_register() local 1149 (void) snprintf(tmpbuf, sizeof (tmpbuf), "%s\t\t", sp); in write_inetd_register() 1150 print_err_message(tmpbuf, "cannot create %s service.", transp); in write_inetd_register() 1173 print_err_message(tmpbuf, in write_inetd_register()
|