From 27faa34693f35b6aa41fa67cbfe365bd082a5757 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Sun, 27 Nov 2011 17:33:19 +0100 Subject: Remove windows implementation --- erts/emulator/drivers/win32/win_efile.c | 24 ------------------------ 1 file changed, 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); -} -- cgit v1.2.3