1*f036aca9Sryo /* $NetBSD: linux_oldselect.h,v 1.4 2021/09/23 06:56:27 ryo Exp $ */ 2c0a539a5Serh 3c0a539a5Serh /*- 4c0a539a5Serh * Copyright (c) 1998 The NetBSD Foundation, Inc. 5c0a539a5Serh * All rights reserved. 6c0a539a5Serh * 7c0a539a5Serh * This code is derived from software contributed to The NetBSD Foundation 8c0a539a5Serh * by Eric Haszlakiewicz. 9c0a539a5Serh * 10c0a539a5Serh * Redistribution and use in source and binary forms, with or without 11c0a539a5Serh * modification, are permitted provided that the following conditions 12c0a539a5Serh * are met: 13c0a539a5Serh * 1. Redistributions of source code must retain the above copyright 14c0a539a5Serh * notice, this list of conditions and the following disclaimer. 15c0a539a5Serh * 2. Redistributions in binary form must reproduce the above copyright 16c0a539a5Serh * notice, this list of conditions and the following disclaimer in the 17c0a539a5Serh * documentation and/or other materials provided with the distribution. 18c0a539a5Serh * 19c0a539a5Serh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20c0a539a5Serh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21c0a539a5Serh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22c0a539a5Serh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23c0a539a5Serh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24c0a539a5Serh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25c0a539a5Serh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26c0a539a5Serh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27c0a539a5Serh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28c0a539a5Serh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29c0a539a5Serh * POSSIBILITY OF SUCH DAMAGE. 30c0a539a5Serh */ 31c0a539a5Serh 32c0a539a5Serh #ifndef _MULTIARCH_LINUX_OLDSELECT_H 33c0a539a5Serh #define _MULTIARCH_LINUX_OLDSELECT_H 34c0a539a5Serh 35c0a539a5Serh /* Used on: arm, i386, m68k */ 36*f036aca9Sryo /* Not used on: aarch64, alpha, mips, ppc, sparc, sparc64 */ 37c0a539a5Serh 38c0a539a5Serh /* 39c0a539a5Serh * Passed to the old select() system call 40c0a539a5Serh */ 41c0a539a5Serh struct linux_oldselect { 42c0a539a5Serh int nfds; 43c0a539a5Serh fd_set *readfds; 44c0a539a5Serh fd_set *writefds; 45c0a539a5Serh fd_set *exceptfds; 46461a86f9Schristos struct linux_timeval *timeout; 47c0a539a5Serh }; 48c0a539a5Serh 49c0a539a5Serh #endif /* !_MULTIARCH_LINUX_OLDSELECT_H */ 50