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

1234

/freebsd-current/usr.bin/tip/tip/
H A Duucplock.c57 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; local
61 (void)snprintf(tbuf, sizeof tbuf, _PATH_LOCKDIRNAME, ttyname);
62 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660);
68 fd = open(tbuf, O_RDWR, 0);
70 perror(tbuf);
76 perror(tbuf);
95 perror(tbuf);
107 (void)unlink(tbuf);
118 char tbuf[sizeo local
[all...]
/freebsd-current/contrib/sendmail/test/
H A Dt_pathconf.c41 char tbuf[100]; local
50 strcpy(tbuf, "TXXXXXX");
51 fd = mkstemp(tbuf);
54 printf("*** Could not create test file %s\n", tbuf);
61 i = pathconf(tbuf, _PC_CHOWN_RESTRICTED);
62 printf("pathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno);
65 printf("fpathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno);
84 (void) unlink(tbuf);
/freebsd-current/libexec/talkd/
H A Dprint.c55 char tbuf[80]; local
58 (void)snprintf(tbuf, sizeof(tbuf), "type %d", mp->type);
59 tp = tbuf;
70 char tbuf[80], abuf[80]; local
73 (void)snprintf(tbuf, sizeof(tbuf), "type %d", rp->type);
74 tp = tbuf;
/freebsd-current/usr.bin/finger/
H A Dlprint.c128 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s, %s",
130 oddfield = demi_print(tbuf, oddfield);
133 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s",
135 oddfield = demi_print(tbuf, oddfield);
138 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s",
140 oddfield = demi_print(tbuf, oddfield);
144 (void)snprintf(tbuf, sizeo
[all...]
H A Dutil.c70 (void)strncpy(p = tbuf, pw->pw_gecos, sizeof(tbuf));
71 tbuf[sizeof(tbuf) - 1] = '\0';
288 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty);
290 error = stat(tbuf, &sb);
301 warn("%s", tbuf);
334 (void)strncpy(bp = tbuf, pw->pw_gecos, sizeof(tbuf));
[all...]
H A Dextern.h35 extern char tbuf[1024]; /* Temp buffer for anybody. */
/freebsd-current/contrib/file/src/
H A Dprint.c53 char tbuf[256]; local
160 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.l, 0));
167 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.l,
174 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q, 0));
180 file_fmtdatetime(tbuf, sizeof(tbuf), m->value.q,
187 file_fmtdatetime(tbuf, sizeo
[all...]
/freebsd-current/contrib/ntp/ntpd/
H A Drefclock_arbiter.c237 char tbuf[BMAX]; /* temp buffer */ local
245 temp = refclock_gtlin(rbufp, tbuf, sizeof(tbuf), &trtmp);
280 if (!strncmp(tbuf, "TQ", 2)) {
281 up->qualchar = tbuf[2];
285 } else if (!strncmp(tbuf, "SR", 2)) {
286 strlcpy(up->status, tbuf + 2,
295 } else if (!strncmp(tbuf, "LA", 2)) {
296 strlcpy(up->latlon, tbuf + 2, sizeof(up->latlon));
300 } else if (!strncmp(tbuf, "L
[all...]
H A Drefclock_atom.c188 char tbuf[80]; local
202 snprintf(tbuf, sizeof(tbuf), "%.9f",
204 record_clock_stats(&peer->srcadr, tbuf);
H A Drefclock_acts.c314 char tbuf[sizeof(up->buf)]; local
329 refclock_gtraw(rbufp, tbuf, octets, &pp->lastrec);
330 for (tptr = tbuf; *tptr != '\0'; tptr++) {
362 char tbuf[BMAX]; local
377 strlcpy(tbuf, msg, sizeof(tbuf));
378 strtok(tbuf, " ");
388 if (strcmp(tbuf, "OK") != 0) {
395 if (!strcmp(tbuf, modem_setup))
420 if (strcmp(tbuf, "CONNEC
[all...]
H A Dntp_loopfilter.c194 char obuf[256], nbuf[256], tbuf[1024]; local
202 snprintf(tbuf, sizeof(tbuf), "%s status: %s -> %s", what, obuf, nbuf);
203 report_event(EVNT_KERN, NULL, tbuf);
464 char tbuf[80]; /* report buffer */ local
493 snprintf(tbuf, sizeof(tbuf),
496 report_event(EVNT_SYSFAULT, NULL, tbuf);
586 snprintf(tbuf, sizeof(tbuf), "
[all...]
/freebsd-current/sys/compat/linux/
H A Dlinux_stats.c143 struct l_newstat tbuf; local
145 bzero(&tbuf, sizeof(tbuf));
146 tbuf.st_dev = linux_new_encode_dev(buf->st_dev);
147 tbuf.st_ino = buf->st_ino;
148 tbuf.st_mode = buf->st_mode;
149 tbuf.st_nlink = buf->st_nlink;
150 tbuf.st_uid = buf->st_uid;
151 tbuf.st_gid = buf->st_gid;
152 tbuf
658 struct l_statx tbuf; local
[all...]
/freebsd-current/usr.sbin/rtadvd/
H A Dadvcap.c71 * BUG: Should use a "last" pointer in tbuf, so that searching
82 static char *tbuf; variable
117 tbuf = bp;
185 char *holdtbuf = tbuf;
188 p = tbuf + strlen(tbuf) - 2; /* before the last colon */
190 if (p < tbuf) {
218 tbuf = holdtbuf;
233 Bp = tbuf;
303 char *bp = tbuf;
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dvis.c177 char tbuf[5]; local
196 i = vis(tbuf, c, flag, *++src) - tbuf;
198 memcpy(dst, tbuf, i);
211 dst += vis(tbuf, c, flag, *++src) - tbuf;
/freebsd-current/lib/libc/gen/
H A Dsyslog.c141 char hostname[MAXHOSTNAMELEN], *stdp, tbuf[MAXLINE], fmt_cpy[MAXLINE], local
166 tbuf_cookie.base = tbuf;
167 tbuf_cookie.left = sizeof(tbuf);
201 stdp = tbuf + (sizeof(tbuf) - tbuf_cookie.left);
270 cnt = sizeof(tbuf) - tbuf_cookie.left;
273 if (tbuf[cnt - 1] == '\n')
282 v->iov_len = cnt - (stdp - tbuf);
302 if (send(LogFile, tbuf, cnt, 0) < 0) {
306 if (send(LogFile, tbuf, cn
[all...]
/freebsd-current/usr.bin/chpass/
H A Dutil.c64 static char tbuf[50]; local
68 (void)sprintf(tbuf, "%s %d, %d", months[tp->tm_mon],
72 *tbuf = '\0';
73 return (tbuf);
/freebsd-current/crypto/openssl/providers/implementations/asymciphers/
H A Drsa_enc.c157 unsigned char *tbuf; local
159 if ((tbuf = OPENSSL_malloc(rsasize)) == NULL) {
166 OPENSSL_free(tbuf);
172 ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex(prsactx->libctx, tbuf,
180 OPENSSL_free(tbuf);
183 ret = RSA_public_encrypt(rsasize, tbuf, out, prsactx->rsa,
185 OPENSSL_free(tbuf);
234 unsigned char *tbuf; local
236 if ((tbuf = OPENSSL_malloc(len)) == NULL) {
240 ret = RSA_private_decrypt(inlen, in, tbuf, prsact
[all...]
/freebsd-current/crypto/openssh/
H A Dsftp-common.c222 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; local
246 sz = strftime(tbuf, sizeof tbuf, "%b %e %H:%M", ltime);
248 sz = strftime(tbuf, sizeof tbuf, "%b %e %Y", ltime);
251 tbuf[0] = '\0';
258 sbuf, tbuf, name);
262 (unsigned long long)st->st_size, tbuf, name);
/freebsd-current/sbin/dump/
H A Ditime.c233 char tbuf[BUFSIZ]; local
236 if ( (fgets(tbuf, sizeof (tbuf), df)) != tbuf)
239 if (makedumpdate(ddatep, tbuf) < 0)
251 makedumpdate(struct dumpdates *ddp, const char *tbuf) argument
255 (void) sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf);
/freebsd-current/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c101 char tbuf[1024]; local
340 key.data = (u_char *)tbuf;
392 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME);
394 memmove(tbuf + 1, pwd.pw_name, len);
400 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNUM);
402 memmove(tbuf + 1, &store, sizeof(store));
408 tbuf[0] = CURRENT_VERSION(_PW_KEYBYUID);
410 memmove(tbuf + 1, &store, sizeof(store));
416 tbuf[0] = CURRENT_VERSION(_PW_KEYBYNAME);
418 memmove(tbuf
[all...]
/freebsd-current/sbin/ipfw/
H A Dtables.c376 table_print_type(char *tbuf, size_t size, uint8_t type, uint8_t tflags) argument
384 l = snprintf(tbuf, size, "%s", tname);
385 tbuf += l;
391 *tbuf++ = ':';
393 print_flags_buffer(tbuf, size, flowtypecmds, tflags);
412 char tbuf[128]; local
433 concat_tokens(tbuf, sizeof(tbuf), tabletypes,
437 *av, tbuf);
457 concat_tokens(tbuf, sizeo
527 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; local
582 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; local
658 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_obj_ntlv)]; local
703 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; local
1900 char tbuf[128], pval[128]; local
[all...]
/freebsd-current/lib/libutil/
H A Duucplock.c148 char tbuf[sizeof(_PATH_UUCPLOCK) + MAXNAMLEN]; local
150 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, tty_name);
151 return unlink(tbuf);
/freebsd-current/crypto/openssl/crypto/asn1/
H A Da_int.c342 unsigned char tbuf[sizeof(r)]; local
352 off = asn1_put_uint64(tbuf, 0 - (uint64_t)r);
355 off = asn1_put_uint64(tbuf, r);
358 return ASN1_STRING_set(a, tbuf + off, sizeof(tbuf) - off);
381 unsigned char tbuf[sizeof(r)]; local
385 off = asn1_put_uint64(tbuf, r);
386 return ASN1_STRING_set(a, tbuf + off, sizeof(tbuf) - off);
/freebsd-current/crypto/openssl/crypto/rsa/
H A Drsa_pmeth.c51 unsigned char *tbuf; member in struct:__anon104
112 if (ctx->tbuf != NULL)
114 if ((ctx->tbuf =
127 OPENSSL_free(rctx->tbuf);
170 memcpy(rctx->tbuf, tbs, tbslen);
171 rctx->tbuf[tbslen] = RSA_X931_hash_id(EVP_MD_get_type(rctx->md));
172 ret = RSA_private_encrypt(tbslen + 1, rctx->tbuf,
185 rctx->tbuf, tbs,
189 ret = RSA_private_encrypt(RSA_size(rsa), rctx->tbuf,
220 ret = RSA_public_decrypt(siglen, sig, rctx->tbuf, rs
[all...]
/freebsd-current/tests/sys/kern/
H A Dsocket_msg_trunc.c53 char tbuf[1]; local
65 rc = recv(ss, tbuf, sizeof(tbuf), MSG_PEEK | MSG_TRUNC);
69 rc = recv(ss, tbuf, sizeof(tbuf), MSG_TRUNC);

Completed in 235 milliseconds

1234