Home
last modified time | relevance | path

Searched refs:th (Results 1 – 25 of 465) sorted by relevance

12345678910>>...19

/openbsd/sys/kern/
H A Dkern_tc.c155 th = timehands; in binboottime()
191 TIMECOUNT_TO_BINTIME(tc_delta(th), th->th_scale, bt); in binuptime()
280 TIMECOUNT_TO_BINTIME(tc_delta(th), th->th_scale, bt); in binruntime()
306 bintimesub(&th->th_offset, &th->th_naptime, bt); in getbinruntime()
330 TIMECOUNT_TO_BINTIME(tc_delta(th), th->th_scale, bt); in bintime()
694 th->th_offset_count &= th->th_counter->tc_counter_mask; in tc_windup()
696 bintimeadd(&th->th_offset, &bt, &th->th_offset); in tc_windup()
705 bintimeadd(&th->th_naptime, &bt, &th->th_naptime); in tc_windup()
719 bintimesub(&th->th_offset, &th->th_naptime, in tc_windup()
728 bintimesub(&th->th_offset, &th->th_naptime, &bt); in tc_windup()
[all …]
/openbsd/usr.sbin/bgpd/
H A Dtimer.c44 TAILQ_FOREACH(t, th, entry) in timer_get()
56 t = TAILQ_FIRST(th); in timer_nextisdue()
75 struct timer *t = timer_get(th, timer); in timer_running()
98 TAILQ_REMOVE(th, t, entry); in timer_set()
103 TAILQ_FOREACH(next, th, entry) in timer_set()
109 TAILQ_INSERT_TAIL(th, t, entry); in timer_set()
119 TAILQ_REMOVE(th, t, entry); in timer_stop()
120 TAILQ_INSERT_TAIL(th, t, entry); in timer_stop()
130 TAILQ_REMOVE(th, t, entry); in timer_remove()
136 timer_remove_all(struct timer_head *th) in timer_remove_all() argument
[all …]
H A Drde_trie.c153 prev = &th->root_v4; in trie_add_v4()
193 th->v4_cnt++; in trie_add_v4()
209 th->v4_cnt++; in trie_add_v4()
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()
471 memset(th, 0, sizeof(*th)); in trie_free()
485 n = th->root_v4; in trie_match_v4()
526 n = th->root_v6; in trie_match_v6()
581 n = th->root_v4; in trie_roa_check_v4()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/
H A Dwince.c963 th->step_pc = sh_get_next_pc (&th->context); in wince_software_single_step()
1028 for (th = &thread_head; (th = th->next) != NULL;) in thread_rec()
1034 th->suspend_count = suspend_thread (th->h) + 1; in thread_rec()
1039 get_thread_context (th->h, &th->context); in thread_rec()
1041 return th; in thread_rec()
1056 th = (thread_info *) xmalloc (sizeof (*th)); in child_add_thread()
1057 memset (th, 0, sizeof (*th)); in child_add_thread()
1059 th->h = h; in child_add_thread()
1095 th->next != NULL && th->next->id != id; in child_delete_thread()
1096 th = th->next) in child_delete_thread()
[all …]
H A Dwin32-nat.c234 for (th = &thread_head; (th = th->next) != NULL;) in thread_rec()
240 th->suspend_count = SuspendThread (th->h) + 1; in thread_rec()
245 return th; in thread_rec()
260 th = (thread_info *) xmalloc (sizeof (*th)); in child_add_thread()
261 memset (th, 0, sizeof (*th)); in child_add_thread()
272 CHECK (GetThreadContext (th->h, &th->context)); in child_add_thread()
315 th->next != NULL && th->next->id != id; in child_delete_thread()
316 th = th->next) in child_delete_thread()
342 GetThreadContext (th->h, &th->context); in do_child_fetch_inferior_registers()
1183 for (th = &thread_head; (th = th->next) != NULL;) in child_continue()
[all …]
/openbsd/sys/net/
H A Dslcompress.c172 struct tcphdr *th; in sl_compress_tcp() local
236 hlen += th->th_off; in sl_compress_tcp()
266 hlen += th->th_off; in sl_compress_tcp()
276 BCMP(th + 1, oth + 1, (th->th_off - 5) << 2))) in sl_compress_tcp()
468 struct tcphdr *th; in sl_uncompress_tcp_core() local
541 th->th_ack = htonl(ntohl(th->th_ack) + i); in sl_uncompress_tcp_core()
542 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp_core()
547 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp_core()
554 DECODEU(th->th_urp) in sl_uncompress_tcp_core()
558 DECODES(th->th_win) in sl_uncompress_tcp_core()
[all …]
/openbsd/sys/netinet/
H A Dtcp_subr.c274 th->th_seq = 0; in tcp_template()
275 th->th_ack = 0; in tcp_template()
276 th->th_x2 = 0; in tcp_template()
338 bcopy(th0, th, sizeof(*th)); in tcp_respond()
351 bcopy(th0, th, sizeof(*th)); in tcp_respond()
359 xchg(th->th_dport, th->th_sport, u_int16_t); in tcp_respond()
366 th->th_x2 = 0; in tcp_respond()
667 bzero(&th, sizeof(th)); in tcp6_ctlinput()
747 ip->ip_dst, th->th_dport, ip->ip_src, th->th_sport, in tcp_ctlinput()
812 ip->ip_dst, th->th_dport, ip->ip_src, th->th_sport, in tcp_ctlinput()
[all …]
H A Dtcp_input.c404 if (!th) { in tcp_input()
489 if (!th) { in tcp_input()
518 th->th_seq = ntohl(th->th_seq); in tcp_input()
519 th->th_ack = ntohl(th->th_ack); in tcp_input()
520 th->th_win = ntohs(th->th_win); in tcp_input()
521 th->th_urp = ntohs(th->th_urp); in tcp_input()
540 th->th_sport, &ip6->ip6_dst, th->th_dport, in tcp_input()
546 th->th_sport, ip->ip_dst, th->th_dport, in tcp_input()
810 if (th->th_dport == th->th_sport) { in tcp_input()
1896 if (SEQ_GT(th->th_seq+th->th_urp, tp->rcv_up)) { in tcp_input()
[all …]
H A Dtcp_debug.c128 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/usr.bin/lex/
H A Dtables.c83 memset (th, 0, sizeof (struct yytbl_hdr)); in yytbl_hdr_init()
85 th->th_magic = YYTBL_MAGIC; in yytbl_hdr_init()
87 th->th_hsize += yypad64 (th->th_hsize); 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()
145 if (yytbl_write32 (wr, th->th_magic) < 0 in yytbl_hdr_fwrite()
153 if (yytbl_write32 (wr, th->th_ssize) < 0 in yytbl_hdr_fwrite()
158 sz = strlen (th->th_version) + 1; in yytbl_hdr_fwrite()
163 sz = strlen (th->th_name) + 1; in yytbl_hdr_fwrite()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_posix.cpp59 pthread_t th[3]; in TEST() local
63 EXPECT_EQ(__interceptor_pthread_create(&th[0], 0, dtors_thread, &k1), 0); in TEST()
65 EXPECT_EQ(__interceptor_pthread_join(th[0], 0), 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()
137 pthread_t th; in TEST() local
138 EXPECT_EQ(__interceptor_pthread_create(&th, 0, cond_thread, &ctx), 0); in TEST()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Test-Harness/t/
H A Drulesfile.t46 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/sys/arch/hppa/spmath/
H A Ddivu.S59 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/regress/usr.sbin/bgpd/unittests/
H A Drde_trie_test.c115 parse_file(FILE *in, struct trie_head *th) in parse_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
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()
345 parse_file(in, &th); in main()
347 if (trie_equal(&th, &th) == 0) in main()
350 test_roa_file(tin, &th); in main()
352 test_file(tin, &th); in main()
[all …]
/openbsd/usr.sbin/httpd/
H A Djs.h.in10 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 Dcss.h.in12 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/usr.sbin/tcpdump/
H A Dprint-tcp.c353 th->nxt; th = th->nxt) in tcp_print()
361 th->nxt = calloc(1, sizeof(*th)); in tcp_print()
365 th->addr = tha; in tcp_print()
367 th->ack = seq, th->seq = ack - 1; in tcp_print()
369 th->seq = seq, th->ack = ack - 1; in tcp_print()
372 seq -= th->ack, ack -= th->seq; in tcp_print()
374 seq -= th->seq, ack -= th->ack; in tcp_print()
529 s -= th->seq; in tcp_print()
530 e -= th->seq; in tcp_print()
532 s -= th->ack; in tcp_print()
[all …]
/openbsd/regress/lib/libpthread/semaphore/sem_wait/
H A Dsem_wait.c31 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/gnu/usr.bin/gcc/gcc/testsuite/consistency.vlad/layout/i960-97r2-results/
H A Da-char.out2 size=10,align=1,5th-elem-offset=5,5th-elem-align=1
3 size=0,align=1,5th-elem-offset=15,5th-elem-align=1
H A Da-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
H A Da-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 Da-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 Da-int.out2 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 Da-int.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 Da-long.out2 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

12345678910>>...19