Hi Mark On Wed, Sep 9, 2009 at 10:48 PM, Mark Hills <mark@xxxxxxxxxxx> wrote: > Return type is ssize_t since glibc-2.7, see /usr/include/bits/fcntl.h Thanks. Applied for man-pages 3.23. Cheers, Michael > --- > man2/splice.2 | 4 ++-- > man2/tee.2 | 2 +- > man2/vmsplice.2 | 4 ++-- > 3 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/man2/splice.2 b/man2/splice.2 > index d9c192a..1d4b74f 100644 > --- a/man2/splice.2 > +++ b/man2/splice.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 > diff --git a/man2/tee.2 b/man2/tee.2 > index 323bee5..feda6c8 100644 > --- a/man2/tee.2 > +++ b/man2/tee.2 > @@ -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 > diff --git a/man2/vmsplice.2 b/man2/vmsplice.2 > index 2c95893..91b2d04 100644 > --- a/man2/vmsplice.2 > +++ b/man2/vmsplice.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 > -- > 1.6.3.2 > > -- 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html