Skip to contentSkip to conversation

splice.2, tee.2, vmsplice.2: Update return type

PATCH In review Mark Hills 2 participants 2 messages Sep 9, 2009 – Sep 15, 2009 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Mark Hills

author
#0 lore raw

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
index d9c192a..1d4b74f 100644
@@ -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
index 323bee5..feda6c8 100644
@@ -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
index 2c95893..91b2d04 100644
@@ -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

#2 lore raw

Hi Mark

Quoted 1 line · Mark Hills

Return type is ssize_t since 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
index d9c192a..1d4b74f 100644
@@ -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 +0 -0
index 323bee5..feda6c8 100644
@@ -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 +0 -0
index 2c95893..91b2d04 100644
@@ -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

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