server: Remove no longer needed blocking argument from write fd op.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-04-12 13:54:45 +02:00 committed by Alexandre Julliard
parent 5e584e936b
commit c9d9adaf65
4 changed files with 10 additions and 10 deletions

View File

@ -175,7 +175,7 @@ static int device_file_close_handle( struct object *obj, struct process *process
static void device_file_destroy( struct object *obj ); static void device_file_destroy( struct object *obj );
static enum server_fd_type device_file_get_fd_type( struct fd *fd ); static enum server_fd_type device_file_get_fd_type( struct fd *fd );
static obj_handle_t device_file_read( struct fd *fd, struct async *async, file_pos_t pos ); static obj_handle_t device_file_read( struct fd *fd, struct async *async, file_pos_t pos );
static obj_handle_t device_file_write( struct fd *fd, struct async *async, int blocking, file_pos_t pos ); static obj_handle_t device_file_write( struct fd *fd, struct async *async, file_pos_t pos );
static obj_handle_t device_file_flush( struct fd *fd, struct async *async, int blocking ); static obj_handle_t device_file_flush( struct fd *fd, struct async *async, int blocking );
static obj_handle_t device_file_ioctl( struct fd *fd, ioctl_code_t code, struct async *async ); static obj_handle_t device_file_ioctl( struct fd *fd, ioctl_code_t code, struct async *async );
@ -505,7 +505,7 @@ static obj_handle_t device_file_read( struct fd *fd, struct async *async, file_p
return handle; return handle;
} }
static obj_handle_t device_file_write( struct fd *fd, struct async *async, int blocking, file_pos_t pos ) static obj_handle_t device_file_write( struct fd *fd, struct async *async, file_pos_t pos )
{ {
struct device_file *file = get_fd_user( fd ); struct device_file *file = get_fd_user( fd );
struct irp_call *irp; struct irp_call *irp;

View File

@ -2165,7 +2165,7 @@ obj_handle_t no_fd_read( struct fd *fd, struct async *async, file_pos_t pos )
} }
/* default write() routine */ /* default write() routine */
obj_handle_t no_fd_write( struct fd *fd, struct async *async, int blocking, file_pos_t pos ) obj_handle_t no_fd_write( struct fd *fd, struct async *async, file_pos_t pos )
{ {
set_error( STATUS_OBJECT_TYPE_MISMATCH ); set_error( STATUS_OBJECT_TYPE_MISMATCH );
return 0; return 0;
@ -2478,7 +2478,7 @@ DECL_HANDLER(write)
async = create_async( current, &req->async, iosb ); async = create_async( current, &req->async, iosb );
if (async) if (async)
{ {
reply->wait = fd->fd_ops->write( fd, async, req->blocking, req->pos ); reply->wait = fd->fd_ops->write( fd, async, req->pos );
reply->options = fd->options; reply->options = fd->options;
release_object( async ); release_object( async );
} }

View File

@ -54,7 +54,7 @@ struct fd_ops
/* perform a read on the file */ /* perform a read on the file */
obj_handle_t (*read)(struct fd *, struct async *, file_pos_t ); obj_handle_t (*read)(struct fd *, struct async *, file_pos_t );
/* perform a write on the file */ /* perform a write on the file */
obj_handle_t (*write)(struct fd *, struct async *, int, file_pos_t ); obj_handle_t (*write)(struct fd *, struct async *, file_pos_t );
/* flush the object buffers */ /* flush the object buffers */
obj_handle_t (*flush)(struct fd *, struct async *, int); obj_handle_t (*flush)(struct fd *, struct async *, int);
/* perform an ioctl on the file */ /* perform an ioctl on the file */
@ -101,7 +101,7 @@ extern int fd_queue_async( struct fd *fd, struct async *async, int type );
extern void fd_async_wake_up( struct fd *fd, int type, unsigned int status ); extern void fd_async_wake_up( struct fd *fd, int type, unsigned int status );
extern void fd_reselect_async( struct fd *fd, struct async_queue *queue ); extern void fd_reselect_async( struct fd *fd, struct async_queue *queue );
extern obj_handle_t no_fd_read( struct fd *fd, struct async *async, file_pos_t pos ); extern obj_handle_t no_fd_read( struct fd *fd, struct async *async, file_pos_t pos );
extern obj_handle_t no_fd_write( struct fd *fd, struct async *async, int blocking, file_pos_t pos ); extern obj_handle_t no_fd_write( struct fd *fd, struct async *async, file_pos_t pos );
extern obj_handle_t no_fd_flush( struct fd *fd, struct async *async, int blocking ); extern obj_handle_t no_fd_flush( struct fd *fd, struct async *async, int blocking );
extern obj_handle_t no_fd_ioctl( struct fd *fd, ioctl_code_t code, struct async *async ); extern obj_handle_t no_fd_ioctl( struct fd *fd, ioctl_code_t code, struct async *async );
extern obj_handle_t default_fd_ioctl( struct fd *fd, ioctl_code_t code, struct async *async ); extern obj_handle_t default_fd_ioctl( struct fd *fd, ioctl_code_t code, struct async *async );

View File

@ -154,7 +154,7 @@ static const struct object_ops named_pipe_ops =
/* common server and client pipe end functions */ /* common server and client pipe end functions */
static obj_handle_t pipe_end_read( struct fd *fd, struct async *async, file_pos_t pos ); static obj_handle_t pipe_end_read( struct fd *fd, struct async *async, file_pos_t pos );
static obj_handle_t pipe_end_write( struct fd *fd, struct async *async_data, int blocking, file_pos_t pos ); static obj_handle_t pipe_end_write( struct fd *fd, struct async *async_data, file_pos_t pos );
static void pipe_end_queue_async( struct fd *fd, struct async *async, int type, int count ); static void pipe_end_queue_async( struct fd *fd, struct async *async, int type, int count );
static void pipe_end_reselect_async( struct fd *fd, struct async_queue *queue ); static void pipe_end_reselect_async( struct fd *fd, struct async_queue *queue );
@ -845,14 +845,14 @@ static obj_handle_t pipe_end_read( struct fd *fd, struct async *async, file_pos_
return handle; return handle;
} }
static obj_handle_t pipe_end_write( struct fd *fd, struct async *async, int blocking, file_pos_t pos ) static obj_handle_t pipe_end_write( struct fd *fd, struct async *async, file_pos_t pos )
{ {
struct pipe_end *write_end = get_fd_user( fd ); struct pipe_end *write_end = get_fd_user( fd );
struct pipe_end *read_end = write_end->connection; struct pipe_end *read_end = write_end->connection;
struct pipe_message *message; struct pipe_message *message;
obj_handle_t handle = 0; obj_handle_t handle = 0;
if (!use_server_io( write_end )) return no_fd_write( fd, async, blocking, pos ); if (!use_server_io( write_end )) return no_fd_write( fd, async, pos );
if (!read_end) if (!read_end)
{ {
@ -877,7 +877,7 @@ static obj_handle_t pipe_end_write( struct fd *fd, struct async *async, int bloc
reselect_write_queue( write_end ); reselect_write_queue( write_end );
set_error( STATUS_PENDING ); set_error( STATUS_PENDING );
if (!blocking) if (!async_is_blocking( async ))
{ {
struct iosb *iosb; struct iosb *iosb;
iosb = async_get_iosb( async ); iosb = async_get_iosb( async );