| /dragonfly/lib/libc/net/ |
| HD | ip6opt.c | 44 static int ip6optlen(u_int8_t *opt, u_int8_t *lim); 231 u_int8_t *lim; in inet6_option_next() local 251 lim = (u_int8_t *)ip6e + hdrlen; in inet6_option_next() 255 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_next() 260 if (*tptrp >= lim) { /* there is no option */ in inet6_option_next() 268 if (ip6optlen(*tptrp, lim) == 0) in inet6_option_next() 287 u_int8_t *optp, *lim; in inet6_option_find() local 307 lim = (u_int8_t *)ip6e + hdrlen; in inet6_option_find() 311 if ((optlen = ip6optlen(*tptrp, lim)) == 0) in inet6_option_find() 316 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find() [all …]
|
| /dragonfly/lib/libc/stdlib/ |
| HD | bsearch.c | 58 size_t lim; in bsearch() local 62 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch() 63 p = base + (lim >> 1) * size; in bsearch() 69 lim--; in bsearch()
|
| HD | random.c | 242 int i, lim; in srandom() local 246 lim = NSHUFF; in srandom() 252 lim = 10 * rand_deg; in srandom() 254 for (i = 0; i < lim; i++) in srandom()
|
| /dragonfly/sys/libkern/ |
| HD | bsearch.c | 58 size_t lim; in kbsearch() local 62 for (lim = nmemb; lim != 0; lim >>= 1) { in kbsearch() 63 p = base + (lim >> 1) * size; in kbsearch() 69 lim--; in kbsearch()
|
| HD | linux_idr.c | 138 static int idr_find_free(struct idr *idp, int want, int lim); 203 idr_find_free(struct idr *idp, int want, int lim) in idr_find_free() argument 220 for (id = max(want, idp->idr_freeindex); id < min(idp->idr_count, lim); in idr_find_free() 264 int lim = INT_MAX; in idr_pre_get() local 288 id = idr_find_free(idp, idp->idr_maxwant, lim); in idr_pre_get() 290 if (id >= lim) in idr_pre_get() 299 if (idp->idr_count >= lim) { in idr_pre_get() 360 int lim = end > 0 ? end - 1 : INT_MAX; in idr_alloc() local 367 if (lim < start) in idr_alloc() 388 if (id > lim) { in idr_alloc()
|
| /dragonfly/lib/libc/locale/ |
| HD | toupper.c | 50 size_t lim; in ___toupper_l() local 60 for (lim = rr->__nranges; lim != 0; lim >>= 1) { in ___toupper_l() 61 re = base + (lim >> 1); in ___toupper_l() 68 lim--; in ___toupper_l()
|
| HD | tolower.c | 50 size_t lim; in ___tolower_l() local 60 for (lim = rr->__nranges; lim != 0; lim >>= 1) { in ___tolower_l() 61 re = base + (lim >> 1); in ___tolower_l() 66 lim--; in ___tolower_l()
|
| HD | runetype.c | 50 size_t lim; in ___runetype_l() local 60 for (lim = rr->__nranges; lim != 0; lim >>= 1) { in ___runetype_l() 61 re = base + (lim >> 1); in ___runetype_l() 69 lim--; in ___runetype_l()
|
| HD | nextwctype.c | 43 size_t lim; in nextwctype_l() local 67 for (lim = rr->__nranges; lim != 0; lim >>= 1) { in nextwctype_l() 68 re = base + (lim >> 1); in nextwctype_l() 73 lim--; in nextwctype_l()
|
| /dragonfly/contrib/grep/src/ |
| HD | grep.c | 1039 nlscan (char const *lim) in nlscan() argument 1043 for (beg = lastnl; beg < lim; beg++) in nlscan() 1045 beg = memchr (beg, eolbyte, lim - beg); in nlscan() 1051 lastnl = lim; in nlscan() 1091 print_line_head (char *beg, size_t len, char const *lim, char sep) in print_line_head() argument 1116 if (lastnl < lim) in print_line_head() 1120 lastnl = lim; in print_line_head() 1140 print_line_middle (char *beg, char *lim, in print_line_middle() argument 1150 (cur < lim in print_line_middle() 1151 && ((match_offset = execute (compiled_pattern, beg, lim - beg, in print_line_middle() [all …]
|
| /dragonfly/usr.sbin/rtsold/ |
| HD | rtsock.c | 87 char *lim, *next; in rtsock_input() local 97 lim = msg + n; in rtsock_input() 98 for (next = msg; next < lim; next += len) { in rtsock_input() 100 if (lim - next < lenlim) in rtsock_input() 121 ret = (*rtsock_dispatch[idx].func)(s, rtm, lim); in rtsock_input() 131 rtsock_input_ifannounce(int s __unused, struct rt_msghdr *rtm, char *lim) in rtsock_input_ifannounce() argument 137 if ((char *)(ifan + 1) > lim) in rtsock_input_ifannounce()
|
| /dragonfly/sys/net/netmap/ |
| HD | netmap.c | 323 nm_dump_buf(char *p, int len, int lim, char *dst) in nm_dump_buf() argument 335 if (lim <= 0 || lim > len) in nm_dump_buf() 336 lim = len; in nm_dump_buf() 338 ksprintf(o, "buf 0x%p len %d lim %d\n", p, len, lim); in nm_dump_buf() 341 for (i = 0; i < lim; ) { in nm_dump_buf() 346 for (j=0; j < 16 && i < lim; i++, j++) { in nm_dump_buf() 351 for (j=0; j < 16 && i < lim; i++, j++) in nm_dump_buf() 731 u_int lim = kring->nkr_num_slots - 1; in netmap_grab_packets() local 745 n = nm_next(n, lim); in netmap_grab_packets() 841 u_int k, lim = kring->nkr_num_slots - 1; in netmap_txsync_to_host() local [all …]
|
| HD | netmap_vale.c | 432 int i, lim =b->bdg_active_ports; in netmap_bdg_detach_common() local 445 D("detach %d and %d (lim %d)", hw, sw, lim); in netmap_bdg_detach_common() 450 for (i = 0; (hw >= 0 || sw >= 0) && i < lim; ) { in netmap_bdg_detach_common() 453 lim--; /* point to last active port */ in netmap_bdg_detach_common() 454 tmp[i] = tmp[lim]; /* swap with i */ in netmap_bdg_detach_common() 455 tmp[lim] = hw; /* now this is inactive */ in netmap_bdg_detach_common() 459 lim--; in netmap_bdg_detach_common() 460 tmp[i] = tmp[lim]; in netmap_bdg_detach_common() 461 tmp[lim] = sw; in netmap_bdg_detach_common() 477 b->bdg_active_ports = lim; in netmap_bdg_detach_common() [all …]
|
| /dragonfly/usr.sbin/rtadvd/ |
| HD | if.c | 162 get_next_msg(char *buf, char *lim, int ifindex, size_t *lenp, int filter) in get_next_msg() argument 170 rtm < (struct rt_msghdr *)lim; in get_next_msg() 176 buf, lim, rtm); in get_next_msg() 183 buf, lim, rtm); in get_next_msg() 284 char *p, *lim; in get_prefixlen() local 291 lim = (char *)sa + sa->sa_len; in get_prefixlen() 292 return prefixlen(p, lim); in get_prefixlen() 296 prefixlen(unsigned char *p, unsigned char *lim) in prefixlen() argument 300 for (masklen = 0; p < lim; p++) { in prefixlen() 416 char *lim; in update_ifinfo() local [all …]
|
| /dragonfly/lib/libc/db/btree/ |
| HD | bt_search.c | 64 indx_t base, idx, lim; in __bt_search() local 75 for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) { in __bt_search() 76 t->bt_cur.index = idx = base + (lim >> 1); in __bt_search() 86 --lim; in __bt_search()
|
| /dragonfly/lib/libc/string/ |
| HD | memset_s.c | 39 rsize_t lim; in memset_s() local 44 lim = n < smax ? n : smax; in memset_s() 55 while (lim > 0) in memset_s() 56 dst[--lim] = v; in memset_s()
|
| /dragonfly/contrib/gmp/mpn/generic/ |
| HD | trialdiv.c | 45 mp_limb_t lim; member 55 #define P(p,inv,lim) {inv,lim} argument 98 if (q <= dp[j].lim) in mpn_trialdiv()
|
| /dragonfly/sbin/routed/ |
| HD | input.c | 139 struct netinfo *n, *lim; in input() local 171 lim = (struct netinfo *)((char*)rip + cc); in input() 184 && n < lim && n->n_family == RIP_AF_AUTH) { in input() 240 if (n >= lim) { in input() 261 && !ck_passwd(aifp,rip,lim,FROM_NADDR,&use_auth)) in input() 414 if (++v12buf.n >= v12buf.lim) in input() 416 } while (++n < lim); in input() 526 if (n >= lim) { in input() 572 && !ck_passwd(aifp,rip,lim,FROM_NADDR,&use_auth)) in input() 738 } while (++n < lim); in input() [all …]
|
| /dragonfly/sys/dev/drm/include/linux/ |
| HD | idr.h | 90 unsigned int lim; in ida_simple_get() local 93 lim = 0x80000000; in ida_simple_get() 95 lim = end - 1; in ida_simple_get() 98 id = idr_alloc(&ida->idr, NULL, start, lim, gfp_mask); in ida_simple_get()
|
| /dragonfly/crypto/openssh/ |
| HD | ssh-keyscan.c | 131 rlim_t lim; in fdlim_get() local 135 lim = hard ? rlfd.rlim_max : rlfd.rlim_cur; in fdlim_get() 136 if (lim <= 0) in fdlim_get() 138 if (lim == RLIM_INFINITY) in fdlim_get() 139 lim = SSH_SYSFDMAX; in fdlim_get() 140 if (lim >= INT_MAX) in fdlim_get() 141 lim = INT_MAX; in fdlim_get() 142 return lim; in fdlim_get() 150 fdlim_set(int lim) in fdlim_set() argument 156 if (lim <= 0) in fdlim_set() [all …]
|
| /dragonfly/sys/kern/ |
| HD | kern_plimit.c | 119 rlim_t lim; in plimit_init0() local 129 lim = ptoa((rlim_t)vmstats.v_free_count); in plimit_init0() 130 limit->pl_rlimit[RLIMIT_RSS].rlim_max = lim; in plimit_init0() 131 limit->pl_rlimit[RLIMIT_MEMLOCK].rlim_max = lim; in plimit_init0() 132 limit->pl_rlimit[RLIMIT_MEMLOCK].rlim_cur = lim / 3; in plimit_init0() 432 struct rlimit lim; in sys_getrlimit() local 435 error = kern_getrlimit(uap->which, &lim); in sys_getrlimit() 438 error = copyout(&lim, uap->rlp, sizeof(*uap->rlp)); in sys_getrlimit()
|
| /dragonfly/contrib/dhcpcd/src/ |
| HD | sa.c | 250 const uint8_t *lim, *p; in sa_toprefix() local 254 lim = p + sizeof(sin6->sin6_addr.s6_addr); in sa_toprefix() 255 for (x = 0; p < lim; x++, p++) { in sa_toprefix() 260 if (p < lim) { in sa_toprefix() 271 if (p < lim) { in sa_toprefix() 274 for (p = p + 1; p < lim; p++) in sa_toprefix()
|
| /dragonfly/sbin/routed/rtquery/ |
| HD | rtquery.c | 568 struct netinfo *n, *lim; in rip_input() local 617 lim = (struct netinfo *)((char*)n + size) - 1; in rip_input() 618 for (; n <= lim; n++) { in rip_input() 704 if (md5_authed && n+1 > lim in rip_input() 826 int lim) in parse_quote() argument 837 if (lim == 0) in parse_quote() 869 --lim; in parse_quote() 875 if (lim != 0) in parse_quote()
|
| /dragonfly/contrib/wpa_supplicant/src/ap/ |
| HD | taxonomy.c | 202 int lim; in ie_to_string() local 204 lim = sizeof(extcap) - in ie_to_string() 206 if (lim <= 0) in ie_to_string() 208 p += os_snprintf(p, lim, "%02x", in ie_to_string()
|
| /dragonfly/sys/contrib/dev/ath/ath_hal/ar9300/ |
| HD | ar9300_radar.c | 140 int n, lim; 155 for (lim = n; lim != 0; lim >>= 1) { 157 cc = &base[lim >> 1]; 169 lim--;
|