• Home
  • Raw
  • Download

Lines Matching refs:handle

16 int dbase_llist_needs_resync(semanage_handle_t * handle, dbase_llist_t * dbase)  in dbase_llist_needs_resync()  argument
24 cache_serial = handle->funcs->get_serial(handle); in dbase_llist_needs_resync()
37 int dbase_llist_cache_prepend(semanage_handle_t * handle, in dbase_llist_cache_prepend() argument
46 if (dbase->rtable->clone(handle, data, &entry->data) < 0) in dbase_llist_cache_prepend()
62 ERR(handle, "out of memory"); in dbase_llist_cache_prepend()
65 ERR(handle, "could not cache record"); in dbase_llist_cache_prepend()
88 int dbase_llist_set_serial(semanage_handle_t * handle, dbase_llist_t * dbase) in dbase_llist_set_serial() argument
91 int cache_serial = handle->funcs->get_serial(handle); in dbase_llist_set_serial()
93 ERR(handle, "could not update cache serial"); in dbase_llist_set_serial()
102 static int dbase_llist_cache_locate(semanage_handle_t * handle, in dbase_llist_cache_locate() argument
111 if (dbase->dtable->cache(handle, dbase) < 0) in dbase_llist_cache_locate()
124 ERR(handle, "could not complete cache lookup"); in dbase_llist_cache_locate()
128 int dbase_llist_exists(semanage_handle_t * handle, in dbase_llist_exists() argument
136 status = dbase_llist_cache_locate(handle, dbase, key, &entry); in dbase_llist_exists()
144 ERR(handle, "could not check if record exists"); in dbase_llist_exists()
148 int dbase_llist_add(semanage_handle_t * handle, in dbase_llist_add() argument
154 if (dbase_llist_cache_prepend(handle, dbase, data) < 0) in dbase_llist_add()
162 ERR(handle, "could not add record to the database"); in dbase_llist_add()
166 int dbase_llist_set(semanage_handle_t * handle, in dbase_llist_set() argument
174 status = dbase_llist_cache_locate(handle, dbase, key, &entry); in dbase_llist_set()
178 ERR(handle, "record not found in the database"); in dbase_llist_set()
182 if (dbase->rtable->clone(handle, data, &entry->data) < 0) in dbase_llist_set()
190 ERR(handle, "could not set record value"); in dbase_llist_set()
194 int dbase_llist_modify(semanage_handle_t * handle, in dbase_llist_modify() argument
202 status = dbase_llist_cache_locate(handle, dbase, key, &entry); in dbase_llist_modify()
206 if (dbase_llist_cache_prepend(handle, dbase, data) < 0) in dbase_llist_modify()
210 if (dbase->rtable->clone(handle, data, &entry->data) < 0) in dbase_llist_modify()
218 ERR(handle, "could not modify record value"); in dbase_llist_modify()
222 hidden int dbase_llist_count(semanage_handle_t * handle __attribute__ ((unused)), in dbase_llist_count() argument
227 handle = NULL; in dbase_llist_count()
231 int dbase_llist_query(semanage_handle_t * handle, in dbase_llist_query() argument
239 status = dbase_llist_cache_locate(handle, dbase, key, &entry); in dbase_llist_query()
243 if (dbase->rtable->clone(handle, entry->data, response) < 0) in dbase_llist_query()
249 ERR(handle, "could not query record value"); in dbase_llist_query()
253 int dbase_llist_iterate(semanage_handle_t * handle, in dbase_llist_iterate() argument
275 ERR(handle, "could not iterate over records"); in dbase_llist_iterate()
279 int dbase_llist_del(semanage_handle_t * handle __attribute__ ((unused)), in dbase_llist_del() argument
306 handle = NULL; in dbase_llist_del()
310 int dbase_llist_clear(semanage_handle_t * handle, dbase_llist_t * dbase) in dbase_llist_clear() argument
315 if (dbase_llist_set_serial(handle, dbase) < 0) { in dbase_llist_clear()
316 ERR(handle, "could not set serial of cleared dbase"); in dbase_llist_clear()
337 int dbase_llist_list(semanage_handle_t * handle, in dbase_llist_list() argument
356 if (dbase->rtable->clone(handle, in dbase_llist_list()
369 ERR(handle, "out of memory"); in dbase_llist_list()
377 ERR(handle, "could not allocate record array"); in dbase_llist_list()