11.11Snjoly/* $NetBSD: linux_errno.h,v 1.11 2013/12/17 22:14:24 njoly Exp $ */ 21.2Serh 31.2Serh/*- 41.3Sfvdl * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. 51.2Serh * All rights reserved. 61.2Serh * 71.2Serh * This code is derived from software contributed to The NetBSD Foundation 81.3Sfvdl * by Frank van der Linden and Eric Haszlakiewicz. 91.2Serh * 101.2Serh * Redistribution and use in source and binary forms, with or without 111.2Serh * modification, are permitted provided that the following conditions 121.2Serh * are met: 131.2Serh * 1. Redistributions of source code must retain the above copyright 141.2Serh * notice, this list of conditions and the following disclaimer. 151.2Serh * 2. Redistributions in binary form must reproduce the above copyright 161.2Serh * notice, this list of conditions and the following disclaimer in the 171.2Serh * documentation and/or other materials provided with the distribution. 181.2Serh * 191.2Serh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.2Serh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.2Serh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.2Serh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.2Serh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.2Serh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.2Serh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.2Serh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.2Serh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.2Serh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.2Serh * POSSIBILITY OF SUCH DAMAGE. 301.1Sfvdl */ 311.1Sfvdl 321.2Serh#ifndef _I386_LINUX_ERRNO_H 331.2Serh#define _I386_LINUX_ERRNO_H 341.6Smanu 351.11Snjoly#include <compat/linux/common/linux_errno_generic.h> 361.11Snjoly 371.6Smanu/* 381.8Sperry * Linux/i386 returns negative errors to userland 391.8Sperry * The libc makes the errno positive. 401.6Smanu */ 411.6Smanu#define LINUX_SCERR_SIGN - 421.2Serh 431.2Serh#endif /* !_I386_LINUX_ERRNO_H */ 44