xref: /netbsd-src/sys/compat/linux/arch/arm/linux_errno.h (revision b647d3d5d8635432aa56509a79f48d7bd5c7ddf0)
1*b647d3d5Snjoly /* 	$NetBSD: linux_errno.h,v 1.7 2013/12/17 22:14:24 njoly Exp $	*/
264625064Sbjh21 
364625064Sbjh21 /*-
464625064Sbjh21  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
564625064Sbjh21  * All rights reserved.
664625064Sbjh21  *
764625064Sbjh21  * This code is derived from software contributed to The NetBSD Foundation
864625064Sbjh21  * by Frank van der Linden and Eric Haszlakiewicz.
964625064Sbjh21  *
1064625064Sbjh21  * Redistribution and use in source and binary forms, with or without
1164625064Sbjh21  * modification, are permitted provided that the following conditions
1264625064Sbjh21  * are met:
1364625064Sbjh21  * 1. Redistributions of source code must retain the above copyright
1464625064Sbjh21  *    notice, this list of conditions and the following disclaimer.
1564625064Sbjh21  * 2. Redistributions in binary form must reproduce the above copyright
1664625064Sbjh21  *    notice, this list of conditions and the following disclaimer in the
1764625064Sbjh21  *    documentation and/or other materials provided with the distribution.
1864625064Sbjh21  *
1964625064Sbjh21  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2064625064Sbjh21  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2164625064Sbjh21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2264625064Sbjh21  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2364625064Sbjh21  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2464625064Sbjh21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2564625064Sbjh21  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2664625064Sbjh21  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2764625064Sbjh21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2864625064Sbjh21  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2964625064Sbjh21  * POSSIBILITY OF SUCH DAMAGE.
3064625064Sbjh21  */
3164625064Sbjh21 
3264625064Sbjh21 #ifndef _ARM_LINUX_ERRNO_H
3364625064Sbjh21 #define _ARM_LINUX_ERRNO_H
3464625064Sbjh21 
35*b647d3d5Snjoly #include <compat/linux/common/linux_errno_generic.h>
36*b647d3d5Snjoly 
3764625064Sbjh21 /*
3864625064Sbjh21  * Linux/arm returns negative errors to userland
3964625064Sbjh21  * The libc makes the errno positive.
4064625064Sbjh21  */
4164625064Sbjh21 #define LINUX_SCERR_SIGN -
4264625064Sbjh21 
43934715dbSbjh21 #endif
44