/systemd/src/shared/ |
H A D | sysctl-util.c | 53 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 D | ordered-set.h | 59 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 D | proc-cmdline.c | 45 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 D | calendarspec.h | 31 int value; member in struct:CalendarComponent
|
H A D | chattr-util.c | 30 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 D | sparse-endian.h | 72 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 D | xattr-util.c | 36 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 D | capability-util.c | 36 int have_effective_cap(int value) { argument 44 if (cap_get_flag(cap, value, CAP_EFFECTIVE, &fv) < 0)
|
H A D | json.h | 67 union json_value value; member in union:JsonVariant::__anon18
|
/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) { 40 arg_resume_dev = fstab_node_to_udev_node(value);
|
/systemd/src/libudev/ |
H A D | libudev-hwdb.c | 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-enumerate.c | 195 * 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 D | quotacheck.c | 35 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 D | test-fstab-util.c | 28 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 D | test-prioq.c | 75 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 D | debug-generator.c | 36 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 D | bus-gvariant.c | 288 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 D | test-bus-match.c | 55 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 D | bus-internal.c | 249 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 D | slice.c | 221 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 D | target.c | 156 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 D | timer.h | 41 usec_t value; /* only for monotonic events */ member in struct:TimerValue 45 LIST_FIELDS(struct TimerValue, value);
|
/systemd/src/rfkill/ |
H A D | rfkill.c | 204 _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 D | sysctl.c | 45 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 D | backlight.c | 68 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...] |