HomeSort by: relevance | last modified time | path
    Searched refs:tbuf (Results 1 - 25 of 107) sorted by relevancy

1 2 3 4 5

  /src/libexec/talkd/
print.c 76 char tbuf[80]; local
80 (void)snprintf(tbuf, sizeof tbuf, "type %d", mp->type);
81 tp = tbuf;
92 char tbuf[80], abuf[80]; local
96 (void)snprintf(tbuf, sizeof tbuf, "type %d", rp->type);
97 tp = tbuf;
  /src/lib/libterminfo/
term_private.h 165 } TBUF;
172 TBUF flags;
173 TBUF nums;
174 TBUF strs;
175 TBUF extras;
182 char *_ti_grow_tbuf(TBUF *, size_t);
184 const char *_ti_find_cap(TIC *, TBUF *, char, short);
185 const char *_ti_find_extra(TIC *, TBUF *, const char *);
193 int _ti_encode_buf_id_num(TBUF *, int, int, size_t);
194 int _ti_encode_buf_id_count_str(TBUF *, int, const void *, size_t)
    [all...]
compile.c 172 _ti_grow_tbuf(TBUF *tbuf, size_t len)
177 _DIAGASSERT(tbuf != NULL);
179 l = tbuf->bufpos + len;
180 if (l > tbuf->buflen) {
181 if (tbuf->buflen == 0)
184 buf = realloc(tbuf->buf, l);
187 tbuf->buf = buf;
188 tbuf->buflen = l;
190 return tbuf->buf
    [all...]
  /src/sys/dev/ic/
mpt_debug.c 195 static char tbuf[64]; local
201 snprintf(tbuf, sizeof tbuf, "Unknown (0x%08x)", code);
202 return tbuf;
209 static char tbuf[128]; local
211 len = snprintf(tbuf, sizeof(tbuf), "(0x%08x)", code);
212 if (len > sizeof(tbuf))
213 return tbuf;
216 if (len >= sizeof(tbuf))
230 static char tbuf[64]; local
243 static char tbuf[64]; local
256 static char tbuf[128]; local
276 static char tbuf[64]; local
    [all...]
  /src/sys/ddb/
db_print.c 66 char tbuf[24]; local
68 db_format_radix(tbuf, 24, offset, true);
69 db_printf("+%s", tbuf);
db_examine.c 78 char tbuf[24]; local
126 db_format_radix(tbuf, 24, value, false);
127 db_printf("%-*s", width, tbuf);
179 db_format_hex(tbuf, 24, value, false);
180 db_printf("%-*s", width, tbuf);
254 char tbuf[24]; local
256 db_format_radix(tbuf, 24, addr, false);
257 db_printf("%11s", tbuf);
265 char tbuf[24]; local
267 db_format_hex(tbuf, 24, addr, false)
    [all...]
  /src/sbin/dkscan_bsdlabel/
dkscan_util.h 40 void *tbuf, size_t len);
dkscan_util.c 72 void *tbuf, size_t len)
74 if (pread(disk_fd, tbuf, len, blkno * BLOCK_SIZE) < 0)
  /src/usr.bin/finger/
extern.h 35 extern char tbuf[1024]; /* Temp buffer for anybody. */
util.c 112 (void)strlcpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf));
383 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty);
384 if (stat(tbuf, &sb) < 0) {
385 warn("%s", tbuf);
410 (void)strlcpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf));
423 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_MAILDIR
    [all...]
