Skip to contentSkip to conversation

New: sendfile man page should mention short "sends"

Bug 97491 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 2 messages Apr 29, 2015 – May 5, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=97491

Bug ID: 97491
Summary: sendfile man page should mention short "sends"
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: gjasny-S0/[email protected]
Regression: No

Hello,

Linux 3.16 (3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt4-1, glibc 2.19-18) seems to truncate larger requests to 2G (file to file copy):

strace output:
sendfile(4, 3, [0], 10240000000) = 2147479552

I know one should expect this behavior from read/write calls but for sendfile it was somehow unexpected.

Maybe you could mention that fact in the man page for sendfile?

Thanks,
Gregor

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
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): bug-97491-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/

#2 lore raw

[Bug 97491] sendfile man page should mention short "sends"

https://bugzilla.kernel.org/show_bug.cgi?id=97491

Michael Kerrisk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |CODE_FIX

--- Comment #1 from Michael Kerrisk <[email protected]> --- I added some text to cover this:

RETURN VALUE
If the transfer was successful, the number of bytes writ‐ ten to out_fd is returned. Note that a successful call to sendfile() may write fewer bytes than requested; the caller should be prepared to retry the call if there were unsent bytes.

Hopefully that suffices?

Thanks,

Michael

Signature · 5 lines
You are receiving this mail because:
You are watching the assignee of the bug.--
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