aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-11-01 16:15:38 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-11-01 19:04:11 +0100
commit23a74bd771c46835bf602639aca603236755eee9 (patch)
treef7805691c9ace27ec30bdbbb66c07526ace10f4d
parenta024704790fdc81610c897468d042fdfddcb7008 (diff)
downloadman-pages-23a74bd771c46835bf602639aca603236755eee9.tar.gz
openat.2: SYNOPSIS: return long
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@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/openat2.24
1 files changed, 2 insertions, 2 deletions
diff --git a/man2/openat2.2 b/man2/openat2.2
index 3ea50138b8..80e75139e2 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 :