summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
authorroot <root>2011-06-10 06:50:42 +0000
committerroot <root>2011-06-10 06:50:42 +0000
commit5e8581f15bc308454846cb79c772083dab66b04f (patch)
treebfb5457293d59ab34cfbb22f46b8c2123f21bb10 /eio.c
parentf8670b89c4d7f8b6da5b3f7acf95c428b86d88ed (diff)
*** empty log message ***
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eio.c b/eio.c
index a2bf4ec..f7a9666 100644
--- a/eio.c
+++ b/eio.c
@@ -1006,6 +1006,9 @@ eio__sendfile (int ofd, int ifd, off_t offset, size_t count, etp_worker *self)
#elif defined (_WIN32)
/* does not work, just for documentation of what would need to be done */
+ /* actually, cannot be done like this, as TransmitFile changes the file offset, */
+ /* libeio guarantees that the file offset does not change, and windows */
+ /* has no way to get an independent handle to the same file description */
HANDLE h = TO_SOCKET (ifd);
SetFilePointer (h, offset, 0, FILE_BEGIN);
res = TransmitFile (TO_SOCKET (ofd), h, count, 0, 0, 0, 0);