Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 909) sorted by relevance

12345678910>>...37

/freebsd/lib/libcasper/services/cap_net/tests/
H A Dnet_test.c312 cap_net_limit_t *limit; in test_extend_mode() local
328 limit = cap_net_limit_init(capnet, current | rights[i]); in test_extend_mode()
329 ATF_REQUIRE(limit != NULL); in test_extend_mode()
330 ATF_REQUIRE(cap_net_limit(limit) != 0); in test_extend_mode()
457 cap_net_limit_t *limit; in ATF_TC_BODY() local
462 limit = cap_net_limit_init(capnet, CAPNET_ADDR2NAME); in ATF_TC_BODY()
463 ATF_REQUIRE(limit != NULL); in ATF_TC_BODY()
464 ATF_REQUIRE(cap_net_limit(limit) == 0); in ATF_TC_BODY()
488 cap_net_limit_t *limit; in ATF_TC_BODY() local
494 limit = cap_net_limit_init(capnet, CAPNET_ADDR2NAME); in ATF_TC_BODY()
[all …]
/freebsd/sys/arm64/arm64/
H A Dmemcmp.S21 #define limit x2 macro
35 subs limit, limit, 8
43 subs limit, limit, 8
46 ldr data1, [src1, limit]
47 ldr data2, [src2, limit]
58 subs limit, limit, 16
63 cmp limit, 96
68 add limit, limit, tmp1
79 subs limit, limit, 16
93 add src1, src1, limit
[all …]
H A Dstrncmp.S26 #define limit x2 macro
62 cbz limit, L(ret0)
78 subs limit, limit, #8
91 add limit, limit, 8 /* Rewind limit to before last subs. */
100 cmp limit, pos, lsr #3
110 tbz limit, #63, L(not_limit)
111 add tmp1, limit, 8
112 cbz limit, L(not_limit)
114 lsl limit, tmp1, #3 /* Bits -> bytes. */
116 lsr mask, mask, limit
[all …]
/freebsd/lib/libcasper/services/cap_net/
H A Dcap_net.h69 int cap_net_limit(cap_net_limit_t *limit);
70 void cap_net_free(cap_net_limit_t *limit);
72 cap_net_limit_t *cap_net_limit_addr2name_family(cap_net_limit_t *limit,
74 cap_net_limit_t *cap_net_limit_addr2name(cap_net_limit_t *limit,
77 cap_net_limit_t *cap_net_limit_name2addr_family(cap_net_limit_t *limit,
79 cap_net_limit_t *cap_net_limit_name2addr(cap_net_limit_t *limit,
82 cap_net_limit_t *cap_net_limit_connect(cap_net_limit_t *limit,
85 cap_net_limit_t *cap_net_limit_bind(cap_net_limit_t *limit,
107 #define cap_net_free(limit) free(limit) argument
109 cap_net_limit(cap_net_limit_t *limit) in cap_net_limit() argument
[all …]
H A Dcap_net.c381 cap_net_limit_t *limit; in cap_net_limit_init() local
383 limit = calloc(1, sizeof(*limit)); in cap_net_limit_init()
384 if (limit != NULL) { in cap_net_limit_init()
385 limit->cnl_mode = mode; in cap_net_limit_init()
386 limit->cnl_chan = chan; in cap_net_limit_init()
387 limit->cnl_addr2name = nvlist_create(0); in cap_net_limit_init()
388 limit->cnl_name2addr = nvlist_create(0); in cap_net_limit_init()
389 limit->cnl_connect = nvlist_create(0); in cap_net_limit_init()
390 limit->cnl_bind = nvlist_create(0); in cap_net_limit_init()
393 return (limit); in cap_net_limit_init()
[all …]
/freebsd/contrib/arm-optimized-routines/math/test/rtest/
H A Drandom.c60 static uint32 random_upto_makemask(uint32 limit) { in random_upto_makemask() argument
64 if ((limit & (mask >> i)) == limit) in random_upto_makemask()
69 static uint32 random_upto_internal(uint32 limit, uint32 mask) { in random_upto_internal() argument
73 } while (ret > limit); in random_upto_internal()
77 uint32 random_upto(uint32 limit) { in random_upto() argument
78 uint32 mask = random_upto_makemask(limit); in random_upto()
79 return random_upto_internal(limit, mask); in random_upto()
82 uint32 random_upto_biased(uint32 limit, int bias) { in random_upto_biased() argument
83 uint32 mask = random_upto_makemask(limit); in random_upto_biased()
85 uint32 ret = random_upto_internal(limit, mask); in random_upto_biased()
[all …]
/freebsd/usr.sbin/bluetooth/btpand/
H A Dsdp.c61 _sdp_match_uuid16(uint8_t **ptr, uint8_t *limit, uint16_t uuid) in _sdp_match_uuid16() argument
69 if (!_sdp_get_uuid(&p, limit, &u2) in _sdp_match_uuid16()
85 _sdp_get_uuid(uint8_t **ptr, uint8_t *limit, uuid_t *uuid) in _sdp_get_uuid() argument
89 if (p + 1 > limit) in _sdp_get_uuid()
94 if (p + 2 > limit) in _sdp_get_uuid()
103 if (p + 4 > limit) in _sdp_get_uuid()
112 if (p + 16 > limit) in _sdp_get_uuid()
135 _sdp_get_seq(uint8_t **ptr, uint8_t *limit, uint8_t **seq) in _sdp_get_seq() argument
140 if (p + 1 > limit) in _sdp_get_seq()
145 if (p + 1 > limit) in _sdp_get_seq()
[all …]
/freebsd/contrib/ldns/
H A Dparse.c25 ldns_fget_token(FILE *f, char *token, const char *delim, size_t limit) in ldns_fget_token() argument
27 return ldns_fget_token_l(f, token, delim, limit, NULL); in ldns_fget_token()
35 ldns_fget_token_l_st_file_type(FILE *f, char **token, size_t *limit, in ldns_fget_token_l_st_file_type() argument
54 if (!token || !limit) in ldns_fget_token_l_st_file_type()
58 if (*token == NULL || *limit == 0) in ldns_fget_token_l_st_file_type()
62 *limit = LDNS_MAX_LINELEN; in ldns_fget_token_l_st_file_type()
63 if (!(*token = LDNS_XMALLOC(char, *limit + 1))) in ldns_fget_token_l_st_file_type()
66 } else if (*limit == 0) in ldns_fget_token_l_st_file_type()
143 if (*limit > 0 in ldns_fget_token_l_st_file_type()
144 && (i >= *limit || (size_t)(t - *token) >= *limit)) { in ldns_fget_token_l_st_file_type()
[all …]
/freebsd/contrib/arm-optimized-routines/string/aarch64/
H A Dmemcmp.S16 #define limit x2 macro
33 cmp limit, 16
41 add src1end, src1, limit
42 add src2end, src2, limit
43 cmp limit, 32
45 cmp limit, 160
47 sub limit, limit, 32
56 cmp limit, 16
67 subs limit, limit, 32
92 add src1end, src1, limit
[all …]
H A Dstrncmp.S22 #define limit x2 macro
58 cbz limit, L(ret0)
74 subs limit, limit, #8
87 add limit, limit, 8 /* Rewind limit to before last subs. */
96 cmp limit, pos, lsr #3
106 tbz limit, #63, L(not_limit)
107 add tmp1, limit, 8
108 cbz limit, L(not_limit)
110 lsl limit, tmp1, #3 /* Bits -> bytes. */
112 lsr mask, mask, limit
[all …]
/freebsd/contrib/cortex-strings/src/aarch64/
H A Dmemcmp.S45 #define limit x2 macro
64 cbz limit, .Lret0
70 add limit_wd, limit, #7
87 ands limit, limit, #7
90 lsl limit, limit, #3 /* Bits -> bytes. */
93 lsr mask, mask, limit
95 lsl mask, mask, limit
127 add limit, limit, tmp1 /* Adjust the limit for the extra. */
140 add limit_wd, limit, #7
152 sub limit, limit, #1
[all …]
H A Dstrncmp.S47 #define limit x2 macro
73 cbz limit, .Lret0
81 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */
106 ands limit, limit, #7
109 lsl limit, limit, #3 /* Bits -> bytes. */
112 lsr mask, mask, limit
114 lsl mask, mask, limit
187 sub limit_wd, limit, #1 /* limit != 0, so no underflow. */
198 add limit, limit, tmp1
211 sub limit, limit, #1
[all …]
/freebsd/lib/libc/gen/
H A Dulimit.c41 struct rlimit limit; in ulimit() local
46 if (getrlimit(RLIMIT_FSIZE, &limit) == -1) in ulimit()
48 limit.rlim_cur /= 512; in ulimit()
49 if (limit.rlim_cur > LONG_MAX) in ulimit()
51 return ((long)limit.rlim_cur); in ulimit()
60 limit.rlim_max = limit.rlim_cur = arg * 512; in ulimit()
63 if (setrlimit(RLIMIT_FSIZE, &limit) == -1) in ulimit()
H A Dglob-compat11.c154 struct glob_limit limit = { 0, 0, 0, 0, 0 }; in freebsd11_glob() local
170 limit.l_path_lim = pglob->gl_matchc; in freebsd11_glob()
171 if (limit.l_path_lim == 0) in freebsd11_glob()
172 limit.l_path_lim = GLOB_LIMIT_PATH; in freebsd11_glob()
186 return (err_nomatch(pglob, &limit, pattern)); in freebsd11_glob()
208 return (err_nomatch(pglob, &limit, pattern)); in freebsd11_glob()
218 return (err_nomatch(pglob, &limit, pattern)); in freebsd11_glob()
222 return (globexp0(patbuf, pglob, &limit, pattern)); in freebsd11_glob()
224 return (glob0(patbuf, pglob, &limit, pattern)); in freebsd11_glob()
228 globexp0(const Char *pattern, glob11_t *pglob, struct glob_limit *limit, in globexp0() argument
[all …]
H A Dglob.c186 struct glob_limit limit = { 0, 0, 0, 0, 0 }; in glob() local
202 limit.l_path_lim = pglob->gl_matchc; in glob()
203 if (limit.l_path_lim == 0) in glob()
204 limit.l_path_lim = GLOB_LIMIT_PATH; in glob()
218 return (err_nomatch(pglob, &limit, pattern)); in glob()
240 return (err_nomatch(pglob, &limit, pattern)); in glob()
250 return (err_nomatch(pglob, &limit, pattern)); in glob()
254 return (globexp0(patbuf, pglob, &limit, pattern)); in glob()
256 return (glob0(patbuf, pglob, &limit, pattern)); in glob()
260 globexp0(const Char *pattern, glob_t *pglob, struct glob_limit *limit, in globexp0() argument
[all …]
/freebsd/sys/contrib/ck/include/
H A Dck_bitmap.h315 ck_bitmap_empty(const ck_bitmap_t *bitmap, unsigned int limit) in ck_bitmap_empty() argument
319 if (limit > bitmap->n_bits) in ck_bitmap_empty()
320 limit = bitmap->n_bits; in ck_bitmap_empty()
322 words = limit / CK_BITMAP_BLOCK; in ck_bitmap_empty()
323 slop = limit % CK_BITMAP_BLOCK; in ck_bitmap_empty()
346 ck_bitmap_full(const ck_bitmap_t *bitmap, unsigned int limit) in ck_bitmap_full() argument
350 if (limit > bitmap->n_bits) { in ck_bitmap_full()
351 limit = bitmap->n_bits; in ck_bitmap_full()
354 words = limit / CK_BITMAP_BLOCK; in ck_bitmap_full()
355 slop = limit % CK_BITMAP_BLOCK; in ck_bitmap_full()
[all …]
/freebsd/contrib/libdivsufsort/lib/
H A Dtrsort.c336 saint_t limit, next; in tr_introsort() local
339 for(ssize = 0, limit = tr_ilg(last - first);;) { in tr_introsort()
341 if(limit < 0) { in tr_introsort()
342 if(limit == -1) { in tr_introsort()
363 last = a, limit = tr_ilg(a - first); in tr_introsort()
365 first = b, limit = tr_ilg(last - b); in tr_introsort()
367 STACK_POP5(ISAd, first, last, limit, trlink); in tr_introsort()
372 first = b, limit = tr_ilg(last - b); in tr_introsort()
374 last = a, limit = tr_ilg(a - first); in tr_introsort()
376 STACK_POP5(ISAd, first, last, limit, trlink); in tr_introsort()
[all …]
/freebsd/crypto/heimdal/appl/login/
H A Dlimits_conf.c44 struct limit { struct
49 struct rlimit limit; argument
81 static struct limit *
84 struct limit *l; in find_limit()
106 struct limit *l; in read_limits_conf()
191 if(getrlimit(l->resource, &l->limit) < 0) in read_limits_conf()
199 l->limit.rlim_cur = value; in read_limits_conf()
201 l->limit.rlim_max = value; in read_limits_conf()
206 if(l->limit.rlim_cur > l->limit.rlim_max) in read_limits_conf()
207 l->limit.rlim_cur = l->limit.rlim_max; in read_limits_conf()
[all …]
/freebsd/crypto/heimdal/appl/rsh/
H A Dlimits_conf.c44 struct limit { struct
49 struct rlimit limit; argument
81 static struct limit *
84 struct limit *l; in find_limit()
106 struct limit *l; in read_limits_conf()
191 if(getrlimit(l->resource, &l->limit) < 0) in read_limits_conf()
199 l->limit.rlim_cur = value; in read_limits_conf()
201 l->limit.rlim_max = value; in read_limits_conf()
206 if(l->limit.rlim_cur > l->limit.rlim_max) in read_limits_conf()
207 l->limit.rlim_cur = l->limit.rlim_max; in read_limits_conf()
[all …]
/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_slkset.c57 int limit; in NCURSES_EXPORT() local
74 limit = MAX_SKEY_LEN(SP_PARM->slk_format); in NCURSES_EXPORT()
93 if (_nc_wacs_width(wc) + numcols > limit) in NCURSES_EXPORT()
104 if (numcols > limit) in NCURSES_EXPORT()
105 numcols = limit; in NCURSES_EXPORT()
115 (size_t) (limit + in NCURSES_EXPORT()
125 offset = (limit - numcols) / 2; in NCURSES_EXPORT()
128 offset = limit - numcols; in NCURSES_EXPORT()
140 if (offset < limit) { in NCURSES_EXPORT()
143 (size_t) (limit - (offset + numcols))); in NCURSES_EXPORT()
[all …]
/freebsd/sys/dev/evdev/
H A Dcdev.c399 int ret, len, limit, type_num; in evdev_ioctl() local
579 limit = MIN(strlen(evdev->ev_name) + 1, len); in evdev_ioctl()
580 memcpy(data, evdev->ev_name, limit); in evdev_ioctl()
581 td->td_retval[0] = limit; in evdev_ioctl()
588 limit = MIN(strlen(evdev->ev_shortname) + 1, len); in evdev_ioctl()
589 memcpy(data, evdev->ev_shortname, limit); in evdev_ioctl()
590 td->td_retval[0] = limit; in evdev_ioctl()
597 limit = MIN(strlen(evdev->ev_serial) + 1, len); in evdev_ioctl()
598 memcpy(data, evdev->ev_serial, limit); in evdev_ioctl()
599 td->td_retval[0] = limit; in evdev_ioctl()
[all …]
/freebsd/contrib/tcsh/nls/russian/
H A Dset242 40 CPU time limit exceeded
60 58 Cputime limit exceeded
61 59 Filesize limit exceeded
92 90 Stack limit exceeded
98 96 exceeded memory size limit
99 97 exceeded data size limit
100 98 exceeded memory size limit of 32KB
106 104 exeeded XMU size limit
107 105 exeeded RLG0 limit
108 106 exeeded RLG1 limit
[all …]
/freebsd/contrib/unbound/sldns/
H A Dparse.c27 sldns_fget_token(FILE *f, char *token, const char *delim, size_t limit) in sldns_fget_token() argument
29 return sldns_fget_token_l(f, token, delim, limit, NULL); in sldns_fget_token()
33 sldns_fget_token_l(FILE *f, char *token, const char *delim, size_t limit, int *line_nr) in sldns_fget_token_l() argument
140 if (limit > 0 && (i+1 >= limit || (size_t)(t-token)+1 >= limit)) { in sldns_fget_token_l()
179 if (limit > 0 && (i+1 >= limit || (size_t)(t-token)+1 >= limit)) { in sldns_fget_token_l()
280 sldns_bget_token(sldns_buffer *b, char *token, const char *delim, size_t limit) in sldns_bget_token() argument
282 return sldns_bget_token_par(b, token, delim, limit, NULL, NULL); in sldns_bget_token()
287 size_t limit, int* par, const char* skipw) in sldns_bget_token_par() argument
373 if (limit > 0 && (i+1 >= limit || (size_t)(t-token)+1 >= limit)) { in sldns_bget_token_par()
400 if (limit > 0 && (i+1 >= limit || (size_t)(t-token)+1 >= limit)) { in sldns_bget_token_par()
/freebsd/contrib/tcsh/nls/ukrainian/
H A Dset260 58 Cputime limit exceeded
61 59 Filesize limit exceeded
92 90 Stack limit exceeded
98 96 exceeded memory size limit
99 97 exceeded data size limit
100 98 exceeded memory size limit of 32KB
106 104 exeeded XMU size limit
107 105 exeeded RLG0 limit
108 106 exeeded RLG1 limit
109 107 exeeded RLG2 limit
[all …]
/freebsd/contrib/tcsh/nls/C/
H A Dset242 40 CPU time limit exceeded
60 58 Cputime limit exceeded
61 59 Filesize limit exceeded
92 90 Stack limit exceeded
98 96 exceeded memory size limit
99 97 exceeded data size limit
100 98 exceeded memory size limit of 32KB
106 104 exeeded XMU size limit
107 105 exeeded RLG0 limit
108 106 exeeded RLG1 limit
[all …]

12345678910>>...37