xref: /netbsd-src/sys/compat/linux/arch/i386/linux_errno.h (revision b647d3d5d8635432aa56509a79f48d7bd5c7ddf0)
1*b647d3d5Snjoly /* 	$NetBSD: linux_errno.h,v 1.11 2013/12/17 22:14:24 njoly Exp $	*/
2a3f5b4f0Serh 
3a3f5b4f0Serh /*-
48096c25aSfvdl  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
5a3f5b4f0Serh  * All rights reserved.
6a3f5b4f0Serh  *
7a3f5b4f0Serh  * This code is derived from software contributed to The NetBSD Foundation
88096c25aSfvdl  * by Frank van der Linden and Eric Haszlakiewicz.
9a3f5b4f0Serh  *
10a3f5b4f0Serh  * Redistribution and use in source and binary forms, with or without
11a3f5b4f0Serh  * modification, are permitted provided that the following conditions
12a3f5b4f0Serh  * are met:
13a3f5b4f0Serh  * 1. Redistributions of source code must retain the above copyright
14a3f5b4f0Serh  *    notice, this list of conditions and the following disclaimer.
15a3f5b4f0Serh  * 2. Redistributions in binary form must reproduce the above copyright
16a3f5b4f0Serh  *    notice, this list of conditions and the following disclaimer in the
17a3f5b4f0Serh  *    documentation and/or other materials provided with the distribution.
18a3f5b4f0Serh  *
19a3f5b4f0Serh  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20a3f5b4f0Serh  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21a3f5b4f0Serh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22a3f5b4f0Serh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23a3f5b4f0Serh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24a3f5b4f0Serh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25a3f5b4f0Serh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26a3f5b4f0Serh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27a3f5b4f0Serh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28a3f5b4f0Serh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29a3f5b4f0Serh  * POSSIBILITY OF SUCH DAMAGE.
30a3f5b4f0Serh  */
31a3f5b4f0Serh 
32a3f5b4f0Serh #ifndef _I386_LINUX_ERRNO_H
33a3f5b4f0Serh #define _I386_LINUX_ERRNO_H
343bf459f3Sfvdl 
35*b647d3d5Snjoly #include <compat/linux/common/linux_errno_generic.h>
36*b647d3d5Snjoly 
3716bc5b40Smanu /*
38ad16681aSmanu  * Linux/i386 returns negative errors to userland
39ad16681aSmanu  * The libc makes the errno positive.
4016bc5b40Smanu  */
4116bc5b40Smanu #define LINUX_SCERR_SIGN -
4216bc5b40Smanu 
43a3f5b4f0Serh #endif /* !_I386_LINUX_ERRNO_H */
44