Searched defs:tbuf (Results 1 - 25 of 89) sorted by relevance

1234

/illumos-gate/usr/src/cmd/mail/
H A Dlock.c38 char tbuf[80]; local
44 (void) snprintf(tbuf, sizeof (tbuf),
49 strcpy(tbuf, "Cannot create temp lock file\n");
52 strcpy(tbuf, "Error writing pid to lock file\n");
55 strcpy(tbuf, "Creation of lockfile failed after 10 tries");
58 strcpy(tbuf, "Cannot link temp lockfile to lockfile\n");
61 strcpy(tbuf, "Cannot set mandatory file lock on temp lockfile\n");
64 errmsg(E_LOCK, tbuf);
H A Dsavehdrs.c40 char tbuf[HDRSIZ]; local
68 (void) snprintf(tbuf, sizeof (tbuf),
72 pushlist(H_RECEIVED, HEAD, tbuf, FALSE);
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_get.c101 char *np, *tbuf; local
106 fail = np = tbuf = NULL;
267 if ((ret = __os_malloc(len, NULL, &tbuf)) != 0)
276 if ((ret = __os_read(dblp->c_fd, tbuf, len, &nr)) != 0) {
287 memcpy((u_int8_t *)tbuf + nr, lp->buf, len - nr);
291 if ((ret = __db_retcopy(dbt, tbuf, len,
294 __os_free(tbuf, 0);
295 tbuf = NULL;
326 if (tbuf != NULL)
327 __os_free(tbuf,
[all...]
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioPipe.cc107 char *tbuf; // current buffer pointer local
111 tbuf = (char *)buf;
118 err = AudioUnixfile::ReadData((void*)tbuf, remain, pos);
126 tbuf += remain;
/illumos-gate/usr/src/cmd/tip/
H A Dremote.c36 char tbuf[BUFSIZ]; local
41 if ((stat = rgetent(tbuf, host, sizeof (tbuf))) <= 0) {
/illumos-gate/usr/src/uts/common/syscall/
H A Dsymlink.c62 char *tbuf; local
89 tbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP);
90 if ((error = copyinstr(target, tbuf, MAXPATHLEN, &tlen)) == 0) {
95 tbuf, CRED(), NULL, 0);
98 tbuf, error);
100 kmem_free(tbuf, MAXPATHLEN);
/illumos-gate/usr/src/cmd/bnu/
H A Dlogent.c190 struct tms tbuf; local
195 past = times(&tbuf);
198 now = times(&tbuf);
212 struct timeb tbuf; local
222 ftime(&tbuf);
223 rval = (tbuf.time - tbuf1.time) * 1000
224 + tbuf.millitm - tbuf1.millitm;
225 tbuf1 = tbuf;
H A Daccount.c334 struct tms tbuf; local
338 times(&tbuf);
339 rval = ((tbuf.tms_utime-utime) + (tbuf.tms_stime-stime))*1000/HZ;
340 utime = tbuf.tms_utime;
341 stime = tbuf.tms_stime;
/illumos-gate/usr/src/cmd/mailx/
H A Dmain.c80 struct termio tbuf; local
117 if (ioctl(1, TCGETA, &tbuf)==0) {
119 baud = tbuf.c_cflag & CBAUD;
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_rexecd.c135 char *tbuf; /* temporary buffer */ local
216 if ((tbuf = malloc(tlen)) == NULL) {
220 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
221 (void) au_write(rd, au_to_text(tbuf));
222 (void) free(tbuf);
246 char *tbuf; /* temporary buffer */ local
324 if ((tbuf = malloc(tlen)) == NULL) {
327 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
328 (void) au_write(rd, au_to_text(tbuf));
329 (void) free(tbuf);
[all...]
H A Daudit_rshd.c101 char *tbuf; /* temporary buffer */ local
141 if ((tbuf = malloc(tlen)) == NULL) {
145 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
146 (void) au_write(rd, au_to_text(tbuf));
147 (void) free(tbuf);
H A Daudit_rexd.c159 char *tbuf; /* temporary buffer */ local
242 if ((tbuf = malloc(tlen)) == NULL) {
246 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
247 (void) au_write(rd, au_to_text(tbuf));
248 (void) free(tbuf);
277 char *tbuf; /* temporary buffer */ local
359 if ((tbuf = malloc(tlen)) == NULL) {
364 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
365 (void) au_write(rd, au_to_text(tbuf));
366 (void) free(tbuf);
[all...]
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutil.c97 char tbuf[BUFSIZ]; local
98 char *tp = tbuf;
H A Dsttydefs.c249 char tbuf[BUFSIZ], *tp; local
257 tp = tbuf;
H A Dtmchild.c493 static char tbuf[BUFSIZ]; /* static buf for TERM */ variable
616 (void) sprintf(tbuf, "TERM=%s", pmtab->p_termtype);
617 if (putenv(tbuf)) {
H A Dtmexpress.c238 char tbuf[BUFSIZ]; local
279 copystr(tbuf, optarg);
280 pmtab->p_prompt = strsave(getword(tbuf, &size, TRUE));
/illumos-gate/usr/src/cmd/vgrind/
H A Dvgrindefs.c19 * BUG: Should use a "last" pointer in tbuf, so that searching
30 static char *tbuf; variable
58 tbuf = bp;
115 char *holdtbuf = tbuf;
118 p = tbuf + strlen(tbuf) - 2; /* before the last colon */
120 if (p<tbuf) {
147 q[BUFSIZ - (p-tbuf)] = 0;
150 tbuf = holdtbuf;
165 Bp = tbuf;
[all...]
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/
H A Difdef.c335 char tbuf[256]; /* temporary input buffer */ variable
336 char *nptr = tbuf; /* next character comes from here */
337 char *eptr = tbuf; /* one past the last character in tbuf */
515 * initially stored in tbuf[] and a line at a time is transferred from there to
531 while ( nptr < eptr ) { /* grab characters from tbuf */
544 nptr = eptr = tbuf;
552 n = ((n < 1) ? 1 : ((n < sizeof(tbuf)) ? n : sizeof(tbuf)));
553 if ( (n = read(ttyi, tbuf,
[all...]
/illumos-gate/usr/src/cmd/hal/hald/
H A Dlogger.c142 char tbuf[256]; local
176 strftime (tbuf, sizeof (tbuf), "%H:%M:%S", tlocaltime);
181 snprintf (logmsg, sizeof(logmsg), "[%d]: %s.%03d %s %s:%d: %s\n", pid, tbuf, (int)(tnow.tv_usec/1000), pri, file, line, buf);
183 snprintf (logmsg, sizeof(logmsg), "%s.%03d %s %s:%d: %s\n", tbuf, (int)(tnow.tv_usec/1000), pri, file, line, buf);
214 char tbuf[256]; local
231 strftime (tbuf, sizeof (tbuf), "%H:%M:%S", tlocaltime);
234 syslog (LOG_INFO, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf);
236 fprintf (stderr, "%d: %s.%03d: %s", pid, tbuf, (in
[all...]
/illumos-gate/usr/src/ucblib/libtermcap/
H A Dtermcap.c39 * BUG: Should use a "last" pointer in tbuf, so that searching
50 static char *tbuf; variable
77 tbuf = bp;
92 tbuf = cp;
94 tbuf = bp;
159 char *holdtbuf = tbuf;
162 p = tbuf + strlen(tbuf) - 2; /* before the last colon */
164 if (p < tbuf) {
171 tngetsize(tbuf);
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvio_util.c312 char *tbuf; local
325 tbuf = kmem_zalloc(vmultip->tbsz, KM_SLEEP);
326 vmultip->bufsz_tbl = (uint32_t *)tbuf;
327 vmultip->nbuf_tbl = (uint32_t *)(tbuf +
329 vmultip->vmpp = (vio_mblk_pool_t **)(tbuf +
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_aapl.c168 char *tbuf, size_t tbuflen)
191 (void) snprintf(tbuf, tbuflen, "%s:AFP_Resource", fileinfo->fi_name);
193 od->d_dnode, tbuf, &snode);
210 (void) snprintf(tbuf, tbuflen, "%s:AFP_AfpInfo", fileinfo->fi_name);
212 od->d_dnode, tbuf, &snode);
166 smb2_aapl_get_macinfo(smb_request_t *sr, smb_odir_t *od, smb_fileinfo_t *fileinfo, smb_macinfo_t *mi, char *tbuf, size_t tbuflen) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dutilities.c731 char tbuf[64]; local
732 (void) sprintf(tbuf, "%s%s%s%s%s",
741 (void) fprintf(NetTrace, "%s", tbuf[1] ?
742 &tbuf[1] : "0");
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ntp.c457 static char tbuf[sizeof ("yyyy-mm-dd hh:mm:ss")]; local
460 (void) strftime(tbuf, sizeof (tbuf), "%Y-%m-%d %H:%M:%S", time_parts);
461 return (tbuf);
/illumos-gate/usr/src/cmd/script/
H A Dscript.c185 char tbuf[BUFSIZ]; local
190 strftime(tbuf, BUFSIZ, "%c", localtime(&tvec));
191 fprintf(fscript, gettext("Script started on %s\n"), tbuf);
245 char tbuf[BUFSIZ]; local
249 strftime(tbuf, BUFSIZ, "%c", localtime(&tvec));
250 fprintf(fscript, gettext("\nscript done on %s\n"), tbuf);

Completed in 554 milliseconds

1234