diff options
author | Maxime Devos <maximedevos@telenet.be> | 2021-11-16 11:06:35 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-10-21 17:41:10 +0200 |
commit | cf255dd3a4f01da5e88c6da3738e7745ad8b9594 (patch) | |
tree | 165543a2197864ef12dbde8eae8a03e431a48911 /doc/ref/posix.texi | |
parent | 0af3c2f5092cb52ee0ea0b4ab2b1285237441a85 (diff) | |
download | guile-cf255dd3a4f01da5e88c6da3738e7745ad8b9594.tar.gz |
Define a Scheme binding to ‘fstatat’ when available.
* configure.ac: Detect if ‘fstatat’ is defined.
* libguile/filesys.c (scm_statat): Define a Scheme binding to ‘fstatat’.
* libguile/filesys.h (scm_statat): Make it part of the C API.
* doc/ref/posix.texi (File System): Document it.
* libguile/syscalls.h (fstatat_or_fstatat64): Choose between ‘fstatat’
and ‘fstatat64’.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc/ref/posix.texi')
-rw-r--r-- | doc/ref/posix.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index 112c25d30..601c33747 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -773,6 +773,14 @@ it will return information about a symbolic link itself, not the file it points to. @var{path} must be a string. @end deffn +@deffn {Scheme Procedure} statat dir filename [flags] +@deffnx {C Function} scm_statat dir filename flags +Like @code{stat}, but resolve @var{filename} relative to the directory +referred to by the file port @var{dir} instead. The optional argument +@var{flags} argument can be @code{AT_SYMLINK_NOFOLLOW}, in which case +@var{filename} will not be dereferenced even if it is a symbolic link. +@end deffn + @deffn {Scheme Procedure} readlink path @deffnx {C Function} scm_readlink (path) Return the value of the symbolic link named by @var{path} (a string, or |