| /freebsd-14.2/contrib/ntp/ntpd/ |
| H A D | keyword-gen.c | 368 qsort(ntp_keywords, COUNTOF(ntp_keywords), in generate_fsm() 381 if (1 > token || token >= COUNTOF(sst)) { in generate_fsm() 385 (int)COUNTOF(sst), in generate_fsm() 397 (int)COUNTOF(ntp_keywords), in generate_fsm() 399 (int)COUNTOF(sst) - 1); in generate_fsm() 561 while (my_state < COUNTOF(sst) in create_scan_states() 563 if (my_state >= COUNTOF(sst)) { in create_scan_states() 568 (int)COUNTOF(sst)); in create_scan_states() 659 qsort(ntp_keywords, COUNTOF(ntp_keywords), in generate_token_text() 672 while (i < COUNTOF(ntp_keywords)) { in generate_token_text() [all …]
|
| H A D | ntp_control.c | 2515 COUNTOF(str)); in ctl_putsys() 2527 COUNTOF(str)); in ctl_putsys() 3269 if (n + 1 >= COUNTOF(a_st)) { in read_status() 3314 INSIST(v->code < COUNTOF(wants)); in read_peervars() 3319 for (i = 1; i < COUNTOF(wants); i++) in read_peervars() 3791 remaining = COUNTOF(sent); in send_mru_entry() 3982 sockaddr_u addr[COUNTOF(last)]; in read_mru_list() 4076 (size_t)si < COUNTOF(last)) { in read_mru_list() 4084 (size_t)si < COUNTOF(addr)) { in read_mru_list() 4250 remaining = COUNTOF(sent); in send_ifstats_entry() [all …]
|
| H A D | ntp_scanner.c | 86 if (i < COUNTOF(keyword_text)) { in keyword() 756 if (i >= COUNTOF(yytext)) in yylex() 770 if (i >= COUNTOF(yytext)) in yylex()
|
| H A D | ntp_peer.c | 140 for (i = COUNTOF(init_peer_alloc) - 1; i >= 0; i--) in init_peer() 142 total_peer_structs = COUNTOF(init_peer_alloc); in init_peer() 143 peer_free_count = COUNTOF(init_peer_alloc); in init_peer()
|
| H A D | refclock_msfees.c | 993 ees->second < COUNTOF(deltas)) in ees_receive() 997 char text[16 * COUNTOF(deltas)]; in ees_receive() 1000 for (i = 0; i < COUNTOF(deltas); i++) { in ees_receive() 1001 snprintf(cptr, sizeof(text) / COUNTOF(deltas), in ees_receive()
|
| H A D | ntp_config.c | 3107 DEBUG_INSIST(pao >= 0 && pao < COUNTOF(psl)); in attrtopsl() 3637 if (i < COUNTOF(sys_phone) - 1) { in config_phone() 3643 (COUNTOF(sys_phone) - 1), sn->s); in config_phone() 3726 if (i < COUNTOF(sys_ttl)) in config_ttl() 3731 COUNTOF(sys_ttl), curr_ttl->i); in config_ttl() 5496 for (; prop_index < COUNTOF(keywords); prop_index++) in gettokens_netinfo()
|
| H A D | ntp_restrict.c | 35 for (x = 0; x < (int)COUNTOF((dst)->s6_addr); x++) { \
|
| H A D | ntpd.c | 1424 for (i = 0; i < COUNTOF(scmp_sc); i++) {
|
| H A D | ntp_request.c | 2189 for (i = 0, tr = ctl_traps; it && i < COUNTOF(ctl_traps); i++, tr++) { in req_get_traps()
|
| H A D | refclock_ripencc.c | 3469 text = (status1 < COUNTOF(sc_text)) in rpt_rcvr_health()
|
| H A D | refclock_jjy.c | 4504 COUNTOF(printableControlChar) ) { in printableString()
|
| /freebsd-14.2/contrib/ntp/libntp/ |
| H A D | lib_strbuf.c | 48 for (u = 0; u < COUNTOF(lib_stringbuf); u++) { in init_lib() 67 lib_nextbuf = (1 + mybuf) % COUNTOF(lib_stringbuf); in lib_getbuf()
|
| H A D | statestr.c | 411 COUNTOF(peer_st_bits)); in peer_st_flags() 421 COUNTOF(res_match_bits)); in res_match_flags() 431 COUNTOF(res_access_bits)); in res_access_flags() 441 return decode_bitflags(st, " ", k_st_bits, COUNTOF(k_st_bits)); in k_st_flags()
|
| H A D | modetoa.c | 27 if (mode >= COUNTOF(modestrings)) { in modetoa()
|
| H A D | netof.c | 32 next_netofbuf = (next_netofbuf + 1) % COUNTOF(netofbuf); in netof()
|
| /freebsd-14.2/contrib/ntp/util/ |
| H A D | ntptime.c | 249 for (c = 0; c < COUNTOF(times); c++) { in main() 260 for (c = 1; c < COUNTOF(times); c++) in main() 462 if ((size_t)s < COUNTOF(timex_states)) in timex_state()
|
| H A D | ntp-keygen.c | 364 hostbuf[COUNTOF(hostbuf) - 1] = '\0'; in main()
|
| /freebsd-14.2/contrib/ntp/sntp/tests/ |
| H A D | sntptest.c | 29 optionProcess(&sntpOptions, COUNTOF(opts), opts); in ActivateOption()
|
| /freebsd-14.2/contrib/ntp/include/ |
| H A D | ntp_types.h | 70 #define COUNTOF(arr) (sizeof(arr) / sizeof((arr)[0])) macro
|
| /freebsd-14.2/contrib/ntp/ntpq/ |
| H A D | ntpq-subs.c | 997 int ind[COUNTOF(assids)]; in findassidrange() 1012 for (a = 0; a < COUNTOF(assids); a++) { in findassidrange() 1018 for (a = 0; a < COUNTOF(assids); a++) in findassidrange() 3236 n < COUNTOF(mru_sort_keywords); in mrulist() 3241 if (n < COUNTOF(mru_sort_keywords)) in mrulist() 3667 const int qdata_chars = COUNTOF(qdata) - 1; in reslist() 3787 for (n = 0; n < COUNTOF(suf); n++) { in collect_display_vdc() 3817 for (n = 0; n < COUNTOF(suf); n++) { in collect_display_vdc()
|
| H A D | ntpq.c | 2241 b < COUNTOF(buf) - 1) in decodets() 2379 words < COUNTOF(list)) in help() 2383 if (words < COUNTOF(list)) in help() 2941 for (i = 0, ilim = COUNTOF(pbuf) - 1; in getkeyid() 3403 for (n = 0; n < COUNTOF(cookedvars); n++) in varfmt() 3618 for (i = 0; i < COUNTOF(tstflagnames); i++) { in tstflags()
|
| /freebsd-14.2/contrib/ntp/ntpdc/ |
| H A D | ntpdc_ops.c | 704 qitemlim = min(pcmd->nargs, COUNTOF(plist)); in showpeer() 780 qitemlim = min(pcmd->nargs, COUNTOF(plist)); in peerstats() 1506 qitemlim = min(pcmd->nargs, COUNTOF(plist)); in unconfig() 2174 qitemlim = min(pcmd->nargs, COUNTOF(plist)); in preset() 2668 qitemlim = min(pcmd->nargs, COUNTOF(clist)); in clockstat() 2851 qitemlim = min(pcmd->nargs, COUNTOF(clist)); in clkbug()
|
| H A D | ntpdc.c | 1975 for (i = 0, ilim = COUNTOF(pbuf) - 1; in getkeyid()
|
| /freebsd-14.2/contrib/ntp/sntp/ |
| H A D | main.c | 714 (unsigned)COUNTOF(fam_listheads))); in timeout_queries() 717 for (idx = 0; idx < COUNTOF(fam_listheads); idx++) { in timeout_queries()
|
| /freebsd-14.2/contrib/ntp/ |
| H A D | CommitLog | 4789 Remove redundant includes, use COUNTOF() 4792 ntp_types.h for COUNTOF() 138451 fixes off-by-one bug introduced by [email protected] (COUNTOF(limit) should have 138452 been COUNTOF(limit) - 1). 184066 add COUNTOF(array) macro 184133 COUNTOF() macro moved to ntp_types.h
|