/systemd/src/journal/ |
H A D | audit-type.h | 24 const char *audit_type_to_string(int type); 28 #define audit_type_name_alloca(type) \ 31 _s_ = audit_type_to_string(type); \ 34 sprintf((char*) _s_, "AUDIT%04i", type); \
|
H A D | test-compress-benchmark.c | 56 static char* make_buf(size_t count, const char *type) { argument 63 if (streq(type, "zeros")) 65 else if (streq(type, "simple")) 68 else if (streq(type, "random")) { 87 static void test_compress_decompress(const char* label, const char* type, argument 97 text = make_buf(MAX_SIZE, type); 109 log_debug("%s %zu %zu", type, i, size); 115 assert_se(r == 0 || (size < 2048 && r == -ENOBUFS) || streq(type, "random")); 147 label, type, total, dt,
|
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-types.c | 62 uint16_t type; member in struct:NLType 76 /* fake array to avoid .types==NULL, which denotes invalid type-systems */ 85 [VETH_INFO_PEER] = { .type = NETLINK_TYPE_NESTED, .type_system = &rtnl_link_type_system, .size = sizeof(struct ifinfomsg) }, 89 [IFLA_IPVLAN_MODE] = { .type = NETLINK_TYPE_U16 }, 93 [IFLA_MACVLAN_MODE] = { .type = NETLINK_TYPE_U32 }, 94 [IFLA_MACVLAN_FLAGS] = { .type = NETLINK_TYPE_U16 }, 98 [IFLA_BR_FORWARD_DELAY] = { .type = NETLINK_TYPE_U32 }, 99 [IFLA_BR_HELLO_TIME] = { .type = NETLINK_TYPE_U32 }, 100 [IFLA_BR_MAX_AGE] = { .type = NETLINK_TYPE_U32 }, 101 [IFLA_BR_AGEING_TIME] = { .type 533 type_get_type(const NLType *type) argument 538 type_get_size(const NLType *type) argument 566 type_system_get_type(const NLTypeSystem *type_system, const NLType **ret, uint16_t type) argument 586 type_system_get_type_system(const NLTypeSystem *type_system, const NLTypeSystem **ret, uint16_t type) argument 600 type_system_get_type_system_union(const NLTypeSystem *type_system, const NLTypeSystemUnion **ret, uint16_t type) argument 615 int type; local [all...] |
H A D | netlink-util.h | 30 bool rtnl_message_type_is_link(uint16_t type); 31 bool rtnl_message_type_is_addr(uint16_t type); 32 bool rtnl_message_type_is_route(uint16_t type); 33 bool rtnl_message_type_is_neigh(uint16_t type);
|
H A D | netlink-types.h | 58 uint16_t type_get_type(const NLType *type); 59 size_t type_get_size(const NLType *type); 60 void type_get_type_system(const NLType *type, const NLTypeSystem **ret); 61 void type_get_type_system_union(const NLType *type, const NLTypeSystemUnion **ret); 64 int type_system_get_type(const NLTypeSystem *type_system, const NLType **ret, uint16_t type); 65 int type_system_get_type_system(const NLTypeSystem *type_system, const NLTypeSystem **ret, uint16_t type); 66 int type_system_get_type_system_union(const NLTypeSystem *type_system, const NLTypeSystemUnion **ret, uint16_t type);
|
H A D | netlink-message.c | 65 int message_new(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t type) { argument 71 r = type_system_get_type(&type_system_root, &nl_type, type); 93 m->hdr->nlmsg_type = type; 142 int sd_netlink_message_get_type(sd_netlink_message *m, uint16_t *type) { argument 144 assert_return(type, -EINVAL); 146 *type = m->hdr->nlmsg_type; 168 static int add_rtattr(sd_netlink_message *m, unsigned short type, const void *data, size_t data_length) { argument 206 rta->rta_type = type; 209 /* we don't deal with the case where the user lies about the type 230 const NLType *type; local 247 sd_netlink_message_append_string(sd_netlink_message *m, unsigned short type, const char *data) argument 273 sd_netlink_message_append_flag(sd_netlink_message *m, unsigned short type) argument 291 sd_netlink_message_append_u8(sd_netlink_message *m, unsigned short type, uint8_t data) argument 309 sd_netlink_message_append_u16(sd_netlink_message *m, unsigned short type, uint16_t data) argument 326 sd_netlink_message_append_u32(sd_netlink_message *m, unsigned short type, uint32_t data) argument 343 sd_netlink_message_append_data(sd_netlink_message *m, unsigned short type, const void *data, size_t len) argument 356 sd_netlink_message_append_in_addr(sd_netlink_message *m, unsigned short type, const struct in_addr *data) argument 374 sd_netlink_message_append_in6_addr(sd_netlink_message *m, unsigned short type, const struct in6_addr *data) argument 392 sd_netlink_message_append_ether_addr(sd_netlink_message *m, unsigned short type, const struct ether_addr *data) argument 410 sd_netlink_message_append_cache_info(sd_netlink_message *m, unsigned short type, const struct ifa_cacheinfo *info) argument 428 sd_netlink_message_open_container(sd_netlink_message *m, unsigned short type) argument 475 sd_netlink_message_open_container_union(sd_netlink_message *m, unsigned short type, const char *key) argument 518 netlink_message_read_internal(sd_netlink_message *m, unsigned short type, void **data, bool *net_byteorder) argument 544 sd_netlink_message_read_string(sd_netlink_message *m, unsigned short type, const char **data) argument 566 sd_netlink_message_read_u8(sd_netlink_message *m, unsigned short type, uint8_t *data) argument 588 sd_netlink_message_read_u16(sd_netlink_message *m, unsigned short type, uint16_t *data) argument 615 sd_netlink_message_read_u32(sd_netlink_message *m, unsigned short type, uint32_t *data) argument 642 sd_netlink_message_read_ether_addr(sd_netlink_message *m, unsigned short type, struct ether_addr *data) argument 664 sd_netlink_message_read_cache_info(sd_netlink_message *m, unsigned short type, struct ifa_cacheinfo *info) argument 686 sd_netlink_message_read_in_addr(sd_netlink_message *m, unsigned short type, struct in_addr *data) argument 708 sd_netlink_message_read_in6_addr(sd_netlink_message *m, unsigned short type, struct in6_addr *data) argument 742 unsigned short type; local 770 uint16_t type; local 905 uint16_t type; local [all...] |
H A D | netlink-util.c | 119 bool rtnl_message_type_is_neigh(uint16_t type) { argument 120 switch (type) { 130 bool rtnl_message_type_is_route(uint16_t type) { argument 131 switch (type) { 141 bool rtnl_message_type_is_link(uint16_t type) { argument 142 switch (type) { 153 bool rtnl_message_type_is_addr(uint16_t type) { argument 154 switch (type) {
|
/systemd/src/basic/ |
H A D | string-table.h | 36 #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,scope) \ 37 scope const char *name##_to_string(type i) { \ 38 if (i < 0 || i >= (type) ELEMENTSOF(name##_table)) \ 43 #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name,type,scope) \ 44 scope type name##_from_string(const char *s) { \ 45 return (type) string_table_lookup(name##_table, ELEMENTSOF(name##_table), s); \ 48 #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_WITH_BOOLEAN(name,type,yes,scope) \ 49 scope type name##_from_string(const char *s) { \ 53 return (type) 0; \ 56 return (type) string_table_looku [all...] |
/systemd/src/resolve/ |
H A D | dns-type.c | 22 #include "dns-type.h" 27 uint16_t type; member in struct:__anon221 58 bool dns_type_is_pseudo(uint16_t type) { argument 60 /* Checks whether the specified type is a "pseudo-type". What 61 * a "pseudo-type" precisely is, is defined only very weakly, 64 * cached. We use this list primarily to validate NSEC type 67 return IN_SET(type, 68 0, /* A Pseudo RR type, according to RFC 2931 */ 82 bool dns_type_is_valid_query(uint16_t type) { argument 99 dns_type_is_valid_rr(uint16_t type) argument 114 dns_type_may_redirect(uint16_t type) argument 133 dns_type_may_wildcard(uint16_t type) argument 148 dns_type_apex_only(uint16_t type) argument 159 dns_type_is_dnssec(uint16_t type) argument 169 dns_type_is_obsolete(uint16_t type) argument [all...] |
H A D | dns-type.h | 127 bool dns_type_is_pseudo(uint16_t type); 128 bool dns_type_is_valid_query(uint16_t type); 129 bool dns_type_is_valid_rr(uint16_t type); 130 bool dns_type_may_redirect(uint16_t type); 131 bool dns_type_is_dnssec(uint16_t type); 132 bool dns_type_is_obsolete(uint16_t type); 133 bool dns_type_may_wildcard(uint16_t type); 134 bool dns_type_apex_only(uint16_t type); 141 const char *dns_type_to_string(int type); 144 const char *dns_class_to_string(uint16_t type); [all...] |
H A D | resolved-conf.h | 29 int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word); 30 int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string);
|
/systemd/src/udev/ |
H A D | udevadm-util.c | 33 char type; local 39 type = 'b'; 41 type = 'c'; 45 return udev_device_new_from_devnum(udev, type, statbuf.st_rdev);
|
H A D | udev-builtin-usb_id.c | 38 const char *type = "generic"; local 42 type = "audio"; 47 type = "hid"; 52 type = "media"; 55 type = "printer"; 58 type = "storage"; 61 type = "hub"; 70 type = "video"; 83 strncpy(to, type, len); 90 const char *type local 121 const char *type = "generic"; local [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-slot.h | 26 sd_bus_slot *bus_slot_allocate(sd_bus *bus, bool floating, BusSlotType type, size_t extra, void *userdata);
|
H A D | bus-introspect.c | 77 static void introspect_write_flags(struct introspect *i, int type, int flags) { argument 81 if (type == _SD_BUS_VTABLE_METHOD && (flags & SD_BUS_VTABLE_METHOD_NO_REPLY)) 84 if (type == _SD_BUS_VTABLE_PROPERTY || type == _SD_BUS_VTABLE_WRITABLE_PROPERTY) { 97 (type == _SD_BUS_VTABLE_METHOD || type == _SD_BUS_VTABLE_WRITABLE_PROPERTY) && 115 fprintf(i->f, " <arg type=\"%.*s\"", (int) l, signature); 130 for (; v->type != _SD_BUS_VTABLE_END; v++) { 136 if (v->type != _SD_BUS_VTABLE_START && (v->flags & SD_BUS_VTABLE_HIDDEN)) 139 switch (v->type) { [all...] |
/systemd/src/shared/ |
H A D | generator.h | 29 const char *type);
|
H A D | condition.c | 57 Condition* condition_new(ConditionType type, const char *parameter, bool trigger, bool negate) { argument 61 assert(type >= 0); 62 assert(type < _CONDITION_TYPE_MAX); 63 assert((!parameter) == (type == CONDITION_NULL)); 69 c->type = type; 106 assert(c->type == CONDITION_KERNEL_COMMAND_LINE); 146 assert(c->type == CONDITION_VIRTUALIZATION); 177 assert(c->type == CONDITION_ARCHITECTURE); 200 assert(c->type [all...] |
/systemd/src/systemd/ |
H A D | sd-netlink.h | 70 int sd_netlink_message_append_string(sd_netlink_message *m, unsigned short type, const char *data); 71 int sd_netlink_message_append_flag(sd_netlink_message *m, unsigned short type); 72 int sd_netlink_message_append_u8(sd_netlink_message *m, unsigned short type, uint8_t data); 73 int sd_netlink_message_append_u16(sd_netlink_message *m, unsigned short type, uint16_t data); 74 int sd_netlink_message_append_u32(sd_netlink_message *m, unsigned short type, uint32_t data); 75 int sd_netlink_message_append_data(sd_netlink_message *m, unsigned short type, const void *data, size_t len); 76 int sd_netlink_message_append_in_addr(sd_netlink_message *m, unsigned short type, const struct in_addr *data); 77 int sd_netlink_message_append_in6_addr(sd_netlink_message *m, unsigned short type, const struct in6_addr *data); 78 int sd_netlink_message_append_ether_addr(sd_netlink_message *m, unsigned short type, const struct ether_addr *data); 79 int sd_netlink_message_append_cache_info(sd_netlink_message *m, unsigned short type, cons [all...] |
H A D | sd-daemon.h | 106 ...) and type (SOCK_DGRAM, SOCK_STREAM, ...), 0 otherwise. If 107 family is 0 a socket family check will not be done. If type is 0 a 108 socket type check will not be done and the call only verifies if 117 int sd_is_socket(int fd, int family, int type, int listening); 122 (either AF_INET or AF_INET6) and the specified type (SOCK_DGRAM, 124 check is not done. If type is 0 a socket type check will not be 131 int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port); 135 the file descriptor is an AF_UNIX socket of the specified type 136 (SOCK_DGRAM, SOCK_STREAM, ...) and path, 0 otherwise. If type i [all...] |
H A D | sd-bus-vtable.h | 58 uint8_t type:8; member in struct:sd_bus_vtable 87 .type = _SD_BUS_VTABLE_START, \ 94 .type = _SD_BUS_VTABLE_METHOD, \ 107 .type = _SD_BUS_VTABLE_SIGNAL, \ 115 .type = _SD_BUS_VTABLE_PROPERTY, \ 125 .type = _SD_BUS_VTABLE_WRITABLE_PROPERTY, \ 136 .type = _SD_BUS_VTABLE_END, \
|
/systemd/src/timesync/ |
H A D | timesyncd-conf.h | 27 int manager_parse_server_string(Manager *m, ServerType type, const char *string);
|
H A D | timesyncd-server.c | 71 ServerType type, 83 n->type = type; 90 if (type == SERVER_SYSTEM) { 93 } else if (type == SERVER_LINK) { 96 } else if (type == SERVER_FALLBACK) { 100 assert_not_reached("Unknown server type"); 104 if (type != SERVER_FALLBACK && 106 m->current_server_name->type == SERVER_FALLBACK) 124 if (n->type 68 server_name_new( Manager *m, ServerName **ret, ServerType type, const char *string) argument [all...] |
/systemd/src/test/ |
H A D | test-json.c | 84 assert_se(v->type == JSON_VARIANT_OBJECT); 99 assert_se(p && p->type == JSON_VARIANT_STRING); 106 assert_se(p && p->type == JSON_VARIANT_ARRAY && p->size == 3); 111 assert_se(q && q->type == JSON_VARIANT_INTEGER && json_variant_integer(q) == (i+1)); 116 assert_se(p && p->type == JSON_VARIANT_OBJECT && p->size == 2); 120 assert_se(q && q->type == JSON_VARIANT_NULL); 131 assert_se(p && p->type == JSON_VARIANT_ARRAY && p->size == 4); 135 assert_se(q && q->type == JSON_VARIANT_INTEGER && json_variant_integer(q) == 1); 139 assert_se(q && q->type == JSON_VARIANT_NULL); 143 assert_se(q && q->type [all...] |
/systemd/src/dbus1-generator/ |
H A D | dbus1-generator.c | 41 const char *type) { 85 if (type) { 86 fprintf(f, "Environment=DBUS_STARTER_BUS_TYPE=%s\n", type); 88 if (streq(type, "system")) 90 else if (streq(type, "session")) { 151 static int add_dbus(const char *path, const char *fname, const char *type) { argument 212 return create_dbus_files(p, name, service, exec, user, type); 215 static int parse_dbus_fragments(const char *path, const char *type) { argument 221 assert(type); 238 q = add_dbus(path, de->d_name, type); 35 create_dbus_files( const char *path, const char *name, const char *service, const char *exec, const char *user, const char *type) argument 285 const char *path, *type, *units; local [all...] |
/systemd/src/core/ |
H A D | transaction.c | 99 j->type = t; 174 if (job_type_is_mergeable(j->type, k->type)) 192 j->unit->id, job_type_to_string(j->type), 193 yes_no(j->type == JOB_STOP && job_is_conflicted_by(j))); 196 k->unit->id, job_type_to_string(k->type), 197 yes_no(k->type == JOB_STOP && job_is_conflicted_by(k))); 199 if (j->type == JOB_STOP) { 206 } else if (k->type == JOB_STOP) { 225 j->unit->id, job_type_to_string(j->type), 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...] |