Searched refs:tbuf (Results 1 - 25 of 93) 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/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/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/acct/
H A Dacctcon1.c54 int tsize = -1; /* used slots in tbuf table */
58 struct tbuf { struct
67 } * tbuf; variable in typeref:struct:tbuf
96 static void update(struct tbuf *);
129 if ((tbuf = (struct tbuf *) calloc(a_tsize,
130 sizeof (struct tbuf))) == NULL) {
243 struct tbuf *tp;
255 for (tp = tbuf; tp <= &tbuf[tsiz
[all...]
H A Dacctcon.c53 int tsize = -1; /* highest index of used slot in tbuf table */
60 struct tbuf { struct
69 } *tbuf; variable in typeref:struct:tbuf
101 static void update(struct tbuf *);
104 static int tcmp(struct tbuf *, struct tbuf *);
135 if ((tbuf = (struct tbuf *)calloc(a_tsize,
136 sizeof (struct tbuf))) == NULL) {
219 struct tbuf *t
[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/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/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 Dline.c263 static struct termio tbuf; local
270 if ((*Ioctl)(Ifn, TCGETA, &tbuf) != 0) {
273 tbufs.c_lflag = tbuf.c_lflag;
274 tbufs.c_oflag = tbuf.c_oflag;
275 tbufs.c_iflag = tbuf.c_iflag;
276 tbufs.c_cflag = tbuf.c_cflag;
278 tbufs.c_cc[i] = tbuf.c_cc[i];
318 tbuf.c_lflag = tbufs.c_lflag;
319 tbuf.c_oflag = tbufs.c_oflag;
320 tbuf
[all...]
/illumos-gate/usr/src/cmd/tip/
H A Dremcap.c53 * BUG: Should use a "last" pointer in tbuf, so that searching
64 static char *tbuf; variable
120 tbuf = bp;
134 tbuf = bp;
224 char *holdtbuf = tbuf;
227 p = tbuf + strlen(tbuf) - 2; /* before the last colon */
229 if (p < tbuf) {
260 tbuf = holdtbuf;
275 Bp = tbuf;
[all...]
/illumos-gate/usr/src/lib/efcode/engine/
H A Denv.c532 char tbuf[CMN_MSG_SIZE]; local
557 strncpy(tbuf, fmt, bytes);
558 strncpy(tbuf+bytes, "%", 1);
559 strncpy(tbuf+bytes+1, fmt+bytes, 1);
561 tbuf[bytes] = 0;
565 tbuf+bytes-3);
567 strncpy(fmtbuf, tbuf, bsize);
573 strncpy(tbuf, fmt, bytes);
574 tbuf[bytes] = 0;
579 strncpy(tbuf, fm
[all...]
/illumos-gate/usr/src/cmd/captoinfo/
H A Dotermcap.c67 * BUG: Should use a "last" pointer in tbuf, so that searching
78 static char *tbuf; variable
129 tbuf = bp;
211 char *holdtbuf = tbuf;
214 p = tbuf + strlen(tbuf) - 2; /* before the last colon */
216 if (p < tbuf) {
250 tbuf = holdtbuf;
265 Bp = tbuf;
309 char *bp = tbuf;
[all...]
H A Dcaptoinfo.c175 char *tbuf = bp; local
179 tbuf = tskip(tbuf);
180 while (*tbuf == '\t' || *tbuf == ' ' || *tbuf == ':')
181 tbuf++;
183 if (*tbuf == 0)
187 if (*tbuf == '.') {
190 "commented out.\n", tbuf[
[all...]
/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);
[all...]
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...]
/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/logadm/
H A Dkw.c354 char tbuf[4]; local
356 /* copy % sequence to tbuf */
357 tbuf[0] = '%';
358 tbuf[1] = fn_getc(src);
359 if (tbuf[1] == 'E' || tbuf[1] == 'O') {
361 tbuf[2] = fn_getc(src);
362 tbuf[3] = '\0';
364 tbuf[2] = '\0';
366 if (strftime(buf, MAXDIGITS, tbuf, gmt_t
[all...]
/illumos-gate/usr/src/uts/common/xen/dtrace/
H A Dxdt.c51 * +---------+- tbuf.va + (tbuf.size * n)
57 * +---------+- tbuf.va + tbuf.size
61 * +---------+- tbuf.va
136 #define XDT_TBUF_RETRY 50 /* tbuf disable retry count */
312 } tbuf; variable in typeref:struct:__anon9279
501 (knp++)->value.ui64 = tbuf.stat_dropped_recs;
622 tbuf.size = tbuf_op.size;
623 tbuf
[all...]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_dtime.c392 char tbuf[64]; local
399 (void) ctime_r(&t, tbuf, sizeof (tbuf));
401 (void) fprintf(fp, tbuf);
433 makedumpdate(dumpdates_t *ddp, char *tbuf) argument
445 if (!ddp || !tbuf)
447 else if (!(nmp = get_ddname(&tbuf))) {
450 } else if ((ddp->dd_level = get_ddlevel(&tbuf)) < 0) {
453 } else if (!(un_buf = get_ddate(&tbuf))) {
481 char tbuf[BUFSI local
962 char tbuf[64]; local
999 char tbuf[64]; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_smb.c1056 char tbuf[256]; local
1086 tbuf[0] = '\0';
1090 length = strlcpy(tbuf, (char *)protodata,
1091 sizeof (tbuf));
1095 i, tbuf);
1104 snprintf(xtra, xsz, " Dialect[%d]=%s", last, tbuf);
1164 tbuf[0] = '\0';
1166 (void) unicode2ascii(tbuf, sizeof (tbuf),
1167 protodata, 2 * sizeof (tbuf));
1510 char tbuf[256]; local
1612 char tbuf[256]; local
[all...]
/illumos-gate/usr/src/cmd/strings/
H A Dstrings.c100 static char *tbuf = NULL; variable
293 tbuf = buf;
405 if (tbuf != NULL) {
407 tbuf = (char *)realloc(buf, buf_size);
408 if (tbuf == NULL) {
416 buf = tbuf;
447 if (tbuf != NULL) {
449 tbuf = (char *)realloc(buf, buf_size);
450 if (tbuf == NULL) {
458 buf = tbuf;
[all...]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_2xml.c110 char vbuf[INT64BUFSZ], tbuf[32], *pval = NULL, *aval = NULL; local
118 (void) snprintf(tbuf, 10, "%s", Int32);
129 (void) snprintf(tbuf, 10, "%s", UInt32);
141 (void) snprintf(tbuf, 10, "%s", Int64);
153 (void) snprintf(tbuf, 10, "%s", UInt64);
163 (void) snprintf(tbuf, 10, "%s", "string");
181 (void) snprintf(tbuf, 10, "%s", FMRI);
207 (void) snprintf(tbuf, 10, "%s", UInt32_Arr);
216 begin_end_element(fp, Propval, Name, pv->tp_name, Type, tbuf,
/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...]

Completed in 109 milliseconds

1234