splice.2, tee.2, vmsplice.2: Update return type
PATCH 1/1 splice.2, tee.2, vmsplice.2: Update return type
Return type is ssize_t since glibc-2.7, see /usr/include/bits/fcntl.h
--- man2/splice.2 | 4 ++-- man2/tee.2 | 2 +- man2/vmsplice.2 | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-)
man2/splice.2 +2 -2
@@ -31,8 +31,8 @@ splice \- splice data to/from a pipe .B #define _GNU_SOURCE .B #include <fcntl.h> -.BI "long splice(int " fd_in ", loff_t *" off_in ", int " fd_out , -.BI " loff_t *" off_out ", size_t " len \ +.BI "ssize_t splice(int " fd_in ", loff_t *" off_in ", int " fd_out , +.BI " loff_t *" off_out ", size_t " len \ ", unsigned int " flags ); .fi .SH DESCRIPTION
man2/tee.2 +1 -1
@@ -31,7 +31,7 @@ tee \- duplicating pipe content .B #define _GNU_SOURCE .B #include <fcntl.h> -.BI "long tee(int " fd_in ", int " fd_out ", size_t " len \ +.BI "ssize_t tee(int " fd_in ", int " fd_out ", size_t " len \ ", unsigned int " flags ); .fi .SH DESCRIPTION
man2/vmsplice.2 +2 -2
@@ -32,8 +32,8 @@ vmsplice \- splice user pages into a pipe .B #include <fcntl.h> .B #include <sys/uio.h> -.BI "long vmsplice(int " fd ", const struct iovec *" iov , -.BI " unsigned long " nr_segs ", unsigned int " flags ); +.BI "ssize_t vmsplice(int " fd ", const struct iovec *" iov , +.BI " unsigned long " nr_segs ", unsigned int " flags ); .fi .SH DESCRIPTION .\" Linus: vmsplice() system call to basically do a "write to
Signature · 6 lines
1.6.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1252529280-3366-1-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org
Hi Mark
Quoted 1 line · Mark Hills
Return type is
ssize_tsince glibc-2.7, see/usr/include/bits/fcntl.h
Thanks. Applied for man-pages 3.23.
Cheers,
Michael
Quoted 53 lines
---
man2/splice.2 | 4 ++--
man2/tee.2 | 2 +-
man2/vmsplice.2 | 4 ++--3 files changed, 5 insertions(+), 5 deletions(-)man2/splice.2 +0
-0@@ -31,8 +31,8 @@ splice \- splice data to/from a pipe.B #define
_GNU_SOURCE
.B #include <fcntl.h>-.BI "long splice(int "
fd_in",loff_t*"off_in", int "fd_out, -.BI " loff_t *"off_out",size_t" len \
+.BI "ssize_tsplice(int "fd_in",loff_t*"off_in", int "fd_out, +.BI "loff_t*"off_out",size_t" len \
", unsigned int " flags );
.fi
.SH DESCRIPTIONman2/tee.2 +0
-0@@ -31,7 +31,7 @@ tee \- duplicating pipe content.B #define
_GNU_SOURCE
.B #include <fcntl.h>-.BI "long tee(int "
fd_in", int "fd_out",size_t" len \
+.BI "ssize_ttee(int "fd_in", int "fd_out",size_t" len \
", unsigned int " flags );
.fi
.SH DESCRIPTIONman2/vmsplice.2 +0
-0@@ -32,8 +32,8 @@ vmsplice \- splice user pages into a pipe.B #include <
fcntl.h>
.B #include <sys/uio.h>-.BI "long vmsplice(int " fd ", const struct iovec *" iov , -.BI " unsigned long "
nr_segs", unsigned int " flags ); +.BI "ssize_tvmsplice(int " fd ", const struct iovec *" iov , +.BI " unsigned long "nr_segs", unsigned int " flags ); .fi
.SH DESCRIPTION
.\" Linus:vmsplice()system call to basically do a "write to --
1.6.3.2
Signature · 8 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Watch my Linux system programming book progress to publication! http://blog.man7.org/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html