Lines Matching refs:strings
760 static char **xs_directory_common(char *strings, unsigned int len, in xs_directory_common() argument
766 *num = xenstore_count_strings(strings, len); in xs_directory_common()
771 free_no_errno(strings); in xs_directory_common()
774 memcpy(&ret[*num], strings, len); in xs_directory_common()
775 free_no_errno(strings); in xs_directory_common()
777 strings = (char *)&ret[*num]; in xs_directory_common()
778 for (p = strings, *num = 0; p < strings + len; p += strlen(p) + 1) in xs_directory_common()
790 char *result = NULL, *strings = NULL; in xs_directory_part() local
816 free(strings); in xs_directory_part()
817 strings = NULL; in xs_directory_part()
825 strings = realloc(strings, off + result_len); in xs_directory_part()
826 memcpy(strings + off, result + strlen(result) + 1, result_len); in xs_directory_part()
830 if (off <= 1 || strings[off - 2] == 0) in xs_directory_part()
837 return xs_directory_common(strings, off, num); in xs_directory_part()
843 char *strings; in xs_directory() local
846 strings = xs_single(h, t, XS_DIRECTORY, path, &len); in xs_directory()
847 if (!strings) { in xs_directory()
853 return xs_directory_common(strings, len, num); in xs_directory()
911 char *strings; in xs_get_permissions() local
915 strings = xs_single(h, t, XS_GET_PERMS, path, &len); in xs_get_permissions()
916 if (!strings) in xs_get_permissions()
920 *num = xenstore_count_strings(strings, len); in xs_get_permissions()
925 free_no_errno(strings); in xs_get_permissions()
929 if (!xenstore_strings_to_perms(ret, *num, strings)) { in xs_get_permissions()
934 free(strings); in xs_get_permissions()
1084 char **ret, *strings; in read_watch_internal() local
1126 strings = msg->body; in read_watch_internal()
1127 num_strings = xenstore_count_strings(strings, msg->hdr.len); in read_watch_internal()
1131 free_no_errno(strings); in read_watch_internal()
1137 memcpy(ret[0], strings, msg->hdr.len); in read_watch_internal()
1139 free(strings); in read_watch_internal()
1585 const char *strings) in xs_strings_to_perms() argument
1587 return xenstore_strings_to_perms(perms, num, strings); in xs_strings_to_perms()