Home
last modified time | relevance | path

Searched refs:parse_mode (Results 1 – 10 of 10) sorted by relevance

/systemd-251/src/test/
Dtest-parse-util.c75 TEST(parse_mode) { in TEST() argument
78 assert_se(parse_mode("-1", &m) < 0); in TEST()
79 assert_se(parse_mode("+1", &m) < 0); in TEST()
80 assert_se(parse_mode("", &m) < 0); in TEST()
81 assert_se(parse_mode("888", &m) < 0); in TEST()
82 assert_se(parse_mode("77777", &m) < 0); in TEST()
84 assert_se(parse_mode("544", &m) >= 0 && m == 0544); in TEST()
85 assert_se(parse_mode("0544", &m) >= 0 && m == 0544); in TEST()
86 assert_se(parse_mode("00544", &m) >= 0 && m == 0544); in TEST()
87 assert_se(parse_mode("777", &m) >= 0 && m == 0777); in TEST()
[all …]
/systemd-251/src/basic/
Dparse-util.h16 int parse_mode(const char *s, mode_t *ret);
Dparse-util.c71 int parse_mode(const char *s, mode_t *ret) { in parse_mode() function
Dprocess-util.c699 return parse_mode(m, ret); in get_process_umask()
/systemd-251/src/sysupdate/
Dsysupdate-pattern.c291 r = parse_mode(t, &m); in pattern_match()
/systemd-251/src/udev/
Dudev-rules.c747 r = parse_mode(attr, &mode); in parse_token()
921 if (parse_mode(value, &mode) >= 0) in parse_token()
2064 r = parse_mode(mode_str, &event->mode); in udev_rule_apply_token_to_event()
/systemd-251/src/shared/
Dconf-parser.c774 DEFINE_PARSER(mode, mode_t, parse_mode);
Dbus-unit-util.c135 DEFINE_BUS_APPEND_PARSE_PTR("u", uint32_t, mode_t, parse_mode);
/systemd-251/src/home/
Dhomectl.c3017 r = parse_mode(optarg, &mode); in parse_argv()
3105 r = parse_mode(optarg, &m); in parse_argv()
/systemd-251/src/tmpfiles/
Dtmpfiles.c3217 r = parse_mode(mm, &m); in parse_line()