vmsplice.2: SYNOPSIS: Fix prototype parameter type
PATCH 1/1 vmsplice.2: SYNOPSIS: Fix prototype parameter type
The 3rd parameter of vmsplice() uses 'size_t' in glibc. Fix it.
......
.../gnu/glibc$ grep_glibc_prototype vmsplice sysdeps/unix/sysv/linux/bits/fcntl-linux.h:391:
extern __ssize_t vmsplice (int __fdout, const struct iovec *__iov,
size_t __count, unsigned int __flags);
.../gnu/glibc$
Signed-off-by Alejandro Colomar <[email protected]>
--- man2/vmsplice.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
man2/vmsplice.2 +1 -1
@@ -33,7 +33,7 @@ vmsplice \- splice user pages to/from a pipe .B #include <sys/uio.h> .PP .BI "ssize_t vmsplice(int " fd ", const struct iovec *" iov , -.BI " unsigned long " nr_segs ", unsigned int " flags ); +.BI " size_t " nr_segs ", unsigned int " flags ); .fi .\" Return type was long before glibc 2.7 .SH DESCRIPTION
Signature · 1 line
2.30.0
Hi ALex,
Quoted 11 lines · Alejandro Colomar
The 3rd parameter of
vmsplice()uses 'size_t' in glibc. Fix it.......
.../gnu/glibc$
grep_glibc_prototypevmsplicesysdeps/unix/sysv/linux/bits/fcntl-linux.h:391:
extern__ssize_tvmsplice (int__fdout, const struct iovec*__iov,size_t __count, unsigned int __flags);.../gnu/glibc$
Signed-off-by Alejandro Colomar <[email protected]>
Thanks! Patch applied.
Cheers,
Michael
Quoted 18 lines
--- man2/vmsplice.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)man2/vmsplice.2 +1
-1@@ -33,7 +33,7 @@ vmsplice \- splice user pages to/from a pipe .B #include <sys/uio.h> .PP .BI "ssize_t vmsplice(int " fd ", const struct iovec *" iov , -.BI " unsigned long " nr_segs ", unsigned int " flags ); +.BI " size_t " nr_segs ", unsigned int " flags ); .fi .\" Return type was long before glibc 2.7 .SH DESCRIPTION
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/