/systemd/src/basic/ |
H A D | string-table.c | 23 ssize_t string_table_lookup(const char * const *table, size_t len, const char *key) { argument 26 if (!key) 30 if (streq_ptr(table[i], key))
|
H A D | MurmurHash2.c | 37 uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed ) argument 51 const unsigned char * data = (const unsigned char *)key;
|
H A D | proc-cmdline.c | 45 int parse_proc_cmdline(int (*parse_item)(const char *key, const char *value)) { argument 84 int get_proc_cmdline_key(const char *key, char **value) { argument 90 assert(key); 113 e = startswith(word, key); 123 if (streq(word, key))
|
H A D | gunicode.c | 43 interval_compare (const void *key, const void *elt) argument 45 unichar c = (unichar) (long) (key);
|
H A D | set.h | 47 int set_put(Set *s, const void *key); 50 static inline void *set_get(Set *s, void *key) { argument 51 return internal_hashmap_get(HASHMAP_BASE(s), key); 55 static inline bool set_contains(Set *s, const void *key) { argument 56 return internal_hashmap_contains(HASHMAP_BASE(s), key); 59 static inline void *set_remove(Set *s, const void *key) { argument 60 return internal_hashmap_remove(HASHMAP_BASE(s), key); 77 static inline int set_move_one(Set *s, Set *other, const void *key) { argument 78 return internal_hashmap_move_one(HASHMAP_BASE(s), HASHMAP_BASE(other), key);
|
/systemd/src/hibernate-resume/ |
H A D | hibernate-resume-generator.c | 36 static int parse_proc_cmdline_item(const char *key, const char *value) { argument 38 if (streq(key, "resume") && value) {
|
/systemd/src/libudev/ |
H A D | libudev-hwdb.c | 121 * Lookup a matching device in the hardware database. The lookup key is a 129 const char *key, *value; local 138 SD_HWDB_FOREACH_PROPERTY(hwdb->hwdb, modalias, key, value) { 139 if (udev_list_entry_add(&hwdb->properties_list, key, value) == NULL) {
|
H A D | libudev.c | 111 char *key; local 116 /* find key */ 117 key = line; 118 while (isspace(key[0])) 119 key++; 122 if (key[0] == '#' || key[0] == '\0') 125 /* split key/value */ 126 val = strchr(key, '='); 138 /* terminate key */ [all...] |
/systemd/src/quotacheck/ |
H A D | quotacheck.c | 35 static int parse_proc_cmdline_item(const char *key, const char *value) { argument 37 if (streq(key, "quotacheck.mode") && value) { 50 else if (streq(key, "forcequotacheck") && !value) {
|
/systemd/src/test/ |
H A D | test-siphash24.c | 25 static int do_test(const uint8_t *in, size_t len, const uint8_t *key) { argument 30 out = siphash24(in, len, key); 34 siphash24_init(&state, key); 55 siphash24_init(&state, key); 70 const uint8_t key[16] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, local 76 do_test(in_buf, sizeof(in), key); 78 do_test(in_buf + 1, sizeof(in), key); 80 do_test(in_buf + 2, sizeof(in), key); 82 do_test(in_buf + 4, sizeof(in), key);
|
H A D | test-rbtree.c | 281 unsigned long key; member in struct:__anon313 288 unsigned long key = (unsigned long)k; local 291 return (key < node->key) ? -1 : (key > node->key) ? 1 : 0; 305 nodes[i]->key = i; 315 assert(!c_rbtree_find_entry(&t, compare, (void *)nodes[i]->key, Node, rb)); 317 slot = c_rbtree_find_slot(&t, compare, (void *)nodes[i]->key, &p); 322 assert(nodes[i] == c_rbtree_find_entry(&t, compare, (void *)nodes[i]->key, Nod [all...] |
/systemd/src/core/ |
H A D | bus-endpoint.c | 84 _cleanup_free_ char *key = NULL; local 113 key = strdup(name); 114 if (!key) 117 po->name = key; 120 r = hashmap_put(ep->policy_hash, key, po); 125 key = NULL;
|
H A D | slice.c | 221 static int slice_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) { argument 225 assert(key); 229 if (streq(key, "state")) { 239 log_debug("Unknown serialization key '%s'", key);
|
H A D | target.c | 156 static int target_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) { argument 160 assert(key); 164 if (streq(key, "state")) { 174 log_debug("Unknown serialization key '%s'", key);
|
/systemd/src/debug-generator/ |
H A D | debug-generator.c | 36 static int parse_proc_cmdline_item(const char *key, const char *value) { argument 39 assert(key); 41 if (streq(key, "systemd.mask")) { 57 } else if (streq(key, "systemd.wants")) { 73 } else if (streq(key, "systemd.debug-shell")) { 83 } else if (streq(key, "systemd.unit")) { 95 target = runlevel_to_target(key);
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-slot.c | 149 struct vtable_member key; local 151 key.path = slot->node_vtable.node->path; 152 key.interface = slot->node_vtable.interface; 153 key.member = v->x.method.member; 155 x = hashmap_remove(slot->bus->vtable_methods, &key); 161 struct vtable_member key; local 163 key.path = slot->node_vtable.node->path; 164 key.interface = slot->node_vtable.interface; 165 key.member = v->x.method.member; 168 x = hashmap_remove(slot->bus->vtable_properties, &key); [all...] |
/systemd/src/udev/ |
H A D | udev-builtin.c | 136 int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val) { argument 137 udev_device_add_property(dev, key, val); 140 printf("%s=%s\n", key, val);
|
H A D | udev-builtin-hwdb.c | 39 const char *key, *value; local 52 SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) { 53 if (filter && fnmatch(filter, key, FNM_NOESCAPE) != 0) 56 if (udev_builtin_add_property(dev, test, key, value) < 0) 173 /* query a specific key given as argument */
|
H A D | udevadm-trigger.c | 127 const char *key; local 171 key = keyval(optarg, &val, buf, sizeof(buf)); 172 r = udev_enumerate_add_match_sysattr(udev_enumerate, key, val); 174 log_error_errno(r, "could not add sysattr match '%s=%s': %m", key, val); 179 key = keyval(optarg, &val, buf, sizeof(buf)); 180 r = udev_enumerate_add_nomatch_sysattr(udev_enumerate, key, val); 182 log_error_errno(r, "could not add negative sysattr match '%s=%s': %m", key, val); 187 key = keyval(optarg, &val, buf, sizeof(buf)); 188 r = udev_enumerate_add_match_property(udev_enumerate, key, val); 190 log_error_errno(r, "could not add property match '%s=%s': %m", key, va [all...] |
/systemd/src/boot/efi/ |
H A D | console.c | 79 EFI_STATUS console_key_read(UINT64 *key, BOOLEAN wait) { argument 95 /* wait until key is pressed */ 122 *key = keypress; 130 * This is also called in case ReadKeyStrokeEx did not return a key, because 132 * handle any key. */ 137 *key = KEYPRESS(0, k.ScanCode, k.UnicodeChar);
|
/systemd/src/libsystemd-network/ |
H A D | test-dhcp-server.c | 198 static uint64_t client_id_hash_helper(DHCPClientId *id, uint8_t key[HASH_KEY_SIZE]) { argument 201 siphash24_init(&state, key);
|
/systemd/src/nspawn/ |
H A D | nspawn-setuid.c | 34 static int spawn_getent(const char *database, const char *key, pid_t *rpid) { argument 39 assert(key); 77 execle("/usr/bin/getent", "getent", database, key, NULL, &empty_env); 78 execle("/bin/getent", "getent", database, key, NULL, &empty_env);
|
/systemd/src/resolve/ |
H A D | resolved-dns-synthesize.c | 75 static int synthesize_localhost_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) { argument 79 assert(key); 86 if (IN_SET(key->type, DNS_TYPE_A, DNS_TYPE_ANY)) { 89 rr = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_A, DNS_RESOURCE_KEY_NAME(key)); 100 if (IN_SET(key->type, DNS_TYPE_AAAA, DNS_TYPE_ANY)) { 103 rr = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_AAAA, DNS_RESOURCE_KEY_NAME(key)); 131 static int synthesize_localhost_ptr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) { argument 135 assert(key); 138 if (IN_SET(key->type, DNS_TYPE_PTR, DNS_TYPE_ANY)) { 143 r = answer_add_ptr(answer, DNS_RESOURCE_KEY_NAME(key), "localhos 223 synthesize_system_hostname_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) argument 307 synthesize_gateway_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) argument 347 DnsResourceKey *key; local [all...] |
/systemd/src/bootchart/ |
H A D | store.c | 106 char key[256]; local 150 if (sscanf(m, "%s %s", key, val) < 2) 152 if (streq(key, "pgpgin")) 154 if (streq(key, "pgpgout")) { 171 if (sscanf(m, "%s %*s %*s %*s %*s %*s %*s %s %s", key, rt, wt) < 3) 174 if (strstr(key, "cpu")) { 175 r = safe_atoi((const char*)(key+3), &c); 270 if (!sscanf(buf, "%s %*s %*s", key)) 273 strscpy(ps->name, sizeof(ps->name), key); 543 if (!sscanf(buf, "%s %*s %*s", key)) [all...] |
/systemd/src/bus-proxyd/ |
H A D | driver.c | 687 const char *key; local 690 r = sd_bus_message_read(m, "ss", &key, &value); 694 s = strjoin(key, "=", value, NULL);
|