Lines Matching refs:limit
44 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()
208 if(setrlimit(l->resource, &l->limit) != 0) in read_limits_conf()