Searched defs:class (Results 1 - 21 of 21) sorted by relevance

/systemd/src/resolve/
H A Ddns-type.c78 bool dns_class_is_pseudo(uint16_t class) { argument
79 return class == DNS_TYPE_ANY;
110 bool dns_class_is_valid_rr(uint16_t class) { argument
111 return class != DNS_CLASS_ANY;
213 const char *dns_class_to_string(uint16_t class) { argument
215 switch (class) {
H A Dresolved-dns-trust-anchor.c192 _cleanup_free_ char *domain = NULL, *class = NULL, *type = NULL; local
210 r = extract_many_words(&p, NULL, 0, &class, &type, NULL);
212 return log_warning_errno(r, "Unable to parse class and type in line %s:%u: %m", path, line);
214 log_warning("Missing class or type in line %s:%u", path, line);
218 if (!strcaseeq(class, "IN")) {
219 log_warning("RR class %s is not supported, ignoring line %s:%u.", class, path, line);
654 a = hashmap_get(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(revoked_dnskey->key->class, DNS_TYPE_DS, DNS_RESOURCE_KEY_NAME(revoked_dnskey->key)));
H A Dresolve-tool.c331 static int resolve_record(sd_bus *bus, const char *name, uint16_t class, uint16_t type) { argument
345 log_debug("Resolving %s %s %s (interface %s).", name, dns_class_to_string(class), dns_type_to_string(type), isempty(ifname) ? "*" : ifname);
357 r = sd_bus_message_append(req, "isqqt", arg_ifindex, name, class, type, arg_flags);
445 uint16_t type = 0, class = 0; local
481 f = startswith_no_case(q, "class=");
486 if (class != 0) {
487 log_error("DNS class specified twice.");
498 log_error("Unknown DNS class %s.", t);
502 class = r;
553 if (class
[all...]
H A Dresolved-bus.c451 rr->key->class,
544 uint16_t class, type; local
555 r = sd_bus_message_read(message, "isqqt", &ifindex, &name, &class, &type, &flags);
578 key = dns_resource_key_new(class, type, name);
H A Dresolved-dns-packet.c576 r = dns_packet_append_uint16(p, k->class, NULL);
1525 uint16_t class, type; local
1543 r = dns_packet_read_uint16(p, &class, NULL);
1550 if (type != DNS_TYPE_OPT && (class & MDNS_RR_CACHE_FLUSH)) {
1551 class &= ~MDNS_RR_CACHE_FLUSH;
1556 key = dns_resource_key_new_consume(class, type, name);
1599 if (!dns_class_is_valid_rr(key->class)||
H A Dresolved-dns-rr.c34 DnsResourceKey* dns_resource_key_new(uint16_t class, uint16_t type, const char *name) { argument
46 k->class = class;
63 return dns_resource_key_new(key->class, key->type, cname->cname.name);
74 k = dns_resource_key_new_consume(key->class, key->type, destination);
102 new_key = dns_resource_key_new_consume(key->class, key->type, joined);
112 DnsResourceKey* dns_resource_key_new_consume(uint16_t class, uint16_t type, char *name) { argument
122 k->class = class;
165 return key->class
392 dns_resource_record_new_full(uint16_t class, uint16_t type, const char *name) argument
[all...]
/systemd/src/libsystemd/sd-login/
H A Dtest-login.c37 char *seat, *type, *class, *display, *remote_user, *remote_host, *display_session, *cgroup; local
110 assert_se(sd_session_get_class(session, &class) >= 0);
111 printf("class = %s\n", class);
112 free(class);
H A Dsd-login.c603 _public_ int sd_session_get_class(const char *session, char **class) { argument
604 return session_get_string(session, "CLASS", class);
883 _public_ int sd_machine_get_class(const char *machine, char **class) { argument
889 assert_return(class, -EINVAL);
900 *class = c;
/systemd/src/backlight/
H A Dbacklight.c70 value = udev_device_get_sysattr_value(parent, "class");
72 unsigned long class = 0; local
74 if (safe_atolu(value, &class) < 0) {
75 log_warning("Cannot parse PCI class %s of device %s:%s.",
81 if (class == 0x30000)
/systemd/src/login/
H A Dpam_systemd.c52 const char **class,
62 if (startswith(argv[i], "class=")) {
63 if (class)
64 *class = argv[i] + 6;
229 *type = NULL, *class = NULL, local
307 class = pam_getenv(handle, "XDG_SESSION_CLASS");
308 if (isempty(class))
309 class = getenv("XDG_SESSION_CLASS");
310 if (isempty(class))
311 class
49 parse_argv( pam_handle_t *handle, int argc, const char **argv, const char **class, const char **type, bool *debug) argument
[all...]
H A Dloginctl.c295 char *class; member in struct:SessionStatusInfo
328 free(info->class);
430 { "Class", "s", NULL, offsetof(SessionStatusInfo, class) },
513 if (i.class)
514 printf("; class %s", i.class);
520 if (i.class)
521 printf("; class %s", i.class);
524 } else if (i.class)
[all...]
H A Dlogind-session.c200 if (s->class >= 0)
201 fprintf(f, "CLASS=%s\n", session_class_to_string(s->class));
320 *class = NULL, local
347 "CLASS", &class,
424 if (class) {
427 c = session_class_from_string(class);
429 s->class = c;
574 log_struct(s->class == SESSION_BACKGROUND ? LOG_DEBUG : LOG_INFO,
679 log_struct(s->class == SESSION_BACKGROUND ? LOG_DEBUG : LOG_INFO,
H A Dlogind-dbus.c576 const char *service, *type, *class, *cseat, *tty, *display, *remote_user, *remote_host, *desktop; local
597 r = sd_bus_message_read(message, "uusssssussbss", &uid, &leader, &service, &type, &class, &desktop, &cseat, &vtnr, &tty, &display, &remote, &remote_user, &remote_host);
614 if (isempty(class))
617 c = session_class_from_string(class);
619 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid session class %s", class);
725 m->seat0->positions[vtnr]->class != SESSION_GREETER)
770 session->class = c;
1350 if (session->class == SESSION_USER &&
/systemd/src/machine/
H A Dmachine.c46 Machine* machine_new(Manager *manager, MachineClass class, const char *name) { argument
50 assert(class < _MACHINE_CLASS_MAX);
53 /* Passing class == _MACHINE_CLASS_INVALID here is fine. It
65 if (class != MACHINE_HOST) {
71 m->class = class;
190 if (m->class != _MACHINE_CLASS_INVALID)
191 fprintf(f, "CLASS=%s\n", machine_class_to_string(m->class));
261 _cleanup_free_ char *realtime = NULL, *monotonic = NULL, *id = NULL, *leader = NULL, *class = NULL, *netif = NULL; local
276 "CLASS", &class,
[all...]
H A Dmachined-dbus.c256 strempty(machine_class_to_string(machine->class)),
271 const char *name, *service, *class, *root_directory; local
301 r = sd_bus_message_read(message, "ssus", &service, &class, &leader, &root_directory);
320 if (isempty(class))
323 c = machine_class_from_string(class);
325 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid machine class parameter");
356 m->class = c;
900 if (machine->class != MACHINE_CONTAINER)
955 if (machine->class != MACHINE_CONTAINER)
1018 if (machine->class !
[all...]
H A Dmachinectl.c115 const char *class; member in struct:MachineInfo
131 const char *name, *class, *service, *object; local
158 while ((r = sd_bus_message_read(reply, "(ssso)", &name, &class, &service, &object)) > 0) {
168 machines[n_machines].class = class;
175 l = strlen(class);
203 (int) max_class, machines[j].class,
497 char *class; member in struct:MachineStatusInfo
510 free(info->class);
557 if (i->class)
[all...]
/systemd/src/nss-mymachines/
H A Dnss-mymachines.c93 _cleanup_free_ char *class = NULL; local
107 r = sd_machine_get_class(name, &class);
110 if (!streq(class, "container")) {
243 _cleanup_free_ char *class = NULL; local
265 r = sd_machine_get_class(name, &class);
268 if (!streq(class, "container")) {
/systemd/src/basic/
H A Dutil.c502 d = opendir("/sys/class/power_supply");
616 _cleanup_free_ char *s = NULL, *class = NULL; local
628 r = parse_env_file(p, NEWLINE, "LEADER", &s, "CLASS", &class, NULL);
636 if (!streq_ptr(class, "container"))
/systemd/src/bus-proxyd/
H A Dbus-xml-policy.c318 if (i->class != _POLICY_ITEM_CLASS_UNSET && ic != i->class) {
323 i->class = ic;
361 if (i->class == _POLICY_ITEM_CLASS_UNSET)
362 i->class = POLICY_ITEM_RECV;
566 switch (i->class) {
662 PolicyItemClass class; member in struct:policy_check_filter
684 switch (i->class) {
751 if (i->class != filter->class
[all...]
/systemd/src/journal/
H A Dsd-journal.c1681 _cleanup_free_ char *root = NULL, *class = NULL; local
1692 r = parse_env_file(p, NEWLINE, "ROOT", &root, "CLASS", &class, NULL);
1700 if (!streq_ptr(class, "container"))
/systemd/src/systemctl/
H A Dsystemctl.c1800 _cleanup_free_ char *class = NULL; local
1805 sd_machine_get_class(*i, &class);
1806 if (!streq_ptr(class, "container"))
2980 _cleanup_free_ char *type = NULL, *tty = NULL, *seat = NULL, *user = NULL, *service = NULL, *class = NULL; local
2985 if (sd_session_get_class(*s, &class) < 0 || !streq(class, "user"))

Completed in 6829 milliseconds