Lines Matching refs:dst
39 char *dst = path;
42 if (append_and_increment(&dst, dir->path, &dst_size) < 0
43 || append_and_increment(&dst, pkgname, &dst_size) < 0
44 || append_and_increment(&dst, postfix, &dst_size) < 0) {
74 char *dst = prefix;
77 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0
78 || append_and_increment(&dst, persona_prefix, &dst_size) < 0) {
84 int ret = snprintf(dst, dst_size, "%d/", persona);
115 char *dst = path;
118 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0
119 || append_and_increment(&dst, persona_prefix, &dst_size) < 0) {
129 int ret = snprintf(dst, dst_size, "%d", persona);
352 char *dst;
362 dst = rec->path;
364 if (append_and_increment(&dst, path, &dst_size) < 0
365 || append_and_increment(&dst, "/", &dst_size)) {
370 rec->len = dst - rec->path;
376 int copy_and_append(dir_rec_t* dst, const dir_rec_t* src, const char* suffix) {
377 dst->len = src->len + strlen(suffix);
378 const size_t dstSize = dst->len + 1;
379 dst->path = (char*) malloc(dstSize);
381 if (dst->path == NULL
382 || snprintf(dst->path, dstSize, "%s%s", src->path, suffix)
383 != (ssize_t) dst->len) {
442 int append_and_increment(char** dst, const char* src, size_t* dst_size) {
443 ssize_t ret = strlcpy(*dst, src, *dst_size);
447 *dst += ret;