/original-bsd/usr.bin/tip/ |
H A D | uucplock.c | 29 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; local 32 (void)sprintf(tbuf, _PATH_LOCKDIRNAME, ttyname); 33 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660); 39 fd = open(tbuf, O_RDWR, 0); 68 (void)unlink(tbuf); 79 char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN]; local 81 (void)sprintf(tbuf, _PATH_LOCKDIRNAME, ttyname); 82 return(unlink(tbuf));
|
H A D | remcap.c | 54 static char *tbuf; variable 94 tbuf = bp; 107 tbuf = bp; 180 char *holdtbuf = tbuf; in tnchktc() 184 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc() 186 if (p<tbuf) { in tnchktc() 217 tbuf = holdtbuf; in tnchktc() 232 Bp = tbuf; 277 register char *bp = tbuf; 309 register char *bp = tbuf; [all …]
|
/original-bsd/usr.bin/finger/ |
H A D | lprint.c | 108 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s, %s", 110 oddfield = demi_print(tbuf, oddfield); 113 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", 115 oddfield = demi_print(tbuf, oddfield); 118 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", 124 (void)snprintf(tbuf, sizeof(tbuf), "%s: %s", "Home Phone", 126 oddfield = demi_print(tbuf, oddfield); 253 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", directory, file_name); 260 nr = read(fd, tbuf, sizeof(tbuf)); 265 for (p = tbuf, cnt = nr; cnt--; ++p) [all …]
|
H A D | util.c | 50 (void)strcpy(p = tbuf, pw->pw_gecos); 281 (void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty); 282 if (stat(tbuf, &sb) < 0) { 283 warn(tbuf); 308 (void)strcpy(bp = tbuf, pw->pw_gecos);
|
/original-bsd/usr.bin/tset/ |
H A D | reset.c | 25 struct tchars tbuf; in main() local 30 ioctl(2, TIOCGETC, &tbuf); in main() 36 reset(&tbuf.t_intrc, CINTR); in main() 37 reset(&tbuf.t_quitc, CQUIT); in main() 38 reset(&tbuf.t_startc, CSTART); in main() 39 reset(&tbuf.t_stopc, CSTOP); in main() 40 reset(&tbuf.t_eofc, CEOF); in main() 50 ioctl(2, TIOCSETC, &tbuf); in main()
|
H A D | term.c | 21 char tbuf[1024]; /* Termcap entry. */ variable 83 while ((rval = tgetent(tbuf, ttype)) == 0) { 90 *tcapbufp = tbuf;
|
/original-bsd/usr.bin/vgrind/ |
H A D | vgrindefs.c | 31 static char *tbuf; variable 54 tbuf = bp; 109 char *holdtbuf = tbuf; in tnchktc() 112 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc() 114 if (p<tbuf) { in tnchktc() 138 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc() 141 tbuf = holdtbuf; in tnchktc() 156 Bp = tbuf; 201 register char *bp = tbuf; 233 register char *bp = tbuf; [all …]
|
/original-bsd/usr.bin/uucp/libuu/ |
H A D | setline.c | 34 static struct termio tbuf, sbuf; local 44 ioctl(Ifn, TCGETA, &tbuf); 45 sbuf = tbuf; 46 tbuf.c_cc[VMIN] = PACKSIZE; 47 ioctl(Ifn, TCSETAW, &tbuf);
|
/original-bsd/lib/libc/gen/ |
H A D | syslog.c | 75 char *stdp, tbuf[2048], fmt_cpy[1024]; local 97 p = tbuf + sprintf(tbuf, "<%d>", pri); 98 p += strftime(p, sizeof (tbuf) - (p - tbuf), "%h %e %T ", 123 cnt = p - tbuf; 131 v->iov_len = cnt - (stdp - tbuf); 141 if (send(LogFile, tbuf, cnt, 0) >= 0) 151 (void)strcat(tbuf, "\r\n"); 153 p = index(tbuf, '>') + 1; 154 (void)write(fd, p, cnt - (p - tbuf));
|
/original-bsd/libexec/talkd/ |
H A D | print.c | 32 char tbuf[80], *tp; local 35 (void)sprintf(tbuf, "type %d", mp->type); 36 tp = tbuf; 47 char tbuf[80], *tp, abuf[80], *ap; local 50 (void)sprintf(tbuf, "type %d", rp->type); 51 tp = tbuf;
|
/original-bsd/usr.sbin/lpr/common_source/ |
H A D | printcap.c | 139 static char *tbuf; variable 159 tbuf = bp; 167 if (bp == tbuf) { 178 if (bp == tbuf) 183 if (bp >= tbuf+BUFSIZ) { 224 tbuf = bp; 307 char *holdtbuf = tbuf; in tnchktc() 310 p = tbuf + strlen(tbuf) - 2; /* before the last colon */ in tnchktc() 312 if (p<tbuf) { in tnchktc() 339 tbuf = holdtbuf; in tnchktc() [all …]
|
/original-bsd/local/local.cmd/ |
H A D | cpr.c | 27 struct sgttyb tbuf; variable 179 if (gtty(1, &tbuf) < 0) in setupterm() 184 oldflags = tbuf.sg_flags; in setupterm() 185 tbuf.sg_flags &= ~ECHO; in setupterm() 186 tbuf.sg_flags |= CBREAK | XTABS; in setupterm() 187 stty(1, &tbuf); in setupterm() 188 tbuf.sg_flags = oldflags; in setupterm() 231 stty(1, &tbuf); in resetmodes()
|
/original-bsd/usr.sbin/ac/ |
H A D | ac.c | 44 struct tbuf { struct 47 } tbuf[TSIZE]; argument 118 register struct tbuf *tp; in loop() 128 for(tp = tbuf; tp < &tbuf[TSIZE]; tp++) in loop() 175 tp = &tbuf[i]; in loop() 204 register struct tbuf *tp; in upall() 206 for (tp=tbuf; tp < &tbuf[TSIZE]; tp++) in upall() 211 struct tbuf *tp;
|
/original-bsd/usr.sbin/pwd_mkdb/ |
H A D | pwd_mkdb.c | 147 key.data = (u_char *)tbuf; 169 tbuf[0] = _PW_KEYBYNAME; 171 memmove(tbuf + 1, pwd.pw_name, len); 177 tbuf[0] = _PW_KEYBYNUM; 178 memmove(tbuf + 1, &cnt, sizeof(cnt)); 184 tbuf[0] = _PW_KEYBYUID; 232 tbuf[0] = _PW_KEYBYNAME; 234 memmove(tbuf + 1, pwd.pw_name, len); 240 tbuf[0] = _PW_KEYBYNUM; 241 memmove(tbuf + 1, &cnt, sizeof(cnt)); [all …]
|
/original-bsd/usr.bin/login/ |
H A D | login.c | 189 if (failures && strcmp(tbuf, username)) { 191 badlogin(tbuf); 194 (void)strcpy(tbuf, username); 368 (void)snprintf(tbuf, 380 tbuf[0] = '-'; 393 execlp(pwd->pw_shell, tbuf, 0); 448 char tbuf[8192]; in motd() local 454 while ((nchars = read(fd, tbuf, sizeof(tbuf))) > 0) in motd() 455 (void)write(fileno(stdout), tbuf, nchars); in motd() 483 char tbuf[8192]; in checknologin() local [all …]
|
H A D | login.c.1 | 106 char tbuf[MAXPATHLEN + 2]; 124 (void)gethostname(tbuf, sizeof(tbuf)); 125 domain = index(tbuf, '.'); 202 badlogin(tbuf); 205 (void)strcpy(tbuf, username); 426 tbuf[0] = '-'; 429 execlp(pwd->pw_shell, tbuf, 0); 483 char tbuf[8192]; 489 while ((nchars = read(fd, tbuf, sizeof(tbuf))) > 0) 503 char tbuf[8192]; [all …]
|
/original-bsd/lib/libterm/ |
H A D | termcap.c | 35 static char *tbuf; /* termcap buffer */ variable 57 tbuf = bp; 132 if (cgetnum(tbuf, id, &num) == 0) 148 return(cgetcap(tbuf, id, ':') != NULL); 176 if ((i = cgetstr(tbuf, ids, &s)) < 0)
|
/original-bsd/sbin/dump/ |
H A D | itime.c | 216 char tbuf[BUFSIZ]; local 219 if ( (fgets(tbuf, sizeof (tbuf), df)) != tbuf) 222 if (makedumpdate(ddatep, tbuf) < 0) 234 makedumpdate(ddp, tbuf) in makedumpdate() argument 236 char *tbuf; 240 (void) sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf);
|
/original-bsd/usr.bin/chpass/ |
H A D | util.c | 38 static char tbuf[50]; local 42 (void)sprintf(tbuf, "%s %d, %d", months[tp->tm_mon], 46 *tbuf = '\0'; 47 return (tbuf);
|
/original-bsd/local/tac/ |
H A D | tac.c | 191 char *tbuf; local 194 if ((tbuf = realloc(buf-targlen, (unsigned) newbufsize)) == NULL) { 201 tbuf += targlen; /* skip over the stop string */ 202 p += tbuf - buf; 203 pastend += tbuf - buf; 204 buf = tbuf;
|
/original-bsd/sys/i386/stand/ |
H A D | disktab.c | 80 static char *tbuf; variable 100 tbuf = bp; 153 Bp = tbuf; 199 register char *bp = tbuf; 232 register char *bp = tbuf; 259 register char *bp = tbuf;
|
/original-bsd/sys/hp300/stand/ |
H A D | copy.c | 18 char fbuf[50], tbuf[50]; in main() local 24 to = getdev("To", tbuf, 1); in main()
|
/original-bsd/sys/tahoe/stand/ |
H A D | copy.c | 19 char fbuf[50], tbuf[50]; in main() local 24 to = getdev("To", tbuf, 1); in main()
|
/original-bsd/usr.bin/tput/ |
H A D | tput.c | 40 char *cptr, *p, *term, buf[1024], tbuf[1024]; local 57 if (tgetent(tbuf, term) != 1) 72 prlongname(tbuf);
|
/original-bsd/sys/vax/uba/ |
H A D | kgclock.c | 35 u_short tbuf; member 85 klbase->tbuf = 0377; /* reprime clock (scope sync too) */
|