Skip to content

Commit

Permalink
splice.2: Use 'off64_t' instead of 'loff_t'
Browse files Browse the repository at this point in the history
The kernel syscall uses 'loff_t', but the glibc wrapper uses 'off64_t'.
Let's document the wrapper prototype, as in other pages.

......

.../glibc$ grep_glibc_prototype splice
sysdeps/unix/sysv/linux/bits/fcntl-linux.h:398:
extern __ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
			 __off64_t *__offout, size_t __len,
			 unsigned int __flags);
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
  • Loading branch information
alejandro-colomar authored and mkerrisk committed Feb 15, 2021
1 parent 8494be5 commit 9bebb17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions man2/splice.2
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ splice \- splice data to/from a pipe
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <fcntl.h>
.PP
.BI "ssize_t 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 ", off64_t *" off_in ", int " fd_out ,
.BI " off64_t *" off_out ", size_t " len \
", unsigned int " flags );
.\" Return type was long before glibc 2.7
.fi
Expand Down

0 comments on commit 9bebb17

Please sign in to comment.