Lines Matching defs:key
31 " sysconfig read <section> [key]*\n"
32 " sysconfig write <section> [key=value]*\n"
33 " sysconfig edit <section> [key=value]*\n"
38 " then all key/value pairs are printed.\n"
39 "write: Write the provided key/value pairs to the specified section.\n"
40 "edit: Write the provided key/value pairs to the specified section,\n"
41 " preserving any existing key/value pairs already in the partition\n");
80 static int print_func(void *cookie, const char* key, const char* value) {
81 printf("%s=%s\n", key, value);
85 static int copy_func(void *cookie, const char* key, const char* value) {
89 const char* new_value = kvs_get(kvs, key, NULL);
93 return kvs_add(kvs, key, value);
182 // print all key/value pairs
199 // separate arg into key and value strings
201 const char* key = arg;
203 ret = kvs_add(&new_kvs, key, value);
209 const char* key = arg;
210 const char* value = kvs_get(&old_kvs, key, "");
211 printf("%s=%s\n", key, value);
216 // copy the other key/value pairs from old_kvs to new_kvs