summaryrefslogtreecommitdiff
path: root/doc/libstddjb/djbunix.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-10-09 15:07:23 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-10-09 15:07:23 +0000
commitf5e75663fef044cad02eef3eb7aef295312c1158 (patch)
treee7910b184b37e3e20fa8347fa1ef6f5bc909f089 /doc/libstddjb/djbunix.html
parent6d8832cddea6e0d3407d8ce7f11d9baf6425a9ef (diff)
downloadskalibs-f5e75663fef044cad02eef3eb7aef295312c1158.tar.xz
Add path_canonicalize, prepare for 2.9.1.0
Diffstat (limited to 'doc/libstddjb/djbunix.html')
-rw-r--r--doc/libstddjb/djbunix.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html
index dca3a2c..6223bf4 100644
--- a/doc/libstddjb/djbunix.html
+++ b/doc/libstddjb/djbunix.html
@@ -808,5 +808,18 @@ Sleeps <em>n</em> milliseconds. Signals received during that time are handled,
but <em>do not</em> interrupt the sleep.
</p>
+<h3> Miscellaneous functions </h3>
+
+<p>
+<code> size_t path_canonicalize (char *out, char const *in, int check) </code> <br />
+Writes into <em>out</em> the canonical form of the Unix path given in
+<em>in</em>. The <em>out</em> array must be preallocated with at least
+<tt>strlen(in)+2</tt> bytes. Returns the length of the <em>out</em> path, without
+counting the terminating null byte. If <em>check</em> is nonzero, <em>in</em> is tested
+for every <tt>foobar/..</tt> element, and the function returns 0, and sets errno
+appropriately, if <tt>foobar</tt> is not a valid directory; in that case, <em>out</em>
+contains the problematic path.
+</p>
+
</body>
</html>