2000-11-13 20:27:21 +01:00
|
|
|
/*
|
|
|
|
* Server-side support for async i/o operations
|
|
|
|
*
|
|
|
|
* Copyright (C) 1998 Alexandre Julliard
|
|
|
|
* Copyright (C) 2000 Mike McCormack
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#include "handle.h"
|
|
|
|
#include "thread.h"
|
|
|
|
#include "request.h"
|
|
|
|
|
|
|
|
|
|
|
|
DECL_HANDLER(create_async)
|
|
|
|
{
|
|
|
|
struct object *obj;
|
|
|
|
|
|
|
|
if (!(obj = get_handle_obj( current->process, req->file_handle, 0, NULL)) )
|
|
|
|
return;
|
|
|
|
|
2001-03-22 21:09:34 +01:00
|
|
|
/* FIXME: check if this object is allowed to do overlapped I/O */
|
2000-11-13 20:27:21 +01:00
|
|
|
|
|
|
|
/* FIXME: this should be a function pointer */
|
2001-11-30 19:46:42 +01:00
|
|
|
reply->timeout = get_serial_async_timeout(obj,req->type,req->count);
|
2000-11-13 20:27:21 +01:00
|
|
|
|
|
|
|
release_object(obj);
|
|
|
|
}
|