Lines Matching defs:name
12 usage: setprop NAME VALUE
26 char *name = toys.optargs[0], *value = toys.optargs[1];
28 size_t name_len = strlen(name), value_len = strlen(value);
35 error_exit("name '%s' too long; try '%.*s'",
36 name, PROP_NAME_MAX - 1, name);
41 if (*name == '.' || name[name_len - 1] == '.')
43 if (strstr(name, ".."))
44 error_exit("'..' is not allowed in a property name");
45 for (p = name; *p; ++p)
47 error_exit("invalid character '%c' in name '%s'", *p, name);
49 if (property_set(name, value))
50 error_msg("failed to set property '%s' to '%s'", name, value);