From 7bfdb8092915753c42f9f06a56fbbc46b11e593e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 23 Feb 2015 23:28:33 +0000 Subject: Add hiercopy and hiercopy_tmp --- doc/libstddjb/djbunix.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc/libstddjb/djbunix.html') diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html index 277db31..ff8b27d 100644 --- a/doc/libstddjb/djbunix.html +++ b/doc/libstddjb/djbunix.html @@ -708,6 +708,23 @@ using *tmp as heap-allocated temporary space. Returns 0 if it succeeds or -1 (and sets errno) if it fails.

+

Filesystem copy

+ +

+ int hiercopy_tmp (char const *src, char const *dst, stralloc *tmp)
+Recursively copies the filesystem hierarchy at src into +dst, preserving modes, and also preserving the uids/gids if the +process is running as the super-user. +Uses *tmp as heap-allocated temporary space. +Returns 1 if it succeeds or 0 (and sets errno) if it fails. +

+ +

+ int hiercopy (char const *src, char const *dst)
+Same as above, using the satmp global stralloc as +heap-allocated temporary space. +

+

Variable length wrappers around Single Unix calls

-- cgit v1.2.3