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

1234567891011>>

/freebsd-9.3-release/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-9.3-release/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);
56 limit.rlim_max = limit.rlim_cur = (rlim_t)arg * 512;
59 if (setrlimit(RLIMIT_FSIZE, &limit) == -1)
/freebsd-9.3-release/usr.sbin/bluetooth/btpand/
H A Dsdp.c52 * _sdp_match_uuid16(ptr, limit, uuid)
56 * limit is the first address past the end of valid data.
59 _sdp_match_uuid16(uint8_t **ptr, uint8_t *limit, uint16_t uuid) argument
67 if (!_sdp_get_uuid(&p, limit, &u2)
76 * _sdp_get_uuid(ptr, limit, uuid)
80 * limit is the first address past the end of valid data.
83 _sdp_get_uuid(uint8_t **ptr, uint8_t *limit, uuid_t *uuid) argument
87 if (p + 1 > limit)
92 if (p + 2 > limit)
101 if (p + 4 > limit)
133 _sdp_get_seq(uint8_t **ptr, uint8_t *limit, uint8_t **seq) argument
185 _sdp_get_uint16(uint8_t **ptr, uint8_t *limit, uint16_t *value) argument
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Support/
H A DMemoryObject.cpp20 uint64_t limit = getBase() + getExtent(); local
22 if (current + size > limit)
/freebsd-9.3-release/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-9.3-release/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) \
H A Datt.h39 { size_t i = 0, limit = (SIZE); \
40 while (i < limit) \
/freebsd-9.3-release/contrib/ncurses/ncurses/base/
H A Dlib_slkset.c56 int limit; local
73 limit = MAX_SKEY_LEN(SP->slk_format);
92 if (wcwidth(wc) + numcols > limit)
103 if (numcols > limit)
104 numcols = limit;
114 (unsigned) (limit +
125 offset = (limit - numcols) / 2;
128 offset = limit - numcols;
140 if (offset < limit) {
143 (unsigned) (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-9.3-release/contrib/cvs/lib/
H A Dgetline.c49 getstr (lineptr, n, stream, terminator, offset, limit)
55 int limit;
87 if (limit == 0)
93 /* If limit is negative, then we shouldn't pay attention to
95 if (limit > 0)
96 limit--;
167 getline_safe (lineptr, n, stream, limit)
171 int limit;
173 return getstr (lineptr, n, stream, '\n', 0, limit);
H A Dgetline.h18 int limit));
21 int _terminator, int _offset, int limit));
/freebsd-9.3-release/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-9.3-release/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-9.3-release/contrib/bind9/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, size_t 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-9.3-release/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-9.3-release/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-9.3-release/contrib/ncurses/ncurses/trace/
H A Dtrace_xnames.c46 int limit = tp->ext_Booleans + tp->ext_Numbers + tp->ext_Strings; local
48 if (limit) {
54 limit,
57 for (n = 0; n < limit; n++) {
/freebsd-9.3-release/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-9.3-release/usr.bin/procstat/
H A Dprocstat_rlimit.c70 humanize_rlimit(int indx, rlim_t limit) argument
75 if (limit == RLIM_INFINITY)
78 scale = humanize_number(buf, sizeof(buf) - 1, (int64_t)limit,
80 (void)humanize_number(buf, sizeof(buf) - 1, (int64_t)limit,
/freebsd-9.3-release/contrib/xz/src/liblzma/check/
H A Dcrc64_fast.c44 const uint8_t *const limit = buf + (size & ~(size_t)(3)); local
47 while (buf < limit) {
/freebsd-9.3-release/usr.bin/unexpand/
H A Dunexpand.c118 int dcol, doneline, limit, n, ocol, width; local
121 limit = nstops == 1 ? INT_MAX : tabstops[nstops - 1] - 1;
126 if (++dcol >= limit)
138 if (n < nstops - 1 && tabstops[n] - 1 < limit) {
159 while (ocol < dcol && n < nstops && ocol < limit) {
166 while (ocol < dcol && ocol < limit) {
179 } else if (ch != ' ' || dcol > limit) {
189 if (!all || dcol >= limit) {
/freebsd-9.3-release/contrib/binutils/gas/
H A Dinput-scrub.c305 register char *limit; /*->just after last char of buffer. */
344 limit = input_file_give_next_buffer (buffer_start
347 if (limit)
351 *limit = '\0';
352 for (p = limit - 1; *p != '\n' || TC_EOL_IN_INSN (p); --p)
360 limoff = limit - buffer_start;
367 limit = input_file_give_next_buffer (buffer_start + limoff);
369 if (limit == NULL)
379 *limit = '\0';
380 for (p = limit
303 register char *limit; /*->just after last char of buffer. */ local
[all...]
/freebsd-9.3-release/bin/sh/
H A Dmiscbltin.c384 { "swap limit", "kbytes", RLIMIT_SWAP, 1024, 'w' },
405 struct rlimit limit; local
453 if (getrlimit(l->cmd, &limit) < 0)
454 error("can't get limit: %s", strerror(errno));
456 val = limit.rlim_cur;
458 val = limit.rlim_max;
478 if (getrlimit(l->cmd, &limit) < 0)
479 error("can't get limit: %s", strerror(errno));
482 limit.rlim_cur = val;
484 limit
[all...]

Completed in 149 milliseconds

1234567891011>>