Home
last modified time | relevance | path

Searched refs:parse_boolean (Results 1 – 25 of 103) sorted by relevance

12345

/systemd-251/src/test/
Dtest-parse-util.c15 TEST(parse_boolean) { in TEST() argument
16 assert_se(parse_boolean("1") == 1); in TEST()
17 assert_se(parse_boolean("y") == 1); in TEST()
18 assert_se(parse_boolean("Y") == 1); in TEST()
19 assert_se(parse_boolean("yes") == 1); in TEST()
20 assert_se(parse_boolean("YES") == 1); in TEST()
21 assert_se(parse_boolean("true") == 1); in TEST()
22 assert_se(parse_boolean("TRUE") == 1); in TEST()
23 assert_se(parse_boolean("on") == 1); in TEST()
24 assert_se(parse_boolean("ON") == 1); in TEST()
[all …]
/systemd-251/src/core/
Dunit-serialize.c329 … } else if (MATCH_DESERIALIZE("condition-result", l, v, parse_boolean, u->condition_result)) in unit_deserialize()
332 else if (MATCH_DESERIALIZE("assert-result", l, v, parse_boolean, u->assert_result)) in unit_deserialize()
335 else if (MATCH_DESERIALIZE("transient", l, v, parse_boolean, u->transient)) in unit_deserialize()
338 else if (MATCH_DESERIALIZE("in-audit", l, v, parse_boolean, u->in_audit)) in unit_deserialize()
341 …else if (MATCH_DESERIALIZE("exported-invocation-id", l, v, parse_boolean, u->exported_invocation_i… in unit_deserialize()
344 …else if (MATCH_DESERIALIZE("exported-log-level-max", l, v, parse_boolean, u->exported_log_level_ma… in unit_deserialize()
347 …else if (MATCH_DESERIALIZE("exported-log-extra-fields", l, v, parse_boolean, u->exported_log_extra… in unit_deserialize()
350 …else if (MATCH_DESERIALIZE("exported-log-rate-limit-interval", l, v, parse_boolean, u->exported_lo… in unit_deserialize()
353 …else if (MATCH_DESERIALIZE("exported-log-rate-limit-burst", l, v, parse_boolean, u->exported_log_r… in unit_deserialize()
379 … } else if (MATCH_DESERIALIZE("cgroup-realized", l, v, parse_boolean, u->cgroup_realized)) in unit_deserialize()
Dmanager-serialize.c367 b = parse_boolean(val); in manager_deserialize()
376 b = parse_boolean(val); in manager_deserialize()
385 b = parse_boolean(val); in manager_deserialize()
394 b = parse_boolean(val); in manager_deserialize()
403 b = parse_boolean(val); in manager_deserialize()
/systemd-251/src/journal/
Djournald-stream.c406 r = parse_boolean(p); in stdout_stream_line()
415 r = parse_boolean(p); in stdout_stream_line()
424 r = parse_boolean(p); in stdout_stream_line()
433 r = parse_boolean(p); in stdout_stream_line()
789 r = parse_boolean(level_prefix); in stdout_stream_load()
795 r = parse_boolean(forward_to_syslog); in stdout_stream_load()
801 r = parse_boolean(forward_to_kmsg); in stdout_stream_load()
807 r = parse_boolean(forward_to_console); in stdout_stream_load()
Djournald-console.c28 && parse_boolean(p) > 0; in prefix_timestamp()
/systemd-251/src/getty-generator/
Dgetty-generator.c151 r = value ? parse_boolean(value) : 1; in parse_proc_cmdline_item()
175 r = parse_boolean(getty_auto); in run()
/systemd-251/src/nspawn/
Dnspawn-settings.c520 r = parse_boolean(rvalue); in config_parse_boot()
565 r = parse_boolean(rvalue); in config_parse_pid2()
610 r = parse_boolean(rvalue); in config_parse_private_users()
818 r = parse_boolean(s); in parse_link_journal()
899 r = parse_boolean(rvalue); in config_parse_userns_chown()
/systemd-251/src/cgls/
Dcgls.c147 r = parse_boolean(optarg); in parse_argv()
155 r = parse_boolean(optarg); in parse_argv()
/systemd-251/src/sysupdate/
Dsysupdate-pattern.c345 r = parse_boolean(t); in pattern_match()
354 r = parse_boolean(t); in pattern_match()
363 r = parse_boolean(t); in pattern_match()
/systemd-251/src/random-seed/
Drandom-seed.c56 r = parse_boolean(e); in may_credit()
77 r = parse_boolean(creditable); in may_credit()
/systemd-251/src/shared/
Dapparmor-util.c18 parse_boolean(p) > 0; in mac_apparmor_use()
Dparse-argument.c19 r = parse_boolean(s); in parse_boolean_argument()
/systemd-251/src/systemctl/
Dsystemctl-service-watchdogs.c33 b = parse_boolean(argv[1]); in verb_service_watchdogs()
/systemd-251/src/analyze/
Danalyze-service-watchdogs.c31 b = parse_boolean(argv[1]); in verb_service_watchdogs()
/systemd-251/src/network/
Dnetworkd-can.c284 r = parse_boolean(rvalue); in config_parse_can_control_mode()
328 r = parse_boolean(rvalue); in config_parse_can_termination()
Dnetworkd-lldp-tx.c123 r = parse_boolean(rvalue); in config_parse_lldp_multicast_mode()
/systemd-251/src/basic/
Dutil.c81 r = parse_boolean(e); in in_initrd()
Dlog.c1276 t = parse_boolean(e); in log_show_color_from_string()
1287 t = parse_boolean(e); in log_show_location_from_string()
1298 t = parse_boolean(e); in log_show_time_from_string()
1309 t = parse_boolean(e); in log_show_tid_from_string()
Dparse-util.h14 int parse_boolean(const char *v) _pure_;
/systemd-251/src/veritysetup/
Dveritysetup-generator.c165 r = value ? parse_boolean(value) : 1; in parse_proc_cmdline_item()
173 r = value ? parse_boolean(value) : 1; in parse_proc_cmdline_item()
/systemd-251/src/libsystemd/sd-network/
Dsd-network.c236 return parse_boolean(s); in sd_network_link_get_required_for_online()
337 return parse_boolean(s); in sd_network_link_get_dns_default_route()
/systemd-251/src/debug-generator/
Ddebug-generator.c65 r = value ? parse_boolean(value) : 1; in parse_proc_cmdline_item()
/systemd-251/src/cryptsetup/
Dcryptsetup.c199 r = parse_boolean(val); in parse_one_option()
246 r = parse_boolean(val); in parse_one_option()
394 r = parse_boolean(val); in parse_one_option()
404 r = parse_boolean(val); in parse_one_option()
416 r = parse_boolean(val); in parse_one_option()
/systemd-251/src/libsystemd/sd-login/
Dsd-login.c456 return parse_boolean(s); in sd_session_is_active()
475 return parse_boolean(s); in sd_session_is_remote()
734 return parse_boolean(s); in seat_get_can()
/systemd-251/src/journal-remote/
Djournal-gatewayd.c379 r = parse_boolean(value); in request_parse_arguments_iterator()
395 r = parse_boolean(value); in request_parse_arguments_iterator()
409 r = parse_boolean(value); in request_parse_arguments_iterator()

12345