Lines Matching refs:retval

27 	errcode_t	retval = 0;
37 retval = profile_lock_global();
38 if (retval)
39 return retval;
51 retval = ENOMEM;
53 retval = k5_mutex_init(&new_data->lock);
54 if (retval == 0) {
62 if (retval != 0) {
65 return retval;
72 retval = profile_update_file(file);
74 return retval;
87 errcode_t retval;
92 retval = rw_setup(profile);
93 if (retval)
94 return retval;
102 retval = k5_mutex_lock(&profile->first_file->data->lock);
103 if (retval)
104 return retval;
108 retval = profile_find_node(section, *cpp, 0, 1,
110 if (retval) {
112 return retval;
117 retval = profile_find_node(section, *cpp, old_value, 0, &state, &node);
118 if (retval == 0) {
120 retval = profile_set_relation_value(node, new_value);
122 retval = profile_remove_node(node);
124 if (retval == 0)
128 return retval;
139 errcode_t retval;
144 retval = rw_setup(profile);
145 if (retval)
146 return retval;
154 retval = profile_find_node(section, *cpp, 0, 1,
156 if (retval)
157 return retval;
162 retval = profile_find_node(section, *cpp, 0, 0, &state, &node);
163 if (retval)
164 return retval;
165 retval = profile_remove_node(node);
166 if (retval)
167 return retval;
185 errcode_t retval;
190 retval = rw_setup(profile);
191 if (retval)
192 return retval;
197 retval = k5_mutex_lock(&profile->first_file->data->lock);
198 if (retval)
199 return retval;
203 retval = profile_find_node(section, *cpp, 0, 1,
205 if (retval) {
207 return retval;
212 retval = profile_find_node(section, *cpp, 0, 1, &state, &node);
213 if (retval == 0) {
215 retval = profile_rename_node(node, new_name);
217 retval = profile_remove_node(node);
219 if (retval == 0)
222 return retval;
238 errcode_t retval;
243 retval = rw_setup(profile);
244 if (retval)
245 return retval;
250 retval = k5_mutex_lock(&profile->first_file->data->lock);
251 if (retval)
252 return retval;
256 retval = profile_find_node(section, *cpp, 0, 1,
258 if (retval == PROF_NO_SECTION)
259 retval = profile_add_node(section, *cpp, 0, &section);
260 if (retval) {
262 return retval;
267 retval = profile_find_node(section, *cpp, 0, 1, &state, 0);
268 if (retval == 0) {
271 } else if (retval != PROF_NO_SECTION) {
273 return retval;
277 retval = profile_add_node(section, *cpp, new_value, 0);
278 if (retval) {
280 return retval;