Searched refs:tbuf (Results 1 - 22 of 22) sorted by relevance

/osnet-11/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...]
/osnet-11/usr/src/lib/efcode/engine/
H A Denv.c528 char tbuf[CMN_MSG_SIZE]; local
553 strncpy(tbuf, fmt, bytes);
554 strncpy(tbuf+bytes, "%", 1);
555 strncpy(tbuf+bytes+1, fmt+bytes, 1);
557 tbuf[bytes] = 0;
561 tbuf+bytes-3);
563 strncpy(fmtbuf, tbuf, bsize);
569 strncpy(tbuf, fmt, bytes);
570 tbuf[bytes] = 0;
575 strncpy(tbuf, fm
[all...]
/osnet-11/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...]
/osnet-11/usr/src/lib/libbsm/common/
H A Daudit_rexd.c160 char *tbuf; /* temporary buffer */ local
243 if ((tbuf = malloc(tlen)) == NULL) {
247 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
248 (void) au_write(rd, au_to_text(tbuf));
249 (void) free(tbuf);
278 char *tbuf; /* temporary buffer */ local
360 if ((tbuf = malloc(tlen)) == NULL) {
365 (void) snprintf(tbuf, tlen, gtxt, cmdbuf);
366 (void) au_write(rd, au_to_text(tbuf));
367 (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...]
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);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/File/
H A DCompare.pm82 my ($fr,$tr,$fbuf,$tbuf);
83 $fbuf = $tbuf = '';
85 unless (defined($tr = read(TO,$tbuf,$fr)) && $tbuf eq $fbuf) {
89 goto fail_inner if defined($tr = read(TO,$tbuf,$size)) && $tr > 0;
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/IO/
H A Dpoll.c51 struct timeval *tbuf = (struct timeval *)0; local
88 tbuf = &timebuf;
91 err = select(n+1,&rfd,&wfd,&efd,tbuf);
/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Ddns_ho.c694 char tbuf[MAXDNAME+1]; local
804 n = dn_expand(ansbuf, eor, cp, tbuf, sizeof tbuf);
805 if (n < 0 || !maybe_ok(pvt->res, tbuf, name_ok)) {
817 n = strlen(tbuf) + 1; /*%< for the \\0 */
822 strcpy(bp, tbuf); /* (checked) */
829 n = dn_expand(ansbuf, eor, cp, tbuf, sizeof tbuf);
830 if (n < 0 || !maybe_dnok(pvt->res, tbuf)) {
849 n = strlen(tbuf)
[all...]
/osnet-11/usr/src/lib/libsldap/common/
H A Dns_config.c1667 char tbuf[100], *ptbuf; local
2224 if (j > sizeof (tbuf)) {
2228 (void) strlcpy(tbuf, cp, j);
2229 j = __s_get_enum_value(ptr, tbuf,
2231 ptbuf = tbuf;
2253 if (j > sizeof (tbuf)) {
2257 (void) strlcpy(tbuf, cp, j);
2258 j = __s_get_enum_value(ptr, tbuf, def->index);
2259 ptbuf = tbuf;
2297 if (j > sizeof (tbuf)) {
[all...]
/osnet-11/usr/src/lib/libnisdb/
H A Dldap_map.c366 char tbuf[2 * sizeof (obj->zo_ttl) + 1]; local
401 (void) memset(tbuf, 0, sizeof (tbuf));
404 sprintf(tbuf, "%x", obj->zo_ttl);
410 if (addSCol2RuleValue("zo_ttl", tbuf, rv) != 0) {
H A Dnis_db.cc614 char *table, tbuf[MAXPATHLEN + NIS_MAXNAMELEN + 1]; local
623 table = internal_table_name(objName, tbuf);
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_db.c1129 char *tbuf, *buf; local
1141 tbuf = malloc(tsz);
1143 if (tbuf == NULL || buf == NULL)
1149 sz = read(fd, tbuf, tsz);
1163 ret = bcmp(tbuf, buf, tsz);
1165 if (tbuf)
1166 free(tbuf);
/osnet-11/usr/src/lib/libdladm/common/
H A Dusage.c189 dissect_time(char *tbuf, net_time_t *nt) argument
197 if (tbuf == NULL || nt == NULL)
200 d = strtok(tbuf, ","); /* Date */
/osnet-11/usr/src/lib/liblldp/common/
H A Dliblldp_tlv.c2143 char tbuf[LLDP_STRSIZE]; local
2144 char *p = tbuf;
2147 (void) strncpy(tbuf, buf, strlen(buf));
2148 tbuf[strlen(buf)] = '\0';
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dpp_sys.c998 struct timeval *tbuf = &timebuf; local
1064 tbuf = Null(struct timeval*);
1104 (void*) tbuf); /* Workaround for compiler bug. */
1111 tbuf);
1129 if (GIMME == G_ARRAY && tbuf) {
3291 STDCHAR tbuf[512]; local
3376 len = PerlIO_read(fp, tbuf, sizeof(tbuf));
3383 s = tbuf;
3391 if (len && len < sizeof(tbuf)
[all...]
H A Dpp_ctl.c2640 char tbuf[TYPE_DIGITS(long) + 12 + 10]; local
2641 char *tmpbuf = tbuf;
3335 char tbuf[TYPE_DIGITS(long) + 12]; local
3336 char *tmpbuf = tbuf;
H A Dsv.c2955 char tbuf[64]; /* Must fit sprintf/Gconvert of longest IV/NV */ local
2956 char *tmpbuf = tbuf;
/osnet-11/usr/src/lib/libipsecutil/common/
H A Dipsec_util.c1848 char tbuf[TBUF_SIZE]; /* For strftime() call. */ local
1849 const char *tp = tbuf;
1860 if (strftime(tbuf, TBUF_SIZE, NULL, localtime_r(&t, &res)) == 0)
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_sendrecv.c2617 char tbuf[1024]; local
2618 (void) snprintf(tbuf, sizeof (tbuf), dgettext(TEXT_DOMAIN,
2620 zfs_setprop_error(hdl, ZFS_TYPE_DATASET, propname, error, tbuf);
H A Dlibzfs_share.c743 char tbuf[ZFS_ERRBUF_LEN]; local
744 (void) snprintf(tbuf, sizeof (tbuf), dgettext(TEXT_DOMAIN,
746 (void) zfs_standard_error(hdl, NULL, ZFS_TYPE_DATASET, error, tbuf);
/osnet-11/usr/src/lib/libast/common/misc/
H A Dmagic.c163 char tbuf[2 * PATH_MAX]; /* type string */ \
2406 s = type(mp, file, st, mp->tbuf, &mp->tbuf[sizeof(mp->tbuf)-1]);

Completed in 106 milliseconds