/freebsd-11-stable/contrib/netbsd-tests/lib/semaphore/pthread/ |
H A D | t_sem_pth.c | 4 ATF_TP_ADD_TCS(tp) 7 ATF_TP_ADD_TC(tp, postwait); 8 ATF_TP_ADD_TC(tp, initvalue); 9 ATF_TP_ADD_TC(tp, destroy); 10 ATF_TP_ADD_TC(tp, busydestroy); 11 ATF_TP_ADD_TC(tp, blockwait); 12 ATF_TP_ADD_TC(tp, blocktimedwait); 13 ATF_TP_ADD_TC(tp, named); 14 ATF_TP_ADD_TC(tp, unlink);
|
/freebsd-11-stable/sys/sys/ |
H A D | ttyhook.h | 43 typedef int th_rint_t(struct tty *tp, char c, int flags); 44 typedef size_t th_rint_bypass_t(struct tty *tp, const void *buf, size_t len); 45 typedef void th_rint_done_t(struct tty *tp); 46 typedef size_t th_rint_poll_t(struct tty *tp); 48 typedef size_t th_getc_inject_t(struct tty *tp, void *buf, size_t len); 49 typedef void th_getc_capture_t(struct tty *tp, const void *buf, size_t len); 50 typedef size_t th_getc_poll_t(struct tty *tp); 52 typedef void th_close_t(struct tty *tp); 72 #define ttyhook_softc(tp) ((tp) 77 ttyhook_rint(struct tty *tp, char c, int flags) argument 86 ttyhook_rint_bypass(struct tty *tp, const void *buf, size_t len) argument 95 ttyhook_rint_done(struct tty *tp) argument 104 ttyhook_rint_poll(struct tty *tp) argument 113 ttyhook_getc_inject(struct tty *tp, void *buf, size_t len) argument 122 ttyhook_getc_capture(struct tty *tp, const void *buf, size_t len) argument 131 ttyhook_getc_poll(struct tty *tp) argument 140 ttyhook_close(struct tty *tp) argument [all...] |
H A D | ttydevsw.h | 43 typedef int tsw_open_t(struct tty *tp); 44 typedef void tsw_close_t(struct tty *tp); 45 typedef void tsw_outwakeup_t(struct tty *tp); 46 typedef void tsw_inwakeup_t(struct tty *tp); 47 typedef int tsw_ioctl_t(struct tty *tp, u_long cmd, caddr_t data, 49 typedef int tsw_cioctl_t(struct tty *tp, int unit, u_long cmd, caddr_t data, 51 typedef int tsw_param_t(struct tty *tp, struct termios *t); 52 typedef int tsw_modem_t(struct tty *tp, int sigon, int sigoff); 53 typedef int tsw_mmap_t(struct tty *tp, vm_ooffset_t offset, 55 typedef void tsw_pktnotify_t(struct tty *tp, cha 84 ttydevsw_open(struct tty *tp) argument 94 ttydevsw_close(struct tty *tp) argument 104 ttydevsw_outwakeup(struct tty *tp) argument 118 ttydevsw_inwakeup(struct tty *tp) argument 132 ttydevsw_ioctl(struct tty *tp, u_long cmd, caddr_t data, struct thread *td) argument 142 ttydevsw_cioctl(struct tty *tp, int unit, u_long cmd, caddr_t data, struct thread *td) argument 153 ttydevsw_param(struct tty *tp, struct termios *t) argument 162 ttydevsw_modem(struct tty *tp, int sigon, int sigoff) argument 171 ttydevsw_mmap(struct tty *tp, vm_ooffset_t offset, vm_paddr_t *paddr, int nprot, vm_memattr_t *memattr) argument 181 ttydevsw_pktnotify(struct tty *tp, char event) argument 191 ttydevsw_free(struct tty *tp) argument 200 ttydevsw_busy(struct tty *tp) argument [all...] |
H A D | ttydisc.h | 45 void ttydisc_open(struct tty *tp); 46 void ttydisc_close(struct tty *tp); 47 int ttydisc_read(struct tty *tp, struct uio *uio, int ioflag); 48 int ttydisc_write(struct tty *tp, struct uio *uio, int ioflag); 49 void ttydisc_optimize(struct tty *tp); 52 void ttydisc_modem(struct tty *tp, int open); 53 #define ttydisc_can_bypass(tp) ((tp)->t_flags & TF_BYPASS) 54 int ttydisc_rint(struct tty *tp, char c, int flags); 55 size_t ttydisc_rint_simple(struct tty *tp, cons 70 ttydisc_read_poll(struct tty *tp) argument 79 ttydisc_write_poll(struct tty *tp) argument [all...] |
/freebsd-11-stable/usr.sbin/dumpcis/ |
H A D | readcis.h | 51 #define tpl32(tp) ((*((tp) + 3) << 24) | \ 52 (*((tp) + 2) << 16) | \ 53 (*((tp) + 1) << 8) | *(tp)) 54 #define tpl24(tp) ((*((tp) + 2) << 16) | \ 55 (*((tp) + 1) << 8) | *(tp)) 56 #define tpl16(tp) ((*((t [all...] |
/freebsd-11-stable/contrib/ncurses/ncurses/trace/ |
H A D | trace_xnames.c | 41 _nc_trace_xnames(TERMTYPE *tp GCC_UNUSED) 45 int limit = tp->ext_Booleans + tp->ext_Numbers + tp->ext_Strings; 48 int begin_num = tp->ext_Booleans; 49 int begin_str = tp->ext_Booleans + tp->ext_Numbers; 52 tp->term_names, 54 tp->ext_Booleans, tp [all...] |
/freebsd-11-stable/contrib/atf/atf-c/ |
H A D | atf_c_test.c | 40 ATF_TP_ADD_TCS(tp) 43 ATF_TP_ADD_TC(tp, include);
|
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | thread.c | 72 struct thread_info *tp; local 77 for (tp = thread_list; tp; tp = tp->next) 78 if (tp->step_resume_breakpoint == *breakpointp) 79 tp->step_resume_breakpoint = NULL; 86 free_thread (struct thread_info *tp) argument 90 if (tp->step_resume_breakpoint) 91 delete_breakpoint (tp 104 struct thread_info *tp, *tpnext; local 125 struct thread_info *tp; local 139 struct thread_info *tp, *tpprev; local 161 struct thread_info *tp; local 174 struct thread_info *tp; local 201 struct thread_info *tp; local 213 struct thread_info *tp; local 225 struct thread_info *tp; local 247 struct thread_info *tp; local 261 struct thread_info *tp; local 309 struct thread_info *tp; local 355 struct thread_info *tp; local 382 thread_alive(struct thread_info *tp) argument 397 struct thread_info *tp, *next; local 417 struct thread_info *tp; local 538 struct thread_info *tp; local 600 struct thread_info *tp; local 683 struct thread_info *tp; local [all...] |
/freebsd-11-stable/sys/netinet/tcp_stacks/ |
H A D | fastpath.c | 151 #define DELAY_ACK(tp, tlen) \ 152 ((!tcp_timer_active(tp, TT_DELACK) && \ 153 (tp->t_flags & TF_RXWIN0SENT) == 0) && \ 154 (tlen <= tp->t_maxseg) && \ 155 (V_tcp_delack_enabled || (tp->t_flags & TF_NEEDSYN))) 167 struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, 184 * - We have more new data (SEQ_LT(tp->snd_wl1, th->th_seq)) <or> 186 * (tp->snd_wl1 == th->th_seq && SEQ_LT(tp->snd_wl2, th->th_ack)) 188 * (tp 166 tcp_do_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, int ti_locked, u_long tiwin) argument 337 tcp_do_fastnewdata(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, int ti_locked, u_long tiwin) argument 441 tcp_do_slowpath(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, int ti_locked, u_long tiwin, int thflags) argument 1685 tcp_do_segment_fastslow(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, int drop_hdrlen, int tlen, uint8_t iptos, int ti_locked) argument 1944 tcp_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, struct tcpopt *to, int drop_hdrlen, int tlen, int ti_locked, u_long tiwin) argument 2160 tcp_do_segment_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so, struct tcpcb *tp, int drop_hdrlen, int tlen, uint8_t iptos, int ti_locked) argument [all...] |
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | gettimeofday.c | 12 @deftypefn Supplemental int gettimeofday (struct timeval *@var{tp}, void *@var{tz}) 14 Writes the current time to @var{tp}. This implementation requires 22 gettimeofday (struct timeval *tp, void *tz) argument 26 tp->tv_usec = 0; 27 if (time (&tp->tv_sec) == (time_t) -1)
|
/freebsd-11-stable/contrib/tzcode/zic/ |
H A D | scheck.c | 28 register char * tp; local 40 tp = fbuf; 41 while ((*tp++ = c = *fp++) != '\0') { 45 *tp++ = *fp++; 48 *tp++ = '*'; 52 *tp++ = *fp++; 54 *tp++ = *fp++; 56 do *tp++ = *fp++; 58 if ((*tp++ = *fp++) == '\0') 61 *(tp [all...] |
/freebsd-11-stable/lib/libc/arm/gen/ |
H A D | _set_tp.c | 36 _set_tp(void *tp) argument 40 *((struct tcb **)ARM_TP_ADDRESS) = tp; 42 sysarch(ARM_SET_TP, tp);
|
/freebsd-11-stable/usr.bin/mkuzip/ |
H A D | mkuz_time.c | 39 struct timespec tp; local 41 if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1) 44 return timespec2dtime(&tp);
|
/freebsd-11-stable/lib/libc/amd64/gen/ |
H A D | _set_tp.c | 35 _set_tp(void *tp) argument 38 amd64_set_fsbase(tp);
|
/freebsd-11-stable/lib/libc/i386/gen/ |
H A D | _set_tp.c | 36 _set_tp(void *tp) argument 39 i386_set_gsbase(tp);
|
/freebsd-11-stable/lib/libc/mips/gen/ |
H A D | _set_tp.c | 36 _set_tp(void *tp) argument 39 sysarch(MIPS_SET_TLS, tp);
|
/freebsd-11-stable/contrib/nvi/ex/ |
H A D | ex_txt.c | 61 TEXT ait, *ntp, *tp; local 75 tp = TAILQ_FIRST(tiqh); 76 if (TAILQ_NEXT(tp, q) != NULL || tp->lb_len < 32) { 80 tp->len = 0; 82 newtp: if ((tp = text_init(sp, NULL, 0, 32)) == NULL) 84 TAILQ_INSERT_HEAD(tiqh, tp, q); 88 tp->lno = sp->lno + 1; 108 if (v_txt_auto(sp, sp->lno, NULL, 0, tp)) 111 txt_prompt(sp, tp, promp 356 txt_prompt(SCR *sp, TEXT *tp, ARG_CHAR_T prompt, u_int32_t flags) argument 380 txt_dent(SCR *sp, TEXT *tp) argument [all...] |
/freebsd-11-stable/contrib/ncurses/include/ |
H A D | term_entry.h | 91 #define NUM_BOOLEANS(tp) (tp)->num_Booleans 92 #define NUM_NUMBERS(tp) (tp)->num_Numbers 93 #define NUM_STRINGS(tp) (tp)->num_Strings 94 #define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i] 96 #define NUM_BOOLEANS(tp) BOOLCOUNT 97 #define NUM_NUMBERS(tp) NUMCOUN [all...] |
/freebsd-11-stable/sys/netinet/ |
H A D | tcp_timer.c | 279 struct tcpcb *tp = xtp; local 281 CURVNET_SET(tp->t_vnet); 283 inp = tp->t_inpcb; 284 KASSERT(inp != NULL, ("%s: tp %p tp->t_inpcb == NULL", __func__, tp)); 286 if (callout_pending(&tp->t_timers->tt_delack) || 287 !callout_active(&tp->t_timers->tt_delack)) { 292 callout_deactivate(&tp->t_timers->tt_delack); 298 KASSERT((tp 313 struct tcpcb *tp = xtp; local 394 struct tcpcb *tp = xtp; local 496 struct tcpcb *tp = xtp; local 575 struct tcpcb *tp = xtp; local 832 tcp_timer_activate(struct tcpcb *tp, uint32_t timer_type, u_int delta) argument 904 tcp_timer_active(struct tcpcb *tp, uint32_t timer_type) argument 934 tcp_timer_stop(struct tcpcb *tp, uint32_t timer_type) argument 989 tcp_timer_to_xtimer(struct tcpcb *tp, struct tcp_timer *timer, struct xtcp_timer *xtimer) argument [all...] |
H A D | tcp_output.c | 135 #define TCP_XMIT_TIMER_ASSERT(tp, len, th_flags) \ 137 tcp_timer_active((tp), TT_REXMT) || \ 138 tcp_timer_active((tp), TT_PERSIST), \ 141 static void inline hhook_run_tcp_est_out(struct tcpcb *tp, 144 static void inline cc_after_idle(struct tcpcb *tp); 150 hhook_run_tcp_est_out(struct tcpcb *tp, struct tcphdr *th, argument 156 hhook_data.tp = tp; 163 tp->osd); 171 cc_after_idle(struct tcpcb *tp) argument 183 tcp_output(struct tcpcb *tp) argument 1656 tcp_setpersist(struct tcpcb *tp) argument [all...] |
H A D | tcp_offload.c | 93 tcp_offload_listen_start(struct tcpcb *tp) argument 96 INP_WLOCK_ASSERT(tp->t_inpcb); 98 EVENTHANDLER_INVOKE(tcp_offload_listen_start, tp); 102 tcp_offload_listen_stop(struct tcpcb *tp) argument 105 INP_WLOCK_ASSERT(tp->t_inpcb); 107 EVENTHANDLER_INVOKE(tcp_offload_listen_stop, tp); 111 tcp_offload_input(struct tcpcb *tp, struct mbuf *m) argument 113 struct toedev *tod = tp->tod; 115 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp 122 tcp_offload_output(struct tcpcb *tp) argument 147 tcp_offload_rcvd(struct tcpcb *tp) argument 158 tcp_offload_ctloutput(struct tcpcb *tp, int sopt_dir, int sopt_name) argument 169 tcp_offload_detach(struct tcpcb *tp) argument [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | tty_ttydisc.c | 59 #define CMP_CC(v,c) (tp->t_termios.c_cc[v] != _POSIX_VDISABLE && \ 60 tp->t_termios.c_cc[v] == (c)) 61 #define CMP_FLAG(field,opt) (tp->t_termios.c_ ## field ## flag & (opt)) 85 ttydisc_open(struct tty *tp) argument 87 ttydisc_optimize(tp); 91 ttydisc_close(struct tty *tp) argument 95 tp->t_flags &= ~(TF_STOPPED|TF_HIWAT|TF_ZOMBIE); 101 tty_flush(tp, FREAD | FWRITE); 103 if (ttyhook_hashook(tp, close)) 104 ttyhook_close(tp); 108 ttydisc_read_canonical(struct tty *tp, struct uio *uio, int ioflag) argument 181 ttydisc_read_raw_no_timer(struct tty *tp, struct uio *uio, int ioflag) argument 220 ttydisc_read_raw_read_timer(struct tty *tp, struct uio *uio, int ioflag, int oresid) argument 274 ttydisc_read_raw_interbyte_timer(struct tty *tp, struct uio *uio, int ioflag) argument 323 ttydisc_read(struct tty *tp, struct uio *uio, int ioflag) argument 366 ttydisc_write_oproc(struct tty *tp, char c) argument 452 ttydisc_write(struct tty *tp, struct uio *uio, int ioflag) argument 572 ttydisc_optimize(struct tty *tp) argument 592 ttydisc_modem(struct tty *tp, int open) argument 627 ttydisc_echo_force(struct tty *tp, char c, int quote) argument 663 ttydisc_echo(struct tty *tp, char c, int quote) argument 680 struct tty *tp = d; local 686 ttydisc_reprint(struct tty *tp) argument 701 struct tty *tp; member in struct:ttydisc_recalc_length 709 struct tty *tp = data->tp; local 722 ttydisc_recalc_linelength(struct tty *tp) argument 732 ttydisc_rubchar(struct tty *tp) argument 805 ttydisc_rubword(struct tty *tp) argument 837 ttydisc_rint(struct tty *tp, char c, int flags) argument 1066 ttydisc_rint_simple(struct tty *tp, const void *buf, size_t len) argument 1082 ttydisc_rint_bypass(struct tty *tp, const void *buf, size_t len) argument 1104 ttydisc_rint_done(struct tty *tp) argument 1119 ttydisc_rint_poll(struct tty *tp) argument 1142 ttydisc_wakeup_watermark(struct tty *tp) argument 1163 ttydisc_getc(struct tty *tp, void *buf, size_t len) argument 1186 ttydisc_getc_uio(struct tty *tp, struct uio *uio) argument 1231 ttydisc_getc_poll(struct tty *tp) argument 1252 tty_putchar(struct tty *tp, char c) argument [all...] |
H A D | tty.c | 72 static void tty_rel_free(struct tty *tp); 96 #define TTY_CALLOUT(tp,d) (dev2unit(d) & TTYUNIT_CALLOUT) 115 tty_watermarks(struct tty *tp) argument 121 if (tp->t_termios.c_cflag & CREAD) 122 bs = MIN(tp->t_termios.c_ispeed / 5, TTYBUF_MAX); 123 error = ttyinq_setsize(&tp->t_inq, tp, bs); 128 tp->t_inlow = (ttyinq_getallocatedsize(&tp->t_inq) * 9) / 10; 131 bs = MIN(tp 143 tty_drain(struct tty *tp, int leaving) argument 205 ttydev_enter(struct tty *tp) argument 220 ttydev_leave(struct tty *tp) argument 267 struct tty *tp; local 366 struct tty *tp = dev->si_drv1; local 404 tty_is_ctty(struct tty *tp, struct proc *p) argument 413 tty_wait_background(struct tty *tp, struct thread *td, int sig) argument 478 struct tty *tp = dev->si_drv1; local 499 struct tty *tp = dev->si_drv1; local 537 struct tty *tp = dev->si_drv1; local 622 struct tty *tp = dev->si_drv1; local 660 struct tty *tp = dev->si_drv1; local 681 struct tty *tp = kn->kn_hook; local 689 struct tty *tp = kn->kn_hook; local 705 struct tty *tp = kn->kn_hook; local 713 struct tty *tp = kn->kn_hook; local 741 struct tty *tp = dev->si_drv1; local 790 struct tty *tp; local 823 struct tty *tp = dev->si_drv1; local 875 tty_init_termios(struct tty *tp) argument 891 tty_init_console(struct tty *tp, speed_t s) argument 1029 struct tty *tp; local 1081 struct tty *tp = arg; local 1110 tty_rel_free(struct tty *tp) argument 1141 tty_rel_pgrp(struct tty *tp, struct pgrp *pg) argument 1154 tty_rel_sess(struct tty *tp, struct session *sess) argument 1169 tty_rel_gone(struct tty *tp) argument 1188 tty_drop_ctty(struct tty *tp, struct proc *p) argument 1257 tty_to_xtty(struct tty *tp, struct xtty *xt) argument 1282 struct tty *tp; local 1316 tty_makedevf(struct tty *tp, struct ucred *cred, int flags, const char *fmt, ...) argument 1448 tty_signal_sessleader(struct tty *tp, int sig) argument 1467 tty_signal_pgrp(struct tty *tp, int sig) argument 1490 tty_wakeup(struct tty *tp, int flags) argument 1509 tty_wait(struct tty *tp, struct cv *cv) argument 1531 tty_timedwait(struct tty *tp, struct cv *cv, int hz) argument 1553 tty_flush(struct tty *tp, int flags) argument 1577 tty_set_winsize(struct tty *tp, const struct winsize *wsz) argument 1587 tty_generic_ioctl(struct tty *tp, u_long cmd, void *data, int fflag, struct thread *td) argument 1945 tty_ioctl(struct tty *tp, u_long cmd, void *data, int fflag, struct thread *td) argument 1962 tty_udev(struct tty *tp) argument 1972 tty_checkoutq(struct tty *tp) argument 1980 tty_hiwat_in_block(struct tty *tp) argument 2000 tty_hiwat_in_unblock(struct tty *tp) argument 2027 ttyhook_defrint(struct tty *tp, char c, int flags) argument 2040 struct tty *tp; local 2113 ttyhook_unregister(struct tty *tp) argument 2137 struct tty *tp; local 2317 struct tty *tp; local 2378 struct tty *tp; local [all...] |
/freebsd-11-stable/contrib/file/python/ |
H A D | example.py | 7 tp = ms.file("/bin/ls") variable 8 print (tp) 14 tp = ms.buffer(buf) variable 15 print (tp)
|
/freebsd-11-stable/contrib/nvi/vi/ |
H A D | v_txt.c | 225 * Internally, we maintain tp->lno and tp->cno, externally, everyone uses 228 #define UPDATE_POSITION(sp, tp) { \ 229 (sp)->lno = (tp)->lno; \ 230 (sp)->cno = (tp)->cno; \ 255 TEXT *ntp, *tp; /* Input text structures. */ local 297 tp = TAILQ_FIRST(tiqh); 298 if (TAILQ_NEXT(tp, q) != NULL || 299 tp->lb_len < (len + 32) * sizeof(CHAR_T)) { 303 tp 1473 txt_abbrev(SCR *sp, TEXT *tp, CHAR_T *pushcp, int isinfoline, int *didsubp, int *turnoffp) argument 1639 txt_unmap(SCR *sp, TEXT *tp, u_int32_t *ec_flagsp) argument 1679 txt_ai_resolve(SCR *sp, TEXT *tp, int *changedp) argument 1766 v_txt_auto(SCR *sp, recno_t lno, TEXT *aitp, size_t len, TEXT *tp) argument 1816 txt_backup(SCR *sp, TEXTH *tiqh, TEXT *tp, u_int32_t *flagsp) argument 1891 txt_dent(SCR *sp, TEXT *tp, int isindent) argument 1992 txt_fc(SCR *sp, TEXT *tp, int *redrawp) argument 2267 txt_emark(SCR *sp, TEXT *tp, size_t cno) argument 2353 txt_hex(SCR *sp, TEXT *tp) argument 2433 txt_insch(SCR *sp, TEXT *tp, CHAR_T *chp, u_int flags) argument 2548 txt_isrch(SCR *sp, VICMD *vp, TEXT *tp, u_int8_t *is_flagsp) argument 2671 TEXT *tp; local 2722 txt_showmatch(SCR *sp, TEXT *tp) argument 2789 txt_margin(SCR *sp, TEXT *tp, TEXT *wmtp, int *didbreak, u_int32_t flags) argument 2865 txt_Rresolve(SCR *sp, TEXTH *tiqh, TEXT *tp, const size_t orig_len) argument [all...] |