Searched refs:limit (Results 26 - 50 of 490) sorted by relevance

1234567891011>>

/freebsd-current/sys/contrib/openzfs/module/lua/
H A Dlmem.c45 int limit, const char *what) {
48 if (*size >= limit/2) { /* cannot double it? */
49 if (*size >= limit) /* cannot grow even a little? */
50 luaG_runerror(L, "too many %s (limit is %d)", what, limit);
51 newsize = limit; /* still have at least one free place */
44 luaM_growaux_(lua_State *L, void *block, int *size, size_t size_elems, int limit, const char *what) argument
/freebsd-current/tools/test/net/
H A Dlisten.c46 err(EX_USAGE, "listen [-p port] [-l limit]\n");
54 int limit = LISTEN; local
63 limit = atoi(optarg);
83 if (listen(srv_sock, limit) < 0)
84 err(EX_OSERR, "Failed to listen with depth of %d\n", limit);
95 && (recvd <= (RECV_LIMIT + limit + 1))) {
/freebsd-current/contrib/ldns/ldns/
H A Dparse.h54 * \param[in] *limit how much to read. If 0 the builtin maximum is used
57 ssize_t ldns_fget_token(FILE *f, char *token, const char *delim, size_t limit);
66 * \param[in] *limit how much to read. If 0 use builtin maximum
70 ssize_t ldns_fget_token_l(FILE *f, char *token, const char *delim, size_t limit, int *line_nr);
81 * double the size (of limit).
83 * and limit must be set to the buffer size. In that case
85 * \param[in,out] *limit reference to the size of the token buffer. Will be
86 * reset to the new limit of the token buffer if the
96 ldns_status ldns_fget_token_l_st(FILE *f, char **token, size_t *limit, bool fixed, const char *delim, int *line_nr);
98 ssize_t ldns_fget_token_l_resolv_conf(FILE *f, char *token, const char *delim, size_t limit, in
[all...]
/freebsd-current/contrib/ntp/libntp/lib/isc/include/isc/
H A Dhash.h41 * upper limit of the input length, and may run slow to calculate the
85 isc_hash_ctxcreate(isc_mem_t *mctx, isc_entropy_t *entropy, unsigned int limit,
88 isc_hash_create(isc_mem_t *mctx, isc_entropy_t *entropy, size_t limit);
101 * 'limit' specifies the maximum number of hash keys. If it is too large,
174 * 'keylen' specifies the key length, which must not be larger than the limit
/freebsd-current/contrib/cortex-strings/src/aarch64/
H A Dstrncmp.S47 #define limit x2 define
73 cbz limit, .Lret0
81 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */
102 /* Not reached the limit, must have found the end or a diff. */
106 ands limit, limit, #7
109 lsl limit, limit, #3 /* Bits -> bytes. */
112 lsr mask, mask, limit
[all...]
H A Dstrnlen.S1 /* strnlen - calculate the length of a string with limit.
37 #define limit x1 define
75 mov len, limit
79 cbz limit, .Lhit_limit
85 sub limit_wd, limit, #1 /* Limit != 0, so no underflow. */
117 MIN (len, limit). */
141 cmp len, limit
142 csel len, len, limit, ls /* Return the lower value. */
149 limit is near ULONG_MAX) - to do this we need to work out
150 limit
[all...]
/freebsd-current/contrib/ncurses/ncurses/trace/
H A Dtrace_xnames.c46 int limit = tp->ext_Booleans + tp->ext_Numbers + tp->ext_Strings; local
48 if (limit) {
55 limit,
59 for (n = 0; n < limit; n++) {
/freebsd-current/contrib/unbound/sldns/
H A Dparse.h53 * \param[in] *limit how much to read. If 0 the builtin maximum is used
56 ssize_t sldns_fget_token(FILE *f, char *token, const char *delim, size_t limit);
65 * \param[in] *limit how much to read. If 0 use builtin maximum
69 ssize_t sldns_fget_token_l(FILE *f, char *token, const char *delim, size_t limit, int *line_nr);
78 * \param[in] *limit how much to read. If 0 the builtin maximum is used
87 ssize_t sldns_bget_token_par(struct sldns_buffer *b, char *token, const char *delim, size_t limit, int* par, const char* skipw);
96 * \param[in] *limit how much to read. If 0 the builtin maximum is used
99 ssize_t sldns_bget_token(struct sldns_buffer *b, char *token, const char *delim, size_t limit);
H A Dparse.c27 sldns_fget_token(FILE *f, char *token, const char *delim, size_t limit) argument
29 return sldns_fget_token_l(f, token, delim, limit, NULL);
33 sldns_fget_token_l(FILE *f, char *token, const char *delim, size_t limit, int *line_nr) argument
140 if (limit > 0 && (i+1 >= limit || (size_t)(t-token)+1 >= limit)) {
179 if (limit > 0 && (i+1 >= limit || (size_t)(t-token)+1 >= limit)) {
280 sldns_bget_token(sldns_buffer *b, char *token, const char *delim, size_t limit) argument
286 sldns_bget_token_par(sldns_buffer *b, char *token, const char *delim, size_t limit, int* par, const char* skipw) argument
[all...]
/freebsd-current/tools/tools/mtxstat/
H A Dmtxstat.pl36 print(STDERR "usage: mtxstat [-gr] [-a|c|m|t] [-l limit]\n");
43 my $limit; # Output limit
71 $limit = $opts{'l'};
116 if ($limit) {
117 while (@list > $limit) {
/freebsd-current/contrib/unbound/util/
H A Dtcp_conn_limit.c2 * daemon/tcp_conn_limit.c - client TCP connection limit storage for the server.
88 socklen_t addrlen, int net, uint32_t limit,
96 node->limit = limit;
112 uint32_t limit; local
114 log_err("bad connection limit %s", s2);
117 limit = (uint32_t)atoi(s2);
119 log_err("cannot parse connection limit netblock: %s", str);
122 if(!tcl_list_insert(tcl, &addr, addrlen, net, limit,
160 if(tcl->count >= tcl->limit)
87 tcl_list_insert(struct tcl_list* tcl, struct sockaddr_storage* addr, socklen_t addrlen, int net, uint32_t limit, int complain_duplicates) argument
[all...]
/freebsd-current/usr.bin/unexpand/
H A Dunexpand.c106 int dcol, doneline, limit, n, ocol, width; local
109 limit = nstops == 1 ? INT_MAX : tabstops[nstops - 1] - 1;
114 if (++dcol >= limit)
126 if (n < nstops - 1 && tabstops[n] - 1 < limit) {
147 while (ocol < dcol && n < nstops && ocol < limit) {
154 while (ocol < dcol && ocol < limit) {
167 } else if (ch != ' ' || dcol > limit) {
177 if (!all || dcol >= limit) {
/freebsd-current/sys/contrib/ck/include/
H A Dck_bitmap.h310 * Returns true if the first limit bits in bitmap are cleared. If
311 * limit is greater than the bitmap size, limit is truncated to that
315 ck_bitmap_empty(const ck_bitmap_t *bitmap, unsigned int limit) argument
319 if (limit > bitmap->n_bits)
320 limit = bitmap->n_bits;
322 words = limit / CK_BITMAP_BLOCK;
323 slop = limit % CK_BITMAP_BLOCK;
342 * Returns true if the first limit bits in bitmap are set. If limit
346 ck_bitmap_full(const ck_bitmap_t *bitmap, unsigned int limit) argument
377 ck_bitmap_count(const ck_bitmap_t *bitmap, unsigned int limit) argument
404 ck_bitmap_count_intersect(const ck_bitmap_t *x, const ck_bitmap_t *y, unsigned int limit) argument
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/builtins/ve/
H A Dgrow_stack_align.S24 shm.l %sl, 0x8(%s63) # old limit at addr:8
25 shm.l %sp, 0x10(%s63) # new limit at addr:16
H A Dgrow_stack.S24 shm.l %sl, 0x8(%s63) # old limit at addr:8
25 shm.l %sp, 0x10(%s63) # new limit at addr:16
/freebsd-current/contrib/netbsd-tests/lib/libc/locale/
H A Dt_mbsnrtowcs.c44 size_t limit; member in struct:test
79 len = mbsnrtowcs(buf, &src, t->limit,
81 ATF_REQUIRE_EQ(src, t->data + t->limit);
86 ATF_REQUIRE_EQ(len, strlen(t->data) - t->limit);
/freebsd-current/usr.bin/procstat/
H A Dprocstat_rlimit.c73 humanize_rlimit(int indx, rlim_t limit) argument
78 if (limit == RLIM_INFINITY)
81 scale = humanize_number(buf, sizeof(buf) - 1, (int64_t)limit,
83 (void)humanize_number(buf, sizeof(buf) - 1, (int64_t)limit,
/freebsd-current/usr.bin/cmp/
H A Dlink.c41 off_t limit)
74 *p1 && *p2 && (limit == 0 || byte <= limit); p1++, p2++) {
40 c_link(const char *file1, off_t skip1, const char *file2, off_t skip2, off_t limit) argument
H A Dcmp.c99 off_t skip1, skip2, limit; local
104 limit = skip1 = skip2 = 0;
126 if (expand_number(optarg, &limit) < 0 || limit < 0) {
155 /* Don't limit rights on stdin since it may be one of the inputs. */
157 err(ERR_EXIT, "unable to limit rights on stdout");
159 err(ERR_EXIT, "unable to limit rights on stderr");
202 c_link(file1, skip1, file2, skip2, limit);
243 c_special(fd1, file1, skip1, fd2, file2, skip2, limit);
252 fd2, file2, skip2, sb2.st_size, limit);
[all...]
/freebsd-current/sys/arm/qualcomm/
H A Dipq4018_machdep.c159 int limit;
191 limit = 100000;
193 while (((*UART_DM_ISR & UART_DM_TX_READY) == 0) && --limit) {
205 limit = 100000;
206 while (((*UART_DM_SR & UART_DM_SR_TXRDY) == 0) && --limit) {
/freebsd-current/contrib/ncurses/ncurses/base/
H A Dwresize.c69 #define REPAIR1(field, limit) \
70 if (tst->field > cmp->limit) \
71 tst->field = cmp->limit
76 #define REPAIR2(field, limit) \
77 if (tst->limit + tst->field > cmp->limit) \
78 tst->limit = (NCURSES_SIZE_T) (cmp->limit - tst->field)
83 #define REPAIR3(field, limit) \
84 if (tst->field > tst->limit) \
[all...]
H A Dlib_scroll.c56 int limit; local
86 limit = top - n;
87 for (line = bottom; line >= limit && BottomLimit(line); line--) {
95 for (line = top; line < limit && TopLimit(line); line++) {
105 limit = bottom - n;
106 for (line = top; line <= limit && TopLimit(line); line++) {
113 for (line = bottom; line > limit && BottomLimit(line); line--) {
/freebsd-current/sys/cddl/dev/fbt/aarch64/
H A Dfbt_isa.c89 uint32_t *instr, *limit; local
110 limit = (uint32_t *)(symval->value + symval->size);
129 for (; instr < limit; instr++) {
150 if (instr >= limit)
175 for (; instr < limit; instr++) {
183 if (target >= limit || target < start)
188 if (instr >= limit)
/freebsd-current/contrib/libdivsufsort/lib/
H A Dtrsort.c336 saint_t limit, next; local
339 for(ssize = 0, limit = tr_ilg(last - first);;) {
341 if(limit < 0) {
342 if(limit == -1) {
363 last = a, limit = tr_ilg(a - first);
365 first = b, limit = tr_ilg(last - b);
367 STACK_POP5(ISAd, first, last, limit, trlink);
372 first = b, limit = tr_ilg(last - b);
374 last = a, limit = tr_ilg(a - first);
376 STACK_POP5(ISAd, first, last, limit, trlin
[all...]
/freebsd-current/lib/libcasper/services/cap_net/
H A Dcap_net.c381 cap_net_limit_t *limit; local
383 limit = calloc(1, sizeof(*limit));
384 if (limit != NULL) {
385 limit->cnl_mode = mode;
386 limit->cnl_chan = chan;
387 limit->cnl_addr2name = nvlist_create(0);
388 limit->cnl_name2addr = nvlist_create(0);
389 limit->cnl_connect = nvlist_create(0);
390 limit
397 pack_limit(nvlist_t *lnvl, const char *name, nvlist_t *limit) argument
408 cap_net_limit(cap_net_limit_t *limit) argument
428 cap_net_free(cap_net_limit_t *limit) argument
477 cap_net_limit_addr2name_family(cap_net_limit_t *limit, int *family, size_t size) argument
485 cap_net_limit_name2addr_family(cap_net_limit_t *limit, int *family, size_t size) argument
493 cap_net_limit_name2addr(cap_net_limit_t *limit, const char *host, const char *serv) argument
513 cap_net_limit_addr2name(cap_net_limit_t *limit, const struct sockaddr *sa, socklen_t salen) argument
523 cap_net_limit_connect(cap_net_limit_t *limit, const struct sockaddr *sa, socklen_t salen) argument
532 cap_net_limit_bind(cap_net_limit_t *limit, const struct sockaddr *sa, socklen_t salen) argument
642 const void *limit; local
[all...]

Completed in 326 milliseconds

1234567891011>>