Lines Matching defs:limit
141 /* limit resource / read command */
154 /* limit name */
267 struct rlimit limit;
284 bi_errorf("invalid %s limit: %s", l->name, v);
295 if (getrlimit(l->resource, &limit) < 0) {
297 bi_errorf("limit %s could not be read, contact the mksh developers: %s",
301 limit.rlim_cur = RLIM_INFINITY;
302 limit.rlim_max = RLIM_INFINITY;
305 limit.rlim_cur = val;
307 limit.rlim_max = val;
308 if (!setrlimit(l->resource, &limit))
321 bi_errorf("%s exceeds allowable %s limit", v, l->name);
323 bi_errorf("bad %s limit: %s", l->name, cstrerror(errno));
332 struct rlimit limit;
334 if (getrlimit(l->resource, &limit))
344 val = limit.rlim_cur;
346 val = limit.rlim_max;