/original-bsd/usr.bin/pascal/pxp/ |
H A D | rec.c | 60 register int *fp, *tp, *ip; local 65 tp = fp[1]; 66 if (tp != NIL) { 67 setline(tp[1]); 68 ip = tp[2]; 81 gtype(tp[3]); 82 setinfo(tp[1]);
|
H A D | yycomm.c | 204 register char *tp; local 210 tp = token; 220 --tp; 231 *tp++ = c; 237 *tp = 0; 392 register char *tp; local 395 for (i = 8, tp = cml->cmtext; i < margin && *tp; tp++) 396 switch (*tp) { 410 ppid(tp);
|
/original-bsd/usr.sbin/amd/amd/ |
H A D | info_union.c | 43 int union_init P((char *map, time_t *tp)); 44 int union_init(map, tp) in union_init() argument 46 time_t *tp; 48 *tp = 0; 52 int union_search P((mnt_map *m, char *map, char *key, char **pval, time_t *tp)); 53 int union_search(m, map, key, pval, tp) in union_search() argument 58 time_t *tp;
|
/original-bsd/local/sccscmds/sccscmds.ok/cmd/ |
H A D | stree.c | 141 struct tree *tp; in addsucc() local 143 tp = &tree[par]; in addsucc() 144 if (tp->t_trunk && tp->t_dsucc == 0 && childbr == 0) in addsucc() 145 tp->t_dsucc = child; in addsucc() 147 addlist(&tp->t_osucc, child); in addsucc() 198 register struct tree *tp; in dmptree() local 203 tp = &tree[n]; in dmptree() 204 if (tp->t_dsucc) in dmptree() 218 struct tree *tp; local 227 tp = &tree[node]; [all …]
|
/original-bsd/local/sccscmds/sccscmds.2/cmd/ |
H A D | stree.c | 141 struct tree *tp; in addsucc() local 143 tp = &tree[par]; in addsucc() 144 if (tp->t_trunk && tp->t_dsucc == 0 && childbr == 0) in addsucc() 145 tp->t_dsucc = child; in addsucc() 147 addlist(&tp->t_osucc, child); in addsucc() 198 register struct tree *tp; in dmptree() local 203 tp = &tree[n]; in dmptree() 204 if (tp->t_dsucc) in dmptree() 218 struct tree *tp; local 227 tp = &tree[node]; [all …]
|
/original-bsd/usr.bin/m4/ |
H A D | look.c | 94 register ndptr xp, tp, mp; local 98 tp = nil; 102 if (tp == nil) { 107 xp = tp->nxtptr; 108 tp->nxtptr = mp; 115 tp = mp;
|
/original-bsd/lib/libc/string/ |
H A D | swab.c | 25 register char *fp, *tp; local 29 tp = (char *)to; 30 #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp
|
/original-bsd/libexec/comsat/ |
H A D | comsat.c | 165 FILE *tp; local 186 if ((tp = fopen(tty, "w")) == NULL) { 190 (void)ioctl(fileno(tp), TIOCGETP, >tybuf); 197 jkfprintf(tp, name, offset); 198 (void)fclose(tp); 203 jkfprintf(tp, name, offset) in jkfprintf() argument 204 register FILE *tp; in jkfprintf() 242 (void)fprintf(tp, "...more...%s", cr); 251 (void)fputc(ch, tp); 253 (void)fputs(cr, tp); [all …]
|
/original-bsd/sbin/disklabel/ |
H A D | disklabel.c | 845 *tp++ = '\0', tp = skip(tp); 855 v = atoi(tp); 901 tp = ""; 911 v = atoi(tp); 922 v = atoi(tp); 932 v = atoi(tp); 942 v = atoi(tp); 952 v = atoi(tp); 1032 cp = tp, tp = word(cp); \ 1034 tp = cp; \ [all …]
|
/original-bsd/local/ditroff/ditroff.okeeffe/eqn/ |
H A D | lex.c | 15 tbl *tp; in yylex() local 56 if ((tp = lookup(deftbl, token, NULL)) != NULL) { /* defined term */ in yylex() 60 dodef(tp); in yylex() 63 pbstr(tp->defn); in yylex() 64 dprintf(".\tfound %s|=%s|\n", token, tp->defn); in yylex() 69 if ((tp = lookup(keytbl, token, NULL)) == NULL) /* not a keyword */ in yylex() 72 switch ((int) tp->defn) { /* some kind of keyword */ in yylex() 74 define(tp->defn); in yylex() 103 return (int) tp->defn; in yylex() 195 tbl *tp; in ifdef() local [all …]
|
/original-bsd/usr.bin/showmount/ |
H A D | showmount.c | 187 struct mountlist *mp, **otp, *tp; local 213 tp = *mlp; 214 while (tp) { 215 val = strcmp(mp->ml_host, tp->ml_host); 216 val2 = strcmp(mp->ml_dirp, tp->ml_dirp); 242 otp = &tp->ml_left; 243 tp = tp->ml_left; 245 otp = &tp->ml_right; 246 tp = tp->ml_right;
|
/original-bsd/bin/sh/ |
H A D | trap.c | 106 char **tp; in clear_traps() local 108 for (tp = trap ; tp <= &trap[NSIG] ; tp++) { in clear_traps() 109 if (*tp && **tp) { /* trap not NULL or SIG_IGN */ in clear_traps() 111 ckfree(*tp); in clear_traps() 112 *tp = NULL; in clear_traps() 113 if (tp != &trap[0]) in clear_traps() 114 setsignal(tp - trap); in clear_traps()
|
/original-bsd/games/monop/ |
H A D | prop.c | 37 reg OWN *tp, *last_tp; local 45 for (tp = *head; tp && value(tp->sqr) < val; tp = tp->next) 46 if (val == value(tp->sqr)) { 51 last_tp = tp; 52 op->next = tp;
|
/original-bsd/libexec/tftpd/ |
H A D | tftpd.c | 86 register struct tftphdr *tp; local 199 tp = (struct tftphdr *)buf; 200 tp->th_opcode = ntohs(tp->th_opcode); 201 if (tp->th_opcode == RRQ || tp->th_opcode == WRQ) 202 tftp(tp, n); 230 tftp(tp, size) in tftp() argument 231 struct tftphdr *tp; in tftp() 239 filename = cp = tp->th_stuff; 282 if (tp->th_opcode == WRQ) 594 tp = (struct tftphdr *)buf; [all …]
|
/original-bsd/usr.bin/rdist/ |
H A D | server.c | 96 tp++; in server() 229 while (*tp) 230 tp++; 345 otp = tp; 361 tp--; 367 tp = otp; 734 tp--; 1170 otp = tp; 1185 tp--; 1212 tp = otp; [all …]
|
/original-bsd/usr.sbin/trpt/ |
H A D | trpt.c | 275 tcp_trace(act, ostate, atp, tp, ti, req) in tcp_trace() argument 277 struct tcpcb *atp, *tp; 341 printf(" -> %s", tcpstates[tp->t_state]); 346 tp->rcv_nxt, tp->rcv_wnd, tp->snd_una, tp->snd_nxt, 347 tp->snd_max); 348 printf("\tsnd_wl1 %lx snd_wl2 %lx snd_wnd %x\n", tp->snd_wl1, 349 tp->snd_wl2, tp->snd_wnd); 357 if (tp->t_timer[i] == 0) 359 printf("%s%s=%d", cp, tcptimers[i], tp->t_timer[i]); 361 printf(" (t_rxtshft=%d)", tp->t_rxtshift);
|
/original-bsd/usr.bin/ftp/ |
H A D | cmds.c | 448 while (*tp && !islower(*tp)) { 465 tp = dotrans(tp); 468 tp = domap(tp); 471 cp, tp, cp != tp || !interactive); 494 tp = (mapflag) ? domap(tp) : tp; 519 tp = (mapflag) ? domap(tp) : tp; 521 *cpp, tp, *cpp != tp || !interactive); 591 while (*tp && !islower(*tp)) { 592 tp++; 722 tp = dotrans(tp); [all …]
|
/original-bsd/lib/libc/db/hash/ |
H A D | hash_bigkey.c | 342 char *tp; variable 381 tp = (char *)bp; 594 n = tp[0]; 595 off = OFFSET(tp); 599 tp[0] = n; 600 OFFSET(tp) = off; 615 if (tp[0] > 2) { 623 n = tp[4]; 625 off = OFFSET(tp); 626 tp[0] -= 2; [all …]
|
/original-bsd/bin/stty/ |
H A D | print.c | 26 print(tp, wp, ldisc, fmt) in print() argument 27 struct termios *tp; in print() 56 ispeed = cfgetispeed(tp); 57 ospeed = cfgetospeed(tp); 74 tmp = tp->c_lflag; 95 tmp = tp->c_iflag; 112 tmp = tp->c_oflag; 119 tmp = tp->c_cflag; 145 cc = tp->c_cc;
|
/original-bsd/old/dbx/ |
H A D | events.c | 723 register Trinfo tp; local 743 tp = new(Trinfo); 744 tp->variable = p; 745 tp->traddr = lval(p); 746 tp->trvalue = nil; 749 return tp; 760 register Trinfo tp; local 767 tp = findtrinfo(p); 802 register Trinfo tp; local 837 dispose(tp->trvalue); in trfree() [all …]
|
/original-bsd/sys/sparc/dev/ |
H A D | kbd.c | 209 kbd_ascii(struct tty *tp) in kbd_ascii() argument 212 kbd_softc.k_cons = tp; in kbd_ascii() 226 k->k_kbd = tp; in kbd_serial() 244 register struct tty *tp; in kbdattach() local 248 tp = k->k_kbd; in kbdattach() 250 if (ttyoutput(KBD_CMD_RESET, tp) >= 0) in kbdattach() 252 (*tp->t_oproc)(tp); /* get it going */ in kbdattach() 586 if (tp == NULL) in kbd_docmd() 617 if (tp->t_outq.c_cc > 120) in kbd_docmd() 622 if (ttyoutput(cmd, tp) >= 0) in kbd_docmd() [all …]
|
/original-bsd/usr.bin/calendar/ |
H A D | calendar.c | 133 struct tm *tp; variable 143 tp = localtime(&now); in settime() 144 if (isleap(tp->tm_year + 1900)) { in settime() 152 offset = tp->tm_wday == 5 ? 3 : 1; in settime() 154 header[5].iov_len = strftime(dayname, sizeof(dayname), "%A", tp); in settime() 184 month = tp->tm_mon + 1; 203 day = tp->tm_mday + (((day - 1) - tp->tm_wday + 7) % 7); 207 if (day >= tp->tm_yday && day <= tp->tm_yday + offset) 210 if (yrdays - tp->tm_yday + day <= offset) 227 return (tp->tm_mon + 1);
|
/original-bsd/sbin/shutdown/ |
H A D | shutdown.c | 198 struct interval *tp; in loop() local 208 tp = tlist; in loop() 209 if (tp->timeleft < offset) in loop() 212 while (offset < tp->timeleft) in loop() 213 ++tp; in loop() 218 if (sltime = offset - tp->timeleft) { in loop() 219 if (sltime > tp->timetowait / 5) in loop() 224 for (;; ++tp) { in loop() 225 timewarn(tp->timeleft); in loop() 230 (void)sleep((u_int)tp->timetowait); in loop() [all …]
|
/original-bsd/usr.sbin/amd/amq/ |
H A D | amq.c | 86 struct tm *tp = localtime((time_t *) &mt->mt_mounttime); local 103 tp->tm_year > 99 ? tp->tm_year - 100 : tp->tm_year, 104 tp->tm_mon+1, tp->tm_mday, 105 tp->tm_hour, tp->tm_min, tp->tm_sec); 109 struct tm *tp = localtime((time_t *) &mt->mt_mounttime); local 121 tp->tm_year > 99 ? tp->tm_year - 100 : tp->tm_year, 122 tp->tm_mon+1, tp->tm_mday, 123 tp->tm_hour, tp->tm_min, tp->tm_sec);
|
/original-bsd/usr.sbin/mtree/ |
H A D | verify.c | 128 register char *tp; local 160 for (tp = tail; *tp; ++tp); 161 *tp = '/'; 162 miss(p->child, tp + 1); 163 *tp = '\0';
|