diff options
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/linux_event.c | 2 | ||||
| -rw-r--r-- | sys/compat/linux/linux_ioctl.h | 12 | 
2 files changed, 13 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_event.c b/sys/compat/linux/linux_event.c index e88791659f1f..fc3ef7c3e90a 100644 --- a/sys/compat/linux/linux_event.c +++ b/sys/compat/linux/linux_event.c @@ -104,7 +104,7 @@ static int  epoll_create_common(struct thread *td, int flags)  { -	return (kern_kqueue(td, flags, NULL)); +	return (kern_kqueue(td, flags, false, NULL));  }  #ifdef LINUX_LEGACY_SYSCALLS diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index ccc25bc919ab..8345b7e4b719 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -823,4 +823,16 @@ int	linux32_ioctl_register_handler(struct linux_ioctl_handler *h);  int	linux32_ioctl_unregister_handler(struct linux_ioctl_handler *h);  #endif +#define LINUX_IOCTL_SET(n, low, high)				\ +static linux_ioctl_function_t n##_linux_ioctl;			\ +static struct linux_ioctl_handler n##_linux_handler = {		\ +	n##_linux_ioctl,					\ +	low,							\ +	high							\ +};								\ +SYSINIT(n##_ioctl_register, SI_SUB_KLD, SI_ORDER_MIDDLE,	\ +    linux_ioctl_register_handler, &n##_linux_handler);		\ +SYSUNINIT(n##_ioctl_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE,	\ +    linux_ioctl_unregister_handler, &n##_linux_handler) +  #endif /* !_LINUX_IOCTL_H_ */  | 
