summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/libstddjb/djbunix.html17
-rw-r--r--doc/upgrade.html1
2 files changed, 18 insertions, 0 deletions
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 *<em>tmp</em> as heap-allocated temporary space.
 Returns 0 if it succeeds or -1 (and sets errno) if it fails.
 </p>
 
+<h3> Filesystem copy </h3>
+
+<p>
+<code> int hiercopy_tmp (char const *src, char const *dst, stralloc *tmp) </code> <br />
+Recursively copies the filesystem hierarchy at <em>src</em> into
+<em>dst</em>, preserving modes, and also preserving the uids/gids if the
+process is running as the super-user.
+Uses *<em>tmp</em> as heap-allocated temporary space.
+Returns 1 if it succeeds or 0 (and sets errno) if it fails.
+</p>
+
+<p>
+<code> int hiercopy (char const *src, char const *dst) </code> <br />
+Same as above, using the <tt>satmp</tt> global stralloc as
+heap-allocated temporary space.
+</p>
+
 <h3> Variable length wrappers around Single Unix calls </h3>
 
 <p>
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 @@
 <ul>
  <li> wait_status() now returns 256 + signal number when WIFSIGNALED(). </li>
  <li> new macro wait_estatus() to get WIFSIGNALED information in an exit code. </li>
+ <li> new functions in djbunix.h: hiercopy(), hiercopy_tmp() </li>
 </ul>
 
 <h2> in 2.3.0.1 </h2>