lprint.c 338 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", directory, file_name);
339 if ((fd = open(tbuf, O_RDONLY)) < 0 || fstat(fd, &sb) ||
345 nr = read(fd, tbuf, sizeof(tbuf));
350 for (p = tbuf, cnt = nr; cnt--; ++p)
355 for (p = tbuf, cnt = nr; cnt--; ++p)
  /src/usr.bin/cut/
cut.c 295 char *lbuf, *tbuf; local
297 for (sep = dchar, tbuf = NULL; (lbuf = fgetln(fp, &len)) != NULL;) {
301 if ((tbuf = (char *)malloc(len + 1)) == NULL)
303 (void)memcpy(tbuf, lbuf, len);
304 tbuf[len++] = '\n';
305 lbuf = tbuf;
345 if (tbuf) {
346 free(tbuf);
347 tbuf = NULL;
350 if (tbuf)
    [all...]
  /src/usr.sbin/rtadvd/
advcap.c 79 * BUG: Should use a "last" pointer in tbuf, so that searching
90 static char *tbuf; variable
129 tbuf = bp;
195 char *holdtbuf = tbuf;
198 p = tbuf + strlen(tbuf) - 2; /* before the last colon */
200 if (p < tbuf) {
228 tbuf = holdtbuf;
243 Bp = tbuf;
314 char *bp = tbuf;
    [all...]
  /src/sbin/dmesg/
dmesg.c 153 char tbuf[64]; local
278 if (tstamp < sizeof(tbuf) - 1) \
279 tbuf[tstamp++] = (c); \
283 tbuf[sizeof(tbuf) - 1] = '\0'; \
290 for (char *_p = tbuf; *_p != '\0'; _p++) { \
331 switch (sscanf(tbuf, "[%jd.%ld]", &sec, &fsec)){
365 strftime(tbuf, sizeof(tbuf),
368 printf("%s", tbuf);
    [all...]
  /src/sys/fs/cd9660/
cd9660_node.c 301 u_char tbuf[7]; local
304 tbuf[0] = cd9660_chars2ui(pi,4) - 1900;
307 tbuf[1] = cd9660_chars2ui(pi + 4,2);
310 tbuf[2] = cd9660_chars2ui(pi + 6,2);
313 tbuf[3] = cd9660_chars2ui(pi + 8,2);
316 tbuf[4] = cd9660_chars2ui(pi + 10,2);
319 tbuf[5] = cd9660_chars2ui(pi + 12,2);
322 tbuf[6] = pi[16];
324 return cd9660_tstamp_conv7(tbuf,pu);
  /src/sys/arch/sun68k/stand/libsa/
netif_sun.c 72 char *tbuf; member in struct:devdata
134 if (dd->tbuf == NULL) {
136 dd->tbuf = dvma_alloc(dd->tbuf_len);
139 (dd->tbuf == NULL))
144 printf("netif_init: rbuf=0x%x, tbuf=0x%x\n",
145 dd->rbuf, dd->tbuf);
174 if (dd->tbuf) {
175 dvma_free(dd->tbuf, dd->tbuf_len);
176 dd->tbuf = NULL;
315 memcpy(dd->tbuf, pkt, slen)
    [all...]
  /src/sbin/dump/
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)
260 (void) sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf);
  /src/usr.bin/login/
login.c 149 char tbuf[MAXPATHLEN + 2], tname[sizeof(_PATH_TTY) + 10]; local
168 tbuf[0] = '\0';
341 if (failures && strcmp(tbuf, username)) {
343 badlogin(tbuf);
346 (void)strlcpy(tbuf, username, sizeof(tbuf));
672 (void)snprintf(tbuf,
673 sizeof(tbuf), "%s/%s", _PATH_MAILDIR, pwd->pw_name);
674 if (stat(tbuf, &st) == 0 && st.st_size != 0)
688 tbuf[0] = '-'
771 char tbuf[8192]; local
775 (void)write(fileno(stdout), tbuf, nchars); local
    [all...]
login_pam.c 111 char tbuf[MAXPATHLEN + 2], tname[sizeof(_PATH_TTY) + 10]; local
127 tbuf[0] = '\0';
250 if (failures && strcmp(tbuf, username)) {
252 badlogin(tbuf);
633 (void)snprintf(tbuf,
634 sizeof(tbuf), "%s/%s", _PATH_MAILDIR, pwd->pw_name);
635 if (stat(tbuf, &st) == 0 && st.st_size != 0)
643 tbuf[0] = '-';
644 (void)strlcpy(tbuf + 1, (p = strrchr(pwd->pw_shell, '/')) ?
645 p + 1 : pwd->pw_shell, sizeof(tbuf) - 1)
    [all...]
  /src/sys/compat/linux/common/
linux_exec_elf32.c 102 char tbuf[sizeof(signature)]; local
128 error = exec_read(l, epp->ep_vp, stroff + s->sh_name, tbuf,
132 if (!memcmp(tbuf, signature, sigsz)) {
133 DPRINTF(("linux_atexit_sig=%s\n", tbuf));
167 char tbuf[sizeof(signature) - 1]; local
192 error = exec_read(l, epp->ep_vp, s->sh_offset, tbuf,
200 DPRINTF(("linux_gcc_sig: sig=%s\n", tbuf));
201 if (!memcmp(tbuf, signature, sizeof(signature) - 1)) {
227 char tbuf[sizeof(signature)]; local
253 error = exec_read(l, epp->ep_vp, stroff + s->sh_name, tbuf,
285 char tbuf[sizeof(signature)], *tmp = NULL; local
    [all...]
  /src/usr.bin/skeyinit/
skeyinit.c 54 char passwd[SKEY_MAX_PW_LEN+2], passwd2[SKEY_MAX_PW_LEN+2], tbuf[27], buf[80]; local
95 (void)snprintf(tbuf, sizeof(tbuf), "%05ld", (long) (now % 100000));
96 (void)strlcat(defaultseed, tbuf, sizeof(defaultseed));
337 (void)strftime(tbuf, sizeof(tbuf), " %b %d,%Y %T", tm);
370 pp->pw_name, n, seed, skey.val, tbuf);
373 pp->pw_name, skey_get_algorithm(), n, seed, skey.val, tbuf);
  /src/usr.sbin/rpcbind/
util.c 102 struct netbuf *serv_nbp, *clnt_nbp = NULL, tbuf; local
265 tbuf.len = clnt_sa->sa_len;
266 tbuf.maxlen = sizeof (struct sockaddr_storage);
267 tbuf.buf = newsin;
273 tbuf.maxlen = sizeof (struct sockaddr_storage);
274 tbuf.len = clnt_sa->sa_len;
275 tbuf.buf = newsin6;
282 ret = taddr2uaddr(nconf, &tbuf);
  /src/usr.bin/last/
last.c 360 static char tbuf[TBUFLEN]; local
364 strcpy(tbuf, "????");
365 return tbuf;
367 strftime(tbuf, sizeof(tbuf),
372 return (tbuf);
  /src/usr.bin/tic/
tic.c 90 grow_tbuf(TBUF *tbuf, size_t len)
94 buf = _ti_grow_tbuf(tbuf, len);
211 process_entry(TBUF *buf, int flags)
215 TBUF sbuf = *buf;
331 dup_tbuf(TBUF *dst, const TBUF *src)
614 TBUF tbuf; local
659 buf = tbuf.buf = NULL
    [all...]
  /src/sys/compat/linux32/common/
linux32_dirent.c 104 char *inp, *tbuf; /* BSD-format */ local
150 tbuf = malloc(buflen, M_TEMP, M_WAITOK);
155 aiov.iov_base = tbuf;
172 inp = tbuf;
257 free(tbuf, M_TEMP);

Completed in 30 milliseconds

1 2 3 4 5