1*4b0dfcb9Srin /* $NetBSD: netbsd32_event.h,v 1.2 2023/07/29 12:48:15 rin Exp $ */ 21bcfe120Srin 31bcfe120Srin /* 41bcfe120Srin * Copyright (c) 2023 NetBSD Foundation, Inc. 51bcfe120Srin * All rights reserved. 61bcfe120Srin * 71bcfe120Srin * Redistribution and use in source and binary forms, with or without 81bcfe120Srin * modification, are permitted provided that the following conditions 91bcfe120Srin * are met: 101bcfe120Srin * 1. Redistributions of source code must retain the above copyright 111bcfe120Srin * notice, this list of conditions and the following disclaimer. 121bcfe120Srin * 2. Redistributions in binary form must reproduce the above copyright 131bcfe120Srin * notice, this list of conditions and the following disclaimer in the 141bcfe120Srin * documentation and/or other materials provided with the distribution. 151bcfe120Srin * 161bcfe120Srin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 171bcfe120Srin * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 181bcfe120Srin * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 191bcfe120Srin * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 201bcfe120Srin * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 211bcfe120Srin * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 221bcfe120Srin * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 231bcfe120Srin * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 241bcfe120Srin * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 251bcfe120Srin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 261bcfe120Srin * SUCH DAMAGE. 271bcfe120Srin */ 281bcfe120Srin 291bcfe120Srin #ifndef _NETBSD32_EVENT_H_ 301bcfe120Srin #define _NETBSD32_EVENT_H_ 311bcfe120Srin 321bcfe120Srin #include <compat/netbsd32/netbsd32.h> 331bcfe120Srin 341bcfe120Srin /* netbsd32_event.c */ 35*4b0dfcb9Srin int netbsd32_kevent_fetch_timeout(const void *, void *, size_t); 361bcfe120Srin int netbsd32_kevent1(register_t *, int, const netbsd32_kevent100p_t, 371bcfe120Srin netbsd32_size_t, netbsd32_kevent100p_t, netbsd32_size_t, 381bcfe120Srin netbsd32_timespecp_t, struct kevent_ops *); 391bcfe120Srin 401bcfe120Srin /* netbsd32_compat_100.c */ 411bcfe120Srin int compat_100_netbsd32_kevent_fetch_changes(void *, const struct kevent *, 421bcfe120Srin struct kevent *, size_t, int); 431bcfe120Srin int compat_100_netbsd32_kevent_put_events(void *, struct kevent *, 441bcfe120Srin struct kevent *, size_t, int); 451bcfe120Srin 461bcfe120Srin #endif /* !_NETBSD32_EVENT_H_ */ 47