errno.h revision 331756
1121159Sbmah/*- 2121159Sbmah * Copyright (c) 2010 Isilon Systems, Inc. 3121159Sbmah * Copyright (c) 2010 iX Systems, Inc. 4121159Sbmah * Copyright (c) 2010 Panasas, Inc. 5121159Sbmah * Copyright (c) 2013-2016 Mellanox Technologies, Ltd. 6121159Sbmah * All rights reserved. 7121159Sbmah * 8121159Sbmah * Redistribution and use in source and binary forms, with or without 9121159Sbmah * modification, are permitted provided that the following conditions 10121159Sbmah * are met: 11121159Sbmah * 1. Redistributions of source code must retain the above copyright 12121159Sbmah * notice unmodified, this list of conditions, and the following 13121159Sbmah * disclaimer. 14121159Sbmah * 2. Redistributions in binary form must reproduce the above copyright 15121159Sbmah * notice, this list of conditions and the following disclaimer in the 16121159Sbmah * documentation and/or other materials provided with the distribution. 17121159Sbmah * 18121159Sbmah * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19121159Sbmah * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20121159Sbmah * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21121159Sbmah * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22121159Sbmah * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23121159Sbmah * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24121159Sbmah * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25121159Sbmah * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26121159Sbmah * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27121159Sbmah * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28166671Sbrueffer * 29121159Sbmah * $FreeBSD: stable/11/sys/compat/linuxkpi/common/include/linux/errno.h 331756 2018-03-30 02:04:46Z emaste $ 30121159Sbmah */ 31121159Sbmah#ifndef _LINUX_ERRNO_H_ 32121159Sbmah#define _LINUX_ERRNO_H_ 33121159Sbmah 34121159Sbmah#include <sys/errno.h> 35121159Sbmah 36121159Sbmah#define ECHRNG EDOM 37121159Sbmah#define ETIME ETIMEDOUT 38121159Sbmah#define ECOMM ESTALE 39121159Sbmah#define ENODATA ECONNREFUSED 40121159Sbmah#define ENOIOCTLCMD ENOIOCTL 41121159Sbmah/* Use same value as Linux, because BSD's ERESTART is negative */ 42121159Sbmah#define ERESTARTSYS 512 43121159Sbmah#define ENOTSUPP EOPNOTSUPP 44121159Sbmah#define ENONET EHOSTDOWN 45121159Sbmah 46121159Sbmah#define ERESTARTNOINTR 513 47121159Sbmah#define ERESTARTNOHAND 514 48121159Sbmah#define ERESTART_RESTARTBLOCK 516 49121159Sbmah#define EPROBE_DEFER 517 50121159Sbmah#define EOPENSTALE 518 51121159Sbmah#define EBADHANDLE 521 52121159Sbmah#define ENOTSYNC 522 53121159Sbmah#define EBADCOOKIE 523 54121159Sbmah#define ETOOSMALL 525 55121159Sbmah#define ESERVERFAULT 526 56121159Sbmah#define EBADTYPE 527 57121159Sbmah#define EJUKEBOX 528 58121159Sbmah#define EIOCBQUEUED 529 59121159Sbmah 60121159Sbmah#endif /* _LINUX_ERRNO_H_ */ 61121159Sbmah