Lines Matching defs:ret
56 static int rlimit_parse_u64(const char *val, rlim_t *ret) {
61 assert(ret);
64 *ret = RLIM_INFINITY;
77 *ret = (rlim_t) u;
81 static int rlimit_parse_size(const char *val, rlim_t *ret) {
86 assert(ret);
89 *ret = RLIM_INFINITY;
99 *ret = (rlim_t) u;
103 static int rlimit_parse_sec(const char *val, rlim_t *ret) {
109 assert(ret);
112 *ret = RLIM_INFINITY;
120 *ret = RLIM_INFINITY;
128 *ret = (rlim_t) u;
132 static int rlimit_parse_usec(const char *val, rlim_t *ret) {
137 assert(ret);
140 *ret = RLIM_INFINITY;
148 *ret = RLIM_INFINITY;
152 *ret = (rlim_t) t;
156 static int (*const rlimit_parse_table[_RLIMIT_MAX])(const char *val, rlim_t *ret) = {
175 int rlimit_parse_one(int resource, const char *val, rlim_t *ret) {
177 assert(ret);
184 return rlimit_parse_table[resource](val, ret);
187 int rlimit_parse(int resource, const char *val, struct rlimit *ret) {
193 assert(ret);
220 *ret = (struct rlimit) {
228 int rlimit_format(const struct rlimit *rl, char **ret) {
232 assert(ret);
248 *ret = s;