errno.h (139825) | errno.h (144530) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)errno.h 8.5 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)errno.h 8.5 (Berkeley) 1/21/94 |
35 * $FreeBSD: head/sys/sys/errno.h 139825 2005-01-07 02:29:27Z imp $ | 35 * $FreeBSD: head/sys/sys/errno.h 144530 2005-04-02 12:33:28Z das $ |
36 */ 37 38#ifndef _SYS_ERRNO_H_ 39#define _SYS_ERRNO_H_ 40 41#ifndef _KERNEL 42#include <sys/cdefs.h> 43__BEGIN_DECLS --- 117 unchanged lines hidden (view full) --- 161#define EIDRM 82 /* Identifier removed */ 162#define ENOMSG 83 /* No message of desired type */ 163#define EOVERFLOW 84 /* Value too large to be stored in data type */ 164#define ECANCELED 85 /* Operation canceled */ 165#define EILSEQ 86 /* Illegal byte sequence */ 166#define ENOATTR 87 /* Attribute not found */ 167 168#define EDOOFUS 88 /* Programming error */ | 36 */ 37 38#ifndef _SYS_ERRNO_H_ 39#define _SYS_ERRNO_H_ 40 41#ifndef _KERNEL 42#include <sys/cdefs.h> 43__BEGIN_DECLS --- 117 unchanged lines hidden (view full) --- 161#define EIDRM 82 /* Identifier removed */ 162#define ENOMSG 83 /* No message of desired type */ 163#define EOVERFLOW 84 /* Value too large to be stored in data type */ 164#define ECANCELED 85 /* Operation canceled */ 165#define EILSEQ 86 /* Illegal byte sequence */ 166#define ENOATTR 87 /* Attribute not found */ 167 168#define EDOOFUS 88 /* Programming error */ |
169#endif /* _POSIX_SOURCE */ |
|
169 | 170 |
170#define ELAST 88 /* Must be equal largest errno */ | 171#define EBADMSG 89 /* Bad message */ 172#define EMULTIHOP 90 /* Multihop attempted */ 173#define ENOLINK 91 /* Link has been severed */ 174#define EPROTO 92 /* Protocol error */ |
171 | 175 |
176#ifndef _POSIX_SOURCE 177#define ELAST 92 /* Must be equal largest errno */ |
|
172#endif /* _POSIX_SOURCE */ 173 174#ifdef _KERNEL 175/* pseudo-errors returned inside kernel to modify return to process */ 176#define ERESTART (-1) /* restart syscall */ 177#define EJUSTRETURN (-2) /* don't modify regs, just return */ 178#define ENOIOCTL (-3) /* ioctl not handled by this layer */ 179#define EDIRIOCTL (-4) /* do direct ioctl in GEOM */ 180#endif 181 182#endif | 178#endif /* _POSIX_SOURCE */ 179 180#ifdef _KERNEL 181/* pseudo-errors returned inside kernel to modify return to process */ 182#define ERESTART (-1) /* restart syscall */ 183#define EJUSTRETURN (-2) /* don't modify regs, just return */ 184#define ENOIOCTL (-3) /* ioctl not handled by this layer */ 185#define EDIRIOCTL (-4) /* do direct ioctl in GEOM */ 186#endif 187 188#endif |