Searched refs:tmpbuf (Results 1 - 25 of 89) sorted by relevance

1234

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpassutils.c68 char *tmpbuf = NULL; local
79 tmpbuf = getpassphrase(prompt);
80 if (tmpbuf == NULL)
83 if (strnlen(tmpbuf, min_psize) >= min_psize)
96 databuf = strdup(tmpbuf);
97 (void) memset(tmpbuf, 0, strlen(tmpbuf)); /* clean up */
108 tmpbuf = getpassphrase(prompt);
109 if (tmpbuf == NULL) {
116 if (strcmp(databuf, tmpbuf) !
[all...]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypalias.c63 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 Dstdhosts.c239 char tmpbuf[OUTPUTSIZ+1]; /* Buffer before writing out */ local
240 char *tmpbufp = tmpbuf; /* Current point in output string */
317 fputs(tmpbuf, stdout);
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dpkg.c119 char *tmpbuf = alloca(2 * MAXPATHLEN); local
122 while (fgets(tmpbuf, 2 * MAXPATHLEN, fp) != NULL) {
124 topo_mod_dprintf(mp, "%s", tmpbuf);
125 else if (strstr(tmpbuf, substr) != NULL) {
137 char *tmpbuf = alloca(BUFLEN); local
143 while (fgets(tmpbuf, BUFLEN, fp) != NULL) {
144 if (strstr(tmpbuf, "VERSION:") != NULL) {
145 token = strtok(tmpbuf, ":");
148 } else if (strstr(tmpbuf, "BASEDIR:") != NULL) {
149 token = strtok(tmpbuf, "
194 static char tmpbuf[BUFLEN]; local
[all...]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dstreamio.c156 char tmpbuf [MSGMAX + EXCESS_3_2_LEN]; local
160 (void) memmove(tmpbuf + HEAD_SIZE, msgbuf, size);
161 (void) htos(tmpbuf + HEAD_SIZE, size + EXCESS_3_2_LEN);
162 (void) memcpy (tmpbuf + HEAD_AUTHCODE, AuthCode, HEAD_AUTHCODE_LEN);
166 rval = write_fifo(md->writefd, tmpbuf, size + EXCESS_3_2_LEN);
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr.c140 uchar_t tmpbuf[SMB_MAXFNAMELEN+1]; local
153 if (ctx->f_namesz < sizeof (tmpbuf)) {
160 * so convert into tmpbuf and copy.
162 dst = tmpbuf;
172 ASSERT(outlen < sizeof (tmpbuf));
173 tmpbuf[outlen] = '\0';
174 bcopy(tmpbuf, ctx->f_name, outlen + 1);
/illumos-gate/usr/src/lib/libpp/common/
H A Dppdata.c65 static char tmpbuf[MAXTOKEN+1]; /* very temporary buffer */ variable
171 &tmpbuf[0], /* tmpbuf */
/illumos-gate/usr/src/cmd/bnu/
H A Dunknown.c56 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));
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dnsap_addr.c83 char *tmpbuf = inet_nsap_ntoa_tmpbuf; local
89 ascii = tmpbuf;
90 start = tmpbuf;
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioTypeSampleRate.cc169 unsigned char *tmpbuf; local
178 tmpbuf = new unsigned char[cnt];
181 nsamp = resampler.filter(NULL, 0, (short *)tmpbuf);
187 err = outbuf->AppendData(tmpbuf, cnt, pos);
191 delete tmpbuf;
H A DAudioTypeG72X.cc248 unsigned char tmpbuf[32]; local
264 tmpbuf, (int *)&cnt, &g72x_state);
268 tmpbuf, (int *)&cnt, &g72x_state);
274 err = outbuf->AppendData(tmpbuf, cnt, pos);
H A DAudioBuffer.cc72 void* tmpbuf; local
146 tmpbuf = bufaddr;
157 (void) memcpy(bufaddr, tmpbuf, ncpy);
163 (void) zfree((char *)tmpbuf);
168 (void) free((char *)tmpbuf);
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c109 char *buf_off, *tmpbuf; local
166 tmpbuf = realloc(buf, (bufsize + MYBUFSIZE));
167 if (tmpbuf == NULL) {
172 buf = tmpbuf;
193 if ((tmpbuf = strdup(buf)) == NULL) {
197 tmpbuf[buf_len - 1] = ',';
199 if ((tmpbuf = malloc(buf_len + 2)) == NULL) {
203 (void) strcpy(tmpbuf, buf);
204 tmpbuf[buf_len++] = ',';
205 tmpbuf[buf_le
[all...]
/illumos-gate/usr/src/stand/lib/inet/
H A Dmac.c86 char tmpbuf[MAXNAMELEN]; local
99 (void) snprintf(tmpbuf, sizeof (tmpbuf),
101 prom_panic(tmpbuf);
121 bzero(tmpbuf, sizeof (tmpbuf));
127 len < sizeof (tmpbuf)) {
128 (void) prom_getprop(node, netiftype, tmpbuf);
130 len < sizeof (tmpbuf)) {
131 (void) prom_getprop(node, chosen_net, tmpbuf);
[all...]
/illumos-gate/usr/src/lib/libc/port/print/
H A Dsnprintf.c51 unsigned char tmpbuf[1]; /* dummy buffer for _doprnt() if NULL string */ local
69 * When n==0, string may be NULL, so always use tmpbuf to
71 * the buffer when n==0, so using tmpbuf instead of string
74 siop._base = siop._ptr = tmpbuf;
H A Dvsnprintf.c64 unsigned char tmpbuf[1]; /* dummy buffer for _doprnt() if NULL string */ local
82 * When n==0, string may be NULL, so always use tmpbuf to
84 * the buffer when n==0, so using tmpbuf instead of string
87 siop._base = siop._ptr = tmpbuf;
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirpmarshall.c240 char tmpbuf[24]; local
241 char *tb = &tmpbuf[0];
262 tb = tmpbuf;
263 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
267 t = strtol(tmpbuf, &tb, 10);
279 tb = tmpbuf;
280 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
284 t = strtol(tmpbuf, &tb, 10);
304 tb = tmpbuf;
305 if (getfield(&tb, sizeof tmpbuf,
484 char tmpbuf[24]; local
650 char tmpbuf[24]; local
803 char tmpbuf[24]; local
1001 char tmpbuf[24]; local
1387 char tmpbuf[24]; local
1561 char tmpbuf[24]; local
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dstr_conv.c302 char tmpbuf[MAX_CHARS_FOR_INT_TYPE(int) * 4 + 8];
311 memset (tmpbuf, 0, sizeof (tmpbuf));
321 if (tmpbuf[sizeof(tmpbuf)-1] != 0)
325 if (strlen (tmpbuf) > buflen)
328 strncpy (buffer, tmpbuf, buflen);
300 char tmpbuf[MAX_CHARS_FOR_INT_TYPE(int) * 4 + 8]; local
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_hba.c42 char *tmpbuf; local
44 if (di_prop_lookup_strings(DDI_DEV_T_ANY, din, dpnm, &tmpbuf) == 1)
46 TOPO_PROP_IMMUTABLE, tmpbuf, &err);
53 char *tmpbuf; local
55 if (di_path_prop_lookup_strings(din, dpnm, &tmpbuf) == 1)
57 TOPO_PROP_IMMUTABLE, tmpbuf, &err);
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_lex.c52 get_mb(unsigned char *tmpbuf, unsigned char fc) argument
60 tmpbuf[insize++] = fc; /* size of tmpbuf is MB_LEN_MAX+1 */
64 tmpbuf[insize] = '\0';
69 inptr = (const char *)tmpbuf;
98 tmpbuf[insize++] = (unsigned char)c;
115 tmpbuf[insize] = '\0';
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dnetmasks.c93 char tmpbuf[NSS_LINELEN_NETMASKS]; local
100 argp->buf.buffer = tmpbuf;
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dprinc_xdr.c224 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;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsendto_kdc.c135 char tmpbuf[max(NI_MAXHOST + NI_MAXSERV + 30, 200)]; local
145 #define putf(FMT,X) (sprintf(tmpbuf,FMT,X),putstr(tmpbuf))
163 sprintf(tmpbuf, "%lu/", (unsigned long) kerr);
164 putstr(tmpbuf);
176 if (strerror_r(err, tmpbuf, sizeof(tmpbuf)) == 0)
177 p = tmpbuf;
215 sprintf(tmpbuf, "%ld.%06ld",
217 putstr(tmpbuf);
[all...]
/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c58 char tmpbuf[BUFSIZ]; /* Temporary buffer for stdin */ variable
137 while (fread(tmpbuf, 1, BUFSIZ, stdin) != 0) {
138 if (fwrite(tmpbuf, 1, BUFSIZ, infile) == 0)
154 (void) memset(tmpbuf, '\0', sizeof (tmpbuf));
/illumos-gate/usr/src/common/net/wanboot/crypt/
H A Ddes3.c111 uint64_t tmpbuf[3]; local
157 currentkey = tmpbuf;

Completed in 113 milliseconds

1234