/original-bsd/games/random/ |
H A D | random.c | 39 struct timeval tp; local 79 (void)gettimeofday(&tp, NULL); 80 srandom((u_int)(tp.tv_usec + tp.tv_sec + getpid()));
|
/original-bsd/usr.bin/chpass/ |
H A D | util.c | 37 struct tm *tp; local 41 tp = localtime(&tval); 42 (void)sprintf(tbuf, "%s %d, %d", months[tp->tm_mon], 43 tp->tm_mday, tp->tm_year + TM_YEAR_BASE);
|
/original-bsd/old/1kfix/ |
H A D | 1kfix.c | 14 char *tp, *dp, *sp; local 55 tp = malloc(x.a_text); 58 if (read(io, tp, x.a_text) != x.a_text || 77 if (tp[i] != 0) 101 write(io, tp, x.a_text); 106 free(tp);
|
/original-bsd/libexec/talkd/ |
H A D | table.c | 35 struct timeval tp; variable 62 gettimeofday(&tp, &txp); 63 current_time = tp.tv_sec; 96 gettimeofday(&tp, &txp); 97 current_time = tp.tv_sec; 134 gettimeofday(&tp, &txp); 135 current_time = tp.tv_sec;
|
/original-bsd/usr.bin/file/ |
H A D | file.c | 548 register char *tp; local 554 for (tp = buf; tp != cp && isspace(*tp); tp++) 555 if (!isascii(*tp)) 557 for (xp = tp; tp != cp && !isspace(*tp); tp++) 558 if (!isascii(*tp)) 560 if (tp == xp) 566 if (strncmp(xp, "/bin/sh", tp-xp) == 0) 568 else if (strncmp(xp, "/bin/csh", tp-xp) == 0) 571 *tp = '\0';
|
/original-bsd/old/talk/talkd/ |
H A D | table.c | 30 struct timeval tp; variable 59 gettimeofday(&tp, &txp); 60 current_time = tp.tv_sec; 98 gettimeofday(&tp, &txp); 99 current_time = tp.tv_sec; 140 gettimeofday(&tp, &txp); 141 current_time = tp.tv_sec;
|
/original-bsd/usr.bin/mail/ |
H A D | head.c | 162 cmatch(cp, tp) in cmatch() argument 163 register char *cp, *tp; in cmatch() 166 while (*cp && *tp) 167 switch (*tp++) { 198 if (*cp || *tp)
|
/original-bsd/usr.bin/w/ |
H A D | pr_time.c | 33 struct tm *tp; local 37 tp = localtime(started); 54 (void)strftime(buf, sizeof(buf), fmt, tp);
|
/original-bsd/usr.bin/ar/ |
H A D | contents.c | 40 struct tm *tp; local 54 tp = localtime(&chdr.date); 55 (void)strftime(buf, sizeof(buf), "%b %e %H:%M %Y", tp);
|
/original-bsd/libexec/telnetd/ |
H A D | sys_term.c | 104 # define cfsetospeed(tp, val) (tp)->sg.sg_ospeed = (val) argument 105 # define cfsetispeed(tp, val) (tp)->sg.sg_ispeed = (val) argument 106 # define cfgetospeed(tp) (tp)->sg.sg_ospeed argument 107 # define cfgetispeed(tp) (tp)->sg.sg_ispeed argument 129 # define cfsetospeed(tp, val) (tp)->c_cflag &= ~CBAUD; \ argument 131 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD) argument 139 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD) argument 973 for (tp = termspeeds; (tp->speed != -1) && (val > tp->speed); tp++) 976 --tp; 990 for (tp = termspeeds; (tp->speed != -1) && (val > tp->speed); tp++) [all …]
|
/original-bsd/local/ditroff/ditroff.okeeffe/tbl/ |
H A D | checkuse.c | 79 register int *tp, *q; in alocv() local 89 tp = (int *)thisvec; in alocv() 91 for(q = tp; q < (int *)thisvec; q++) in alocv() 93 return(tp); in alocv()
|
/original-bsd/old/tbl/ |
H A D | tb.c | 69 int *tp, *q; in alocv() local 81 tp=(int *)thisvec; in alocv() 83 for(q=tp; q<(int *)thisvec; q++) in alocv() 85 return(tp); in alocv()
|
/original-bsd/sys/i386/i386/ |
H A D | kgdb_stub.c | 276 register const char *tp; in regs_to_gdb() local 279 for (tp = trapmap; tp < &trapmap[sizeof trapmap]; ++tp) in regs_to_gdb() 280 *gdb++ = regs[*tp]; in regs_to_gdb() 286 register const char *tp; in gdb_to_regs() local 289 for (tp = trapmap; tp < &trapmap[sizeof trapmap]; ++tp) in gdb_to_regs() 290 regs[*tp] = *gdb++; in gdb_to_regs()
|
/original-bsd/usr.bin/ex/ |
H A D | ex_vwind.c | 310 vback(tp, cnt) in vback() argument 312 register line *tp; 317 for (; tp > one; tp--) { 318 getline(tp[-1]); 324 return (tp); 330 vfit(tp, cnt) in vfit() argument 331 register line *tp; in vfit() 339 getline(tp[cnt]); 342 if (tp > dot)
|
/original-bsd/old/mkhosts/ |
H A D | mkhosts.c | 31 register char *cp, *tp, **sp; local 62 tp = hp->h_name; 63 while (*cp++ = *tp++) 69 tp = *sp; 70 while (*cp++ = *tp++)
|
/original-bsd/games/mille/ |
H A D | save.c | 46 reg time_t *tp; in save() local 51 tp = &tme; in save() 101 time(tp); /* get current time */ in save() 102 strcpy(buf, ctime(tp)); in save()
|
/original-bsd/usr.bin/rdist/ |
H A D | docmd.c | 360 tp = NULL; 396 if (tp == NULL) { 400 while (*tp) 401 tp++; 442 otp = tp; 443 len = tp - target; 451 tp = otp; 452 *tp++ = '/'; 456 tp--; 460 tp = otp; [all …]
|
/original-bsd/usr.bin/m4/ |
H A D | main.c | 354 inspect(tp) in inspect() argument 355 register char *tp; in inspect() 358 register char *name = tp; 359 register char *etp = tp+MAXTOK; 363 while ((isalnum(c = gpbc()) || c == '_') && tp < etp) 364 h = (h << 5) + h + (*tp++ = c); 366 if (tp == etp) 369 *tp = EOS;
|
/original-bsd/sys/vax/uba/ |
H A D | qd.c | 706 return ((*linesw[tp->t_line].l_open)(dev, tp)); 882 (*linesw[tp->t_line].l_close)(tp, flag); 883 ttyclose(tp); 1298 (*linesw[tp->t_line].l_ioctl)(tp, cmd, datap, flags); 1371 if (tp->t_outq.c_cc <= tp->t_lowat) 1401 return ((*linesw[tp->t_line].l_write)(tp, uio)); 1428 return ((*linesw[tp->t_line].l_read)(tp, uio)); 1508 qdstart(tp) in qdstart() argument 1543 if (tp->t_outq.c_cc <= tp->t_lowat) { 2616 (*linesw[tp->t_line].l_rint)(*string++, tp); [all …]
|
/original-bsd/old/tp/ |
H A D | Makefile | 3 PROG= tp 5 MAN1= tp.0
|
/original-bsd/libexec/getNAME/ |
H A D | getNAME.c | 272 register char *tp; local 274 for (tp = cp - 1; *tp == ' ' || *tp == '\t'; tp--) 276 *++tp = '\0';
|
/original-bsd/usr.bin/pascal/src/ |
H A D | subr.c | 35 register char *tp; local 37 tp = &opt( c ); 38 *tp = 1 - *tp;
|
/original-bsd/lib/libc/gen/ |
H A D | getpwnamuid.c | 31 register char *cp, *tp; local 39 tp = line; 41 #define EXPAND(e) passwd.e = tp; while (*tp++ = *cp++);
|
/original-bsd/lib/libc/string/ |
H A D | memccpy.c | 24 register unsigned char *tp = t; local 27 if ((*tp++ = *fp++) == c)
|
/original-bsd/usr.sbin/pstat/ |
H A D | pstat.c | 706 struct tty *tp; local 720 for (tp = tty; tp < &tty[ntty]; tp++) 721 ttyprt(tp, tp - tty); 748 ttyprt(tp, line) in ttyprt() argument 749 struct tty *tp; in ttyprt() 756 if (usenumflag || tp->t_dev == 0 || 761 (void)printf("%2d %3d ", tp->t_rawq.c_cc, tp->t_canq.c_cc); 763 tp->t_hiwat, tp->t_lowat, tp->t_column); 772 if (tp->t_pgrp != NULL) 775 switch (tp->t_line) { [all …]
|