aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/drivers/win32/win_efile.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/erts/emulator/drivers/win32/win_efile.c b/erts/emulator/drivers/win32/win_efile.c
index 0f41a09bf6..931bb196f1 100644
--- a/erts/emulator/drivers/win32/win_efile.c
+++ b/erts/emulator/drivers/win32/win_efile.c
@@ -1581,27 +1581,3 @@ efile_fadvise(Efile_error* errInfo, int fd, Sint64 offset,
errno = ERROR_SUCCESS;
return check_error(0, errInfo);
}
-
-int
-efile_sendfile(Efile_error* errInfo, int in_fd, int out_fd,
- off_t *offset, size_t *count)
-{
- /* TODO: write proper Windows TransmitFile based implementation */
- /* use overlapped I/O and driver_select on the structure? */
- /* int res = efile_seek(errInfo, in_fd, *offset, EFILE_SEEK_SET, NULL); */
- /* if (res) { */
- /* /\* TODO: could in_fd be shared and require protecting/locking */
- /* efile_seek/SetFilePointerEx? *\/ */
- /* if (TransmitFile((SOCKET) out_fd, (HANDLE) in_fd, *count, */
- /* 0, NULL, NULL, 0)) { */
- /* return check_error(0, errInfo); */
- /* } else { */
- /* /\* TODO: correct error handling? *\/ */
- /* return set_error(errInfo); */
- /* } */
- /* } else { */
- /* return res; */
- /* } */
- errno = ENOTSUP;
- return check_error(-1, errInfo);
-}