netbsd32_event.h revision 1.2
11.2Srin/*	$NetBSD: netbsd32_event.h,v 1.2 2023/07/29 12:48:15 rin Exp $	*/
21.1Srin
31.1Srin/*
41.1Srin * Copyright (c) 2023 NetBSD Foundation, Inc.
51.1Srin * All rights reserved.
61.1Srin *
71.1Srin * Redistribution and use in source and binary forms, with or without
81.1Srin * modification, are permitted provided that the following conditions
91.1Srin * are met:
101.1Srin * 1. Redistributions of source code must retain the above copyright
111.1Srin *    notice, this list of conditions and the following disclaimer.
121.1Srin * 2. Redistributions in binary form must reproduce the above copyright
131.1Srin *    notice, this list of conditions and the following disclaimer in the
141.1Srin *    documentation and/or other materials provided with the distribution.
151.1Srin *
161.1Srin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
171.1Srin * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
181.1Srin * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
191.1Srin * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
201.1Srin * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
211.1Srin * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
221.1Srin * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
231.1Srin * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
241.1Srin * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
251.1Srin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
261.1Srin * SUCH DAMAGE.
271.1Srin */
281.1Srin
291.1Srin#ifndef	_NETBSD32_EVENT_H_
301.1Srin#define	_NETBSD32_EVENT_H_
311.1Srin
321.1Srin#include <compat/netbsd32/netbsd32.h>
331.1Srin
341.1Srin/* netbsd32_event.c */
351.2Srinint netbsd32_kevent_fetch_timeout(const void *, void *, size_t);
361.1Srinint netbsd32_kevent1(register_t *, int, const netbsd32_kevent100p_t,
371.1Srin    netbsd32_size_t, netbsd32_kevent100p_t, netbsd32_size_t,
381.1Srin    netbsd32_timespecp_t, struct kevent_ops *);
391.1Srin
401.1Srin/* netbsd32_compat_100.c */
411.1Srinint compat_100_netbsd32_kevent_fetch_changes(void *, const struct kevent *,
421.1Srin    struct kevent *, size_t, int);
431.1Srinint compat_100_netbsd32_kevent_put_events(void *, struct kevent *,
441.1Srin    struct kevent *, size_t, int);
451.1Srin
461.1Srin#endif /* !_NETBSD32_EVENT_H_ */
47