Lines Matching refs:retval

198 	errcode_t	retval;  in profile_open_file()  local
204 retval = CALL_INIT_FUNCTION(profile_library_initializer); in profile_open_file()
205 if (retval) in profile_open_file()
206 return retval; in profile_open_file()
243 retval = k5_mutex_lock(&g_shared_trees_mutex); in profile_open_file()
244 if (retval) { in profile_open_file()
248 return retval; in profile_open_file()
260 retval = profile_update_file_data(data); in profile_open_file()
265 return retval; in profile_open_file()
277 retval = k5_mutex_init(&data->lock); in profile_open_file()
278 if (retval) { in profile_open_file()
281 return retval; in profile_open_file()
284 retval = profile_update_file(prf); in profile_open_file()
285 if (retval) { in profile_open_file()
287 return retval; in profile_open_file()
290 retval = k5_mutex_lock(&g_shared_trees_mutex); in profile_open_file()
291 if (retval) { in profile_open_file()
294 return retval; in profile_open_file()
309 errcode_t retval; in profile_update_file_data() local
317 retval = k5_mutex_lock(&data->lock); in profile_update_file_data()
318 if (retval) in profile_update_file_data()
319 return retval; in profile_update_file_data()
328 retval = errno; in profile_update_file_data()
330 return retval; in profile_update_file_data()
371 retval = errno; in profile_update_file_data()
373 if (retval == 0) in profile_update_file_data()
374 retval = ENOENT; in profile_update_file_data()
375 return retval; in profile_update_file_data()
381 retval = profile_parse_file(f, &data->root); in profile_update_file_data()
383 if (retval) { in profile_update_file_data()
385 return retval; in profile_update_file_data()
412 errcode_t retval = 0; in write_data_to_file() local
414 retval = ENOMEM; in write_data_to_file()
432 retval = errno; in write_data_to_file()
433 if (retval == 0) in write_data_to_file()
434 retval = PROF_FAIL_OPEN; in write_data_to_file()
440 retval = errno; in write_data_to_file()
453 retval = errno; in write_data_to_file()
458 retval = errno; in write_data_to_file()
469 retval = errno; in write_data_to_file()
473 retval = errno; in write_data_to_file()
482 retval = 0; in write_data_to_file()
489 return retval; in write_data_to_file()
494 errcode_t retval; in profile_flush_file_data_to_buffer() local
495 retval = k5_mutex_lock(&data->lock); in profile_flush_file_data_to_buffer()
496 if (retval) in profile_flush_file_data_to_buffer()
497 return retval; in profile_flush_file_data_to_buffer()
498 retval = profile_write_tree_to_buffer(data->root, bufp); in profile_flush_file_data_to_buffer()
500 return retval; in profile_flush_file_data_to_buffer()
505 errcode_t retval = 0; in profile_flush_file_data() local
510 retval = k5_mutex_lock(&data->lock); in profile_flush_file_data()
511 if (retval) in profile_flush_file_data()
512 return retval; in profile_flush_file_data()
519 retval = write_data_to_file(data, data->filespec, 0); in profile_flush_file_data()
521 return retval; in profile_flush_file_data()
526 errcode_t retval = 0; in profile_flush_file_data_to_file() local
531 retval = k5_mutex_lock(&data->lock); in profile_flush_file_data_to_file()
532 if (retval) in profile_flush_file_data_to_file()
533 return retval; in profile_flush_file_data_to_file()
534 retval = write_data_to_file(data, outfile, 1); in profile_flush_file_data_to_file()
536 return retval; in profile_flush_file_data_to_file()
608 errcode_t retval; in profile_close_file() local
610 retval = profile_flush_file(prf); in profile_close_file()
611 if (retval) in profile_close_file()
612 return retval; in profile_close_file()