Searched refs:limit (Results 1 - 25 of 505) sorted by relevance

1234567891011>>

/freebsd-11-stable/lib/libc/db/hash/
H A Dhash_log2.c47 u_int32_t i, limit; local
49 limit = 1;
50 for (i = 0; limit < num; limit = limit << 1, i++);
/freebsd-11-stable/lib/libc/gen/
H A Dulimit.c41 struct rlimit limit; local
46 if (getrlimit(RLIMIT_FSIZE, &limit) == -1)
48 limit.rlim_cur /= 512;
49 if (limit.rlim_cur > LONG_MAX)
51 return ((long)limit.rlim_cur);
60 limit.rlim_max = limit.rlim_cur = arg * 512;
63 if (setrlimit(RLIMIT_FSIZE, &limit) == -1)
/freebsd-11-stable/usr.sbin/bluetooth/btpand/
H A Dsdp.c55 * _sdp_match_uuid16(ptr, limit, uuid)
59 * limit is the first address past the end of valid data.
62 _sdp_match_uuid16(uint8_t **ptr, uint8_t *limit, uint16_t uuid) argument
70 if (!_sdp_get_uuid(&p, limit, &u2)
79 * _sdp_get_uuid(ptr, limit, uuid)
83 * limit is the first address past the end of valid data.
86 _sdp_get_uuid(uint8_t **ptr, uint8_t *limit, uuid_t *uuid) argument
90 if (p + 1 > limit)
95 if (p + 2 > limit)
104 if (p + 4 > limit)
136 _sdp_get_seq(uint8_t **ptr, uint8_t *limit, uint8_t **seq) argument
188 _sdp_get_uint16(uint8_t **ptr, uint8_t *limit, uint16_t *value) argument
[all...]
/freebsd-11-stable/contrib/xz/src/liblzma/common/
H A Dmemcmplen.h29 /// \param limit How many bytes to compare at most, including the
33 /// the specified limit from both buf1 and buf2.
36 /// This is always at least len and at most limit.
44 uint32_t len, uint32_t limit)
46 assert(len <= limit);
47 assert(limit <= UINT32_MAX / 2);
63 while (len < limit) {
73 return my_min(len, limit);
79 return limit;
95 while (len < limit) {
43 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, uint32_t len, uint32_t limit) argument
[all...]
/freebsd-11-stable/contrib/ncurses/ncurses/widechar/
H A Dlib_in_wchnstr.c54 int j, k, limit; local
57 limit = getmaxx(win) - col;
61 n = limit;
62 } else if (n > limit) {
63 n = limit;
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dautoscan_exponential.c18 int limit; member in struct:autoscan_exponential_data
39 data->limit = atoi(pos);
60 "and limit is %d", data->base, data->limit);
84 if (data->interval >= data->limit)
85 return data->limit;
91 if (data->interval > data->limit)
92 return data->limit;
/freebsd-11-stable/contrib/gcc/config/i386/
H A Dptx4-i.h62 const unsigned char *limit = _ascii_bytes + (LENGTH); \
64 for (; _ascii_bytes < limit; _ascii_bytes++) \
72 for (p = _ascii_bytes; p < limit && *p != '\0'; p++) \
74 if (p < limit && (p - _ascii_bytes) <= (long) STRING_LIMIT) \
H A Di386elf.h70 const unsigned char *limit = _ascii_bytes + (LENGTH); \
72 for (; _ascii_bytes < limit; _ascii_bytes++) \
80 for (p = _ascii_bytes; p < limit && *p != '\0'; p++) \
82 if (p < limit && (p - _ascii_bytes) <= (long) STRING_LIMIT) \
H A Dsysv4.h57 const unsigned char *limit = _ascii_bytes + (LENGTH); \
59 for (; _ascii_bytes < limit; _ascii_bytes++) \
67 for (p = _ascii_bytes; p < limit && *p != '\0'; p++) \
69 if (p < limit && (p - _ascii_bytes) <= (long) STRING_LIMIT) \
/freebsd-11-stable/contrib/ncurses/ncurses/base/
H A Dlib_slkset.c56 int limit; local
73 limit = MAX_SKEY_LEN(SP_PARM->slk_format);
92 if (wcwidth(wc) + numcols > limit)
103 if (numcols > limit)
104 numcols = limit;
114 (size_t) (limit +
124 offset = (limit - numcols) / 2;
127 offset = limit - numcols;
139 if (offset < limit) {
142 (size_t) (limit
[all...]
H A Dlib_scroll.c55 int limit; local
83 limit = top - n;
84 for (line = bottom; line >= limit && line >= 0; line--) {
92 for (line = top; line < limit && line <= win->_maxy; line++) {
102 limit = bottom - n;
103 for (line = top; line <= limit && line <= win->_maxy; line++) {
110 for (line = bottom; line > limit && line >= 0; line--) {
/freebsd-11-stable/contrib/libarchive/test_utils/
H A Dtest_utils.c76 int get_test_set(int *test_set, int limit, const char *test, argument
84 for (;idx < limit; idx++)
86 return (limit);
101 end = limit - 1;
112 if (start < 0 || end >= limit || start > end)
117 for (start = 0; start < limit; ++start) {
/freebsd-11-stable/contrib/subversion/subversion/libsvn_delta/
H A Dcompose_delta.c49 /* 'offset' and 'limit' define the range in the source window. */
51 apr_size_t limit;
74 'offset' and 'limit' always refer to the "virtual" source data
80 /* 'offset' and 'limit' define the range. */
82 apr_size_t limit;
241 apr_size_t limit,
246 node->limit = limit;
404 clean_tree(range_index_t *ndx, apr_size_t limit)
406 apr_size_t top_offset = limit
50 apr_size_t limit; member in struct:range_index_node_t
81 apr_size_t limit; member in struct:range_list_node_t
236 alloc_range_index_node(range_index_t *ndx, apr_size_t offset, apr_size_t limit, apr_size_t target_offset) argument
401 clean_tree(range_index_t *ndx, apr_size_t limit) argument
435 insert_range(apr_size_t offset, apr_size_t limit, apr_size_t target_offset, range_index_t *ndx) argument
521 alloc_range_list(range_list_node_t **list, range_list_node_t **tail, range_index_t *ndx, enum range_kind kind, apr_size_t offset, apr_size_t limit, apr_size_t target_offset) argument
567 build_range_list(apr_size_t offset, apr_size_t limit, range_index_t *ndx) argument
638 copy_source_ops(apr_size_t offset, apr_size_t limit, apr_size_t target_offset, apr_size_t hint, svn_txdelta__ops_baton_t *build_baton, const svn_txdelta_window_t *window, const offset_index_t *ndx, apr_pool_t *pool) argument
801 const apr_size_t limit = op->offset + op->length; local
[all...]
/freebsd-11-stable/crypto/heimdal/appl/login/
H A Dlimits_conf.c44 struct limit { struct
49 struct rlimit limit; member in struct:limit
81 static struct limit *
84 struct limit *l;
106 struct limit *l;
154 syslog(LOG_ERR, "%s: line %d: unknown limit %s", file, lineno, args[2]);
176 /* XXX unclear: if you set group hard and user soft limit,
177 should the hard limit still apply? this code doesn't. */
191 if(getrlimit(l->resource, &l->limit) < 0)
199 l->limit
[all...]
/freebsd-11-stable/crypto/heimdal/appl/rsh/
H A Dlimits_conf.c44 struct limit { struct
49 struct rlimit limit; member in struct:limit
81 static struct limit *
84 struct limit *l;
106 struct limit *l;
154 syslog(LOG_ERR, "%s: line %d: unknown limit %s", file, lineno, args[2]);
176 /* XXX unclear: if you set group hard and user soft limit,
177 should the hard limit still apply? this code doesn't. */
191 if(getrlimit(l->resource, &l->limit) < 0)
199 l->limit
[all...]
/freebsd-11-stable/tools/test/net/
H A Dlisten.c48 err(EX_USAGE, "listen [-p port] [-l limit]\n");
56 int limit = LISTEN; local
65 limit = atoi(optarg);
85 if (listen(srv_sock, limit) < 0)
86 err(EX_OSERR, "Failed to listen with depth of %d\n", limit);
97 && (recvd <= (RECV_LIMIT + limit + 1))) {
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlmem.c47 int limit, const char *what) {
50 if (*size >= limit/2) { /* cannot double it? */
51 if (*size >= limit) /* cannot grow even a little? */
52 luaG_runerror(L, "too many %s (limit is %d)", what, limit);
53 newsize = limit; /* still have at least one free place */
46 luaM_growaux_(lua_State *L, void *block, int *size, size_t size_elems, int limit, const char *what) argument
/freebsd-11-stable/contrib/lua/src/
H A Dlmem.c49 int limit, const char *what) {
52 if (*size >= limit/2) { /* cannot double it? */
53 if (*size >= limit) /* cannot grow even a little? */
54 luaG_runerror(L, "too many %s (limit is %d)", what, limit);
55 newsize = limit; /* still have at least one free place */
48 luaM_growaux_(lua_State *L, void *block, int *size, size_t size_elems, int limit, const char *what) argument
/freebsd-11-stable/contrib/ntp/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-11-stable/contrib/ncurses/ncurses/trace/
H A Dtrace_xnames.c45 int limit = tp->ext_Booleans + tp->ext_Numbers + tp->ext_Strings; local
47 if (limit) {
53 limit,
56 for (n = 0; n < limit; n++) {
/freebsd-11-stable/contrib/gcc/
H A Dscan.h24 char *limit; member in struct:sstring
27 #define INIT_SSTRING(STR) ((STR)->base = 0, (STR)->ptr = 0, (STR)->limit = 0)
30 if ((STR)->limit <= (STR)->ptr) make_sstring_space (STR, 1); \
34 if ((STR)->limit - (STR)->ptr < (COUNT)) make_sstring_space (STR, COUNT);
/freebsd-11-stable/tools/tools/mtxstat/
H A Dmtxstat.pl37 print(STDERR "usage: mtxstat [-gr] [-a|c|m|t] [-l limit]\n");
44 my $limit; # Output limit
72 $limit = $opts{'l'};
117 if ($limit) {
118 while (@list > $limit) {
/freebsd-11-stable/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
123 if (limit > 0 && (i+1 >= limit || (size_t)(t-token)+1 >= limit)) {
145 if (limit > 0 && (i+1 >= limit || (size_t)(t-token)+1 >= limit)) {
238 sldns_bget_token(sldns_buffer *b, char *token, const char *delim, size_t limit) argument
244 sldns_bget_token_par(sldns_buffer *b, char *token, const char *delim, size_t limit, int* par, const char* skipw) argument
[all...]
/freebsd-11-stable/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...]

Completed in 314 milliseconds

1234567891011>>