xref: /netbsd-src/sys/compat/linux/arch/m68k/linux_errno.h (revision b647d3d5d8635432aa56509a79f48d7bd5c7ddf0)
1*b647d3d5Snjoly /* 	$NetBSD: linux_errno.h,v 1.5 2013/12/17 22:14:24 njoly Exp $	*/
20176ca73Sitohy 
30176ca73Sitohy /*-
40176ca73Sitohy  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
50176ca73Sitohy  * All rights reserved.
60176ca73Sitohy  *
70176ca73Sitohy  * This code is derived from software contributed to The NetBSD Foundation
80176ca73Sitohy  * by Frank van der Linden and Eric Haszlakiewicz.
90176ca73Sitohy  *
100176ca73Sitohy  * Redistribution and use in source and binary forms, with or without
110176ca73Sitohy  * modification, are permitted provided that the following conditions
120176ca73Sitohy  * are met:
130176ca73Sitohy  * 1. Redistributions of source code must retain the above copyright
140176ca73Sitohy  *    notice, this list of conditions and the following disclaimer.
150176ca73Sitohy  * 2. Redistributions in binary form must reproduce the above copyright
160176ca73Sitohy  *    notice, this list of conditions and the following disclaimer in the
170176ca73Sitohy  *    documentation and/or other materials provided with the distribution.
180176ca73Sitohy  *
190176ca73Sitohy  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
200176ca73Sitohy  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
210176ca73Sitohy  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
220176ca73Sitohy  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
230176ca73Sitohy  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
240176ca73Sitohy  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
250176ca73Sitohy  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
260176ca73Sitohy  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
270176ca73Sitohy  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
280176ca73Sitohy  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
290176ca73Sitohy  * POSSIBILITY OF SUCH DAMAGE.
300176ca73Sitohy  */
310176ca73Sitohy 
320176ca73Sitohy #ifndef _M68K_LINUX_ERRNO_H
330176ca73Sitohy #define _M68K_LINUX_ERRNO_H
340176ca73Sitohy 
35*b647d3d5Snjoly #include <compat/linux/common/linux_errno_generic.h>
36*b647d3d5Snjoly 
3716bc5b40Smanu /*
38ad16681aSmanu  * Linux/m68k returns negative errors to userland
39ad16681aSmanu  * The libc makes the errno positive.
4016bc5b40Smanu  */
4116bc5b40Smanu #define LINUX_SCERR_SIGN -
4216bc5b40Smanu 
430176ca73Sitohy #endif /* !_M68K_LINUX_ERRNO_H */
44