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

1234567891011>>

/freebsd-head/lib/libc/db/hash/
H A Dhash_log2.c49 u_int32_t i, limit; local
51 limit = 1;
52 for (i = 0; limit < num; limit = limit << 1, i++);
/freebsd-head/lib/libcasper/services/cap_sysctl/tests/
H A Dsysctl_test.c278 void *limit; local
291 limit = cap_sysctl_limit_init(capsysctl);
292 (void)cap_sysctl_limit_name(limit, SYSCTL0_PARENT,
294 (void)cap_sysctl_limit_name(limit, SYSCTL1_PARENT,
296 ATF_REQUIRE(cap_sysctl_limit(limit) == 0);
298 limit = cap_sysctl_limit_init(capsysctl);
299 (void)cap_sysctl_limit_name(limit, SYSCTL0_PARENT,
301 (void)cap_sysctl_limit_name(limit, SYSCTL1_PARENT,
303 (void)cap_sysctl_limit_name(limit, "foo.bar",
305 ATF_REQUIRE(cap_sysctl_limit(limit)
1225 void *limit; local
1606 void *limit; local
[all...]
/freebsd-head/lib/libc/gen/
H A Dulimit.c43 struct rlimit limit; local
48 if (getrlimit(RLIMIT_FSIZE, &limit) == -1)
50 limit.rlim_cur /= 512;
51 if (limit.rlim_cur > LONG_MAX)
53 return ((long)limit.rlim_cur);
62 limit.rlim_max = limit.rlim_cur = arg * 512;
65 if (setrlimit(RLIMIT_FSIZE, &limit) == -1)
/freebsd-head/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-head/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-head/contrib/ncurses/ncurses/widechar/
H A Dlib_in_wchnstr.c55 int j, k, limit; local
58 limit = getmaxx(win) - col;
62 n = limit;
63 } else if (n > limit) {
64 n = limit;
/freebsd-head/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-head/contrib/cortex-strings/src/aarch64/
H A Dmemcmp.S45 #define limit x2 define
64 cbz limit, .Lret0
70 add limit_wd, limit, #7
83 /* Not reached the limit, must have found a diff. */
87 ands limit, limit, #7
90 lsl limit, limit, #3 /* Bits -> bytes. */
93 lsr mask, mask, limit
95 lsl mask, mask, limit
[all...]
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...]
/freebsd-head/crypto/openssl/crypto/ec/curve448/
H A Dword.h71 unsigned int limit = sizeof(c448_bool_t) / sizeof(mask_t); local
73 if (limit < 1)
74 limit = 1;
75 for (i = 0; i < limit; i++)
/freebsd-head/contrib/ncurses/ncurses/base/
H A Dlib_slkset.c57 int limit; local
74 limit = MAX_SKEY_LEN(SP_PARM->slk_format);
93 if (_nc_wacs_width(wc) + numcols > limit)
104 if (numcols > limit)
105 numcols = limit;
115 (size_t) (limit +
125 offset = (limit - numcols) / 2;
128 offset = limit - numcols;
140 if (offset < limit) {
143 (size_t) (limit
[all...]
/freebsd-head/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-head/lib/libcasper/services/cap_sysctl/
H A Dcap_sysctl.h56 cap_sysctl_limit_t *cap_sysctl_limit_name(cap_sysctl_limit_t *limit,
58 cap_sysctl_limit_t *cap_sysctl_limit_mib(cap_sysctl_limit_t *limit, int *mibp,
60 int cap_sysctl_limit(cap_sysctl_limit_t *limit);
70 #define cap_sysctl_limit_name(limit, name, flags) (NULL)
71 #define cap_sysctl_limit_mib(limit, mibp, miblen, flags) (NULL)
72 #define cap_sysctl_limit(limit) (0)
H A Dcap_sysctl.c66 cap_sysctl_limit_t *limit; local
69 limit = malloc(sizeof(*limit));
70 if (limit != NULL) {
71 limit->chan = chan;
72 limit->nv = nvlist_create(NV_FLAG_NO_UNIQUE);
73 if (limit->nv == NULL) {
75 free(limit);
76 limit = NULL;
80 return (limit);
84 cap_sysctl_limit_name(cap_sysctl_limit_t *limit, const char *name, int flags) argument
112 cap_sysctl_limit_mib(cap_sysctl_limit_t *limit, int *mibp, u_int miblen, int flags) argument
134 cap_sysctl_limit(cap_sysctl_limit_t *limit) argument
265 sysctl_valid(const nvlist_t *nvl, bool limit) argument
344 const nvlist_t *limit; local
[all...]
/freebsd-head/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-head/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-head/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-head/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-head/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-head/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-head/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-head/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-head/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);
/freebsd-head/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-head/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 76 milliseconds

1234567891011>>