/freebsd-9.3-release/contrib/nvi/ex/ |
H A D | ex_at.c | 45 TEXT *tp; local 107 for (len = 0, tp = cbp->textq.cqh_last; 108 tp != (void *)&cbp->textq; tp = tp->q.cqe_prev) 109 len += tp->len + 1; 117 for (p = ecp->cp + len, tp = cbp->textq.cqh_last; 118 tp != (void *)&cbp->textq; tp = tp [all...] |
/freebsd-9.3-release/sys/kern/ |
H A D | subr_terminal.c | 164 struct tty *tp; local 166 tp = tm->tm_tty; 167 if (tp == NULL) 170 tty_lock(tp); 171 tty_set_winsize(tp, &tm->tm_winsize); 172 tty_unlock(tp); 178 struct tty *tp; local 186 tp = tty_alloc(&terminal_tty_class, tm); 187 tty_makedev(tp, NULL, "%s", name); 188 tm->tm_tty = tp; 246 struct tty *tp; local 299 struct tty *tp; local 314 struct tty *tp; local 336 termtty_open(struct tty *tp) argument 345 termtty_close(struct tty *tp) argument 353 termtty_outwakeup(struct tty *tp) argument 376 termtty_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td) argument 421 termtty_mmap(struct tty *tp, vm_ooffset_t offset, vm_paddr_t * paddr, int nprot, vm_memattr_t *memattr) argument [all...] |
H A D | tty_compat.c | 53 static int ttcompatgetflags(struct tty *tp); 54 static void ttcompatsetflags(struct tty *tp, struct termios *t); 55 static void ttcompatsetlflags(struct tty *tp, struct termios *t); 100 ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term) argument 110 else if (speed != ttcompatspeedtab(tp->t_termios.c_ispeed, 114 term->c_ispeed = tp->t_termios.c_ispeed; 117 else if (speed != ttcompatspeedtab(tp->t_termios.c_ospeed, 121 term->c_ospeed = tp->t_termios.c_ospeed; 124 tp->t_compatflags = (tp 183 tty_ioctl_compat(struct tty *tp, u_long com, caddr_t data, int fflag, struct thread *td) argument 274 ttcompatgetflags(struct tty *tp) argument 334 ttcompatsetflags(struct tty *tp, struct termios *t) argument 411 ttcompatsetlflags(struct tty *tp, struct termios *t) argument [all...] |
/freebsd-9.3-release/sys/gnu/fs/xfs/ |
H A D | xfs_trans_item.c | 38 xfs_trans_add_item(xfs_trans_t *tp, xfs_log_item_t *lip) argument 48 if (tp->t_items_free == 0) { 65 licp->lic_next = tp->t_items.lic_next; 66 tp->t_items.lic_next = licp; 67 tp->t_items_free = XFS_LIC_NUM_SLOTS - 1; 81 lip->li_mountp = tp->t_mountp; 89 licp = &tp->t_items; 117 tp->t_items_free--; 122 lip->li_mountp = tp->t_mountp; 133 xfs_trans_free_item(xfs_trans_t *tp, xfs_log_item_desc_ argument 180 xfs_trans_find_item(xfs_trans_t *tp, xfs_log_item_t *lip) argument 201 xfs_trans_first_item(xfs_trans_t *tp) argument 240 xfs_trans_next_item(xfs_trans_t *tp, xfs_log_item_desc_t *lidp) argument 290 xfs_trans_free_items( xfs_trans_t *tp, int flags) argument 337 xfs_trans_unlock_items(xfs_trans_t *tp, xfs_lsn_t commit_lsn) argument 442 xfs_trans_add_busy(xfs_trans_t *tp, xfs_agnumber_t ag, xfs_extlen_t idx) argument 525 xfs_trans_free_busy(xfs_trans_t *tp) argument [all...] |
H A D | xfs_alloc.h | 51 struct xfs_trans *tp; /* transaction pointer */ member in struct:xfs_alloc_arg 115 struct xfs_trans *tp, /* transaction pointer */ 124 struct xfs_trans *tp, /* transaction pointer */ 134 struct xfs_trans *tp, /* transaction pointer */ 143 struct xfs_trans *tp, /* transaction pointer */ 154 struct xfs_trans *tp, /* transaction pointer */ 171 struct xfs_trans *tp, /* transaction pointer */ 176 xfs_alloc_mark_busy(xfs_trans_t *tp, 182 xfs_alloc_clear_busy(xfs_trans_t *tp,
|
H A D | xfs_trans_buf.c | 69 xfs_trans_get_buf(xfs_trans_t *tp, argument 82 * Default to a normal get_buf() call if the tp is NULL. 84 if (tp == NULL) { 96 if (tp->t_items.lic_next == NULL) { 97 bp = xfs_trans_buf_item_match(tp, target_dev, blkno, len); 99 bp = xfs_trans_buf_item_match_all(tp, target_dev, blkno, len); 103 if (XFS_FORCED_SHUTDOWN(tp->t_mountp)) { 116 ASSERT(XFS_BUF_FSPRIVATE2(bp, xfs_trans_t *) == tp); 146 xfs_buf_item_init(bp, tp->t_mountp); 166 (void) xfs_trans_add_item(tp, (xfs_log_item_ 188 xfs_trans_getsb(xfs_trans_t *tp, struct xfs_mount *mp, int flags) argument 287 xfs_trans_read_buf( xfs_mount_t *mp, xfs_trans_t *tp, xfs_buftarg_t *target, xfs_daddr_t blkno, int len, uint flags, xfs_buf_t **bpp) argument 512 xfs_trans_brelse(xfs_trans_t *tp, xfs_buf_t *bp) argument 649 xfs_trans_bjoin(xfs_trans_t *tp, xfs_buf_t *bp) argument 694 xfs_trans_bhold(xfs_trans_t *tp, xfs_buf_t *bp) argument 716 xfs_trans_bhold_release(xfs_trans_t *tp, xfs_buf_t *bp) argument 744 xfs_trans_log_buf(xfs_trans_t *tp, xfs_buf_t *bp, uint first, uint last) argument 822 xfs_trans_binval( xfs_trans_t *tp, xfs_buf_t *bp) argument 901 xfs_trans_inode_buf( xfs_trans_t *tp, xfs_buf_t *bp) argument 927 xfs_trans_stale_inode_buf( xfs_trans_t *tp, xfs_buf_t *bp) argument 957 xfs_trans_inode_alloc_buf( xfs_trans_t *tp, xfs_buf_t *bp) argument 986 xfs_trans_dquot_buf( xfs_trans_t *tp, xfs_buf_t *bp, uint type) argument 1012 xfs_trans_buf_item_match( xfs_trans_t *tp, xfs_buftarg_t *target, xfs_daddr_t blkno, int len) argument 1065 xfs_trans_buf_item_match_all( xfs_trans_t *tp, xfs_buftarg_t *target, xfs_daddr_t blkno, int len) argument [all...] |
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-atalk.c | 386 register const struct atNBPtuple *tp = local 404 if ((const u_char *)tp > ep) { 414 if ((const u_char *)(tp + 1) > ep) { 418 (void)nbp_name_print(tp, ep); 426 if (tp->enumerator) 427 (void)printf(" [enum=%d]", tp->enumerator); 428 if (EXTRACT_16BITS(&tp->net) != snet || 429 tp->node != snode || tp->skt != skt) 431 ataddr_string(EXTRACT_16BITS(&tp 478 nbp_tuple_print(register const struct atNBPtuple *tp, register const u_char *ep, register u_short snet, register u_char snode, register u_char skt) argument 508 nbp_name_print(const struct atNBPtuple *tp, register const u_char *ep) argument 543 register struct hnamemem *tp, *tp2; local [all...] |
/freebsd-9.3-release/sys/netinet/ |
H A D | tcp_debug.c | 97 tcp_trace(short act, short ostate, struct tcpcb *tp, void *ipgen, argument 125 td->td_tcb = (caddr_t)tp; 126 if (tp != NULL) 127 td->td_cb = *tp; 161 if (tp != NULL) 162 printf("%p %s:", tp, tcpstates[ostate]); 211 if (tp != NULL) 212 printf(" -> %s", tcpstates[tp->t_state]); 213 /* print out internal state of tp !?! */ 215 if (tp [all...] |
H A D | tcp_reass.c | 127 tcp_reass_flush(struct tcpcb *tp) argument 131 INP_WLOCK_ASSERT(tp->t_inpcb); 133 while ((qe = LIST_FIRST(&tp->t_segq)) != NULL) { 137 tp->t_segqlen--; 140 KASSERT((tp->t_segqlen == 0), 142 tp, tp->t_segqlen)); 155 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m) argument 161 struct socket *so = tp->t_inpcb->inp_socket; 166 INP_WLOCK_ASSERT(tp [all...] |
/freebsd-9.3-release/crypto/heimdal/lib/kadm5/ |
H A D | free.c | 69 krb5_tl_data *tp; local 70 tp = princ->tl_data; 71 princ->tl_data = tp->tl_data_next; 73 memset(tp->tl_data_contents, 0, tp->tl_data_length); 74 free(tp->tl_data_contents); 75 free(tp);
|
/freebsd-9.3-release/sys/sparc64/sparc64/ |
H A D | tsb.c | 89 struct tte *tp; local 95 tp = tsb_kvtotte(va); 96 if (tte_match(tp, va)) 97 return (tp); 104 tp = &bucket[i]; 105 if (tte_match(tp, va)) 106 return (tp); 118 struct tte *tp; local 139 tp = tsb_kvtotte(va); 140 KASSERT((tp 206 struct tte *tp; local [all...] |
/freebsd-9.3-release/contrib/ncurses/ncurses/tinfo/ |
H A D | MKfallback.sh | 109 const TERMTYPE *tp; 111 for (tp = fallbacks; 112 tp < fallbacks + sizeof(fallbacks)/sizeof(TERMTYPE); 113 tp++) 114 if (_nc_name_match(tp->term_names, name, "|")) 115 return(tp);
|
H A D | write_entry.c | 66 write_file(char *filename, TERMTYPE *tp) argument 79 if (write_object(tp, buffer, &offset, limit) == ERR 248 _nc_write_entry(TERMTYPE *const tp) argument 278 assert(strlen(tp->term_names) != 0); 279 assert(strlen(tp->term_names) < sizeof(name_list)); 281 (void) strcpy(name_list, tp->term_names); 312 if (write_object(tp, buffer + 1, &offset, limit - 1) != ERR) { 320 key.data = tp->term_names; 321 key.size = strlen(tp->term_names); 334 strcpy(buffer + 1, tp 537 extended_Booleans(TERMTYPE *tp) argument 550 extended_Numbers(TERMTYPE *tp) argument 563 extended_Strings(TERMTYPE *tp) argument 580 extended_object(TERMTYPE *tp) argument 594 write_object(TERMTYPE *tp, char *buffer, unsigned *offset, unsigned limit) argument [all...] |
H A D | parse_entry.c | 70 TERMTYPE *tp = &(entryp->tterm); local 80 last = tp->ext_Booleans; 81 offset = tp->ext_Booleans; 82 tindex = tp->num_Booleans; 85 first = tp->ext_Booleans; 86 last = tp->ext_Numbers + first; 87 offset = tp->ext_Booleans + tp->ext_Numbers; 88 tindex = tp->num_Numbers; 91 first = tp 633 postprocess_termcap(TERMTYPE *tp, bool has_base) argument 914 postprocess_terminfo(TERMTYPE *tp) argument [all...] |
/freebsd-9.3-release/crypto/heimdal/kdc/ |
H A D | v4_dump.c | 42 struct tm tp; local 45 memset(&tp, 0, sizeof(tp)); /* clear out the struct */ 51 tp.tm_year = atoi(wbuf) - 1900; 58 tp.tm_year = atoi(wbuf); 59 if(tp.tm_year < 38) 60 tp.tm_year += 100; 67 tp.tm_mon = atoi(wbuf) - 1; 71 tp.tm_mday = atoi(wbuf); 75 tp [all...] |
/freebsd-9.3-release/gnu/usr.bin/rcs/ident/ |
H A D | ident.c | 229 register char * tp; local 231 tp = line; 237 *tp++ = c; 238 if (tp < line+sizeof(line)-4) 245 if (tp == line) 247 *tp++ = c; 250 *tp++ = c; 256 *tp++ = c; 257 if (tp < line+sizeof(line)-2) 264 if (tp[ [all...] |
/freebsd-9.3-release/sys/dev/ofw/ |
H A D | ofw_console.c | 87 struct tty *tp; local 99 tp = tty_alloc(&ofw_ttydevsw, NULL); 100 tty_makedev(tp, NULL, "%s", output); 101 tty_makealias(tp, "ofwcons"); 111 ofwtty_open(struct tty *tp) argument 117 ofw_timeouthandle = timeout(ofw_timeout, tp, polltime); 123 ofwtty_close(struct tty *tp) argument 127 untimeout(ofw_timeout, tp, ofw_timeouthandle); 131 ofwtty_outwakeup(struct tty *tp) argument 137 len = ttydisc_getc(tp, bu 147 struct tty *tp; local [all...] |
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/intel/dtrace/ |
H A D | fasttrap_isa.c | 299 fasttrap_tracepoint_init(proc_t *p, fasttrap_tracepoint_t *tp, uintptr_t pc, argument 345 tp->ftt_size = (uint8_t)size; 346 tp->ftt_segment = FASTTRAP_SEG_NONE; 384 if (tp->ftt_segment != FASTTRAP_SEG_NONE) 387 tp->ftt_segment = seg; 407 bcopy(instr, tp->ftt_instr, FASTTRAP_MAX_INSTR_SIZE); 409 tp->ftt_type = FASTTRAP_T_COMMON; 428 tp->ftt_type = FASTTRAP_T_JCC; 429 tp->ftt_code = (instr[start + 1] & 0x0f) | FASTTRAP_JO; 430 tp 675 fasttrap_tracepoint_install(proc_t *p, fasttrap_tracepoint_t *tp) argument 686 fasttrap_tracepoint_remove(proc_t *p, fasttrap_tracepoint_t *tp) argument 734 fasttrap_tracepoint_t *tp; local 858 fasttrap_do_seg(fasttrap_tracepoint_t *tp, struct reg *rp, uintptr_t *addr) argument 1000 fasttrap_tracepoint_t *tp, tp_local; local [all...] |
/freebsd-9.3-release/contrib/nvi/common/ |
H A D | cut.c | 250 TEXT *tp; local 259 if ((tp = text_init(sp, NULL, 0, len)) == NULL) 269 memcpy(tp->lb, p + fcno, clen); 270 tp->len = clen; 274 CIRCLEQ_INSERT_TAIL(&cbp->textq, tp, q); 275 cbp->len += tp->len; 318 TEXT *tp; local 320 CALLOC(sp, tp, TEXT *, 1, sizeof(TEXT)); 321 if (tp == NULL) 324 if ((tp 347 TEXT *tp; local [all...] |
/freebsd-9.3-release/sys/dev/cfe/ |
H A D | cfe_console.c | 87 struct tty *tp; local 91 tp = tty_alloc(&cfe_ttydevsw, NULL); 92 tty_makedev(tp, NULL, "cfecons"); 97 cfe_tty_open(struct tty *tp) argument 102 cfe_timeouthandle = timeout(cfe_timeout, tp, polltime); 108 cfe_tty_close(struct tty *tp) argument 112 untimeout(cfe_timeout, tp, cfe_timeouthandle); 116 cfe_tty_outwakeup(struct tty *tp) argument 122 len = ttydisc_getc(tp, buf, sizeof buf); 139 struct tty *tp; local [all...] |
/freebsd-9.3-release/usr.bin/netstat/ |
H A D | main.c | 364 struct protox *tp = NULL; /* for printing cblocks & stats */ local 463 if ((tp = name2protox(optarg)) == NULL) { 613 if (tp) { 614 printproto(tp, tp->pr_name); 618 for (tp = protox; tp->pr_name; tp++) 619 printproto(tp, tp 779 struct protox **tpp, *tp; local 794 struct protox *tp; local [all...] |
/freebsd-9.3-release/usr.sbin/dumpcis/ |
H A D | printcis.c | 47 static void dump_config_map(struct tuple *tp); 48 static void dump_cis_config(struct tuple *tp); 65 struct tuple *tp; local 72 for (tp = tl->tuples; tp; tp = tp->next) { 74 ++count, tp->code, tuple_name(tp->code), tp 181 dump_config_map(struct tuple *tp) argument 502 dump_cis_config(struct tuple *tp) argument [all...] |
/freebsd-9.3-release/lib/libthr/arch/sparc64/include/ |
H A D | pthread_md.h | 70 register struct tcb *tp __asm("%g7"); 72 return (tp);
|
/freebsd-9.3-release/usr.bin/calendar/ |
H A D | day.c | 52 struct tm tp; local 54 localtime_r(&now, &tp); 58 after = tp.tm_wday == friday ? 3 : 1; 89 struct tm tm, tp; local 92 localtime_r(&t, &tp); 95 tm.tm_mday = tp.tm_mday; 96 tm.tm_mon = tp.tm_mon; 97 tm.tm_year = tp.tm_year;
|
/freebsd-9.3-release/usr.bin/w/ |
H A D | pr_time.c | 55 struct tm tp, tm; local 60 tp = *localtime(started); 69 else if (tm.tm_mday != tp.tm_mday || 70 tm.tm_mon != tp.tm_mon || 71 tm.tm_year != tp.tm_year) { 82 (void)wcsftime(buf, sizeof(buf), fmt, &tp);
|