mirror of https://github.com/mkerrisk/man-pages
splice.2, tee.2, vmsplice.2: Fix return type
Since glibc 2.7, the return type for these functions is ssize_t (formerly it was long). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
19f56c70d3
commit
52520fb570
|
@ -23,7 +23,7 @@
|
|||
.\" Formatted or processed versions of this manual, if unaccompanied by
|
||||
.\" the source, must acknowledge the copyright and authors of this work.
|
||||
.\"
|
||||
.TH SPLICE 2 2009-02-20 "Linux" "Linux Programmer's Manual"
|
||||
.TH SPLICE 2 2009-09-15 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
splice \- splice data to/from a pipe
|
||||
.SH SYNOPSIS
|
||||
|
@ -31,9 +31,10 @@ 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 );
|
||||
.\" Return type was long before glibc 2.7
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.BR splice ()
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
.\" Formatted or processed versions of this manual, if unaccompanied by
|
||||
.\" the source, must acknowledge the copyright and authors of this work.
|
||||
.\"
|
||||
.TH TEE 2 2006-04-28 "Linux" "Linux Programmer's Manual"
|
||||
.TH TEE 2 2009-09-15 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
tee \- duplicating pipe content
|
||||
.SH SYNOPSIS
|
||||
|
@ -31,9 +31,10 @@ 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
|
||||
.\" Return type was long before glibc 2.7
|
||||
.SH DESCRIPTION
|
||||
.\" Example programs http://brick.kernel.dk/snaps
|
||||
.\"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
.\" Formatted or processed versions of this manual, if unaccompanied by
|
||||
.\" the source, must acknowledge the copyright and authors of this work.
|
||||
.\"
|
||||
.TH VMSPLICE 2 2006-04-28 "Linux" "Linux Programmer's Manual"
|
||||
.TH VMSPLICE 2 2009-09-15 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
vmsplice \- splice user pages into a pipe
|
||||
.SH SYNOPSIS
|
||||
|
@ -32,9 +32,10 @@ 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
|
||||
.\" Return type was long before glibc 2.7
|
||||
.SH DESCRIPTION
|
||||
.\" Linus: vmsplice() system call to basically do a "write to
|
||||
.\" the buffer", but using the reference counting and VM traversal
|
||||
|
|
Loading…
Reference in New Issue