| /illumos-gate/usr/src/cmd/mail/ |
| H A D | lock.c | 38 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 D | savehdrs.c | 40 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 D | log_get.c | 101 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 D | AudioPipe.cc | 107 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 D | remote.c | 36 char tbuf[BUFSIZ]; local 41 if ((stat = rgetent(tbuf, host, sizeof (tbuf))) <= 0) {
|
| /illumos-gate/usr/src/uts/common/syscall/ |
| H A D | symlink.c | 62 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/mailx/ |
| H A D | main.c | 79 struct termio tbuf; local 116 if (ioctl(1, TCGETA, &tbuf)==0) { 118 baud = tbuf.c_cflag & CBAUD;
|
| /illumos-gate/usr/src/cmd/bnu/ |
| H A D | logent.c | 190 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 D | account.c | 334 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/lib/libbsm/common/ |
| H A D | audit_rexecd.c | 135 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 D | audit_rshd.c | 101 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 D | audit_rexd.c | 159 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 D | tmutil.c | 97 char tbuf[BUFSIZ]; local 98 char *tp = tbuf;
|
| H A D | sttydefs.c | 249 char tbuf[BUFSIZ], *tp; local 257 tp = tbuf;
|
| H A D | tmchild.c | 493 static char tbuf[BUFSIZ]; /* static buf for TERM */ variable 616 (void) sprintf(tbuf, "TERM=%s", pmtab->p_termtype); 617 if (putenv(tbuf)) {
|
| H A D | tmexpress.c | 238 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 D | vgrindefs.c | 19 * 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/hal/hald/ |
| H A D | logger.c | 142 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 D | termcap.c | 39 * 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 D | vio_util.c | 312 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/cmd/lp/filter/postscript/postio/ |
| H A D | ifdef.c | 335 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/lib/fm/topo/libtopo/common/ |
| H A D | topo_2xml.c | 110 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/cmd-inet/usr.bin/telnet/ |
| H A D | utilities.c | 731 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 D | snoop_ntp.c | 457 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 D | script.c | 185 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);
|