/systemd/src/network/ |
H A D | networkd-util.c | 62 const char* unit, 93 log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse IPForward= option, ignoring: %s", rvalue); 61 config_parse_address_family_boolean_with_kernel( const char* unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
|
H A D | networkd-fdb.c | 163 const char *unit, 198 log_syntax(unit, LOG_ERR, filename, line, 0, "Not a valid MAC address, ignoring assignment: %s", rvalue); 209 const char *unit, 234 r = config_parse_unsigned(unit, filename, line, section, 162 config_parse_fdb_hwaddr( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 208 config_parse_fdb_vlan_id( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
|
H A D | networkd-netdev-vxlan.c | 137 int config_parse_vxlan_group_address(const char *unit, argument 158 log_syntax(unit, LOG_ERR, filename, line, r, "vxlan multicast group address is invalid, ignoring assignment: %s", rvalue); 163 log_syntax(unit, LOG_ERR, filename, line, 0, "vxlan multicast group incompatible, ignoring assignment: %s", rvalue); 173 int config_parse_port_range(const char *unit, argument 195 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to extract VXLAN port range, ignoring: %s", rvalue); 204 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse VXLAN port range '%s'", word); 209 log_syntax(unit, LOG_ERR, filename, line, r, 215 log_syntax(unit, LOG_ERR, filename, line, r, 226 int config_parse_destination_port(const char *unit, argument 247 log_syntax(unit, LOG_ER [all...] |
H A D | networkd-netdev-bond.c | 330 int config_parse_arp_ip_target_address(const char *unit, argument 355 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse Bond ARP ip target address, ignoring assignment: %s", rvalue); 368 log_syntax(unit, LOG_ERR, filename, line, r, "Bond ARP ip target address is invalid, ignoring assignment: %s", n); 373 log_syntax(unit, LOG_ERR, filename, line, 0, "Bond ARP ip target address is invalid, ignoring assignment: %s", n); 384 log_syntax(unit, LOG_WARNING, filename, line, 0,
|
H A D | networkd-netdev-tunnel.c | 374 int config_parse_tunnel_address(const char *unit, argument 400 log_syntax(unit, LOG_ERR, filename, line, r, "Tunnel address is invalid, ignoring assignment: %s", rvalue); 405 log_syntax(unit, LOG_ERR, filename, line, 0, "Tunnel addresses incompatible, ignoring assignment: %s", rvalue); 416 int config_parse_ipv6_flowlabel(const char* unit, argument 440 r = config_parse_int(unit, filename, line, section, section_line, lvalue, ltype, rvalue, &k, userdata); 445 log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse IPv6 flowlabel option, ignoring: %s", rvalue); 455 int config_parse_encap_limit(const char* unit, argument 478 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse Tunnel Encapsulation Limit option, ignoring: %s", rvalue); 483 log_syntax(unit, LOG_ERR, filename, line, 0, "Invalid Tunnel Encapsulation value, ignoring: %d", k);
|
H A D | networkd-route.c | 539 int config_parse_gateway(const char *unit, argument 573 log_syntax(unit, LOG_ERR, filename, line, r, "Route is invalid, ignoring assignment: %s", rvalue); 584 int config_parse_preferred_src(const char *unit, argument 612 log_syntax(unit, LOG_ERR, filename, line, EINVAL, 624 int config_parse_destination(const char *unit, argument 663 log_syntax(unit, LOG_ERR, filename, line, r, "Destination is invalid, ignoring assignment: %s", address); 668 log_syntax(unit, LOG_ERR, filename, line, 0, "Unknown address family, ignoring assignment: %s", address); 676 log_syntax(unit, LOG_ERR, filename, line, r, "Route destination prefix length is invalid, ignoring assignment: %s", e + 1); 705 int config_parse_route_priority(const char *unit, argument 729 r = config_parse_uint32(unit, filenam 740 config_parse_route_scope(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument [all...] |
/systemd/src/shared/ |
H A D | generator.c | 37 #include "unit-name.h" 43 const char *unit; local 50 unit = strjoina(dir, "/systemd-fsck-root.service"); 51 log_debug("Creating %s", unit); 55 return log_error_errno(r, "Failed to convert device \"%s\" to unit name: %m", what); 57 f = fopen(unit, "wxe"); 59 return log_error_errno(errno, "Failed to create unit file %s: %m", unit); 83 return log_error_errno(r, "Failed to write unit file %s: %m", unit); 166 _cleanup_free_ char *node = NULL, *unit = NULL, *timeout = NULL; local [all...] |
H A D | dropin.c | 40 #include "unit-name.h" 42 int drop_in_file(const char *dir, const char *unit, unsigned level, argument 50 assert(unit); 64 p = strjoin(dir, "/", unit, ".d", NULL); 79 int write_drop_in(const char *dir, const char *unit, unsigned level, argument 86 assert(unit); 90 r = drop_in_file(dir, unit, level, name, &p, &q); 98 int write_drop_in_format(const char *dir, const char *unit, unsigned level, argument 105 assert(unit); 116 return write_drop_in(dir, unit, leve [all...] |
/systemd/src/basic/ |
H A D | cpu-set-util.c | 65 const char *unit, 84 return log_syntax(unit, LOG_ERR, filename, line, r, "Invalid value for %s: %s", lvalue, whole_rvalue); 96 return log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse CPU affinity '%s'", word); 98 return log_syntax(unit, LOG_ERR, filename, line, EINVAL, "CPU out of range '%s' ncpus is %u", word, ncpus); 101 log_syntax(unit, LOG_WARNING, filename, line, 0, "Range '%s' is invalid, %u > %u", word, cpu_lower, cpu_upper); 62 parse_cpu_set_and_warn( const char *rvalue, cpu_set_t **cpu_set, const char *unit, const char *filename, unsigned line, const char *lvalue) argument
|
H A D | extract-word.c | 207 const char *unit, 231 log_syntax(unit, LOG_WARNING, filename, line, EINVAL, "Invalid escape sequences in line, correcting: \"%s\"", rvalue); 237 return log_syntax(unit, LOG_ERR, filename, line, r, "Unbalanced quoting, ignoring: \"%s\"", rvalue); 241 return log_syntax(unit, LOG_ERR, filename, line, r, "Unable to decode word \"%s\", ignoring: %m", rvalue); 202 extract_first_word_and_warn( const char **p, char **ret, const char *separators, ExtractFlags flags, const char *unit, const char *filename, unsigned line, const char *rvalue) argument
|
/systemd/src/machine/ |
H A D | machined.c | 96 _cleanup_free_ char *rd = NULL, *unit = NULL; local 112 unit = strdup("-.slice"); 113 if (!unit) 124 t->unit = unit; 125 rd = unit = NULL; 161 /* Ignore symlinks that map the unit name to the machine */ 162 if (startswith(de->d_name, "unit:"))
|
H A D | machine.h | 75 char *unit; member in struct:Machine
|
/systemd/src/resolve/ |
H A D | resolved-conf.c | 135 const char *unit, 161 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse DNS server string '%s'. Ignoring.", rvalue); 177 const char *unit, 203 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse search domains string '%s'. Ignoring.", rvalue); 134 config_parse_dns_servers( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 176 config_parse_search_domains( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
|
/systemd/src/timesync/ |
H A D | timesyncd-conf.c | 67 const char *unit, 90 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse NTP server string '%s'. Ignoring.", rvalue); 66 config_parse_servers( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument
|
/systemd/src/cgls/ |
H A D | cgls.c | 38 #include "unit-name.h" 126 _cleanup_free_ char *unit = NULL, *path = NULL; local 141 r = parse_env_file(m, NEWLINE, "SCOPE", &unit, NULL); 145 path = unit_dbus_path_from_name(unit); 157 unit_dbus_interface_from_name(unit), 162 return log_error_errno(r, "Failed to query unit control group path: %s", bus_error_message(&error, r));
|
/systemd/src/core/ |
H A D | path.h | 25 #include "unit.h" 38 Unit *unit; member in struct:PathSpec
|
H A D | transaction.c | 28 #include "dbus-unit.h" 46 /* Deletes all jobs associated with a certain unit from the 81 /* This unit has already been marked */ 94 assert(j->unit == other->unit); 187 * another unit in which case we 190 log_unit_debug(j->unit, 192 j->unit->id, job_type_to_string(j->type), 194 log_unit_debug(k->unit, 196 k->unit 745 transaction_add_one_job(Transaction *tr, JobType type, Unit *unit, bool *is_new) argument 826 transaction_add_job_and_dependencies( Transaction *tr, JobType type, Unit *unit, Job *by, bool matters, bool conflicts, bool ignore_requirements, bool ignore_order, sd_bus_error *e) argument [all...] |
/systemd/src/nspawn/ |
H A D | nspawn-settings.c | 115 const char *unit, 135 log_syntax(unit, LOG_ERR, filename, line, r, "Duplicate port specification, ignoring: %s", rvalue); 139 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse host port %s: %m", rvalue); 147 const char *unit, 171 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to extract capability string, ignoring: %s", rvalue); 179 log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse capability, ignoring: %s", word); 194 const char *unit, 214 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse 128bit ID/UUID, ignoring: %s", rvalue); 223 const char *unit, 243 log_syntax(unit, LOG_ER 114 config_parse_expose_port( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 146 config_parse_capability( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 193 config_parse_id128( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 222 config_parse_bind( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 250 config_parse_tmpfs( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 278 config_parse_veth_extra( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 306 config_parse_boot( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument 351 config_parse_pid2( const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata) argument [all...] |
/systemd/src/test/ |
H A D | test-execute.c | 34 #include "unit.h" 39 static void check(Manager *m, Unit *unit, int status_expected, int code_expected) { argument 45 assert_se(unit); 47 service = SERVICE(unit); 48 printf("%s\n", unit->id); 60 log_error("Test timeout when testing %s", unit->id); 70 Unit *unit; local 74 assert_se(manager_load_unit(m, unit_name, NULL, NULL, &unit) >= 0); 75 assert_se(UNIT_VTABLE(unit)->start(unit) > [all...] |
H A D | test-path.c | 33 #include "unit.h" 39 char **tests_path = STRV_MAKE("exists", "existsglobFOOBAR", "changed", "modified", "unit", 75 static void check_stop_unlink(Manager *m, Unit *unit, const char *test_path, const char *service_name) { argument 83 assert_se(unit); 87 assert_se(tmp = strreplace(unit->id, ".path", ".service")); 112 log_error("Test timeout when testing %s", unit->id); 117 assert_se(UNIT_VTABLE(unit)->stop(unit) >= 0); 123 Unit *unit = NULL; local 127 assert_se(manager_load_unit(m, "path-exists.path", NULL, NULL, &unit) > 137 Unit *unit = NULL; local 151 Unit *unit = NULL; local 170 Unit *unit = NULL; local 188 Unit *unit = NULL; local 202 Unit *unit = NULL; local 222 Unit *unit = NULL; local [all...] |
H A D | test-cgroup-util.c | 33 _cleanup_free_ char *unit = NULL; local 36 r = cg_path_decode_unit(path, &unit); 37 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, result, code); 39 assert_se(streq_ptr(unit, result)); 55 _cleanup_free_ char *unit = NULL; local 58 r = cg_path_get_unit(path, &unit); 59 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, result, code); 61 assert_se(streq_ptr(unit, result)); 79 _cleanup_free_ char *unit = NULL; local 82 r = cg_path_get_user_unit(path, &unit); 188 _cleanup_free_ char *path = NULL, *path_shifted = NULL, *session = NULL, *unit = NULL, *user_unit = NULL, *machine = NULL, *slice = NULL; local 262 test_slice_to_path_one(const char *unit, const char *path, int error) argument [all...] |
H A D | test-unit-name.c | 36 #include "unit-name.h" 37 #include "unit-printf.h" 38 #include "unit.h" 143 static void test_unit_name_to_path_one(const char *unit, const char *path, int ret) { argument 146 assert_se(unit_name_to_path(unit, &p) == ret); 219 #define expect(unit, pattern, expected) \ 223 assert_se(unit_full_printf(unit, pattern, &t) >= 0); \ 242 /* normal unit */
|
/systemd/src/fstab-generator/ |
H A D | fstab-generator.c | 42 #include "unit-name.h" 62 _cleanup_free_ char *name = NULL, *unit = NULL, *lnk = NULL; local 81 return log_error_errno(r, "Failed to generate unit name: %m"); 83 unit = strjoin(arg_dest, "/", name, NULL); 84 if (!unit) 87 f = fopen(unit, "wxe"); 90 log_error("Failed to create swap unit file %s, as it already exists. Duplicate entry in /etc/fstab?", unit); 92 log_error_errno(errno, "Failed to create unit file %s: %m", unit); 240 *name = NULL, *unit = NULL, *lnk = NULL, local [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-creds.h | 59 char *unit; member in struct:sd_bus_creds
|
/systemd/src/login/ |
H A D | logind-core.c | 279 _cleanup_free_ char *unit = NULL; local 288 r = cg_pid_get_unit(pid, &unit); 292 s = hashmap_get(m->session_units, unit); 302 _cleanup_free_ char *unit = NULL; local 312 r = cg_pid_get_slice(pid, &unit); 316 u = hashmap_get(m->user_units, unit);
|