Home
last modified time | relevance | path

Searched refs:lim (Results 1 – 25 of 123) sorted by relevance

12345

/openbsd/lib/libc/net/
H A Dip6opt.c50 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 D961125-1.c2 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 Dradish.c235 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 Dbigcore.exp94 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 Dbsearch.c75 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 Dbsearch.c55 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 Dbsearch.h58 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 Drange.t233 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 Dbt_search.c63 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 Dieee80211_regdomain.c64 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 Drlim-file.c17 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 Dmalloc_ulimit1.c31 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 Dmalloc_ulimit2.c20 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 Dkroute.c301 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 Dt_setrlimit.c85 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 Dt_msgget.c204 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 Dshow.c140 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 Dunitmsgparse.c85 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 Drde_aspa.c133 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 DPeek.xs327 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 Dkern_resource.c567 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 Dshow.c137 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 Dinfra.c192 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 Dinfra.c192 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 DProcess.pm472 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;

12345