| /openbsd-src/sys/kern/ |
| H A D | kern_tc.c | 133 tc_delta(struct timehands *th) in tc_delta() argument 137 tc = th->th_counter; in tc_delta() 138 return ((tc->tc_get_timecount(tc) - th->th_offset_count) & in tc_delta() 151 struct timehands *th; in binboottime() local 155 th = timehands; in binboottime() 156 gen = th->th_generation; in binboottime() 158 *bt = th->th_boottime; in binboottime() 160 } while (gen == 0 || gen != th->th_generation); in binboottime() 184 struct timehands *th; in binuptime() local 188 th = timehands; in binuptime() [all …]
|
| /openbsd-src/usr.sbin/bgpd/ |
| H A D | timer.c | 40 timer_get(struct timer_head *th, enum Timer timer) in timer_get() argument 44 TAILQ_FOREACH(t, th, entry) in timer_get() 52 timer_nextisdue(struct timer_head *th, time_t now) in timer_nextisdue() argument 56 t = TAILQ_FIRST(th); in timer_nextisdue() 63 timer_nextduein(struct timer_head *th, time_t now) in timer_nextduein() argument 67 if ((t = TAILQ_FIRST(th)) != NULL && t->val > 0) in timer_nextduein() 73 timer_running(struct timer_head *th, enum Timer timer, time_t *left) in timer_running() argument 75 struct timer *t = timer_get(th, timer); in timer_running() 86 timer_set(struct timer_head *th, enum Timer timer, u_int offset) in timer_set() argument 88 struct timer *t = timer_get(th, timer); in timer_set() [all …]
|
| H A D | rde_trie.c | 145 trie_add_v4(struct trie_head *th, struct in_addr *prefix, uint8_t plen) in trie_add_v4() argument 153 prev = &th->root_v4; in trie_add_v4() 193 th->v4_cnt++; in trie_add_v4() 209 th->v4_cnt++; in trie_add_v4() 228 trie_add_v6(struct trie_head *th, struct in6_addr *prefix, uint8_t plen) in trie_add_v6() argument 236 prev = &th->root_v6; in trie_add_v6() 276 th->v6_cnt++; in trie_add_v6() 292 th->v6_cnt++; in trie_add_v6() 317 trie_add(struct trie_head *th, struct bgpd_addr *prefix, uint8_t plen, in trie_add() argument 337 th->match_default_v4 = 1; in trie_add() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | wince.c | 800 undoSStep (thread_info * th) in undoSStep() argument 802 if (th->stepped) in undoSStep() 804 memory_remove_breakpoint (th->step_pc, (void *) &th->step_prev); in undoSStep() 805 th->stepped = 0; in undoSStep() 814 thread_info *th = current_thread; /* Info on currently selected thread */ in wince_software_single_step() local 819 undoSStep (th); in wince_software_single_step() 823 th->stepped = 1; in wince_software_single_step() 825 th->step_pc = mips_next_pc (pc); in wince_software_single_step() 826 th->step_prev = 0; in wince_software_single_step() 827 memory_insert_breakpoint (th->step_pc, (void *) &th->step_prev); in wince_software_single_step() [all …]
|
| H A D | win32-nat.c | 232 thread_info *th; in thread_rec() local 234 for (th = &thread_head; (th = th->next) != NULL;) in thread_rec() 235 if (th->id == id) in thread_rec() 237 if (!th->suspend_count && get_context) in thread_rec() 240 th->suspend_count = SuspendThread (th->h) + 1; in thread_rec() 242 th->suspend_count = -1; in thread_rec() 243 th->reload_context = 1; in thread_rec() 245 return th; in thread_rec() 255 thread_info *th; in child_add_thread() local 257 if ((th = thread_rec (id, FALSE))) in child_add_thread() [all …]
|
| /openbsd-src/sys/net/ |
| H A D | slcompress.c | 172 struct tcphdr *th; in sl_compress_tcp() local 187 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; in sl_compress_tcp() 188 if ((th->th_flags & (TH_SYN|TH_FIN|TH_RST|TH_ACK)) != TH_ACK) in sl_compress_tcp() 200 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp() 221 && *(int32_t *)th == in sl_compress_tcp() 236 hlen += th->th_off; in sl_compress_tcp() 266 hlen += th->th_off; in sl_compress_tcp() 272 th->th_off != oth->th_off || in sl_compress_tcp() 275 (th->th_off > 5 && in sl_compress_tcp() 276 BCMP(th + 1, oth + 1, (th->th_off - 5) << 2))) in sl_compress_tcp() [all …]
|
| /openbsd-src/sys/netinet/ |
| H A D | tcp_subr.c | 205 struct tcphdr *th; in tcp_template() 242 th = (struct tcphdr *)(mtod(m, caddr_t) + in tcp_template() 262 th = (struct tcphdr *)(mtod(m, caddr_t) + in tcp_template() 269 th->th_sport = inp->inp_lport; in tcp_template() 270 th->th_dport = inp->inp_fport; in tcp_template() 271 th->th_seq = 0; in tcp_template() 272 th->th_ack = 0; in tcp_template() 273 th->th_x2 = 0; in tcp_template() 274 th->th_off = 5; in tcp_template() 275 th in tcp_template() 208 struct tcphdr *th; tcp_template() local 305 struct tcphdr *th; tcp_respond() local 604 struct tcphdr th; tcp6_ctlinput() local 713 struct tcphdr *th; tcp_ctlinput() local 1011 tcp_signature(struct tdb * tdb,int af,struct mbuf * m,struct tcphdr * th,int iphlen,int doswap,char * sig) tcp_signature() argument [all...] |
| H A D | tcp_input.c | 211 tcp_reass(struct tcpcb *tp, struct tcphdr *th, struct mbuf *m, int *tlen) 222 if (tiqe != NULL && th->th_seq == tp->rcv_nxt) { in tcp_reass() 227 if (tiqe == NULL || th->th_seq != tp->rcv_nxt) { in tcp_reass() 241 if (SEQ_GT(q->tcpqe_tcp->th_seq, th->th_seq)) in tcp_reass() 254 i = phdr->th_seq + phdr->th_reseqlen - th->th_seq; in tcp_reass() 265 th->th_seq += i; in tcp_reass() 277 int i = (th->th_seq + *tlen) - qhdr->th_seq; in tcp_reass() 295 th->th_reseqlen = *tlen; in tcp_reass() 296 tiqe->tcpqe_tcp = th; in tcp_reass() 303 if (th in tcp_reass() 212 tcp_reass(struct tcpcb * tp,struct tcphdr * th,struct mbuf * m,int * tlen) tcp_reass() argument 379 struct tcphdr *th; 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 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 2633 tcp_sack_partialack(struct tcpcb * tp,struct tcphdr * th) tcp_sack_partialack() argument 3015 tcp_newreno_partialack(struct tcpcb * tp,struct tcphdr * th) tcp_newreno_partialack() argument 3481 syn_cache_get(struct sockaddr * src,struct sockaddr * dst,struct tcphdr * th,u_int hlen,u_int tlen,struct socket * so,struct mbuf * m,uint64_t now) syn_cache_get() argument 3677 syn_cache_reset(struct sockaddr * src,struct sockaddr * dst,struct tcphdr * th,u_int rtableid) syn_cache_reset() argument 3704 syn_cache_unreach(const struct sockaddr * src,const struct sockaddr * dst,struct tcphdr * th,u_int rtableid) syn_cache_unreach() argument 3758 syn_cache_add(struct sockaddr * src,struct sockaddr * dst,struct tcphdr * th,u_int iphlen,struct socket * so,struct mbuf * m,u_char * optp,int optlen,struct tcp_opt_info * oi,tcp_seq * issp,uint64_t now) global() argument 3952 struct tcphdr *th; global() local [all...] |
| H A D | tcp_debug.c | 128 struct tcphdr *th; in tcp_trace() local 175 th = &ti6->ti6_t; in tcp_trace() 183 th = &ti->ti_t; in tcp_trace() 210 seq = th->th_seq; in tcp_trace() 211 ack = th->th_ack; in tcp_trace() 220 printf("@%x, urp=%x", ack, th->th_urp); in tcp_trace() 221 flags = th->th_flags; in tcp_trace() 224 #define pf(f) { if (th->th_flags&TH_##f) { printf("%s%s", cp, #f); cp = ","; } } in tcp_trace()
|
| /openbsd-src/usr.bin/lex/ |
| H A D | tables.c | 80 int yytbl_hdr_init (struct yytbl_hdr *th, const char *version_str, in yytbl_hdr_init() argument 83 memset (th, 0, sizeof (struct yytbl_hdr)); in yytbl_hdr_init() 85 th->th_magic = YYTBL_MAGIC; in yytbl_hdr_init() 86 th->th_hsize = 14 + strlen (version_str) + 1 + strlen (name) + 1; in yytbl_hdr_init() 87 th->th_hsize += yypad64 (th->th_hsize); in yytbl_hdr_init() 88 th->th_ssize = 0; // Not known at this point. in yytbl_hdr_init() 89 th->th_flags = 0; in yytbl_hdr_init() 90 th->th_version = copy_string (version_str); in yytbl_hdr_init() 91 th->th_name = copy_string (name); in yytbl_hdr_init() 140 int yytbl_hdr_fwrite (struct yytbl_writer *wr, const struct yytbl_hdr *th) in yytbl_hdr_fwrite() argument [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/tsan/tests/rtl/ |
| H A D | tsan_posix.cpp | 59 pthread_t th[3]; in TEST() local 63 EXPECT_EQ(__interceptor_pthread_create(&th[0], 0, dtors_thread, &k1), 0); in TEST() 64 EXPECT_EQ(__interceptor_pthread_create(&th[1], 0, dtors_thread, &k2), 0); in TEST() 65 EXPECT_EQ(__interceptor_pthread_join(th[0], 0), 0); in TEST() 66 EXPECT_EQ(__interceptor_pthread_create(&th[2], 0, dtors_thread, &k3), 0); in TEST() 67 EXPECT_EQ(__interceptor_pthread_join(th[1], 0), 0); in TEST() 68 EXPECT_EQ(__interceptor_pthread_join(th[2], 0), 0); in TEST() 82 pthread_t th[kThreads]; in local_thread() local 84 EXPECT_EQ(__interceptor_pthread_create(&th[i], 0, local_thread, in local_thread() 88 EXPECT_EQ(__interceptor_pthread_join(th[i], 0), 0); in local_thread() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/t/ |
| H A D | rulesfile.t | 46 my $th = TAP::Harness->new; 50 is_deeply( $th->rules, $exp, "rules set from t/testrules.yml" ); 64 $th = TAP::Harness->new; 71 is_deeply( $th->rules, $exp, "root testrules.yml overrides t/testrules.yml" ); 86 $th = TAP::Harness->new; 90 is_deeply( $th->rules, $exp, "HARNESS_RULESFILE overrides testrules.yml" ); 93 $th = TAP::Harness->new( { rulesfile => $altrules} ); 97 is_deeply( $th->rules, $exp, "rulesfile param overrides testrules.yml" );
|
| /openbsd-src/sys/arch/hppa/spmath/ |
| H A D | divu.S | 59 ds rem,dvr,rem ; 4th divide step 61 ds rem,dvr,rem ; 5th divide step 63 ds rem,dvr,rem ; 6th divide step 65 ds rem,dvr,rem ; 7th divide step 67 ds rem,dvr,rem ; 8th divide step 69 ds rem,dvr,rem ; 9th divide step 71 ds rem,dvr,rem ; 10th divide step 73 ds rem,dvr,rem ; 11th divide step 75 ds rem,dvr,rem ; 12th divide step 77 ds rem,dvr,rem ; 13th divide step [all …]
|
| /openbsd-src/regress/usr.sbin/bgpd/unittests/ |
| H A D | rde_trie_test.c | 115 parse_file(FILE *in, struct trie_head *th) in parse_file() argument 161 if (trie_add(th, &prefix, plen, min, max) != 0) in parse_file() 170 parse_roa_file(FILE *in, struct trie_head *th) in parse_roa_file() argument 226 if (trie_roa_add(th, &roa) != 0) in parse_roa_file() 235 test_file(FILE *in, struct trie_head *th) in test_file() argument 246 if (trie_match(th, &prefix, plen, orlonger)) in test_file() 255 test_roa_file(FILE *in, struct trie_head *th) in test_roa_file() argument 282 r = trie_roa_check(th, &prefix, plen, as); in test_roa_file() 312 struct trie_head th = { 0 }; in main() local 343 parse_roa_file(in, &th); in main() [all …]
|
| /openbsd-src/usr.sbin/httpd/ |
| H A D | js.h.in | 10 document.querySelectorAll('tr.sort th').forEach(th => th.addEventListener('click', (() => { 11 const table = th.closest('table'); 13 table.querySelectorAll('tr.sort th').forEach(th2 => 14 th2.className = th2 == th ? 'sorted' : 'unsorted'); 17 .sort(compare(Array.from(th.parentNode.children).indexOf(th), this.asc = !this.asc))
|
| H A D | css.h.in | 12 tr.sort th { 18 tr.sort th.sorted { font-weight: bold; } 19 tr.sort th::after { content: "\a0\2195"; } 23 td, th { padding: 2pt 2em; } 24 td:first-child, th:first-child { padding-left: 5pt; } 25 td:last-child, th:last-child { padding-right: 5pt; }
|
| /openbsd-src/usr.sbin/tcpdump/ |
| H A D | print-tcp.c | 187 struct tcp_seq_hash *th = NULL; in tcp_print() local 352 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE]; in tcp_print() 353 th->nxt; th = th->nxt) in tcp_print() 354 if (!memcmp((char *)&tha, (char *)&th->addr, in tcp_print() 355 sizeof(th->addr))) in tcp_print() 358 if (!th->nxt || flags & TH_SYN) { in tcp_print() 360 if (th->nxt == NULL) { in tcp_print() 361 th->nxt = calloc(1, sizeof(*th)); in tcp_print() 362 if (th->nxt == NULL) in tcp_print() 365 th->addr = tha; in tcp_print() [all …]
|
| /openbsd-src/regress/lib/libpthread/semaphore/sem_wait/ |
| H A D | sem_wait.c | 31 pthread_t th; in main() local 39 CHECKr(pthread_create(&th, NULL, waiter, &sem)); in main() 49 CHECKr(pthread_join(th, NULL)); in main() 59 CHECKr(pthread_create(&th, NULL, waiter, &sem)); in main() 63 pthread_kill(th, SIGUSR1); in main() 69 CHECKr(pthread_join(th, NULL)); in main()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/consistency.vlad/layout/i960-97r2-results/ |
| H A D | a-pointer.out | 2 size=40,align=4,5th-elem-offset=20,5th-elem-align=4 3 size=0,align=4,5th-elem-offset=60,5th-elem-align=4
|
| H A D | a-longdouble.out++ | 2 size=160,align=16,5th-elem-offset=80,5th-elem-align=16 3 size=0,align=16,5th-elem-offset=240,5th-elem-align=16
|
| H A D | a-short.out | 2 size=20,align=2,5th-elem-offset=10,5th-elem-align=2 3 size=0,align=2,5th-elem-offset=30,5th-elem-align=2
|
| H A D | a-ptrdiff_t.out | 2 size=40,align=4,5th-elem-offset=20,5th-elem-align=4 3 size=0,align=4,5th-elem-offset=60,5th-elem-align=4
|
| H A D | a-ptrdiff_t.out++ | 2 size=40,align=4,5th-elem-offset=20,5th-elem-align=4 3 size=0,align=4,5th-elem-offset=60,5th-elem-align=4
|
| H A D | a-float.out++ | 2 size=40,align=4,5th-elem-offset=20,5th-elem-align=4 3 size=0,align=4,5th-elem-offset=60,5th-elem-align=4
|
| H A D | a-double.out++ | 2 size=80,align=8,5th-elem-offset=40,5th-elem-align=8 3 size=0,align=8,5th-elem-offset=120,5th-elem-align=8
|