Lines Matching refs:limit
44 struct limit {
49 struct rlimit 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.rlim_cur = value;
201 l->limit.rlim_max = value;
206 if(l->limit.rlim_cur > l->limit.rlim_max)
207 l->limit.rlim_cur = l->limit.rlim_max;
208 if(setrlimit(l->resource, &l->limit) != 0)