Home
last modified time | relevance | path

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

12345

/openbsd-src/lib/libc/net/
H A Dip6opt.c42 static int ip6optlen(u_int8_t *opt, u_int8_t *lim);
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()
222 if ((optlen = ip6optlen(optp, lim)) == 0) in inet6_opt_next()
240 u_int8_t *optp, *lim; in inet6_opt_find() local
[all …]
/openbsd-src/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-src/usr.sbin/npppd/common/
H A Dradish.c165 int i, lim, q, r, masklen; in rd_insert() local
235 lim = cur->rd_masklim; in rd_insert()
238 for (i = 0; i < lim; i++) in rd_insert()
247 if ((np[lim] & cur->rd_bmask) != rp[lim]) { in rd_insert()
252 return rd_glue(cur, new, lim, head); in rd_insert()
284 lim = new->rd_masklim; in rd_insert()
287 for (i = 0; i < lim; i++) in rd_insert()
296 if (np[lim] != (rp[lim] & new->rd_bmask)) { in rd_insert()
301 return rd_glue(cur, new, lim, head); in rd_insert()
423 int off = head->rdh_offset, i, lim; in rd_match_next() local
[all …]
/openbsd-src/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-src/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-src/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-src/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-src/gnu/usr.bin/perl/t/op/
H A Drange.t233 my $lim=0;
239 last if ($lim++ > 100); # Protect against integer wrap
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;
320 last if ($lim++ > 100);
[all …]
/openbsd-src/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-src/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-src/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-src/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-src/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-src/usr.sbin/dvmrpd/
H A Dkroute.c302 char *buf, *next, *lim; in fetchifs()
329 lim = buf + len; in fetchifs()
330 for (next = buf; next < lim; next += ifm.ifm_msglen) { in fetchifs()
377 char *next, *lim; in kr_dispatch_msg()
390 lim = buf + n; in kr_dispatch_msg()
391 for (next = buf; next < lim; next += rtm->rtm_msglen) { in kr_dispatch_msg()
393 if (lim < next + sizeof(u_short) || in kr_dispatch_msg()
394 lim < next + rtm->rtm_msglen) in kr_dispatch_msg()
301 char *buf, *next, *lim; fetchifs() local
376 char *next, *lim; kr_dispatch_msg() local
/openbsd-src/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-src/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-src/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-src/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-src/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()
342 I32 lim = 4; in S_pp_dump()
344 lim = (I32)SvIVx(*PL_stack_sp); in S_pp_dump()
347 S_do_dump(aTHX_ *PL_stack_sp, lim); in S_pp_dump()
435 Dump(sv,lim=4)
437 I32 lim
440 S_do_dump(aTHX_ sv, lim);
452 DumpArray(lim,...) in DumpArray()
453 I32 lim in DumpArray()
343 const I32 lim = PL_op->op_private == 2 ? (I32)POPi : 4; S_pp_dump() local
449 DumpArray(lim,...) DumpArray() argument
[all...]
/openbsd-src/sys/kern/
H A Dkern_resource.c644 rlim_t lim; in lim_copy()
657 lim = ptoa(uvmexp.free); in lim_fork()
658 limit0->pl_rlimit[RLIMIT_RSS].rlim_max = lim; in lim_fork()
659 lim = ptoa(64*1024); /* Default to very low */ in lim_fork()
660 limit0->pl_rlimit[RLIMIT_MEMLOCK].rlim_max = lim; in lim_fork()
661 limit0->pl_rlimit[RLIMIT_MEMLOCK].rlim_cur = lim / 3; in lim_fork()
671 lim_copy(struct plimit *lim)
676 memcpy(newlim->pl_rlimit, lim->pl_rlimit,
683 lim_free(struct plimit *lim) in lim_write_begin()
685 if (refcnt_rele(&lim in lim_write_begin()
610 rlim_t lim; lim_startup() local
637 lim_copy(struct plimit * lim) lim_copy() argument
649 lim_free(struct plimit * lim) lim_free() argument
[all...]
/openbsd-src/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-src/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;
/openbsd-src/regress/lib/libc/malloc/malloc_threaderr/
H A Dmalloc_threaderr.c54 const struct rlimit lim = {0, 0}; in main() local
58 setrlimit(RLIMIT_CORE, &lim); in main()
/openbsd-src/usr.sbin/unbound/services/cache/
H A Dinfra.c202 d->lim = -1; in domain_limit_findcreate()
224 d->lim = atoi(p->str2);
887 if(d->node.labs == labs && d->lim != -1) in infra_find_ratelimit()
888 return d->lim; /* exact match */ in infra_find_ratelimit()
1063 int lim, max; in infra_ratelimit_inc()
1070 lim = infra_find_ratelimit(infra, name, namelen); in infra_ratelimit_inc()
1071 if(!lim) in infra_ratelimit_inc()
1083 if(premax <= lim && max > lim) { in infra_ratelimit_inc()
1093 verbose(VERB_OPS, "ratelimit exceeded %s %d query %s %s %s from %s", buf, lim, qn in infra_ratelimit_inc()
1054 int lim, max; infra_ratelimit_inc() local
1121 int lim, max; infra_ratelimit_exceeded() local
[all...]

12345