Home
last modified time | relevance | path

Searched refs:tbuf (Results 1 – 25 of 93) sorted by relevance

1234

/illumos-gate/usr/src/cmd/acct/
H A Dacctcon.c58 struct tbuf { struct
67 } *tbuf; argument
99 static void update(struct tbuf *);
102 static int tcmp(struct tbuf *, struct tbuf *);
133 if ((tbuf = (struct tbuf *)calloc(a_tsize, in main()
134 sizeof (struct tbuf))) == NULL) { in main()
217 struct tbuf *tp; in loop()
229 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in loop()
248 update(&tbuf[iline()]); in loop()
295 if (EQN(wb.ut_line, tbuf[i].tline)) in iline()
[all …]
H A Dacctcon1.c58 struct tbuf { struct
67 } * tbuf; argument
96 static void update(struct tbuf *);
129 if ((tbuf = (struct tbuf *) calloc(a_tsize, in main()
130 sizeof (struct tbuf))) == NULL) { in main()
243 struct tbuf *tp; in loop()
255 for (tp = tbuf; tp <= &tbuf[tsize]; tp++) in loop()
272 update(&tbuf[iline()]); in loop()
319 if (EQN(wb.ut_line, tbuf[i].tline)) in iline()
323 if ((tbuf = (struct tbuf *) realloc(tbuf, a_tsize * in iline()
[all …]
/illumos-gate/usr/src/cmd/mail/
H A Dlock.c36 char tbuf[80]; in lock() local
42 (void) snprintf(tbuf, sizeof (tbuf), in lock()
47 strcpy(tbuf, "Cannot create temp lock file\n"); in lock()
50 strcpy(tbuf, "Error writing pid to lock file\n"); in lock()
53 strcpy(tbuf, "Creation of lockfile failed after 10 tries"); in lock()
56 strcpy(tbuf, "Cannot link temp lockfile to lockfile\n"); in lock()
59 strcpy(tbuf, "Cannot set mandatory file lock on temp lockfile\n"); in lock()
62 errmsg(E_LOCK, tbuf); in lock()
H A Dsavehdrs.c38 char tbuf[HDRSIZ]; local
66 (void) snprintf(tbuf, sizeof (tbuf),
70 pushlist(H_RECEIVED, HEAD, tbuf, FALSE);
/illumos-gate/usr/src/ucblib/libtermcap/
H A Dtermcap.c48 static char *tbuf; variable
75 tbuf = bp; in tgetent()
90 tbuf = cp; in tgetent()
92 tbuf = bp; in tgetent()
157 char *holdtbuf = tbuf; in tnchktc()
160 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc()
162 if (p < tbuf) { in tnchktc()
169 tngetsize(tbuf); in tnchktc()
190 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc()
193 tbuf = holdtbuf; in tnchktc()
[all …]
/illumos-gate/usr/src/cmd/vgrind/
H A Dvgrindefs.c28 static char *tbuf; variable
56 tbuf = bp; in tgetent()
113 char *holdtbuf = tbuf; in tnchktc()
116 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc()
118 if (p<tbuf) { in tnchktc()
145 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc()
148 tbuf = holdtbuf; in tnchktc()
163 Bp = tbuf; in tnamatch()
207 char *bp = tbuf; in tgetnum()
239 char *bp = tbuf; in tgetflag()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/
H A Dlogger.c142 char tbuf[256]; in logger_emit() local
176 strftime (tbuf, sizeof (tbuf), "%H:%M:%S", tlocaltime); in logger_emit()
181 …snprintf (logmsg, sizeof(logmsg), "[%d]: %s.%03d %s %s:%d: %s\n", pid, tbuf, (int)(tnow.tv_usec/10… in logger_emit()
183 …snprintf (logmsg, sizeof(logmsg), "%s.%03d %s %s:%d: %s\n", tbuf, (int)(tnow.tv_usec/1000), pri, f… in logger_emit()
214 char tbuf[256]; in logger_forward_debug() local
231 strftime (tbuf, sizeof (tbuf), "%H:%M:%S", tlocaltime); in logger_forward_debug()
234 syslog (LOG_INFO, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf); in logger_forward_debug()
236 fprintf (stderr, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf); in logger_forward_debug()
/illumos-gate/usr/src/uts/common/xen/dtrace/
H A Dxdt.c312 } tbuf; variable
501 (knp++)->value.ui64 = tbuf.stat_dropped_recs; in xdt_kstat_update()
622 tbuf.size = tbuf_op.size; in xdt_attach_trace_buffers()
623 tbuf.start_mfn = (mfn_t)tbuf_op.buffer_mfn; in xdt_attach_trace_buffers()
624 tbuf.cnt = xdt_ncpus; in xdt_attach_trace_buffers()
626 ASSERT(tbuf.start_mfn != MFN_INVALID); in xdt_attach_trace_buffers()
627 ASSERT(tbuf.cnt > 0); in xdt_attach_trace_buffers()
629 len = tbuf.size * tbuf.cnt; in xdt_attach_trace_buffers()
630 tbuf.va = vmem_alloc(heap_arena, len, VM_SLEEP); in xdt_attach_trace_buffers()
632 if ((err = xdt_map_trace_buffers(tbuf.start_mfn, tbuf.va, len)) != 0) { in xdt_attach_trace_buffers()
[all …]
/illumos-gate/usr/src/cmd/captoinfo/
H A Dotermcap.c76 static char *tbuf; variable
127 tbuf = bp; in _tgetent()
209 char *holdtbuf = tbuf; in otnchktc()
212 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in otnchktc()
214 if (p < tbuf) { in otnchktc()
248 tbuf = holdtbuf; in otnchktc()
263 Bp = tbuf; in otnamatch()
307 char *bp = tbuf; in otgetnum()
339 char *bp = tbuf; in otgetflag()
365 char *bp = tbuf; in otgetstr()
H A Dcaptoinfo.c173 char *tbuf = bp; in checktermcap() local
177 tbuf = tskip(tbuf); in checktermcap()
178 while (*tbuf == '\t' || *tbuf == ' ' || *tbuf == ':') in checktermcap()
179 tbuf++; in checktermcap()
181 if (*tbuf == 0) in checktermcap()
185 if (*tbuf == '.') { in checktermcap()
188 "commented out.\n", tbuf[1], tbuf[2]); in checktermcap()
189 if (!capsearch(boolcodes, oboolcodes, tbuf + 1) && in checktermcap()
190 !capsearch(numcodes, onumcodes, tbuf + 1) && in checktermcap()
191 !capsearch(strcodes, ostrcodes, tbuf + 1)) in checktermcap()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_dtime.c392 char tbuf[64]; in put_ddate() local
399 (void) ctime_r(&t, tbuf, sizeof (tbuf)); in put_ddate()
401 (void) fprintf(fp, tbuf); in put_ddate()
433 makedumpdate(dumpdates_t *ddp, char *tbuf) in makedumpdate() argument
445 if (!ddp || !tbuf) in makedumpdate()
447 else if (!(nmp = get_ddname(&tbuf))) { in makedumpdate()
450 } else if ((ddp->dd_level = get_ddlevel(&tbuf)) < 0) { in makedumpdate()
453 } else if (!(un_buf = get_ddate(&tbuf))) { in makedumpdate()
481 char tbuf[BUFSIZ]; in getrecord() local
487 if (getaline(fp, tbuf, sizeof (tbuf)) != tbuf) in getrecord()
[all …]
/illumos-gate/usr/src/cmd/tip/
H A Dremcap.c61 static char *tbuf; variable
117 tbuf = bp; in tgetent()
131 tbuf = bp; in getent()
221 char *holdtbuf = tbuf; in tnchktc()
224 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc()
226 if (p < tbuf) { in tnchktc()
257 tbuf = holdtbuf; in tnchktc()
272 Bp = tbuf; in tnamatch()
321 char *bp = tbuf; in tgetnum()
353 char *bp = tbuf; in tgetflag()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dline.c264 static struct termio tbuf; local
271 if ((*Ioctl)(Ifn, TCGETA, &tbuf) != 0) {
274 tbufs.c_lflag = tbuf.c_lflag;
275 tbufs.c_oflag = tbuf.c_oflag;
276 tbufs.c_iflag = tbuf.c_iflag;
277 tbufs.c_cflag = tbuf.c_cflag;
279 tbufs.c_cc[i] = tbuf.c_cc[i];
319 tbuf.c_lflag = tbufs.c_lflag;
320 tbuf.c_oflag = tbufs.c_oflag;
321 tbuf.c_iflag = tbufs.c_iflag;
[all …]
H A Dlogent.c187 struct tms tbuf; in millitick() local
192 past = times(&tbuf); in millitick()
195 now = times(&tbuf); in millitick()
209 struct timeb tbuf; in millitick() local
219 ftime(&tbuf); in millitick()
220 rval = (tbuf.time - tbuf1.time) * 1000 in millitick()
221 + tbuf.millitm - tbuf1.millitm; in millitick()
222 tbuf1 = tbuf; in millitick()
/illumos-gate/usr/src/uts/common/syscall/
H A Dsymlink.c62 char *tbuf; in symlinkat() local
89 tbuf = kmem_alloc(MAXPATHLEN, KM_SLEEP); in symlinkat()
90 if ((error = copyinstr(target, tbuf, MAXPATHLEN, &tlen)) == 0) { in symlinkat()
95 tbuf, CRED(), NULL, 0); in symlinkat()
98 tbuf, error); in symlinkat()
100 kmem_free(tbuf, MAXPATHLEN); in symlinkat()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_smb.c1056 char tbuf[256]; in interpret_negprot() local
1086 tbuf[0] = '\0'; in interpret_negprot()
1090 length = strlcpy(tbuf, (char *)protodata, in interpret_negprot()
1091 sizeof (tbuf)); in interpret_negprot()
1095 i, tbuf); in interpret_negprot()
1104 snprintf(xtra, xsz, " Dialect[%d]=%s", last, tbuf); in interpret_negprot()
1164 tbuf[0] = '\0'; in interpret_negprot()
1166 (void) unicode2ascii(tbuf, sizeof (tbuf), in interpret_negprot()
1167 protodata, 2 * sizeof (tbuf)); in interpret_negprot()
1169 (void) strlcpy(tbuf, (char *)protodata, in interpret_negprot()
[all …]
/illumos-gate/usr/src/cmd/logadm/
H A Dkw.c352 char tbuf[4]; in kw_expand() local
355 tbuf[0] = '%'; in kw_expand()
356 tbuf[1] = fn_getc(src); in kw_expand()
357 if (tbuf[1] == 'E' || tbuf[1] == 'O') { in kw_expand()
359 tbuf[2] = fn_getc(src); in kw_expand()
360 tbuf[3] = '\0'; in kw_expand()
362 tbuf[2] = '\0'; in kw_expand()
364 if (strftime(buf, MAXDIGITS, tbuf, gmt_tm) == 0) in kw_expand()
366 fn_puts(dst, tbuf); in kw_expand()
/illumos-gate/usr/src/lib/libbsm/common/
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);
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);
/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, 0);
/illumos-gate/usr/src/cmd/strings/
H A Dstrings.c98 static char *tbuf = NULL; variable
291 tbuf = buf;
403 if (tbuf != NULL) {
405 tbuf = (char *)realloc(buf, buf_size);
406 if (tbuf == NULL) {
414 buf = tbuf;
445 if (tbuf != NULL) {
447 tbuf = (char *)realloc(buf, buf_size);
448 if (tbuf == NULL) {
456 buf = tbuf;
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioPipe.cc105 char *tbuf; // current buffer pointer in ReadData() local
109 tbuf = (char *)buf; in ReadData()
116 err = AudioUnixfile::ReadData((void*)tbuf, remain, pos); in ReadData()
124 tbuf += remain; in ReadData()
/illumos-gate/usr/src/cmd/script/
H A Dscript.c185 char tbuf[BUFSIZ]; in dooutput() local
190 strftime(tbuf, BUFSIZ, "%c", localtime(&tvec)); in dooutput()
191 fprintf(fscript, gettext("Script started on %s\n"), tbuf); in dooutput()
245 char tbuf[BUFSIZ]; in done() local
249 strftime(tbuf, BUFSIZ, "%c", localtime(&tvec)); in done()
250 fprintf(fscript, gettext("\nscript done on %s\n"), tbuf); in done()
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/
H A Difdef.c333 char tbuf[256]; /* temporary input buffer */ variable
334 char *nptr = tbuf; /* next character comes from here */
335 char *eptr = tbuf; /* one past the last character in tbuf */
542 nptr = eptr = tbuf; in readline()
550 n = ((n < 1) ? 1 : ((n < sizeof(tbuf)) ? n : sizeof(tbuf))); in readline()
551 if ( (n = read(ttyi, tbuf, n)) < 0 ) in readline()
565 n = ((n < 1) ? 1 : ((n < sizeof(tbuf)) ? n : sizeof(tbuf))); in readline()
566 if ( (n = read(ttyi, tbuf, n)) < 0 ) in readline()
570 if ( write(1, tbuf, n) != n ) in readline()
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmach_descrip.c292 caddr_t tbuf = NULL; in mach_descrip_update() local
311 if (tbuf != NULL) in mach_descrip_update()
312 (*curr_mach_descrip_memops->buf_freep)(tbuf, md_space); in mach_descrip_update()
325 tbuf = (caddr_t)(*curr_mach_descrip_memops->buf_allocp) in mach_descrip_update()
327 if (tbuf == NULL) { in mach_descrip_update()
332 tbuf_pa = va_to_pa(tbuf); in mach_descrip_update()
350 tgen = mach_descrip_find_md_gen(tbuf); in mach_descrip_update()
370 if (bcmp(curr_mach_descrip->va, tbuf, md_size) != 0) { in mach_descrip_update()
429 curr_mach_descrip->va = tbuf; in mach_descrip_update()
442 if (tbuf != NULL) in mach_descrip_update()
[all …]

1234