summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-02-23 23:28:33 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-02-23 23:28:33 +0000
commit7bfdb8092915753c42f9f06a56fbbc46b11e593e (patch)
treef6b914f3fcaf2c0c8b25edd10424c679f2d52cf4 /doc
parent1cdd5c6f695be300527dace93b8a81c66ceadad8 (diff)
downloadskalibs-7bfdb8092915753c42f9f06a56fbbc46b11e593e.tar.xz
Add hiercopy and hiercopy_tmpv2.3.1.0
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>