* [PATCH] openat.2: SYNOPSIS: return long
@ 2020-11-01 15:15 Alejandro Colomar
2020-11-01 18:04 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Colomar @ 2020-11-01 15:15 UTC (permalink / raw)
To: mtk.manpages; +Cc: Alejandro Colomar, linux-man
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>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] openat.2: SYNOPSIS: return long
2020-11-01 15:15 [PATCH] openat.2: SYNOPSIS: return long Alejandro Colomar
@ 2020-11-01 18:04 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-11-01 18:04 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: mtk.manpages, linux-man
On 11/1/20 4:15 PM, Alejandro Colomar wrote:
> 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>
Thanks, Alex. Applied.
Cheers,
Michael
> ---
> 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 :
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-01 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-01 15:15 [PATCH] openat.2: SYNOPSIS: return long Alejandro Colomar
2020-11-01 18:04 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).