Lines Matching defs:value
194 static void update_prop_info(prop_info *pi, const char *value, unsigned len)
197 memcpy(pi->value, value, len + 1);
315 return pi->value;
321 static void write_persistent_property(const char *name, const char *value)
334 write(fd, value, strlen(value));
343 int property_set(const char *name, const char *value)
349 int valuelen = strlen(value);
362 update_prop_info(pi, value, valuelen);
372 memcpy(pi->value, value, valuelen + 1);
388 * 'net.*' property name is updated. It is _ONLY_ updated here. Its value
398 write_persistent_property(name, value);
401 strcmp("1", value) == 0) {
405 property_changed(name, value);
443 msg.value[PROP_VALUE_MAX-1] = 0;
453 if (check_control_perms(msg.value, cr.uid, cr.gid, source_ctx)) {
454 handle_control_message((char*) msg.name + 4, (char*) msg.value);
457 msg.name + 4, msg.value, cr.uid, cr.gid, cr.pid);
461 property_set((char*) msg.name, (char*) msg.value);
492 char *key, *value, *eol, *sol, *tmp;
500 value = strchr(key, '=');
501 if(value == 0) continue;
502 *value++ = 0;
506 tmp = value - 2;
509 while(isspace(*value)) value++;
511 while((tmp > value) && isspace(*tmp)) *tmp-- = 0;
513 property_set(key, value);
535 char value[PROP_VALUE_MAX];
546 /* open the file and read the property value */
550 length = read(fd, value, sizeof(value) - 1);
552 value[length] = 0;
553 property_set(entry->d_name, value);