Home
last modified time | relevance | path

Searched refs:sorted_buf (Results 1 – 3 of 3) sorted by relevance

/external/selinux/libsemanage/tests/
Dtest_semanage_store.c309 char *source_buf, *sorted_buf = NULL, *good_buf, *bad_buf; in test_semanage_nc_sort() local
350 semanage_nc_sort(sh, source_buf, source_buf_len, &sorted_buf, in test_semanage_nc_sort()
353 CU_ASSERT_STRING_EQUAL(sorted_buf, good_buf); in test_semanage_nc_sort()
356 free(sorted_buf); in test_semanage_nc_sort()
357 sorted_buf = NULL; in test_semanage_nc_sort()
361 semanage_nc_sort(sh, bad_buf, bad_buf_len, &sorted_buf, in test_semanage_nc_sort()
365 free(sorted_buf); in test_semanage_nc_sort()
/external/selinux/libsemanage/src/
Dsemanage_store.h154 char **sorted_buf, size_t * sorted_buf_len);
160 char **sorted_buf, size_t * sorted_buf_len);
Dsemanage_store.c2478 char **sorted_buf, size_t * sorted_buf_len) in semanage_fc_sort() argument
2743 *sorted_buf = calloc(i, sizeof(char)); in semanage_fc_sort()
2744 if (!*sorted_buf) { in semanage_fc_sort()
2752 sorted_buf_pos = *sorted_buf; in semanage_fc_sort()
2781 if ((sorted_buf_pos - *sorted_buf) != (ssize_t) * sorted_buf_len) { in semanage_fc_sort()
2783 free(*sorted_buf); in semanage_fc_sort()
2784 *sorted_buf = NULL; in semanage_fc_sort()
2818 char **sorted_buf, size_t * sorted_buf_len) in semanage_nc_sort() argument
2938 *sorted_buf = calloc(count, sizeof(char)); in semanage_nc_sort()
2939 if (!*sorted_buf) { in semanage_nc_sort()
[all …]