Added wine_server_fd_to_handle to replace FILE_DupUnixHandle.

diff --git a/scheduler/client.c b/scheduler/client.c
index 2c6ca68..de1da8c 100644
--- a/scheduler/client.c
+++ b/scheduler/client.c
@@ -365,6 +365,30 @@
 
 
 /***********************************************************************
+ *           wine_server_fd_to_handle   (NTDLL.@)
+ *
+ * Allocate a file handle for a Unix fd.
+ */
+int wine_server_fd_to_handle( int fd, unsigned int access, int inherit, obj_handle_t *handle )
+{
+    int ret;
+
+    *handle = 0;
+    wine_server_send_fd( fd );
+
+    SERVER_START_REQ( alloc_file_handle )
+    {
+        req->access  = access;
+        req->inherit = inherit;
+        req->fd      = fd;
+        if (!(ret = wine_server_call( req ))) *handle = reply->handle;
+    }
+    SERVER_END_REQ;
+    return ret;
+}
+
+
+/***********************************************************************
  *           wine_server_handle_to_fd   (NTDLL.@)
  *
  * Retrieve the Unix fd corresponding to a file handle.