Skip to contentSkip to conversation

vmsplice.2: SYNOPSIS: Fix prototype parameter type

PATCH In review Alejandro Colomar 2 participants 2 messages Feb 15, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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$

---
 man2/vmsplice.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/vmsplice.2 +1 -1
index 649fe0ca7..714ad565f 100644
@@ -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
#1 lore raw

Hi ALex,

Quoted 11 lines · Alejandro Colomar

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$

Thanks! Patch applied.

Cheers,

Michael

Quoted 18 lines
---
 man2/vmsplice.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/vmsplice.2 +1 -1
index 649fe0ca7..714ad565f 100644
@@ -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/