Searched defs:value (Results 1 - 25 of 98) sorted by relevance

1234

/systemd/src/shared/
H A Dsysctl-util.c53 int sysctl_write(const char *property, const char *value) { argument
57 assert(value);
59 log_debug("Setting '%s' to '%s'", property, value);
62 return write_string_file(p, value, 0);
/systemd/src/basic/
H A Dordered-set.h59 static inline bool ordered_set_iterate(OrderedSet *s, Iterator *i, void **value) { argument
60 return ordered_hashmap_iterate((OrderedHashmap*) s, i, value, NULL);
H A Dproc-cmdline.c45 int parse_proc_cmdline(int (*parse_item)(const char *key, const char *value)) { argument
59 char *value = NULL; local
72 value = strchr(word, '=');
73 if (value)
74 *(value++) = 0;
76 r = parse_item(word, value);
84 int get_proc_cmdline_key(const char *key, char **value) { argument
112 if (value) {
128 if (value) {
129 *value
138 _cleanup_free_ char *value = NULL; local
[all...]
H A Dcalendarspec.h31 int value; member in struct:CalendarComponent
H A Dchattr-util.c30 int chattr_fd(int fd, unsigned value, unsigned mask) { argument
54 new_attr = (old_attr & ~mask) | (value & mask);
64 int chattr_path(const char *p, unsigned value, unsigned mask) { argument
76 return chattr_fd(fd, value, mask);
H A Dsparse-endian.h72 static inline le16_t htole16(uint16_t value) { return (le16_t __force) bswap_16_on_be(value); } argument
73 static inline le32_t htole32(uint32_t value) { return (le32_t __force) bswap_32_on_be(value); } argument
74 static inline le64_t htole64(uint64_t value) { return (le64_t __force) bswap_64_on_be(value); } argument
76 static inline be16_t htobe16(uint16_t value) { return (be16_t __force) bswap_16_on_le(value); } argument
77 static inline be32_t htobe32(uint32_t value) { return (be32_t __force) bswap_32_on_le(value); } argument
78 htobe64(uint64_t value) argument
80 le16toh(le16_t value) argument
81 le32toh(le32_t value) argument
82 le64toh(le64_t value) argument
84 be16toh(be16_t value) argument
85 be32toh(be32_t value) argument
86 be64toh(be64_t value) argument
[all...]
H A Dxattr-util.c36 int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink) { argument
43 assert(value);
56 *value = v;
74 int fgetxattr_malloc(int fd, const char *name, char **value) { argument
81 assert(value);
91 *value = v;
106 ssize_t fgetxattrat_fake(int dirfd, const char *filename, const char *attribute, void *value, size_t size, int flags) { argument
119 l = getxattr(fn, attribute, value, size);
H A Dcapability-util.c36 int have_effective_cap(int value) { argument
44 if (cap_get_flag(cap, value, CAP_EFFECTIVE, &fv) < 0)
H A Djson.h67 union json_value value; member in union:JsonVariant::__anon18
/systemd/src/hibernate-resume/
H A Dhibernate-resume-generator.c36 static int parse_proc_cmdline_item(const char *key, const char *value) { argument
38 if (streq(key, "resume") && value) {
40 arg_resume_dev = fstab_node_to_udev_node(value);
/systemd/src/libudev/
H A Dlibudev-hwdb.c129 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 Dlibudev-enumerate.c195 * Returns: 0 on success, otherwise a negative error value.
213 * Returns: 0 on success, otherwise a negative error value.
228 * @value: optional value of the sys attribute
232 * Returns: 0 on success, otherwise a negative error value.
234 _public_ int udev_enumerate_add_match_sysattr(struct udev_enumerate *udev_enumerate, const char *sysattr, const char *value) { argument
240 return sd_device_enumerator_add_match_sysattr(udev_enumerate->enumerator, sysattr, value, true);
247 * @value: optional value of the sys attribute
251 * Returns: 0 on success, otherwise a negative error value
253 udev_enumerate_add_nomatch_sysattr(struct udev_enumerate *udev_enumerate, const char *sysattr, const char *value) argument
272 udev_enumerate_add_match_property(struct udev_enumerate *udev_enumerate, const char *property, const char *value) argument
[all...]
/systemd/src/quotacheck/
H A Dquotacheck.c35 static int parse_proc_cmdline_item(const char *key, const char *value) { argument
37 if (streq(key, "quotacheck.mode") && value) {
39 if (streq(value, "auto"))
41 else if (streq(value, "force"))
43 else if (streq(value, "skip"))
46 log_warning("Invalid quotacheck.mode= parameter '%s'. Ignoring.", value);
50 else if (streq(key, "forcequotacheck") && !value) {
/systemd/src/test/
H A Dtest-fstab-util.c28 const char **namefound, char **value, char **filtered);
40 _cleanup_free_ char *value, *filtered; local
42 r = fstab_filter_options(opts, remove, &name, &value, &filtered);
44 opts, r, name, value, filtered,
48 assert_se(streq_ptr(value, value_expected));
H A Dtest-prioq.c75 unsigned value; member in struct:test
82 if (x->value < y->value)
85 if (x->value > y->value)
94 siphash24_compress(&x->value, sizeof(x->value), state);
121 t->value = (unsigned) rand();
153 assert_se(previous <= t->value);
154 previous = t->value;
[all...]
/systemd/src/debug-generator/
H A Ddebug-generator.c36 static int parse_proc_cmdline_item(const char *key, const char *value) { argument
43 if (!value)
48 r = unit_name_mangle(value, UNIT_NAME_NOGLOB, &n);
59 if (!value)
64 r = unit_name_mangle(value, UNIT_NAME_NOGLOB, &n);
75 if (value) {
76 r = parse_boolean(value);
78 log_error("Failed to parse systemd.debug-shell= argument '%s', ignoring.", value);
85 if (!value)
88 r = free_and_strdup(&arg_default_unit, value);
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dbus-gvariant.c288 void bus_gvariant_write_word_le(void *p, size_t sz, size_t value) { argument
296 assert(sz == 8 || (value < (1ULL << (sz*8))));
299 *(uint8_t*) p = value;
302 x.u16 = htole16((uint16_t) value);
304 x.u32 = htole32((uint32_t) value);
306 x.u64 = htole64((uint64_t) value);
H A Dtest-bus-match.c55 static int match_add(sd_bus_slot *slots, struct bus_match_node *root, const char *match, int value) { argument
61 s = slots + value;
68 s->userdata = INT_TO_PTR(value);
H A Dbus-internal.c249 bool namespace_complex_pattern(const char *pattern, const char *value) { argument
250 return complex_pattern_check('.', pattern, value);
253 bool path_complex_pattern(const char *pattern, const char *value) { argument
254 return complex_pattern_check('/', pattern, value);
289 bool namespace_simple_pattern(const char *pattern, const char *value) { argument
290 return simple_pattern_check('.', pattern, value);
293 bool path_simple_pattern(const char *pattern, const char *value) { argument
294 return simple_pattern_check('/', pattern, value);
/systemd/src/core/
H A Dslice.c221 static int slice_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) { argument
226 assert(value);
232 state = slice_state_from_string(value);
234 log_debug("Failed to parse state value %s", value);
H A Dtarget.c156 static int target_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) { argument
161 assert(value);
167 state = target_state_from_string(value);
169 log_debug("Failed to parse state value %s", value);
H A Dtimer.h41 usec_t value; /* only for monotonic events */ member in struct:TimerValue
45 LIST_FIELDS(struct TimerValue, value);
/systemd/src/rfkill/
H A Drfkill.c204 _cleanup_free_ char *state_file = NULL, *value = NULL; local
224 r = read_one_line_file(state_file, &value);
238 b = parse_boolean(value);
/systemd/src/sysctl/
H A Dsysctl.c45 char *property, *value; local
49 HASHMAP_FOREACH_KEY(value, property, sysctl_options, i) {
52 k = sysctl_write(property, value);
55 "Couldn't write '%s' to '%s', ignoring: %m", value, property);
81 char l[LINE_MAX], *p, *value, *new_value, *property, *existing; local
99 value = strchr(p, '=');
100 if (!value) {
101 log_error("Line is not an assignment in file '%s': %s", path, value);
108 *value = 0;
109 value
[all...]
/systemd/src/backlight/
H A Dbacklight.c68 const char *value; local
70 value = udev_device_get_sysattr_value(parent, "class");
71 if (value) {
74 if (safe_atolu(value, &class) < 0) {
76 value, subsystem, sysname);
235 static void clamp_brightness(struct udev_device *device, char **value, unsigned max_brightness) { argument
240 r = safe_atou(*value, &brightness);
242 log_warning_errno(r, "Failed to parse brightness \"%s\": %m", *value);
254 char *old_value = *value;
256 r = asprintf(value, "
379 _cleanup_free_ char *value = NULL; local
409 const char *value; local
[all...]

Completed in 30 milliseconds

1234