| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | keyword-gen.c | 364 qsort(ntp_keywords, COUNTOF(ntp_keywords), in generate_fsm() 377 if (1 > token || token >= COUNTOF(sst)) { in generate_fsm() 381 (int)COUNTOF(sst), in generate_fsm() 393 (int)COUNTOF(ntp_keywords), in generate_fsm() 395 (int)COUNTOF(sst) - 1); in generate_fsm() 557 while (my_state < COUNTOF(sst) in create_scan_states() 559 if (my_state >= COUNTOF(sst)) { in create_scan_states() 564 (int)COUNTOF(sst)); in create_scan_states() 655 qsort(ntp_keywords, COUNTOF(ntp_keywords), in generate_token_text() 668 while (i < COUNTOF(ntp_keywords)) { in generate_token_text() [all …]
|
| H A D | ntp_control.c | 2521 COUNTOF(str)); in ctl_putsys() 2533 COUNTOF(str)); in ctl_putsys() 3275 if (n + 1 >= COUNTOF(a_st)) { in read_status() 3320 INSIST(v->code < COUNTOF(wants)); in read_peervars() 3325 for (i = 1; i < COUNTOF(wants); i++) in read_peervars() 3802 remaining = COUNTOF(sent); in send_mru_entry() 3993 sockaddr_u addr[COUNTOF(last)]; in read_mru_list() 4087 (size_t)si < COUNTOF(last)) { in read_mru_list() 4095 (size_t)si < COUNTOF(addr)) { in read_mru_list() 4261 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_restrict.c | 49 for (idx = 0; idx < (int)COUNTOF((dst)->s6_addr); idx++) { \
|
| H A D | ntp_config.c | 3538 if (i < COUNTOF(sys_phone) - 1) { in config_phone() 3544 (COUNTOF(sys_phone) - 1), sn->s); in config_phone() 3627 if (i < COUNTOF(sys_ttl)) in config_ttl() 3632 COUNTOF(sys_ttl), curr_ttl->i); in config_ttl() 5307 for (; prop_index < COUNTOF(keywords); prop_index++) in gettokens_netinfo()
|
| H A D | ntpd.c | 1406 for (i = 0; i < COUNTOF(scmp_sc); i++) {
|
| H A D | ntp_request.c | 2180 for (i = 0, tr = ctl_traps; it && i < COUNTOF(ctl_traps); i++, tr++) { in req_get_traps()
|
| H A D | refclock_jjy.c | 4504 COUNTOF(printableControlChar) ) { in printableString()
|
| H A D | refclock_ripencc.c | 3469 text = (status1 < COUNTOF(sc_text)) in rpt_rcvr_health()
|
| /freebsd-13.1/contrib/ntp/libntp/ |
| H A D | statestr.c | 412 COUNTOF(peer_st_bits)); in peer_st_flags() 422 COUNTOF(res_match_bits)); in res_match_flags() 432 COUNTOF(res_access_bits)); in res_access_flags() 442 return decode_bitflags(st, " ", k_st_bits, COUNTOF(k_st_bits)); in k_st_flags()
|
| H A D | modetoa.c | 28 if (mode >= COUNTOF(modestrings)) { in modetoa()
|
| H A D | netof.c | 25 next_netofbuf = (next_netofbuf + 1) % COUNTOF(netofbuf); in netof()
|
| /freebsd-13.1/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 | 360 hostbuf[COUNTOF(hostbuf) - 1] = '\0'; in main()
|
| /freebsd-13.1/contrib/ntp/include/ |
| H A D | lib_strbuf.h | 29 lib_nextbuf %= COUNTOF(lib_stringbuf); \
|
| H A D | ntp_types.h | 70 #define COUNTOF(arr) (sizeof(arr) / sizeof((arr)[0])) macro
|
| /freebsd-13.1/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() 3206 n < COUNTOF(mru_sort_keywords); in mrulist() 3211 if (n < COUNTOF(mru_sort_keywords)) in mrulist() 3637 const int qdata_chars = COUNTOF(qdata) - 1; in reslist() 3757 for (n = 0; n < COUNTOF(suf); n++) { in collect_display_vdc() 3787 for (n = 0; n < COUNTOF(suf); n++) { in collect_display_vdc()
|
| H A D | ntpq.c | 2194 b < COUNTOF(buf) - 1) in decodets() 2332 words < COUNTOF(list)) in help() 2336 if (words < COUNTOF(list)) in help() 2894 for (i = 0, ilim = COUNTOF(pbuf) - 1; in getkeyid() 3356 for (n = 0; n < COUNTOF(cookedvars); n++) in varfmt() 3571 for (i = 0; i < COUNTOF(tstflagnames); i++) { in tstflags()
|
| /freebsd-13.1/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 | 1957 for (i = 0, ilim = COUNTOF(pbuf) - 1; in getkeyid()
|
| /freebsd-13.1/contrib/ntp/sntp/ |
| H A D | main.c | 713 (unsigned)COUNTOF(fam_listheads))); in timeout_queries() 716 for (idx = 0; idx < COUNTOF(fam_listheads); idx++) { in timeout_queries()
|
| /freebsd-13.1/contrib/ntp/ |
| H A D | CommitLog | 129095 fixes off-by-one bug introduced by [email protected] (COUNTOF(limit) should have 129096 been COUNTOF(limit) - 1). 174710 add COUNTOF(array) macro 174777 COUNTOF() macro moved to ntp_types.h
|