summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMaxime Devos <maximedevos@telenet.be>2021-11-16 11:06:28 +0000
committerLudovic Courtès <ludo@gnu.org>2022-10-21 17:40:37 +0200
commit58ddd5c7bc3907c1f1e4dd9637d996c4d72eaba0 (patch)
tree6e4629c4094f7a36ba6c89574606b2e0cd18b555 /doc
parent6c350b609475ec7c490a8faecedd6a768afd7065 (diff)
downloadguile-58ddd5c7bc3907c1f1e4dd9637d996c4d72eaba0.tar.gz
Define bindings to ‘mkdirat’ when the C function exists.
* configure.ac: Detect if ‘mkdirat’ exists. * libguile/filesys.c (scm_mkdirat): Define the Scheme binding. * doc/ref/posix.texi (File System): Document it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/ref/posix.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi
index ac669c940..642b84bee 100644
--- a/doc/ref/posix.texi
+++ b/doc/ref/posix.texi
@@ -924,6 +924,12 @@ Otherwise they are set to the value specified with @var{mode}.
The return value is unspecified.
@end deffn
+@deffn {Scheme Procedure} mkdirat dir path [mode]
+@deffnx {C Function} scm_mkdirat (dir, path, mode)
+Like @code{mkdir}, but resolve @var{path} relative to the directory
+referred to by the file port @var{dir} instead.
+@end deffn
+
@deffn {Scheme Procedure} rmdir path
@deffnx {C Function} scm_rmdir (path)
Remove the existing directory named by @var{path}. The directory must