Searched defs:val (Results 1 - 25 of 28) sorted by relevance

12

/systemd/src/test/
H A Dtest-set.c25 char *val; local
34 while ((val = set_steal_first(m)))
35 seen[strlen(val) - 1]++;
H A Dtest-cap-list.c75 unsigned long val = 0; local
81 r = safe_atolu(content, &val);
83 assert_se(val != 0);
84 assert_se(val == cap_last_cap());
H A Dtest-hashmap-plain.c249 void *val1 = (void*) "val 1";
250 void *val2 = (void*) "val 2";
280 hashmap_put(m, "key 1", (void*) "val 1");
281 hashmap_put(m, "key 2", (void*) "val 2");
284 assert_se(streq(r, "val 1"));
287 assert_se(streq(r, "val 2"));
295 char val1[] = "val 1";
296 char val2[] = "val 2";
326 r = hashmap_remove_value(NULL, "key 1", (void*) "val 1");
332 r = hashmap_remove_value(m, "key 1", (void*) "val
642 char *val; local
667 char *val; local
795 char *val; local
[all...]
/systemd/src/shared/
H A Dtest-tables.h34 const char* val = lookup(i); local
37 if (val) {
38 rev = reverse(val);
46 printf("%s: %d → %s → %d\n", name, i, val, rev);
51 sparse ? rev != i && rev != -1 : val == NULL || rev != i :
52 val != NULL || rev != -1));
/systemd/src/basic/
H A Drlimit-util.c56 static int rlimit_parse_u64(const char *val, rlim_t *ret) { argument
60 assert(val);
63 if (streq(val, "infinity")) {
71 r = safe_atou64(val, &u);
81 static int rlimit_parse_size(const char *val, rlim_t *ret) { argument
85 assert(val);
88 if (streq(val, "infinity")) {
93 r = parse_size(val, 1024, &u);
103 static int rlimit_parse_sec(const char *val, rlim_t *ret) { argument
108 assert(val);
132 rlimit_parse_usec(const char *val, rlim_t *ret) argument
175 rlimit_parse_one(int resource, const char *val, rlim_t *ret) argument
187 rlimit_parse(int resource, const char *val, struct rlimit *ret) argument
[all...]
H A Dutf8.c154 char32_t val; local
161 r = utf8_encoded_to_unichar(p, &val);
163 unichar_is_control(val) ||
164 (!newline && val == '\n'))
H A Dparse-util.c502 unsigned val = 0; local
515 val *= 10;
520 val *= 10;
521 val += *s - '0';
526 val++;
531 *res = val;
H A Dcalendarspec.c891 static int find_matching_component(const CalendarComponent *c, int *val) { argument
897 assert(val);
905 if (c->value >= *val) {
915 k = c->value + c->repeat * ((*val - c->value + c->repeat -1) / c->repeat);
929 r = *val != d;
930 *val = d;
/systemd/src/libudev/
H A Dlibudev.c112 char *val; local
126 val = strchr(key, '=');
127 if (val == NULL) {
131 val[0] = '\0';
132 val++;
135 while (isspace(val[0]))
136 val++;
147 len = strlen(val);
150 while (isspace(val[len-1]))
152 val[le
[all...]
H A Dlibudev-util.c83 const char *val; local
85 val = udev_device_get_sysattr_value(dev, attr);
86 if (val != NULL)
87 strscpy(result, maxsize, val);
H A Dlibudev-monitor.c714 const char *buf, *val; local
738 val = udev_device_get_subsystem(udev_device);
739 nlh.filter_subsystem_hash = htonl(util_string_hash32(val));
741 val = udev_device_get_devtype(udev_device);
742 if (val != NULL)
743 nlh.filter_devtype_hash = htonl(util_string_hash32(val));
/systemd/src/udev/
H A Dudev-builtin.c136 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 Dudevadm-trigger.c56 static const char *keyval(const char *str, const char **val, char *buf, size_t size) { argument
65 *val = pos;
128 const char *val; 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, bu
[all...]
H A Dudev-builtin-input_id.c89 unsigned long val; local
101 val = strtoul (word+1, NULL, 16);
103 bitmask[i] = val;
105 log_debug("ignoring %s block %lX which is larger than maximum size", attr, val);
109 val = strtoul (text, NULL, 16);
111 bitmask[i] = val;
113 log_debug("ignoring %s block %lX which is larger than maximum size", attr, val);
120 val = bitmask_size / sizeof (unsigned long);
122 while (bitmask[val-1] == 0 && val >
[all...]
H A Dudev-builtin-keyboard.c107 int32_t val; local
112 val = strtol(current, &next, 0);
117 *val_out = val;
H A Dudevadm-hwdb.c141 struct trie_value_entry *val; local
156 val = xbsearch_r(&search, node->values, node->values_count, sizeof(struct trie_value_entry), trie_values_cmp, trie);
157 if (val) {
159 val->value_off = v;
165 val = realloc(node->values, (node->values_count + 1) * sizeof(struct trie_value_entry));
166 if (!val)
169 node->values = val;
/systemd/src/boot/efi/
H A Dutil.c36 UINT64 val; local
37 __asm__ volatile ("rdtsc" : "=A" (val));
38 return val;
42 UINT64 val = 1; local
43 return val;
118 CHAR16 *val; local
126 val = StrDuplicate((CHAR16 *)buf);
127 if (!val) {
132 *value = val;
137 CHAR16 *val; local
[all...]
/systemd/src/bootchart/
H A Dstore.c107 char val[256]; local
150 if (sscanf(m, "%s %s", key, val) < 2)
153 sampledata->blockstat.bi = atoi(val);
155 sampledata->blockstat.bo = atoi(val);
/systemd/src/udev/scsi_id/
H A Dscsi_id.c119 char *val; local
131 val = strsep(buffer, end);
132 if (val && end == quote_string)
141 return val;
/systemd/src/libsystemd-network/
H A Dlldp-tlv.c177 void *val = NULL; local
182 r = tlv_packet_read_internal(m->container, &val);
186 memcpy(data, val, sizeof(uint8_t));
195 void *val = NULL; local
200 r = tlv_packet_read_internal(m->container, &val);
204 memcpy(&t, val, sizeof(uint16_t));
214 void *val; local
219 r = tlv_packet_read_internal(m->container, &val);
223 memcpy(&t, val, sizeof(uint32_t));
232 void *val local
250 void *val = NULL; local
[all...]
H A Dtest-dhcp6-client.c211 be32_t val; local
243 val = htobe32(0x0ecfa37d);
244 assert_se(!memcmp(optval, &val, sizeof(val)));
246 val = htobe32(80);
247 assert_se(!memcmp(optval + 4, &val, sizeof(val)));
249 val = htobe32(120);
250 assert_se(!memcmp(optval + 8, &val, sizeof(val)));
416 be32_t val; local
705 int val = true; local
[all...]
H A Dsd-dhcp6-client.c499 static usec_t client_timeout_compute_random(usec_t val) { argument
500 return val - val / 10 +
501 (random_u32() % (2 * USEC_PER_SEC)) * val / 10 / USEC_PER_SEC;
/systemd/src/hwdb/
H A Dhwdb.c160 struct trie_value_entry *val; local
175 val = xbsearch_r(&search, node->values, node->values_count, sizeof(struct trie_value_entry), trie_values_cmp, trie);
176 if (val) {
178 val->value_off = v;
184 val = realloc(node->values, (node->values_count + 1) * sizeof(struct trie_value_entry));
185 if (!val)
188 node->values = val;
/systemd/src/libsystemd/sd-device/
H A Ddevice-private.c642 const char *val, *prop; local
653 FOREACH_DEVICE_PROPERTY(device, prop, val) {
656 len = strlen(prop) + 1 + strlen(val);
662 strscpyl((char *)buf_nulstr + nulstr_len, len + 1, prop, "=", val, NULL);
672 NULSTR_FOREACH(val, (char*) buf_nulstr) {
673 buf_strv[i] = (char *) val;
/systemd/src/analyze/
H A Danalyze.c134 static int bus_get_uint64_property(sd_bus *bus, const char *path, const char *interface, const char *property, uint64_t *val) { argument
142 assert(val);
151 't', val);

Completed in 131 milliseconds

12