Lines Matching defs:value
29 writeAttrValue(int fd, const char* name, type_code type, Type value)
31 ssize_t bytes = fs_write_attr(fd, name, type, 0, &value, sizeof(Type));
40 converting the value accordingly
46 writeAttr(int fd, type_code type, const char* name, const char* value, size_t length)
60 int64value = strtoll(value, NULL, 0);
67 uint64value = strtoull(value, NULL, 0);
72 floatValue = strtod(value, NULL);
104 if (!strcasecmp(value, "true") || !strcasecmp(value, "t")
105 || !strcasecmp(value, "on") || !strcasecmp(value, "enabled")
106 || (isdigit(value[0]) && int64value == 1))
108 else if (!strcasecmp(value, "false") || !strcasecmp(value, "f")
109 || !strcasecmp(value, "off") || !strcasecmp(value, "disabled")
110 || (isdigit(value[0]) && int64value == 0))
121 time_t timeValue = parsedate(value, time(NULL));
132 // For string, mime-strings and any other type we just write the value
134 // the value directly, though.
135 ssize_t bytes = fs_write_attr(fd, name, type, 0, value,
136 length ? length : strlen(value) + 1);
145 /*! Adds an attribute to a file for the given type, name and value
146 Converts the value accordingly in case of numeric or boolean types
152 const char* value, size_t length, bool resolveLinks)
159 ssize_t bytes = writeAttr(fd, type, name, value, length);