Home | History | Annotate | Download | only in installd

Lines Matching defs:dst

41      char *dst = path;
44 if (append_and_increment(&dst, dir->path, &dst_size) < 0
45 || append_and_increment(&dst, pkgname, &dst_size) < 0
46 || append_and_increment(&dst, postfix, &dst_size) < 0) {
77 char *dst = prefix;
80 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0
81 || append_and_increment(&dst, userid_prefix, &dst_size) < 0) {
87 int ret = snprintf(dst, dst_size, "%d/", userid);
118 char *dst = path;
121 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0
122 || append_and_increment(&dst, userid_prefix, &dst_size) < 0) {
132 int ret = snprintf(dst, dst_size, "%d/", userid);
863 char *dst;
873 dst = rec->path;
875 if (append_and_increment(&dst, path, &dst_size) < 0
876 || append_and_increment(&dst, "/", &dst_size)) {
881 rec->len = dst - rec->path;
887 int copy_and_append(dir_rec_t* dst, const dir_rec_t* src, const char* suffix) {
888 dst->len = src->len + strlen(suffix);
889 const size_t dstSize = dst->len + 1;
890 dst->path = (char*) malloc(dstSize);
892 if (dst->path == NULL
893 || snprintf(dst->path, dstSize, "%s%s", src->path, suffix)
894 != (ssize_t) dst->len) {
953 int append_and_increment(char** dst, const char* src, size_t* dst_size) {
954 ssize_t ret = strlcpy(*dst, src, *dst_size);
958 *dst += ret;