/freebsd-9.3-release/usr.bin/tip/tip/ |
H A D | uucplock.c | 65 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; local 69 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname); 70 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660); 76 fd = open(tbuf, O_RDWR, 0); 78 perror(tbuf); 84 perror(tbuf); 103 perror(tbuf); 115 (void)unlink(tbuf); 126 char tbuf[sizeo local [all...] |
/freebsd-9.3-release/contrib/sendmail/test/ |
H A D | t_pathconf.c | 39 char tbuf[100]; local 48 strcpy(tbuf, "TXXXXXX"); 49 fd = mkstemp(tbuf); 52 printf("*** Could not create test file %s\n", tbuf); 59 i = pathconf(tbuf, _PC_CHOWN_RESTRICTED); 60 printf("pathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno); 63 printf("fpathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno); 82 (void) unlink(tbuf);
|
/freebsd-9.3-release/libexec/talkd/ |
H A D | print.c | 65 char tbuf[80]; local 68 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type); 69 tp = tbuf; 80 char tbuf[80], abuf[80]; local 83 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type); 84 tp = tbuf;
|
/freebsd-9.3-release/usr.bin/vgrind/ |
H A D | vgrindefs.c | 44 * BUG: Should use a "last" pointer in tbuf, so that searching 55 static char *tbuf; variable 78 tbuf = bp; 133 char *holdtbuf = tbuf; 136 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ 138 if (p<tbuf) { 162 q[BUFSIZ - (p-tbuf)] = 0; 165 tbuf = holdtbuf; 180 Bp = tbuf; [all...] |
/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | refclock_arbiter.c | 243 char tbuf[BMAX]; /* temp buffer */ local 251 temp = refclock_gtlin(rbufp, tbuf, sizeof(tbuf), &trtmp); 286 if (!strncmp(tbuf, "TQ", 2)) { 287 up->qualchar = tbuf[2]; 291 } else if (!strncmp(tbuf, "SR", 2)) { 292 strlcpy(up->status, tbuf + 2, 300 } else if (!strncmp(tbuf, "LA", 2)) { 301 strlcpy(up->latlon, tbuf + 2, sizeof(up->latlon)); 305 } else if (!strncmp(tbuf, "L [all...] |
H A D | refclock_atom.c | 188 char tbuf[80]; local 202 snprintf(tbuf, sizeof(tbuf), "%.9f", 204 record_clock_stats(&peer->srcadr, tbuf);
|
H A D | ntp_loopfilter.c | 193 char obuf[256], nbuf[256], tbuf[1024]; local 201 snprintf(tbuf, sizeof(tbuf), "%s status: %s -> %s", what, obuf, nbuf); 202 report_event(EVNT_KERN, NULL, tbuf); 459 char tbuf[80]; /* report buffer */ local 488 snprintf(tbuf, sizeof(tbuf), 491 report_event(EVNT_SYSFAULT, NULL, tbuf); 581 snprintf(tbuf, sizeof(tbuf), " [all...] |
/freebsd-9.3-release/usr.bin/finger/ |
H A D | lprint.c | 135 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s, %s", 137 oddfield = demi_print(tbuf, oddfield); 140 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", 142 oddfield = demi_print(tbuf, oddfield); 145 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", 147 oddfield = demi_print(tbuf, oddfield); 151 (void)snprintf(tbuf, sizeo [all...] |
H A D | extern.h | 36 extern char tbuf[1024]; /* Temp buffer for anybody. */
|
H A D | util.c | 77 (void)strncpy(p = tbuf, pw->pw_gecos, sizeof(tbuf)); 78 tbuf[sizeof(tbuf) - 1] = '\0'; 295 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty); 297 error = stat(tbuf, &sb); 308 warn("%s", tbuf); 341 (void)strncpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf)); [all...] |
/freebsd-9.3-release/lib/libc/gen/ |
H A D | syslog.c | 139 char *stdp, tbuf[2048], fmt_cpy[1024], timbuf[26], errstr[64]; local 167 tbuf_cookie.base = tbuf; 168 tbuf_cookie.left = sizeof(tbuf); 182 stdp = tbuf + (sizeof(tbuf) - tbuf_cookie.left); 239 cnt = sizeof(tbuf) - tbuf_cookie.left; 242 if (tbuf[cnt - 1] == '\n') 251 v->iov_len = cnt - (stdp - tbuf); 278 if (send(LogFile, tbuf, cnt, 0) < 0) { 287 if (send(LogFile, tbuf, cn [all...] |
/freebsd-9.3-release/usr.sbin/rtadvd/ |
H A D | advcap.c | 70 * BUG: Should use a "last" pointer in tbuf, so that searching 81 static char *tbuf; variable 116 tbuf = bp; 184 char *holdtbuf = tbuf; 187 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ 189 if (p < tbuf) { 217 tbuf = holdtbuf; 232 Bp = tbuf; 302 char *bp = tbuf; [all...] |
/freebsd-9.3-release/sys/compat/linux/ |
H A D | linux_stats.c | 109 disk_foo(struct somestat *tbuf) 117 if (S_ISCHR(tbuf.st_mode) && 122 tbuf.st_mode &= ~S_IFMT; 123 tbuf.st_mode |= S_IFBLK; 127 tbuf.st_dev = minor(buf->st_dev) & 0xf; 128 tbuf.st_rdev = buf->st_rdev & 0xff; 170 struct l_newstat tbuf; local 172 bzero(&tbuf, sizeof(tbuf)); 173 tbuf [all...] |
/freebsd-9.3-release/contrib/gdb/gdb/tui/ |
H A D | tui.c | 489 struct tchars tbuf; 508 ioctl (FILEDES, TIOCGETC, &tbuf); 509 tbuf.t_intrc = CHK (tbuf.t_intrc, CTRL ('?')); 510 tbuf.t_quitc = CHK (tbuf.t_quitc, CTRL ('\\')); 511 tbuf.t_startc = CHK (tbuf.t_startc, CTRL ('Q')); 512 tbuf.t_stopc = CHK (tbuf [all...] |
/freebsd-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | vis.c | 169 char tbuf[5]; local 189 i = vis(tbuf, c, flag, *++src) - tbuf; 191 memcpy(dst, tbuf, i); 204 dst += vis(tbuf, c, flag, *++src) - tbuf;
|
/freebsd-9.3-release/contrib/gcclibs/libcpp/ |
H A D | charset.c | 734 struct _cpp_strbuf tbuf; local 753 tbuf.asize = 1; 754 tbuf.text = XNEWVEC (uchar, tbuf.asize); 755 tbuf.len = 0; 757 if (!APPLY_CONVERSION (pfile->narrow_cset_desc, sbuf, 1, &tbuf)) 762 if (tbuf.len != 1) 769 c = tbuf.text[0]; 770 free(tbuf.text); 1038 struct _cpp_strbuf *tbuf, boo 1036 convert_ucn(cpp_reader *pfile, const uchar *from, const uchar *limit, struct _cpp_strbuf *tbuf, bool wide) argument 1071 emit_numeric_escape(cpp_reader *pfile, cppchar_t n, struct _cpp_strbuf *tbuf, bool wide) argument 1121 convert_hex(cpp_reader *pfile, const uchar *from, const uchar *limit, struct _cpp_strbuf *tbuf, bool wide) argument 1172 convert_oct(cpp_reader *pfile, const uchar *from, const uchar *limit, struct _cpp_strbuf *tbuf, bool wide) argument 1209 convert_escape(cpp_reader *pfile, const uchar *from, const uchar *limit, struct _cpp_strbuf *tbuf, bool wide) argument 1308 struct _cpp_strbuf tbuf; local [all...] |
/freebsd-9.3-release/usr.bin/tset/ |
H A D | term.c | 49 char tbuf[1024]; /* Termcap entry. */ variable 112 while ((rval = tgetent(tbuf, ttype)) == 0) { 118 *tcapbufp = tbuf;
|
/freebsd-9.3-release/sys/dev/ed/ |
H A D | if_ed_novell.c | 234 char pbuf0[ED_PAGE_SIZE], pbuf[ED_PAGE_SIZE], tbuf[ED_PAGE_SIZE]; local 246 ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE); 247 if (bcmp(pbuf0, tbuf, ED_PAGE_SIZE) == 0) { 251 ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE); 252 if (bcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0) { 266 ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE); 267 if (bcmp(pbuf0, tbuf, ED_PAGE_SIZE) == 0) { 271 ed_pio_readmem(sc, x * 256, tbuf, ED_PAGE_SIZE); 272 if (bcmp(pbuf, tbuf, ED_PAGE_SIZE) == 0)
|
/freebsd-9.3-release/usr.bin/chpass/ |
H A D | util.c | 69 static char tbuf[50]; local 73 (void)sprintf(tbuf, "%s %d, %d", months[tp->tm_mon], 77 *tbuf = '\0'; 78 return (tbuf);
|
/freebsd-9.3-release/crypto/openssh/ |
H A D | sftp-common.c | 198 char buf[1024], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; local 219 sz = strftime(tbuf, sizeof tbuf, "%b %e %H:%M", ltime); 221 sz = strftime(tbuf, sizeof tbuf, "%b %e %Y", ltime); 224 tbuf[0] = '\0'; 231 sbuf, tbuf, name); 235 (unsigned long long)st->st_size, tbuf, name);
|
/freebsd-9.3-release/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 109 char buf[MAX(MAXPATHLEN, LINE_MAX * 2)], tbuf[1024]; local 357 key.data = (u_char *)tbuf; 409 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); 411 memmove(tbuf + 1, pwd.pw_name, len); 417 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM); 419 memmove(tbuf + 1, &store, sizeof(store)); 425 tbuf[0] = CURRENT_VERSION(_PW_KEYBYUID); 427 memmove(tbuf + 1, &store, sizeof(store)); 433 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME); 435 memmove(tbuf [all...] |
/freebsd-9.3-release/sbin/dump/ |
H A D | itime.c | 238 char tbuf[BUFSIZ]; local 241 if ( (fgets(tbuf, sizeof (tbuf), df)) != tbuf) 244 if (makedumpdate(ddatep, tbuf) < 0) 256 makedumpdate(struct dumpdates *ddp, const char *tbuf) argument 260 (void) sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf);
|
/freebsd-9.3-release/usr.bin/tput/ |
H A D | tput.c | 64 char *cptr, *term, buf[1024], tbuf[1024]; local 85 if (tgetent(tbuf, term) != 1) 99 prlongname(tbuf);
|
/freebsd-9.3-release/lib/libutil/ |
H A D | uucplock.c | 151 char tbuf[sizeof(_PATH_UUCPLOCK) + MAXNAMLEN]; local 153 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, tty_name); 154 return unlink(tbuf);
|
/freebsd-9.3-release/contrib/file/src/ |
H A D | print.c | 55 char tbuf[26]; local 159 file_fmttime(m->value.l, FILE_T_LOCAL, tbuf)); 166 file_fmttime(m->value.l, 0, tbuf)); 171 file_fmttime(m->value.q, FILE_T_LOCAL, tbuf)); 177 file_fmttime(m->value.q, 0, tbuf)); 183 file_fmttime(m->value.q, FILE_T_WINDOWS, tbuf));
|