| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/format/ |
| H A D | ext-3.c | 11 foo (char *s, size_t m, const struct tm *tp) in foo() argument 17 strftime (s, m, "%5C%-C%_C%0C", tp); in foo() 19 strftime (s, m, "%-5C%_5C%05C%-5d%_5d%05d%-5e%_5e%05e%-5G%_5G%05G", tp); in foo() 20 strftime (s, m, "%-5H%_5H%05H%-5I%_5I%05I%-5j%_5j%05j%-5m%_5m%05m", tp); in foo() 21 strftime (s, m, "%-5M%_5M%05M%-5S%_5S%05S%-5u%_5u%05u%-5U%_5U%05U", tp); in foo() 22 strftime (s, m, "%-5V%_5V%05V%-5w%_5w%05w%-5W%_5W%05W%-5Y%_5Y%05Y", tp); in foo() 24 strftime (s, m, "%-5k%_5k%05k%-5l%_5l%05l%-20s%_20s%020s", tp); in foo() 26 strftime (s, m, "%-5g%_5g%05g%-5y%_5y%05y", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 28 strftime (s, m, "%5a", tp); /* { dg-warning "width" "bad %a" } */ in foo() 29 strftime (s, m, "%-a", tp); /* { dg-warning "flag" "bad %a" } */ in foo() [all …]
|
| H A D | c99-strftime-1.c | 9 foo (char *s, size_t m, const struct tm *tp) in foo() argument 13 strftime (s, m, "%a%A%b%B%C%d%e%F%G%h%H%I%j%m%M%p%R%S%t%T%u%U%V%w%W%X%Y%z%Z%%", tp); in foo() 14 strftime (s, m, "%EC%EX%EY%Od%Oe%OH%OI%Om%OM%OS%Ou%OU%OV%Ow%OW", tp); in foo() 16 strftime (s, m, "%D", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 17 strftime (s, m, "%g", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 18 strftime (s, m, "%y", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 19 strftime (s, m, "%Oy", tp); /* { dg-warning "only last 2" "2-digit year" } */ in foo() 21 strftime (s, m, "%c", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo() 22 strftime (s, m, "%Ec", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo() 23 strftime (s, m, "%x", tp); /* { dg-warning "some locales" "2-digit year" } */ in foo() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | thread.c | 72 struct thread_info *tp; in delete_step_resume_breakpoint() local 77 for (tp = thread_list; tp; tp = tp->next) in delete_step_resume_breakpoint() 78 if (tp->step_resume_breakpoint == *breakpointp) in delete_step_resume_breakpoint() 79 tp->step_resume_breakpoint = NULL; in delete_step_resume_breakpoint() 86 free_thread (struct thread_info *tp) in free_thread() argument 90 if (tp->step_resume_breakpoint) in free_thread() 91 delete_breakpoint (tp->step_resume_breakpoint); in free_thread() 95 if (tp->private) in free_thread() 96 xfree (tp->private); in free_thread() 98 xfree (tp); in free_thread() [all …]
|
| /openbsd-src/sys/netinet/ |
| H A D | tcp_timer.c | 88 tcp_timer_enter(struct inpcb *inp, struct socket **so, struct tcpcb **tp, 96 *tp = NULL; in tcp_timer_init() 99 *tp = intotcpcb(inp); in tcp_timer_init() 101 if (*tp == NULL || !ISSET((*tp)->t_flags, TF_TIMER << timer) || in tcp_timer_init() 102 timeout_pending(&(*tp)->t_timer[timer])) in tcp_timer_init() 104 CLR((*tp)->t_flags, TF_TIMER << timer); in tcp_timer_init() 125 struct tcpcb *otp = NULL, *tp; in tcp_timer_delack() 133 if (tcp_timer_enter(inp, &so, &tp, TCPT_DELACK)) in tcp_timer_delack() 137 otp = tp; in tcp_timer_delack() 117 struct tcpcb *otp = NULL, *tp = arg; tcp_timer_delack() local 162 tcp_canceltimers(struct tcpcb * tp) tcp_canceltimers() argument 182 tcp_timer_freesack(struct tcpcb * tp) tcp_timer_freesack() argument 200 struct tcpcb *otp = NULL, *tp = arg; tcp_timer_rexmt() local 400 struct tcpcb *otp = NULL, *tp = arg; tcp_timer_persist() local 451 struct tcpcb *otp = NULL, *tp = arg; tcp_timer_keep() local 512 struct tcpcb *otp = NULL, *tp = arg; tcp_timer_2msl() local 546 struct tcpcb *tp = arg; tcp_timer_reaper() local [all...] |
| H A D | tcp_output.c | 107 void tcp_print_holes(struct tcpcb *tp); 110 tcp_print_holes(struct tcpcb *tp) 112 struct sackhole *p = tp->snd_holes; in tcp_print_holes() argument 130 tcp_sack_output(struct tcpcb *tp) 134 if (!tp->sack_enable) in tcp_sack_output() 136 p = tp->snd_holes; in tcp_sack_output() 139 if (SEQ_LT(p->rxmit, tp->snd_una)) {/* old SACK hole */ in tcp_sack_output() 145 tcp_print_holes(tp); in tcp_sack_output() 161 tcp_sack_adjust(struct tcpcb *tp) 163 struct sackhole *cur = tp argument 132 tcp_sack_output(struct tcpcb * tp) tcp_sack_output() argument 195 tcp_output(struct tcpcb * tp) tcp_output() argument 1176 tcp_setpersist(struct tcpcb * tp) tcp_setpersist() argument [all...] |
| H A D | tcp_input.c | 135 #define ND6_HINT(tp) \ 137 if (tp && tp->t_inpcb && \ 138 ISSET(tp->t_inpcb->inp_flags, INP_IPV6) && \ 139 rtisvalid(tp->t_inpcb->inp_route.ro_rt)) { \ 140 nd6_nud_hint(tp->t_inpcb->inp_route.ro_rt); \ 144 #define ND6_HINT(tp) 166 #define TCP_SETUP_ACK(tp, tiflags, m) \ 171 if (TCP_TIMER_ISARMED(tp, TCPT_DELACK) || \ 174 tp 136 ND6_HINT(tp) global() argument 145 ND6_HINT(tp) global() argument 167 TCP_SETUP_ACK(tp,tiflags,m) global() argument 212 tcp_reass(struct tcpcb * tp,struct tcphdr * th,struct mbuf * m,int * tlen) tcp_reass() argument 311 tcp_flush_queue(struct tcpcb * tp) tcp_flush_queue() argument 362 struct tcpcb *otp = NULL, *tp = NULL; tcp_input() local 2118 tcp_dooptions(struct tcpcb * tp,u_char * cp,int cnt,struct tcphdr * th,struct mbuf * m,int iphlen,struct tcp_opt_info * oi,u_int rtableid,uint64_t now) tcp_dooptions() argument 2307 tcp_update_sack_list(struct tcpcb * tp,tcp_seq rcv_laststart,tcp_seq rcv_lastend) tcp_update_sack_list() argument 2402 tcp_sack_option(struct tcpcb * tp,struct tcphdr * th,u_char * cp,int optlen) tcp_sack_option() argument 2588 tcp_del_sackholes(struct tcpcb * tp,struct tcphdr * th) tcp_del_sackholes() argument 2617 tcp_clean_sackreport(struct tcpcb * tp) tcp_clean_sackreport() argument 2633 tcp_sack_partialack(struct tcpcb * tp,struct tcphdr * th) tcp_sack_partialack() argument 2665 struct tcpcb *tp = sototcpcb(so); tcp_pulloutofband() local 2686 tcp_xmit_timer(struct tcpcb * tp,int32_t rtt) tcp_xmit_timer() argument 2788 tcp_mss(struct tcpcb * tp,int offer) tcp_mss() argument 2931 tcp_hdrsz(struct tcpcb * tp) tcp_hdrsz() argument 2971 tcp_mss_update(struct tcpcb * tp) tcp_mss_update() argument 3015 tcp_newreno_partialack(struct tcpcb * tp,struct tcphdr * th) tcp_newreno_partialack() argument 3194 syn_cache_insert(struct syn_cache * sc,struct tcpcb * tp) syn_cache_insert() argument 3400 syn_cache_cleanup(struct tcpcb * tp) syn_cache_cleanup() argument 3487 struct tcpcb *tp = NULL; syn_cache_get() local 3762 struct tcpcb tb, *tp; global() local [all...] |
| H A D | tcp_usrreq.c | 199 struct tcpcb *tp; in tcp_sogetpcb() 206 if ((inp = sotoinpcb(so)) == NULL || (tp = intotcpcb(inp)) == NULL) { 215 *rtp = tp; in tcp_fill_info() 226 tcp_fill_info(struct tcpcb *tp, struct socket *so, struct mbuf *m) in tcp_fill_info() 243 ti->tcpi_state = tp->t_state; in tcp_fill_info() 244 if ((tp->t_flags & TF_REQ_TSTMP) && (tp->t_flags & TF_RCVD_TSTMP)) in tcp_fill_info() 246 if (tp->t_flags & TF_SACK_PERMIT) in tcp_fill_info() 248 if ((tp->t_flags & TF_REQ_SCALE) && (tp in tcp_fill_info() 188 struct tcpcb *tp; tcp_sogetpcb() local 213 tcp_fill_info(struct tcpcb * tp,struct socket * so,struct mbuf * m) tcp_fill_info() argument 312 struct tcpcb *tp; tcp_ctloutput() local 459 struct tcpcb *tp; tcp_attach() local 512 struct tcpcb *otp = NULL, *tp; tcp_detach() local 547 struct tcpcb *tp; tcp_bind() local 573 struct tcpcb *tp, *otp = NULL; tcp_listen() local 614 struct tcpcb *tp, *otp = NULL; tcp_connect() local 694 struct tcpcb *tp; tcp_accept() local 724 struct tcpcb *tp, *otp = NULL; tcp_disconnect() local 752 struct tcpcb *tp, *otp = NULL; tcp_shutdown() local 787 struct tcpcb *tp; tcp_rcvd() local 821 struct tcpcb *tp; tcp_send() local 860 struct tcpcb *tp, *otp = NULL; tcp_abort() local 883 struct tcpcb *tp; tcp_sense() local 902 struct tcpcb *tp; tcp_rcvoob() local 936 struct tcpcb *tp; tcp_sendoob() local 988 struct tcpcb *tp; tcp_sockaddr() local 1008 struct tcpcb *tp; tcp_peeraddr() local 1032 tcp_dodisconnect(struct tcpcb * tp) tcp_dodisconnect() argument 1061 tcp_usrclosed(struct tcpcb * tp) tcp_usrclosed() argument 1106 struct tcpcb *tp = NULL; tcp_ident() local 1510 tcp_update_sndspace(struct tcpcb * tp) tcp_update_sndspace() argument 1550 tcp_update_rcvspace(struct tcpcb * tp) tcp_update_rcvspace() argument [all...] |
| H A D | tcp_subr.c | 201 tcp_template(struct tcpcb *tp) 203 struct inpcb *inp = tp->t_inpcb; 210 if ((m = tp->t_template) == 0) { in tcp_template() 215 switch (tp->pf) { in tcp_template() 229 switch(tp->pf) { in tcp_template() 287 * template for a connection tp->t_template. If flags are given 296 tcp_respond(struct tcpcb *tp, caddr_t template, struct tcphdr *th0, 309 if (tp) { in tcp_respond() 310 struct socket *so = tp->t_inpcb->inp_socket; in tcp_respond() 314 * socket/tp/pc in tcp_respond() 204 tcp_template(struct tcpcb * tp) tcp_template() argument 299 tcp_respond(struct tcpcb * tp,caddr_t template,struct tcphdr * th0,tcp_seq ack,tcp_seq seq,int flags,u_int rtableid,uint64_t now) tcp_respond() argument 432 struct tcpcb *tp; tcp_newtcpcb() local 487 tcp_drop(struct tcpcb * tp,int errno) tcp_drop() argument 510 tcp_close(struct tcpcb * tp) tcp_close() argument 541 tcp_freeq(struct tcpcb * tp) tcp_freeq() argument 560 tcp_rscale(struct tcpcb * tp,u_long hiwat) tcp_rscale() argument 576 struct tcpcb *tp = intotcpcb(inp); tcp_notify() local 605 struct tcpcb *tp; tcp6_ctlinput() local 714 struct tcpcb *tp; tcp_ctlinput() local 858 struct tcpcb *tp = intotcpcb(inp); tcp_mtudisc() local 896 struct tcpcb *tp = intotcpcb(inp); tcp_mtudisc_increase() local 917 tcp_set_iss_tsm(struct tcpcb * tp) tcp_set_iss_tsm() argument [all...] |
| /openbsd-src/usr.bin/vi/vi/ |
| H A D | v_txt.c | 228 #define UPDATE_POSITION(sp, tp) { \ argument 229 (sp)->lno = (tp)->lno; \ 230 (sp)->cno = (tp)->cno; \ 247 TEXT *ntp, *tp; /* Input text structures. */ in v_txt() local 288 tp = TAILQ_FIRST(tiqh); in v_txt() 289 if (TAILQ_NEXT(tp, q) || tp->lb_len < len + 32) { in v_txt() 293 tp->ai = tp->insert = tp->offset = tp->owrite = 0; in v_txt() 295 tp->len = len; in v_txt() 296 memmove(tp->lb, lp, len); in v_txt() 298 tp->len = 0; in v_txt() [all …]
|
| /openbsd-src/sys/kern/ |
| H A D | tty.c | 180 ttyopen(dev_t device, struct tty *tp, struct proc *p) in ttyopen() argument 185 tp->t_dev = device; in ttyopen() 186 if (!ISSET(tp->t_state, TS_ISOPEN)) { in ttyopen() 187 SET(tp->t_state, TS_ISOPEN); in ttyopen() 188 memset(&tp->t_winsize, 0, sizeof(tp->t_winsize)); in ttyopen() 189 tp->t_column = 0; in ttyopen() 191 CLR(tp->t_state, TS_WOPEN); in ttyopen() 202 ttyclose(struct tty *tp) in ttyclose() argument 204 if (constty == tp) in ttyclose() 234 ttyinput(int c,struct tty * tp) ttyinput() argument 601 ttyoutput(int c,struct tty * tp) ttyoutput() argument 724 ttioctl(struct tty * tp,u_long cmd,caddr_t data,int flag,struct proc * p) ttioctl() argument 1083 struct tty *tp = (*cdevsw[major(dev)].d_tty)(dev); ttkqfilter() local 1124 struct tty *tp = kn->kn_hook; filt_ttyrdetach() local 1135 struct tty *tp = kn->kn_hook; filt_ttyread() local 1156 struct tty *tp = kn->kn_hook; filt_ttywdetach() local 1167 struct tty *tp = kn->kn_hook; filt_ttywrite() local 1191 struct tty *tp = kn->kn_hook; filt_ttyexcept() local 1210 ttnread(struct tty * tp) ttnread() argument 1231 ttywait_nsec(struct tty * tp,uint64_t nsecs) ttywait_nsec() argument 1259 ttywait(struct tty * tp) ttywait() argument 1268 ttywflush(struct tty * tp) ttywflush() argument 1282 ttyflush(struct tty * tp,int rw) ttyflush() argument 1310 ttychars(struct tty * tp) ttychars() argument 1320 ttyblock(struct tty * tp) ttyblock() argument 1352 struct tty *tp = (struct tty *)arg; ttrstrt() local 1366 ttstart(struct tty * tp) ttstart() argument 1378 ttylclose(struct tty * tp,int flag,struct proc * p) ttylclose() argument 1394 ttymodem(struct tty * tp,int flag) ttymodem() argument 1435 nullmodem(struct tty * tp,int flag) nullmodem() argument 1458 ttypend(struct tty * tp) ttypend() argument 1480 struct tty *tp = (struct tty *)arg; ttvtimeout() local 1489 ttread(struct tty * tp,struct uio * uio,int flag) ttread() argument 1666 ttyunblock(struct tty * tp) ttyunblock() argument 1694 ttycheckoutq(struct tty * tp,int wait) ttycheckoutq() argument 1720 ttwrite(struct tty * tp,struct uio * uio,int flag) ttwrite() argument 1914 ttyrub(int c,struct tty * tp) ttyrub() argument 1993 ttyrubo(struct tty * tp,int cnt) ttyrubo() argument 2009 ttyretype(struct tty * tp) ttyretype() argument 2039 ttyecho(int c,struct tty * tp) ttyecho() argument 2065 ttwakeupwr(struct tty * tp) ttwakeupwr() argument 2081 ttwakeup(struct tty * tp) ttwakeup() argument 2111 ttsetwater(struct tty * tp) ttsetwater() argument 2151 ttyinfo(struct tty * tp) ttyinfo() argument 2289 tputchar(int c,struct tty * tp) tputchar() argument 2314 ttysleep(struct tty * tp,void * chan,int pri,char * wmesg) ttysleep() argument 2320 ttysleep_nsec(struct tty * tp,void * chan,int pri,char * wmesg,uint64_t nsecs) ttysleep_nsec() argument 2349 struct tty *tp; ttymalloc() local 2382 ttyfree(struct tty * tp) ttyfree() argument 2411 struct tty *tp; ttystats_init() local 2485 ttytstamp(struct tty * tp,int octs,int ncts,int odcd,int ndcd) ttytstamp() argument [all...] |
| H A D | tty_pty.c | 233 struct tty *tp; in ptsopen() local 240 tp = pti->pt_tty; in ptsopen() 241 if ((tp->t_state & TS_ISOPEN) == 0) { in ptsopen() 242 tp->t_state |= TS_WOPEN; in ptsopen() 243 ttychars(tp); /* Set up default chars */ in ptsopen() 244 tp->t_iflag = TTYDEF_IFLAG; in ptsopen() 245 tp->t_oflag = TTYDEF_OFLAG; in ptsopen() 246 tp->t_lflag = TTYDEF_LFLAG; in ptsopen() 247 tp->t_cflag = TTYDEF_CFLAG; in ptsopen() 248 tp in ptsopen() 271 struct tty *tp = pti->pt_tty; ptsclose() local 286 struct tty *tp = pti->pt_tty; ptsread() local 335 struct tty *tp = pti->pt_tty; ptswrite() local 347 ptsstart(struct tty * tp) ptsstart() argument 361 ptsstop(struct tty * tp,int flush) ptsstop() argument 384 ptcwakeup(struct tty * tp,int flag) ptcwakeup() argument 404 struct tty *tp; ptcopen() local 427 struct tty *tp = pti->pt_tty; ptcclose() local 439 struct tty *tp = pti->pt_tty; ptcread() local 506 struct tty *tp = pti->pt_tty; ptcwrite() local 619 struct tty *tp; filt_ptcread() local 661 struct tty *tp; filt_ptcwrite() local 695 struct tty *tp; filt_ptcexcept() local 780 struct tty *tp = pti->pt_tty; ptytty() local 789 struct tty *tp = pti->pt_tty; ptyioctl() local [all...] |
| /openbsd-src/sys/dev/wscons/ |
| H A D | wstpad.c | 44 #define PRIMARYBTN_CLICKED(tp) ((tp)->btns_sync & PRIMARYBTN & (tp)->btns) argument 45 #define PRIMARYBTN_RELEASED(tp) ((tp)->btns_sync & PRIMARYBTN & ~(tp)->btns) argument 47 #define IS_MT(tp) ((tp)->features & WSTPAD_MT) argument 48 #define DISABLE(tp) ((tp)->features & WSTPAD_DISABLE) argument 324 wstpad_set_direction(struct wstpad *tp, struct tpad_touch *t, int dx, int dy) in wstpad_set_direction() argument 331 memcpy(&t->start, &tp->time, sizeof(struct timespec)); in wstpad_set_direction() 335 dir = direction(dx, dy, tp->ratio); in wstpad_set_direction() 338 memcpy(&t->start, &tp->time, sizeof(struct timespec)); in wstpad_set_direction() 341 memcpy(&t->match, &tp->time, sizeof(struct timespec)); in wstpad_set_direction() 343 timespecsub(&tp->time, &t->match, &ts); in wstpad_set_direction() [all …]
|
| /openbsd-src/usr.sbin/tcpdump/ |
| H A D | addrtoname.c | 298 struct enamemem *tp; in lookup_emem() local 304 tp = &enametable[(i ^ j) & (HASHNAMESIZE-1)]; in lookup_emem() 305 while (tp->e_nxt) in lookup_emem() 306 if (tp->e_addr0 == i && in lookup_emem() 307 tp->e_addr1 == j && in lookup_emem() 308 tp->e_addr2 == k) in lookup_emem() 309 return tp; in lookup_emem() 311 tp = tp->e_nxt; in lookup_emem() 312 tp->e_addr0 = i; in lookup_emem() 313 tp->e_addr1 = j; in lookup_emem() [all …]
|
| /openbsd-src/usr.bin/vi/ex/ |
| H A D | ex_txt.c | 58 TEXT ait, *ntp, *tp; in ex_txt() local 71 tp = TAILQ_FIRST(tiqh); in ex_txt() 72 if (TAILQ_NEXT(tp, q) || tp->lb_len < 32) { in ex_txt() 76 tp->len = 0; in ex_txt() 78 newtp: if ((tp = text_init(sp, NULL, 0, 32)) == NULL) in ex_txt() 80 TAILQ_INSERT_HEAD(tiqh, tp, q); in ex_txt() 84 tp->lno = sp->lno + 1; in ex_txt() 104 if (v_txt_auto(sp, sp->lno, NULL, 0, tp)) in ex_txt() 107 txt_prompt(sp, tp, prompt, flags); in ex_txt() 144 BINC_GOTO(sp, tp->lb, tp->lb_len, tp->len + 1); in ex_txt() [all …]
|
| /openbsd-src/usr.sbin/nsd/ |
| H A D | xfrd-tcp.c | 81 setup_ssl(struct xfrd_tcp_pipeline* tp, struct xfrd_tcp_set* tcp_set, in setup_ssl() argument 90 tp->ssl = SSL_new((SSL_CTX*)tcp_set->ssl_ctx); in setup_ssl() 91 if(!tp->ssl) { in setup_ssl() 95 SSL_set_connect_state(tp->ssl); in setup_ssl() 96 (void)SSL_set_mode(tp->ssl, SSL_MODE_AUTO_RETRY); in setup_ssl() 97 if(!SSL_set_fd(tp->ssl, tp->tcp_w->fd)) { in setup_ssl() 99 SSL_free(tp->ssl); in setup_ssl() 100 tp->ssl = NULL; in setup_ssl() 104 SSL_set_verify(tp->ssl, SSL_VERIFY_PEER, tls_verify_callback); in setup_ssl() 105 if(!SSL_set1_host(tp->ssl, auth_domain_name)) { in setup_ssl() [all …]
|
| /openbsd-src/sys/arch/powerpc64/dev/ |
| H A D | opalcons.c | 143 struct tty *tp; in opalconsopen() local 149 tp = sc->sc_tty; in opalconsopen() 151 tp = sc->sc_tty = ttymalloc(0); in opalconsopen() 153 tp->t_oproc = opalconsstart; in opalconsopen() 154 tp->t_param = opalconsparam; in opalconsopen() 155 tp->t_dev = dev; in opalconsopen() 156 if ((tp->t_state & TS_ISOPEN) == 0) { in opalconsopen() 157 ttychars(tp); in opalconsopen() 158 tp->t_iflag = TTYDEF_IFLAG; in opalconsopen() 159 tp->t_oflag = TTYDEF_OFLAG; in opalconsopen() [all …]
|
| /openbsd-src/usr.bin/mandoc/ |
| H A D | tbl_term.c | 160 term_tbl(struct termp *tp, const struct tbl_span *sp) in term_tbl() argument 172 tp->flags |= TERMP_NOSPACE | TERMP_NONOSPACE; in term_tbl() 173 save_offset = tp->tcol->offset; in term_tbl() 180 if (tp->tbl.cols == NULL) { in term_tbl() 181 borders_locale = tp->enc == TERMENC_UTF8 ? in term_tbl() 184 tp->tbl.len = term_tbl_len; in term_tbl() 185 tp->tbl.slen = term_tbl_strlen; in term_tbl() 186 tp->tbl.sulen = term_tbl_sulen; in term_tbl() 187 tp->tbl.arg = tp; in term_tbl() 189 tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin); in term_tbl() [all …]
|
| /openbsd-src/bin/ksh/ |
| H A D | table.c | 43 ktinit(struct table *tp, Area *ap, int tsize) in ktinit() argument 45 tp->areap = ap; in ktinit() 46 tp->tbls = NULL; in ktinit() 47 tp->size = tp->nfree = 0; in ktinit() 49 texpand(tp, tsize); in ktinit() 53 texpand(struct table *tp, int nsize) in texpand() argument 57 struct tbl **ntblp, **otblp = tp->tbls; in texpand() 58 int osize = tp->size; in texpand() 60 ntblp = areallocarray(NULL, nsize, sizeof(struct tbl *), tp->areap); in texpand() 63 tp->size = nsize; in texpand() [all …]
|
| /openbsd-src/lib/libcurses/ |
| H A D | term_entry.h | 59 #define NUM_BOOLEANS(tp) (tp)->num_Booleans argument 60 #define NUM_NUMBERS(tp) (tp)->num_Numbers argument 61 #define NUM_STRINGS(tp) (tp)->num_Strings argument 62 #define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i] argument 64 #define NUM_BOOLEANS(tp) BOOLCOUNT 65 #define NUM_NUMBERS(tp) NUMCOUNT 66 #define NUM_STRINGS(tp) STRCOUNT 67 #define EXT_NAMES(tp,i,limit,index,table) table[i] 70 #define NUM_EXT_NAMES(tp) (unsigned) ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings) argument 72 #define for_each_boolean(n,tp) for(n = 0; n < NUM_BOOLEANS(tp); n++) argument [all …]
|
| /openbsd-src/sys/arch/sparc64/dev/ |
| H A D | vcons.c | 177 struct tty *tp; in vconsopen() local 188 tp = sc->sc_tty; in vconsopen() 190 tp = sc->sc_tty = ttymalloc(0); in vconsopen() 192 tp->t_oproc = vconsstart; in vconsopen() 193 tp->t_param = vconsparam; in vconsopen() 194 tp->t_dev = dev; in vconsopen() 195 if ((tp->t_state & TS_ISOPEN) == 0) { in vconsopen() 196 ttychars(tp); in vconsopen() 197 tp->t_iflag = TTYDEF_IFLAG; in vconsopen() 198 tp->t_oflag = TTYDEF_OFLAG; in vconsopen() [all …]
|
| /openbsd-src/usr.sbin/unbound/validator/ |
| H A D | autotrust.c | 330 /** create tp */ 335 struct trust_anchor* tp = (struct trust_anchor*)calloc(1, sizeof(*tp)); in autr_tp_create() local 336 if(!tp) return NULL; in autr_tp_create() 337 tp->name = memdup(own, own_len); in autr_tp_create() 338 if(!tp->name) { in autr_tp_create() 339 free(tp); in autr_tp_create() 342 tp->namelen = own_len; in autr_tp_create() 343 tp->namelabs = dname_count_labels(tp in autr_tp_create() 394 autr_point_delete(struct trust_anchor * tp) autr_point_delete() argument 423 struct trust_anchor* tp; find_add_tp() local 445 add_trustanchor_frm_rr(struct val_anchors * anchors,uint8_t * rr,size_t rr_len,size_t dname_len,struct trust_anchor ** tp) add_trustanchor_frm_rr() argument 477 add_trustanchor_frm_str(struct val_anchors * anchors,char * str,struct trust_anchor ** tp,uint8_t * origin,size_t origin_len,uint8_t ** prev,size_t * prev_len,int * skip) add_trustanchor_frm_str() argument 534 struct trust_anchor* tp = NULL; load_trustanchor() local 746 autr_assemble(struct trust_anchor * tp) autr_assemble() argument 816 struct trust_anchor *tp; parse_id() local 856 struct trust_anchor* tp = *anchor; parse_var_line() local 998 struct trust_anchor *tp = NULL, *tp2; autr_read_file() local 1114 autr_write_contents(FILE * out,char * fn,struct trust_anchor * tp) autr_write_contents() argument 1188 autr_write_file(struct module_env * env,struct trust_anchor * tp) autr_write_file() argument 1262 verify_dnskey(struct module_env * env,struct val_env * ve,struct trust_anchor * tp,struct ub_packed_rrset_key * rrset,struct module_qstate * qstate) verify_dnskey() argument 1419 find_key(struct trust_anchor * tp,uint16_t t,uint8_t * rdata,size_t rdata_len,struct autr_ta ** result) find_key() argument 1439 add_key(struct trust_anchor * tp,uint32_t ttl,uint8_t * rdata,size_t rdata_len) add_key() argument 1479 set_tp_times(struct trust_anchor * tp,time_t rrsig_exp_interval,time_t origttl,int * changed) set_tp_times() argument 1523 init_events(struct trust_anchor * tp) init_events() argument 1534 check_contains_revoked(struct module_env * env,struct val_env * ve,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset,int * changed,struct module_qstate * qstate) check_contains_revoked() argument 1626 update_events(struct module_env * env,struct val_env * ve,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset,int * changed) update_events() argument 1861 init_zsk_to_ksk(struct module_env * env,struct trust_anchor * tp,int * changed) init_zsk_to_ksk() argument 1893 remove_missing_trustanchors(struct module_env * env,struct trust_anchor * tp,int * changed) remove_missing_trustanchors() argument 1955 do_statetable(struct module_env * env,struct trust_anchor * tp,int * changed) do_statetable() argument 1970 autr_holddown_exceed(struct module_env * env,struct trust_anchor * tp,int * c) autr_holddown_exceed() argument 1982 autr_cleanup_keys(struct trust_anchor * tp) autr_cleanup_keys() argument 2058 set_next_probe(struct module_env * env,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset) set_next_probe() argument 2101 autr_tp_remove(struct module_env * env,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset) autr_tp_remove() argument 2154 autr_process_prime(struct module_env * env,struct val_env * ve,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset,struct module_qstate * qstate) autr_process_prime() argument 2287 autr_debug_print_tp(struct trust_anchor * tp) autr_debug_print_tp() argument 2326 struct trust_anchor* tp; autr_debug_print() local 2357 probe_anchor(struct module_env * env,struct trust_anchor * tp) probe_anchor() argument 2410 struct trust_anchor* tp; todo_probe() local 2445 struct trust_anchor* tp; autr_probe_timer() local [all...] |
| /openbsd-src/sbin/unwind/libunbound/validator/ |
| H A D | autotrust.c | 330 /** create tp */ 335 struct trust_anchor* tp = (struct trust_anchor*)calloc(1, sizeof(*tp)); in autr_tp_create() local 336 if(!tp) return NULL; in autr_tp_create() 337 tp->name = memdup(own, own_len); in autr_tp_create() 338 if(!tp->name) { in autr_tp_create() 339 free(tp); in autr_tp_create() 342 tp->namelen = own_len; in autr_tp_create() 343 tp->namelabs = dname_count_labels(tp in autr_tp_create() 394 autr_point_delete(struct trust_anchor * tp) autr_point_delete() argument 423 struct trust_anchor* tp; find_add_tp() local 445 add_trustanchor_frm_rr(struct val_anchors * anchors,uint8_t * rr,size_t rr_len,size_t dname_len,struct trust_anchor ** tp) add_trustanchor_frm_rr() argument 477 add_trustanchor_frm_str(struct val_anchors * anchors,char * str,struct trust_anchor ** tp,uint8_t * origin,size_t origin_len,uint8_t ** prev,size_t * prev_len,int * skip) add_trustanchor_frm_str() argument 534 struct trust_anchor* tp = NULL; load_trustanchor() local 746 autr_assemble(struct trust_anchor * tp) autr_assemble() argument 816 struct trust_anchor *tp; parse_id() local 856 struct trust_anchor* tp = *anchor; parse_var_line() local 998 struct trust_anchor *tp = NULL, *tp2; autr_read_file() local 1118 autr_write_contents(FILE * out,char * fn,struct trust_anchor * tp) autr_write_contents() argument 1192 autr_write_file(struct module_env * env,struct trust_anchor * tp) autr_write_file() argument 1266 verify_dnskey(struct module_env * env,struct val_env * ve,struct trust_anchor * tp,struct ub_packed_rrset_key * rrset,struct module_qstate * qstate) verify_dnskey() argument 1423 find_key(struct trust_anchor * tp,uint16_t t,uint8_t * rdata,size_t rdata_len,struct autr_ta ** result) find_key() argument 1443 add_key(struct trust_anchor * tp,uint32_t ttl,uint8_t * rdata,size_t rdata_len) add_key() argument 1483 set_tp_times(struct trust_anchor * tp,time_t rrsig_exp_interval,time_t origttl,int * changed) set_tp_times() argument 1527 init_events(struct trust_anchor * tp) init_events() argument 1538 check_contains_revoked(struct module_env * env,struct val_env * ve,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset,int * changed,struct module_qstate * qstate) check_contains_revoked() argument 1630 update_events(struct module_env * env,struct val_env * ve,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset,int * changed) update_events() argument 1865 init_zsk_to_ksk(struct module_env * env,struct trust_anchor * tp,int * changed) init_zsk_to_ksk() argument 1897 remove_missing_trustanchors(struct module_env * env,struct trust_anchor * tp,int * changed) remove_missing_trustanchors() argument 1959 do_statetable(struct module_env * env,struct trust_anchor * tp,int * changed) do_statetable() argument 1974 autr_holddown_exceed(struct module_env * env,struct trust_anchor * tp,int * c) autr_holddown_exceed() argument 1986 autr_cleanup_keys(struct trust_anchor * tp) autr_cleanup_keys() argument 2062 set_next_probe(struct module_env * env,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset) set_next_probe() argument 2105 autr_tp_remove(struct module_env * env,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset) autr_tp_remove() argument 2158 autr_process_prime(struct module_env * env,struct val_env * ve,struct trust_anchor * tp,struct ub_packed_rrset_key * dnskey_rrset,struct module_qstate * qstate) autr_process_prime() argument 2291 autr_debug_print_tp(struct trust_anchor * tp) autr_debug_print_tp() argument 2330 struct trust_anchor* tp; autr_debug_print() local 2361 probe_anchor(struct module_env * env,struct trust_anchor * tp) probe_anchor() argument 2414 struct trust_anchor* tp; todo_probe() local 2449 struct trust_anchor* tp; autr_probe_timer() local [all...] |
| /openbsd-src/sys/arch/riscv64/dev/ |
| H A D | sfuart.c | 194 struct tty *tp = sc->sc_tty; in sfuart_intr() local 199 if (tp == NULL) in sfuart_intr() 203 ISSET(tp->t_state, TS_BUSY)) { in sfuart_intr() 204 CLR(tp->t_state, TS_BUSY | TS_FLUSH); in sfuart_intr() 206 wakeup(&tp->t_outq); in sfuart_intr() 207 (*linesw[tp->t_line].l_start)(tp); in sfuart_intr() 236 struct tty *tp = sc->sc_tty; in sfuart_softintr() local 258 if (tp == NULL || !ISSET(tp->t_state, TS_ISOPEN)) { in sfuart_softintr() 268 if (tp->t_dev == cn_tab->cn_dev) { in sfuart_softintr() 274 (*linesw[tp->t_line].l_rint)(27, tp); in sfuart_softintr() [all …]
|
| /openbsd-src/sys/dev/fdt/ |
| H A D | amluart.c | 199 struct tty *tp = sc->sc_tty; in amluart_intr() local 205 if (tp == NULL) in amluart_intr() 210 ISSET(tp->t_state, TS_BUSY)) { in amluart_intr() 211 CLR(tp->t_state, TS_BUSY | TS_FLUSH); in amluart_intr() 213 wakeup(&tp->t_outq); in amluart_intr() 214 (*linesw[tp->t_line].l_start)(tp); in amluart_intr() 250 struct tty *tp = sc->sc_tty; in amluart_softintr() local 272 if (tp == NULL || !ISSET(tp->t_state, TS_ISOPEN)) { in amluart_softintr() 282 if (tp->t_dev == cn_tab->cn_dev) { in amluart_softintr() 288 (*linesw[tp->t_line].l_rint)(27, tp); in amluart_softintr() [all …]
|
| /openbsd-src/sys/arch/hppa/dev/ |
| H A D | pdc.c | 71 void pdcstart(struct tty *tp); 73 int pdcparam(struct tty *tp, struct termios *); 195 struct tty *tp; local 205 tp = sc->sc_tty; 207 tp = sc->sc_tty = ttymalloc(0); 210 tp->t_oproc = pdcstart; 211 tp->t_param = pdcparam; 212 tp->t_dev = dev; 213 if ((tp->t_state & TS_ISOPEN) == 0) { 214 ttychars(tp); [all …]
|