/openbsd/lib/libc/net/ |
H A D | ip6opt.c | 50 ip6optlen(u_int8_t *opt, u_int8_t *lim) in ip6optlen() argument 58 if (opt + 2 > lim) in ip6optlen() 62 if (opt + optlen <= lim) in ip6optlen() 192 u_int8_t *optp, *lim; in inet6_opt_next() local 198 lim = (u_int8_t *)extbuf + extlen; in inet6_opt_next() 211 while (optp < lim) { in inet6_opt_next() 217 if ((optlen = ip6optlen(optp, lim)) == 0) in inet6_opt_next() 240 u_int8_t *optp, *lim; in inet6_opt_find() local 246 lim = (u_int8_t *)extbuf + extlen; in inet6_opt_find() 259 while (optp < lim) { in inet6_opt_find() [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
H A D | 961125-1.c | 2 begfield (int tab, char *ptr, char *lim, int sword, int schar) in begfield() argument 6 while (ptr < lim && sword--) in begfield() 8 while (ptr < lim && *ptr != tab) in begfield() 10 if (ptr < lim) in begfield() 20 if (ptr + schar <= lim) in begfield() 29 char *lim = s + 3; in main() local 30 if (begfield (':', s, lim, 1, 1) != s + 2) in main()
|
/openbsd/usr.sbin/npppd/common/ |
H A D | radish.c | 235 lim = cur->rd_masklim; in rd_insert() 247 if ((np[lim] & cur->rd_bmask) != rp[lim]) { in rd_insert() 284 lim = new->rd_masklim; in rd_insert() 296 if (np[lim] != (rp[lim] & new->rd_bmask)) { in rd_insert() 455 != *(cp + lim)){ in rd_match_next() 498 != *(cp + lim)) in rd_lookup() 506 olim = lim; in rd_lookup() 557 lim = head->rdh_alen; in rd_delete() 698 register caddr_t lim, lim2 = lim = n + *(u_char *)n; in rd_refines() local 703 lim -= longer; in rd_refines() [all …]
|
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/ |
H A D | bigcore.exp | 94 set lim 0 101 if { $lim >= 50 } { 102 pass "$test (stop at $lim)" 104 incr lim 110 fail "$test (entry $lim)" 217 set lim 0 221 -re " = \\(struct list \\*\\) [lindex $heap $lim].*$gdb_prompt $" { 222 if { $lim >= [llength $heap] } { 226 incr lim 231 fail "$test (address [lindex $heap $lim])"
|
/openbsd/gnu/lib/libiberty/src/ |
H A D | bsearch.c | 75 register int lim, cmp; in bsearch() local 78 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch() 79 p = base + (lim >> 1) * size; in bsearch() 85 lim--; in bsearch()
|
/openbsd/lib/libc/stdlib/ |
H A D | bsearch.c | 55 size_t lim; in bsearch() local 58 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch() 59 p = base + (lim >> 1) * size; in bsearch() 65 lim--; in bsearch()
|
/openbsd/sys/dev/pci/drm/include/linux/ |
H A D | bsearch.h | 58 size_t lim; in bsearch() local 61 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch() 62 p = base + (lim >> 1) * size; in bsearch() 68 lim--; in bsearch()
|
/openbsd/gnu/usr.bin/perl/t/op/ |
H A D | range.t | 233 my $lim=0; 254 my $lim=0; 260 last if ($lim++ > 100); 275 my $lim=0; 281 last if ($lim++ > 100); 290 my $lim=0; 292 last if ($lim++ > 100); 314 my $lim=0; 335 my $lim=0; 356 my $lim=0; [all …]
|
/openbsd/lib/libc/db/btree/ |
H A D | bt_search.c | 63 indx_t base, idx, lim; in __bt_search() local 74 for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) { in __bt_search() 75 t->bt_cur.index = idx = base + (lim >> 1); in __bt_search() 85 --lim; in __bt_search()
|
/openbsd/sys/net80211/ |
H A D | ieee80211_regdomain.c | 64 int lim, cmp; in bsearch() local 67 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch() 68 p = base + (lim >> 1) * size; in bsearch() 74 lim--; in bsearch()
|
/openbsd/regress/sys/kern/rlimit-file/ |
H A D | rlim-file.c | 17 int lim, fd, fds[2]; in main() local 23 lim = rl.rlim_cur; in main() 26 while (fd < lim - 2) in main()
|
/openbsd/regress/lib/libc/malloc/malloc_ulimit1/ |
H A D | malloc_ulimit1.c | 31 struct rlimit lim; in main() local 36 if (getrlimit(RLIMIT_DATA, &lim) == -1) in main() 39 sz = lim.rlim_cur / FACTOR; in main()
|
/openbsd/regress/lib/libc/malloc/malloc_ulimit2/ |
H A D | malloc_ulimit2.c | 20 struct rlimit lim; in main() local 25 if (getrlimit(RLIMIT_DATA, &lim) == -1) in main() 28 sz = lim.rlim_cur / FACTOR; in main()
|
/openbsd/usr.sbin/dvmrpd/ |
H A D | kroute.c | 301 char *buf, *next, *lim; in fetchifs() local 328 lim = buf + len; in fetchifs() 329 for (next = buf; next < lim; next += ifm.ifm_msglen) { in fetchifs() 376 char *next, *lim; in kr_dispatch_msg() local 389 lim = buf + n; in kr_dispatch_msg() 390 for (next = buf; next < lim; next += rtm->rtm_msglen) { in kr_dispatch_msg() 392 if (lim < next + sizeof(u_short) || in kr_dispatch_msg() 393 lim < next + rtm->rtm_msglen) in kr_dispatch_msg()
|
/openbsd/regress/lib/libc/sys/ |
H A D | t_setrlimit.c | 85 int *buf, lim; in ATF_TC_BODY() local 93 for (i = lim = 0; i < __arraycount(rlimit); i++) { in ATF_TC_BODY() 110 lim = rlimit[i]; in ATF_TC_BODY() 131 if (lim != 0) in ATF_TC_BODY() 132 atf_tc_fail("failed to set limit (%d)", lim); in ATF_TC_BODY() 358 static const rlim_t lim = 12; in ATF_TC_BODY() local 367 res.rlim_cur = lim; in ATF_TC_BODY() 368 res.rlim_max = lim; in ATF_TC_BODY() 383 for (i = 0; i < (int)lim; i++) { in ATF_TC_BODY()
|
H A D | t_msgget.c | 204 int i, lim = 0; in ATF_TC_BODY() local 207 if (sysctlbyname("kern.ipc.msgmni", &lim, &len, NULL, 0) != 0) in ATF_TC_BODY() 210 buf = calloc(lim + 1, sizeof(*buf)); in ATF_TC_BODY() 213 for (i = 0; i < lim; i++) { in ATF_TC_BODY() 237 for (i = 0; i < lim; i++) in ATF_TC_BODY() 243 atf_tc_fail("msgget(2) opened more than %d queues", lim); in ATF_TC_BODY()
|
/openbsd/sbin/route/ |
H A D | show.c | 140 char *buf = NULL, *next, *lim = NULL; in printsource() local 153 lim = buf + needed; in printsource() 159 for (next = buf; next < lim; next += sa->sa_len) { in printsource() 196 char *buf = NULL, *next, *lim = NULL; in p_rttables() local 210 lim = buf + needed; in p_rttables() 218 for (next = buf; next < lim; next += rtm->rtm_msglen) { in p_rttables() 623 int i, lim, flag, error; in netname6() local 631 lim = mask->sin6_len - offsetof(struct sockaddr_in6, sin6_addr); in netname6() 632 lim = lim < (int)sizeof(struct in6_addr) ? in netname6() 633 lim : (int)sizeof(struct in6_addr); in netname6() [all …]
|
/openbsd/usr.sbin/unbound/testcode/ |
H A D | unitmsgparse.c | 85 size_t lim = sldns_buffer_limit(out); in test_buffers() local 86 if(sldns_buffer_limit(pkt) < lim) in test_buffers() 87 lim = sldns_buffer_limit(pkt); in test_buffers() 88 for(count=0; count<lim; count+=sz) { in test_buffers() 90 if(lim-count < sz) rem = lim-count; in test_buffers() 343 const size_t lim = 512; in testpkt() local 356 if(sldns_buffer_limit(out) > lim) { in testpkt() 359 lim - calc_edns_field_size(&edns), in testpkt() 372 unit_assert(sldns_buffer_limit(out) <= lim); in testpkt()
|
/openbsd/usr.sbin/bgpd/ |
H A D | rde_aspa.c | 133 uint32_t lim, x; in aspa_cp_lookup() local 134 for (i = 0, lim = aspa->num; lim != 0; lim /= 2) { in aspa_cp_lookup() 135 x = lim / 2; in aspa_cp_lookup() 142 lim--; in aspa_cp_lookup() 148 if (lim == 0) in aspa_cp_lookup()
|
/openbsd/gnu/usr.bin/perl/ext/Devel-Peek/ |
H A D | Peek.xs | 327 S_do_dump(pTHX_ SV *const sv, I32 lim) in S_do_dump() argument 334 do_sv_dump(0, Perl_debug_log, sv, 0, lim, in S_do_dump() 343 const I32 lim = PL_op->op_private == 2 ? (I32)POPi : 4; in S_pp_dump() local 345 S_do_dump(aTHX_ sv, lim); in S_pp_dump() 432 Dump(sv,lim=4) 434 I32 lim 437 S_do_dump(aTHX_ sv, lim); 449 DumpArray(lim,...) in DumpArray() argument 450 I32 lim in DumpArray() 462 do_sv_dump(0, Perl_debug_log, ST(i), 0, lim, in DumpArray()
|
/openbsd/sys/kern/ |
H A D | kern_resource.c | 567 rlim_t lim; in lim_startup() local 580 lim = ptoa(uvmexp.free); in lim_startup() 581 limit0->pl_rlimit[RLIMIT_RSS].rlim_max = lim; in lim_startup() 582 lim = ptoa(64*1024); /* Default to very low */ in lim_startup() 583 limit0->pl_rlimit[RLIMIT_MEMLOCK].rlim_max = lim; in lim_startup() 584 limit0->pl_rlimit[RLIMIT_MEMLOCK].rlim_cur = lim / 3; in lim_startup() 594 lim_copy(struct plimit *lim) in lim_copy() argument 599 memcpy(newlim->pl_rlimit, lim->pl_rlimit, in lim_copy() 606 lim_free(struct plimit *lim) in lim_free() argument 608 if (refcnt_rele(&lim->pl_refcnt) == 0) in lim_free() [all …]
|
/openbsd/usr.bin/netstat/ |
H A D | show.c | 137 char *buf = NULL, *next, *lim = NULL; in p_rttables() local 151 lim = buf + needed; in p_rttables() 156 for (next = buf; next < lim; next += rtm->rtm_msglen) { in p_rttables() 558 int i, lim, flag, error; in netname6() local 566 lim = mask->sin6_len - offsetof(struct sockaddr_in6, sin6_addr); in netname6() 567 lim = lim < (int)sizeof(struct in6_addr) ? in netname6() 568 lim : (int)sizeof(struct in6_addr); in netname6() 569 for (p = (u_char *)&mask->sin6_addr, i = 0; i < lim; p++) { in netname6()
|
/openbsd/usr.sbin/unbound/services/cache/ |
H A D | infra.c | 192 d->lim = -1; in domain_limit_findcreate() 214 d->lim = atoi(p->str2); in infra_ratelimit_cfg_insert() 790 return d->lim; /* exact match */ in infra_find_ratelimit() 963 int lim, max; in infra_ratelimit_inc() local 971 if(!lim) in infra_ratelimit_inc() 983 if(premax <= lim && max > lim) { in infra_ratelimit_inc() 998 return (max <= lim); in infra_ratelimit_inc() 1003 return (1 <= lim); in infra_ratelimit_inc() 1030 int lim, max; in infra_ratelimit_exceeded() local 1036 if(!lim) in infra_ratelimit_exceeded() [all …]
|
/openbsd/sbin/unwind/libunbound/services/cache/ |
H A D | infra.c | 192 d->lim = -1; in domain_limit_findcreate() 214 d->lim = atoi(p->str2); in infra_ratelimit_cfg_insert() 790 return d->lim; /* exact match */ in infra_find_ratelimit() 963 int lim, max; in infra_ratelimit_inc() local 971 if(!lim) in infra_ratelimit_inc() 983 if(premax <= lim && max > lim) { in infra_ratelimit_inc() 998 return (max <= lim); in infra_ratelimit_inc() 1003 return (1 <= lim); in infra_ratelimit_inc() 1030 int lim, max; in infra_ratelimit_exceeded() local 1036 if(!lim) in infra_ratelimit_exceeded() [all …]
|
/openbsd/gnu/usr.bin/perl/os2/OS2/OS2-Process/ |
H A D | Process.pm | 472 my $lim = MemoryRegionSize($data); 473 $lim = StrLen($data, $lim); # Look for 1-byte 0 474 return unpack "P$lim", pack 'L', $data; 481 my $lim = MemoryRegionSize($data); 482 $lim = StrLen($data, $lim, 2); # Look for 2-byte 0 483 return unpack "P$lim", pack 'L', $data;
|