     }
 
     @inline(never)
-    static func sendfile(socket s: NIOBSDSocket.Handle,
-                         fd: CInt,
-                         offset: off_t,
-                         len: off_t) throws -> IOResult<Int> {
+    static func sendfile(socket s: NIOBSDSocket.Handle, fd: CInt, offset: off_t,
+                         len nNumberOfBytesToWrite: off_t)
+            throws -> IOResult<Int> {
         let hFile: HANDLE = HANDLE(bitPattern: ucrt._get_osfhandle(fd))!
         if hFile == INVALID_HANDLE_VALUE {
             throw IOError(errnoCode: EBADF, reason: "_get_osfhandle")

    static func setNonBlocking(socket: NIOBSDSocket.Handle) throws {
        var ulMode: u_long = 1
        if WinSDK.ioctlsocket(socket, FIONBIO, &ulMode) == SOCKET_ERROR {
            throw IOError(winsock: WSAGetLastError(), reason: "ioctlsocket")
        }
    }
}


#endif

    @inline(never)
    static func pread(socket: NIOBSDSocket.Handle,
                      pointer: UnsafeMutableRawPointer,
                      size: size_t, offset: off_t) throws -> IOResult<size_t> {
        var ovlOverlapped: OVERLAPPED = OVERLAPPED()
        ovlOverlapped.OffsetHigh = DWORD(UInt32(offset >> 32) & 0xffffffff)
        ovlOverlapped.Offset = DWORD(UInt32(offset >> 0) & 0xffffffff)
