[PATCH] openat.2: SYNOPSIS: return long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux