Commit ad1e0609 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

server: Get rid of no loner used cancel_async from fd_ops.

parent 055918c9
...@@ -189,8 +189,7 @@ static const struct fd_ops dir_fd_ops = ...@@ -189,8 +189,7 @@ static const struct fd_ops dir_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
default_fd_ioctl, /* ioctl */ default_fd_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
static struct list change_list = LIST_INIT(change_list); static struct list change_list = LIST_INIT(change_list);
...@@ -701,8 +700,7 @@ static const struct fd_ops inotify_fd_ops = ...@@ -701,8 +700,7 @@ static const struct fd_ops inotify_fd_ops =
NULL, /* get_fd_type */ NULL, /* get_fd_type */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* queue_async */ NULL, /* queue_async */
NULL, /* reselect_async */ NULL /* reselect_async */
NULL, /* cancel_async */
}; };
static int inotify_get_poll_events( struct fd *fd ) static int inotify_get_poll_events( struct fd *fd )
......
...@@ -193,8 +193,7 @@ static const struct fd_ops console_fd_ops = ...@@ -193,8 +193,7 @@ static const struct fd_ops console_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
default_fd_ioctl, /* ioctl */ default_fd_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
static struct list screen_buffer_list = LIST_INIT(screen_buffer_list); static struct list screen_buffer_list = LIST_INIT(screen_buffer_list);
......
...@@ -220,8 +220,7 @@ static const struct fd_ops device_file_fd_ops = ...@@ -220,8 +220,7 @@ static const struct fd_ops device_file_fd_ops =
device_file_flush, /* flush */ device_file_flush, /* flush */
device_file_ioctl, /* ioctl */ device_file_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
......
...@@ -2115,12 +2115,6 @@ void default_fd_reselect_async( struct fd *fd, struct async_queue *queue ) ...@@ -2115,12 +2115,6 @@ void default_fd_reselect_async( struct fd *fd, struct async_queue *queue )
} }
} }
/* default cancel_async() fd routine */
int default_fd_cancel_async( struct fd *fd, struct process *process, struct thread *thread, client_ptr_t iosb )
{
return 0;
}
static inline int is_valid_mounted_device( struct stat *st ) static inline int is_valid_mounted_device( struct stat *st )
{ {
#if defined(linux) || defined(__sun__) #if defined(linux) || defined(__sun__)
......
...@@ -109,8 +109,7 @@ static const struct fd_ops file_fd_ops = ...@@ -109,8 +109,7 @@ static const struct fd_ops file_fd_ops =
file_flush, /* flush */ file_flush, /* flush */
default_fd_ioctl, /* ioctl */ default_fd_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
static inline int is_overlapped( const struct file *file ) static inline int is_overlapped( const struct file *file )
......
...@@ -51,8 +51,6 @@ struct fd_ops ...@@ -51,8 +51,6 @@ struct fd_ops
void (*queue_async)(struct fd *, const async_data_t *data, int type, int count); void (*queue_async)(struct fd *, const async_data_t *data, int type, int count);
/* selected events for async i/o need an update */ /* selected events for async i/o need an update */
void (*reselect_async)( struct fd *, struct async_queue *queue ); void (*reselect_async)( struct fd *, struct async_queue *queue );
/* cancel an async operation */
int (*cancel_async)(struct fd *, struct process *process, struct thread *thread, client_ptr_t iosb);
}; };
/* file descriptor functions */ /* file descriptor functions */
...@@ -99,7 +97,6 @@ extern obj_handle_t default_fd_ioctl( struct fd *fd, ioctl_code_t code, const as ...@@ -99,7 +97,6 @@ extern obj_handle_t default_fd_ioctl( struct fd *fd, ioctl_code_t code, const as
extern void no_fd_queue_async( struct fd *fd, const async_data_t *data, int type, int count ); extern void no_fd_queue_async( struct fd *fd, const async_data_t *data, int type, int count );
extern void default_fd_queue_async( struct fd *fd, const async_data_t *data, int type, int count ); extern void default_fd_queue_async( struct fd *fd, const async_data_t *data, int type, int count );
extern void default_fd_reselect_async( struct fd *fd, struct async_queue *queue ); extern void default_fd_reselect_async( struct fd *fd, struct async_queue *queue );
extern int default_fd_cancel_async( struct fd *fd, struct process *process, struct thread *thread, client_ptr_t iosb );
extern void main_loop(void); extern void main_loop(void);
extern void remove_process_locks( struct process *process ); extern void remove_process_locks( struct process *process );
......
...@@ -106,8 +106,7 @@ static const struct fd_ops mailslot_fd_ops = ...@@ -106,8 +106,7 @@ static const struct fd_ops mailslot_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
default_fd_ioctl, /* ioctl */ default_fd_ioctl, /* ioctl */
mailslot_queue_async, /* queue_async */ mailslot_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
...@@ -160,8 +159,7 @@ static const struct fd_ops mail_writer_fd_ops = ...@@ -160,8 +159,7 @@ static const struct fd_ops mail_writer_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
default_fd_ioctl, /* ioctl */ default_fd_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
...@@ -214,8 +212,7 @@ static const struct fd_ops mailslot_device_fd_ops = ...@@ -214,8 +212,7 @@ static const struct fd_ops mailslot_device_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
default_fd_ioctl, /* ioctl */ default_fd_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
static void mailslot_destroy( struct object *obj) static void mailslot_destroy( struct object *obj)
......
...@@ -108,8 +108,7 @@ static const struct fd_ops mapping_fd_ops = ...@@ -108,8 +108,7 @@ static const struct fd_ops mapping_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
no_fd_ioctl, /* ioctl */ no_fd_ioctl, /* ioctl */
no_fd_queue_async, /* queue_async */ no_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
static struct list shared_list = LIST_INIT(shared_list); static struct list shared_list = LIST_INIT(shared_list);
......
...@@ -179,8 +179,7 @@ static const struct fd_ops pipe_server_fd_ops = ...@@ -179,8 +179,7 @@ static const struct fd_ops pipe_server_fd_ops =
pipe_server_flush, /* flush */ pipe_server_flush, /* flush */
pipe_server_ioctl, /* ioctl */ pipe_server_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async, /* cancel_async */
}; };
/* client end functions */ /* client end functions */
...@@ -223,8 +222,7 @@ static const struct fd_ops pipe_client_fd_ops = ...@@ -223,8 +222,7 @@ static const struct fd_ops pipe_client_fd_ops =
pipe_client_flush, /* flush */ pipe_client_flush, /* flush */
default_fd_ioctl, /* ioctl */ default_fd_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
static void named_pipe_device_dump( struct object *obj, int verbose ); static void named_pipe_device_dump( struct object *obj, int verbose );
...@@ -271,8 +269,7 @@ static const struct fd_ops named_pipe_device_fd_ops = ...@@ -271,8 +269,7 @@ static const struct fd_ops named_pipe_device_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
named_pipe_device_ioctl, /* ioctl */ named_pipe_device_ioctl, /* ioctl */
default_fd_queue_async, /* queue_async */ default_fd_queue_async, /* queue_async */
default_fd_reselect_async, /* reselect_async */ default_fd_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
static void named_pipe_dump( struct object *obj, int verbose ) static void named_pipe_dump( struct object *obj, int verbose )
......
...@@ -119,8 +119,7 @@ static const struct fd_ops master_socket_fd_ops = ...@@ -119,8 +119,7 @@ static const struct fd_ops master_socket_fd_ops =
NULL, /* get_fd_type */ NULL, /* get_fd_type */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* queue_async */ NULL, /* queue_async */
NULL, /* reselect_async */ NULL /* reselect_async */
NULL /* cancel_async */
}; };
......
...@@ -120,8 +120,7 @@ static const struct fd_ops serial_fd_ops = ...@@ -120,8 +120,7 @@ static const struct fd_ops serial_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
default_fd_ioctl, /* ioctl */ default_fd_ioctl, /* ioctl */
serial_queue_async, /* queue_async */ serial_queue_async, /* queue_async */
serial_reselect_async, /* reselect_async */ serial_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
/* check if the given fd is a serial port */ /* check if the given fd is a serial port */
......
...@@ -91,8 +91,7 @@ static const struct fd_ops handler_fd_ops = ...@@ -91,8 +91,7 @@ static const struct fd_ops handler_fd_ops =
NULL, /* get_fd_type */ NULL, /* get_fd_type */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* queue_async */ NULL, /* queue_async */
NULL, /* reselect_async */ NULL /* reselect_async */
NULL /* cancel_async */
}; };
static struct handler *handler_sighup; static struct handler *handler_sighup;
......
...@@ -169,8 +169,7 @@ static const struct fd_ops sock_fd_ops = ...@@ -169,8 +169,7 @@ static const struct fd_ops sock_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
sock_ioctl, /* ioctl */ sock_ioctl, /* ioctl */
sock_queue_async, /* queue_async */ sock_queue_async, /* queue_async */
sock_reselect_async, /* reselect_async */ sock_reselect_async /* reselect_async */
default_fd_cancel_async /* cancel_async */
}; };
...@@ -1002,8 +1001,7 @@ static const struct fd_ops ifchange_fd_ops = ...@@ -1002,8 +1001,7 @@ static const struct fd_ops ifchange_fd_ops =
no_fd_flush, /* flush */ no_fd_flush, /* flush */
no_fd_ioctl, /* ioctl */ no_fd_ioctl, /* ioctl */
NULL, /* queue_async */ NULL, /* queue_async */
NULL, /* reselect_async */ NULL /* reselect_async */
NULL /* cancel_async */
}; };
static void ifchange_dump( struct object *obj, int verbose ) static void ifchange_dump( struct object *obj, int verbose )
......
...@@ -163,8 +163,7 @@ static const struct fd_ops thread_fd_ops = ...@@ -163,8 +163,7 @@ static const struct fd_ops thread_fd_ops =
NULL, /* get_fd_type */ NULL, /* get_fd_type */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* queue_async */ NULL, /* queue_async */
NULL, /* reselect_async */ NULL /* reselect_async */
NULL /* cancel_async */
}; };
static struct list thread_list = LIST_INIT(thread_list); static struct list thread_list = LIST_INIT(thread_list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment