summaryrefslogtreecommitdiffstats
path: root/Compat.h
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-10-29 23:02:57 +0100
committerBenny Baumann <BenBE@geshi.org>2020-11-09 19:17:57 +0100
commit2d6da2e52066067e4c82a2e16f73438319e1db81 (patch)
tree5e3180abd332708ae94ec34b56d9e89dddb2a6e5 /Compat.h
parent84dad4c38ee4eb16ea8716891419b0a3780f3818 (diff)
Add compat wrapper for readlinkat
Diffstat (limited to 'Compat.h')
-rw-r--r--Compat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Compat.h b/Compat.h
index c9fd0e62..c0085d5c 100644
--- a/Compat.h
+++ b/Compat.h
@@ -7,6 +7,7 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
+#include <stddef.h>
#include <sys/stat.h>
@@ -16,4 +17,10 @@ int Compat_fstatat(int dirfd,
struct stat* statbuf,
int flags);
+int Compat_readlinkat(int dirfd,
+ const char* dirpath,
+ const char* pathname,
+ char* buf,
+ size_t bufsize);
+
#endif /* HEADER_Compat */

© 2014-2024 Faster IT GmbH | imprint | privacy policy