Be vague about the arguments to sendfile(), since it varies from

platform to platform.
This commit is contained in:
Christopher Kohlhoff 2011-02-09 10:30:19 +11:00
parent bb59cbc8ad
commit 661936baae

View File

@ -1015,7 +1015,7 @@ public:
* {
* // Try the system call.
* errno = 0;
* int n = ::sendfile(sock_.native_handle(), fd_, 0, 0);
* int n = ::sendfile(sock_.native_handle(), fd_, ...);
* ec = asio::error_code(
* n < 0 ? errno : 0,
* asio::error::system_category());
@ -1099,7 +1099,7 @@ public:
* {
* // Try the system call.
* errno = 0;
* int n = ::sendfile(sock_.native_handle(), fd_, 0, 0);
* int n = ::sendfile(sock_.native_handle(), fd_, ...);
* ec = asio::error_code(
* n < 0 ? errno : 0,
* asio::error::system_category());
@ -1185,7 +1185,7 @@ public:
* {
* // Try the system call.
* errno = 0;
* int n = ::sendfile(sock_.native_handle(), fd_, 0, 0);
* int n = ::sendfile(sock_.native_handle(), fd_, ...);
* ec = asio::error_code(
* n < 0 ? errno : 0,
* asio::error::system_category());