Searched defs:rl (Results 1 - 11 of 11) sorted by relevance

/systemd/src/test/
H A Dtest-rlimit-util.c29 struct rlimit rl = { local
37 assert_se(rlimit_parse(resource, string, &rl) == ret);
41 assert_se(rl.rlim_cur == soft);
42 assert_se(rl.rlim_max == hard);
44 assert_se(rlimit_format(&rl, &f) >= 0);
48 assert_se(memcmp(&rl, &rl2, sizeof(struct rlimit)) == 0);
H A Dtest-unit-file.c691 struct rlimit * rl[_RLIMIT_MAX] = {}; local
693 assert_se(config_parse_limit(NULL, "fake", 1, "section", 1, "LimitNOFILE", RLIMIT_NOFILE, "55", rl, NULL) >= 0);
694 assert_se(rl[RLIMIT_NOFILE]);
695 assert_se(rl[RLIMIT_NOFILE]->rlim_cur == 55);
696 assert_se(rl[RLIMIT_NOFILE]->rlim_cur == rl[RLIMIT_NOFILE]->rlim_max);
698 assert_se(config_parse_limit(NULL, "fake", 1, "section", 1, "LimitNOFILE", RLIMIT_NOFILE, "55:66", rl, NULL) >= 0);
699 assert_se(rl[RLIMIT_NOFILE]);
700 assert_se(rl[RLIMIT_NOFILE]->rlim_cur == 55);
701 assert_se(rl[RLIMIT_NOFIL
[all...]
/systemd/src/basic/
H A Drlimit-util.c228 int rlimit_format(const struct rlimit *rl, char **ret) { argument
231 assert(rl);
234 if (rl->rlim_cur >= RLIM_INFINITY && rl->rlim_max >= RLIM_INFINITY)
236 else if (rl->rlim_cur >= RLIM_INFINITY)
237 (void) asprintf(&s, "infinity:" RLIM_FMT, rl->rlim_max);
238 else if (rl->rlim_max >= RLIM_INFINITY)
239 (void) asprintf(&s, RLIM_FMT ":infinity", rl->rlim_cur);
240 else if (rl->rlim_cur == rl
[all...]
H A Dfd-util.c209 struct rlimit rl; local
215 assert_se(getrlimit(RLIMIT_NOFILE, &rl) >= 0);
216 for (fd = 3; fd < (int) rl.rlim_max; fd ++) {
H A Dfileio.c686 int load_env_file(FILE *f, const char *fname, const char *newline, char ***rl) { argument
699 *rl = m;
745 int load_env_file_pairs(FILE *f, const char *fname, const char *newline, char ***rl) { argument
758 *rl = m;
/systemd/src/core/
H A Ddbus-execute.c1511 uint64_t rl; local
1514 r = sd_bus_message_read(message, "t", &rl);
1518 if (rl == (uint64_t) -1)
1521 x = (rlim_t) rl;
1523 if ((uint64_t) x != rl)
H A Dload-fragment.c1115 struct rlimit **rl = data, d = {}; local
1133 if (rl[ltype])
1134 *rl[ltype] = d;
1136 rl[ltype] = newdup(struct rlimit, &d, 1);
1137 if (!rl[ltype])
H A Dmain.c1121 struct rlimit *rl; local
1123 rl = newdup(struct rlimit, saved_rlimit, 1);
1124 if (!rl)
1127 arg_default_rlimit[RLIMIT_NOFILE] = rl;
/systemd/src/journal/
H A Djournald-server.c920 int rl, r; local
963 rl = journal_rate_limit_test(s->rate_limit, path, priority & LOG_PRIMASK, available);
964 if (rl == 0)
968 if (rl > 1)
970 LOG_MESSAGE("Suppressed %u messages from %s", rl - 1, path),
/systemd/src/shared/
H A Dbus-util.c1399 int r, rl; local
1467 rl = rlimit_from_string(field);
1468 if (rl >= 0) {
1472 r = rlimit_parse(rl, eq, &l);
2379 struct rlimit *rl; local
2389 rl = *(struct rlimit**) userdata;
2390 if (rl)
2391 x = is_soft ? rl->rlim_cur : rl->rlim_max;
/systemd/src/systemctl/
H A Dsystemctl.c7288 char rl; local
7291 rl = action_to_runlevel();
7292 if (!rl)
7295 request.runlevel = rl;

Completed in 76 milliseconds