Home
last modified time | relevance | path

Searched refs:countof (Results 1 – 18 of 18) sorted by relevance

/openbsd-src/usr.sbin/npppd/npppd/
H A Dnpppd_config.c166 if (n >= countof(_this->pool)) { in npppd_pool_load()
168 "limit=%d",(int)countof(_this->pool)); in npppd_pool_load()
180 for (; n < countof(pool0); n++) in npppd_pool_load()
187 for (i = 0; i < countof(_this->pool); i++) { in npppd_pool_load()
337 for (i = 0; i < countof(_this->iface); i++) { in npppd_ifaces_load_config()
352 for (i = 0; i < countof(_this->iface); i++) { in npppd_ifaces_load_config()
366 (int)countof(_this->iface)); in npppd_ifaces_load_config()
H A Dnpppd_defs.h86 #ifndef countof
87 #define countof(x) (sizeof(x) / sizeof((x)[0])) macro
H A Dnpppd_auth.c551 for (i = 0; i < countof(rad->server); i++) in npppd_auth_radius_reload()
555 if (i >= countof(rad->server)) in npppd_auth_radius_reload()
572 for (i = 0; i < countof(rad->server); i++) in npppd_auth_radius_reload()
576 if (i >= countof(rad->server)) in npppd_auth_radius_reload()
591 for (i = 0; i < countof(_this->rad_auth_setting->server); i++) { in npppd_auth_radius_reload()
H A Dnpppd.c368 for (i = 0; i < countof(_this->iface); i++) { in npppd_init()
439 for (i = countof(_this->iface) - 1; i >= 0; i--) { in npppd_stop()
475 for (i = countof(_this->iface) - 1; i >= 0; i--) { in npppd_stop_really()
502 for (i = countof(_this->iface) - 1; i >= 0; i--) { in npppd_fini()
507 for (i = countof(_this->pool) - 1; i >= 0; i--) { in npppd_fini()
1892 for (i = 0; i < countof(_this->iface); i++) { in npppd_reload0()
1904 for (i = 0; i < countof(_this->iface_pool); i++) { in npppd_update_pool_reference()
1911 for (j = 0; j < countof(_this->pool); j++) { in npppd_update_pool_reference()
2167 for (i = 0; i < countof(_this->iface); i++) { in npppd_ppp_bind_iface()
H A Dppp.h696 #ifndef countof
697 #define countof(x) (sizeof(x) / sizeof((x)[0])) macro
H A Dnpppd_pool.c346 for (i = 0; i < countof(_this->iface); i++) { in npppd_is_ifcace_ip4addr()
H A Dlcp.c316 i < countof(_this->auth_order); i++) { in lcp_add_auth()
/openbsd-src/usr.sbin/npppd/common/
H A Ddebugutil.c47 #ifndef countof
48 #define countof(x) (sizeof((x)) / sizeof((x)[0])) macro
83 for (i = 0; i < (int)countof(prio_name); i++) { in set_prio_idx_init()
84 ASSERT(prio_name[i].prio < countof(prio_name_idx)); in set_prio_idx_init()
85 if (prio_name[i].prio >= (int)countof(prio_name_idx)) in set_prio_idx_init()
205 && LOG_PRI(prio) < countof(prio_name_idx) in vlog_printf()
/openbsd-src/usr.sbin/npppd/l2tp/
H A Dl2tp_subr.c229 for (i = 0; i < countof(l2tp_avp_attribute_names); i++) { in avp_attr_type_string()
241 for (i = 0; i < countof(l2tp_stopccn_rcode_names); i++) { in l2tp_stopccn_rcode_string()
253 for (i = 0; i < countof(l2tp_cdn_rcode_names); i++) { in l2tp_cdn_rcode_string()
267 for (i = 0; i < countof(l2tp_ecode_names); i++) { in l2tp_ecode_string()
338 for (i = 0; i < countof(l2tp_mes_type_names); i++) { in avp_mes_type_string()
H A Dl2tp_local.h67 #ifndef countof
68 #define countof(x) (sizeof((x)) / sizeof((x)[0])) macro
/openbsd-src/usr.sbin/npppd/pppoe/
H A Dpppoe_local.h68 #ifndef countof
69 #define countof(x) (sizeof((x)) / sizeof((x)[0])) macro
H A Dpppoed.c238 .bf_len = countof(insns), in pppoed_listener_start()
1060 for (i = 0; i < countof(label_names); i++) { \
/openbsd-src/lib/libradius/
H A Dradius_local.h32 #ifndef countof
33 #define countof(x) (sizeof(x)/sizeof((x)[0])) macro
/openbsd-src/usr.sbin/npppd/pptp/
H A Dpptp_local.h31 #ifndef countof
32 #define countof(x) (sizeof(x) / sizeof((x)[0])) macro
H A Dpptp_subr.c138 for (i = 0; i < countof(label_names); i++) { \
H A Dpptpd.c121 for (i = 0; i < countof(call) ; i++) in pptpd_init()
123 for (i = countof(call); i > 1; i--) { in pptpd_init()
130 for (i = 0; i < MINIMUM(PPTP_MAX_CALL, countof(call)); i++) in pptpd_init()
/openbsd-src/gnu/llvm/libcxx/src/
H A Dlocale.cpp105 countof(const T (&)[N]) in countof() function
114 countof(const T * const begin, const T * const end) in countof() function
5233 size_t n = strftime_l(buf, countof(buf), f, &t, __loc_); in __analyze()
5380 strftime_l(buf, countof(buf), f, &t, __loc_); in __analyze()
5385 size_t j = __libcpp_mbsrtowcs_l( wbb, &bb, countof(wbuf), &mb, __loc_); in __analyze()
5523 strftime_l(buf, countof(buf), "%A", &t, __loc_); in init()
5525 strftime_l(buf, countof(buf), "%a", &t, __loc_); in init()
5532 strftime_l(buf, countof(buf), "%B", &t, __loc_); in init()
5534 strftime_l(buf, countof(buf), "%b", &t, __loc_); in init()
5539 strftime_l(buf, countof(buf), "%p", &t, __loc_); in init()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/Win32/
H A DWin32.xs19 #ifndef countof
20 # define countof(array) (sizeof (array) / sizeof (*(array))) macro
330 ExpandEnvironmentStringsW(source, value, countof(value)-1); in XS()
1026 DWORD size = countof(name);
1240 len = GetShortPathNameW(wlong, wshort, countof(wshort));
1274 DWORD len = GetFullPathNameW(filename, countof(full), full, NULL);
1276 if (len == 0 || len >= countof(full))
1357 if (wcslen(wstr) < (size_t)countof(wide_path)) {