diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-02-23 23:28:33 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-02-23 23:28:33 +0000 |
commit | 7bfdb8092915753c42f9f06a56fbbc46b11e593e (patch) | |
tree | f6b914f3fcaf2c0c8b25edd10424c679f2d52cf4 /doc/libstddjb/djbunix.html | |
parent | 1cdd5c6f695be300527dace93b8a81c66ceadad8 (diff) | |
download | skalibs-e3affdacad78afd623bb2d5d557b0e7e9e0f18ff.tar.xz |
Add hiercopy and hiercopy_tmpv2.3.1.0
Diffstat (limited to 'doc/libstddjb/djbunix.html')
-rw-r--r-- | doc/libstddjb/djbunix.html | 17 |
1 files changed, 17 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> |