1*b7a2c575Schristos /* $NetBSD: h_linux.c,v 1.1 2023/08/19 22:56:44 christos Exp $ */ 2*b7a2c575Schristos 3*b7a2c575Schristos /*- 4*b7a2c575Schristos * Copyright (c) 2023 The NetBSD Foundation, Inc. 5*b7a2c575Schristos * All rights reserved. 6*b7a2c575Schristos * 7*b7a2c575Schristos * This code is derived from software contributed to The NetBSD Foundation 8*b7a2c575Schristos * by Theodore Preduta. 9*b7a2c575Schristos * 10*b7a2c575Schristos * Redistribution and use in source and binary forms, with or without 11*b7a2c575Schristos * modification, are permitted provided that the following conditions 12*b7a2c575Schristos * are met: 13*b7a2c575Schristos * 1. Redistributions of source code must retain the above copyright 14*b7a2c575Schristos * notice, this list of conditions and the following disclaimer. 15*b7a2c575Schristos * 2. Redistributions in binary form must reproduce the above copyright 16*b7a2c575Schristos * notice, this list of conditions and the following disclaimer in the 17*b7a2c575Schristos * documentation and/or other materials provided with the distribution. 18*b7a2c575Schristos * 19*b7a2c575Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*b7a2c575Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*b7a2c575Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*b7a2c575Schristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*b7a2c575Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*b7a2c575Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*b7a2c575Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*b7a2c575Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*b7a2c575Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*b7a2c575Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*b7a2c575Schristos * POSSIBILITY OF SUCH DAMAGE. 30*b7a2c575Schristos */ 31*b7a2c575Schristos #include <sys/cdefs.h> 32*b7a2c575Schristos __RCSID("$NetBSD: h_linux.c,v 1.1 2023/08/19 22:56:44 christos Exp $"); 33*b7a2c575Schristos 34*b7a2c575Schristos #include "h_linux.h" 35*b7a2c575Schristos 36*b7a2c575Schristos int errno = 0; 37