The Linux kernel uses long as the return type for this syscall. As glibc provides no wrapper, use the same type the kernel uses. Signed-off-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx> --- man2/openat2.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/openat2.2 b/man2/openat2.2 index 3ea50138b..80e75139e 100644 --- a/man2/openat2.2 +++ b/man2/openat2.2 @@ -31,8 +31,8 @@ openat2 \- open and possibly create a file (extended) .B #include <fcntl.h> .B #include <openat2.h> .PP -.BI "int openat2(int " dirfd ", const char *" pathname , -.BI " struct open_how *" how ", size_t " size ");" +.BI "long openat2(int " dirfd ", const char *" pathname , +.BI " struct open_how *" how ", size_t " size ); .fi .PP .IR Note : -- 2.28.0