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 +++++++++++++++++ doc/upgrade.html | 1 + 2 files changed, 18 insertions(+) (limited to 'doc') 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

diff --git a/doc/upgrade.html b/doc/upgrade.html index 74215bf..77217d9 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -22,6 +22,7 @@

in 2.3.0.1

-- cgit v1.3.1