Lines Matching defs:limit
135 struct rlimit limit;
194 bi_errorf("invalid limit: %s", wp[0]);
204 if (getrlimit(l->gcmd, &limit) == -1) {
205 bi_errorf("can't get limit: %s",
210 val = limit.rlim_cur;
212 val = limit.rlim_max;
237 if (getrlimit(l->gcmd, &limit) == -1) {
238 bi_errorf("can't get limit: %s", strerror(errno));
243 limit.rlim_cur = val;
245 limit.rlim_max = val;
246 if (setrlimit(l->scmd, &limit) < 0) {
248 bi_errorf("exceeds allowable limit");
250 bi_errorf("bad limit: %s",
256 val = limit.rlim_cur;
258 val = limit.rlim_max;
266 bi_errorf("can't change limit");
269 bi_errorf("bad limit: %s", strerror(errno));