path: root/send-utils.h
diff options
authorDavid Sterba <>2015-06-12 17:06:48 +0200
committerDavid Sterba <>2015-06-15 14:09:11 +0200
commitb6a77a272b1a687f90999fe7aacf7a85523f0aa6 (patch)
tree975394432ce6eeee6395c3afdc44f677579b72db /send-utils.h
parentd304cf1a2d96705eb9fad051cb0db75cd88b93a5 (diff)
btrfs-progs: and new path_cat helpers to send utils
Add versions of path_cat and path_cat3 that do not allocate the memory. The unhandled memory allocations are still there. Signed-off-by: David Sterba <>
Diffstat (limited to 'send-utils.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/send-utils.h b/send-utils.h
index d28c8d51..32e4fdcd 100644
--- a/send-utils.h
+++ b/send-utils.h
@@ -90,7 +90,9 @@ void subvol_uuid_search_add(struct subvol_uuid_search *s,
int btrfs_subvolid_resolve(int fd, char *path, size_t path_len, u64 subvol_id);
char *path_cat(const char *p1, const char *p2);
+int path_cat_out(char *out, const char *p1, const char *p2);
char *path_cat3(const char *p1, const char *p2, const char *p3);
+int path_cat3_out(char *out, const char *p1, const char *p2, const char *p3);
#ifdef __cplusplus