Commit b16ebc2e authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Update sys/errno.h from FreeBSD

This is SVN revision 229286 from FreeBSD 9.0.0, with the RISC OS-isms left at the top.
The numbers for EDOM, ERANGE, and EILSEQ are redefined if already defined, to sidestep clashes with those defined by ISO9899.

Version 5.57. Tagged as 'TCPIPLibs-5_57'
parent 6ef5ef9e
/* (5.56)
/* (5.57)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 5.56
#define Module_MajorVersion_CMHG 5.57
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 26 Aug 2012
#define Module_Date_CMHG 26 May 2013
#define Module_MajorVersion "5.56"
#define Module_Version 556
#define Module_MajorVersion "5.57"
#define Module_Version 557
#define Module_MinorVersion ""
#define Module_Date "26 Aug 2012"
#define Module_Date "26 May 2013"
#define Module_ApplicationDate "26-Aug-12"
#define Module_ApplicationDate "26-May-13"
#define Module_ComponentName "TCPIPLibs"
#define Module_ComponentPath "mixed/RiscOS/Sources/Lib/TCPIPLibs"
#define Module_FullVersion "5.56"
#define Module_HelpVersion "5.56 (26 Aug 2012)"
#define Module_LibraryVersionInfo "5:56"
#define Module_FullVersion "5.57"
#define Module_HelpVersion "5.57 (26 May 2013)"
#define Module_LibraryVersionInfo "5:57"
/*
/*-
* Copyright (c) 1982, 1986, 1989, 1993
* The Regents of the University of California. All rights reserved.
* (c) UNIX System Laboratories, Inc.
......@@ -52,7 +52,7 @@ extern int errno; /* global error number */
extern _kernel_oserror _inet_error;
/*
* this function returns the last error string
* This function returns the last error string
* returned from the Internet module
*/
extern char *_inet_err(void);
......@@ -95,7 +95,7 @@ extern char *_inet_err(void);
#define EFBIG 27 /* File too large */
#define ENOSPC 28 /* No space left on device */
#define ESPIPE 29 /* Illegal seek */
#define EROFS 30 /* Read-only file system */
#define EROFS 30 /* Read-only filesystem */
#define EMLINK 31 /* Too many links */
#define EPIPE 32 /* Broken pipe */
......@@ -123,9 +123,10 @@ extern char *_inet_err(void);
#define EMSGSIZE 40 /* Message too long */
#define EPROTOTYPE 41 /* Protocol wrong type for socket */
#define ENOPROTOOPT 42 /* Protocol not available */
#define EPROTONOSUPPORT 43 /* Protocol not supported */
#define ESOCKTNOSUPPORT 44 /* Socket type not supported */
#define EPROTONOSUPPORT 43 /* Protocol not supported */
#define ESOCKTNOSUPPORT 44 /* Socket type not supported */
#define EOPNOTSUPP 45 /* Operation not supported */
#define ENOTSUP EOPNOTSUPP /* Operation not supported */
#define EPFNOSUPPORT 46 /* Protocol family not supported */
#define EAFNOSUPPORT 47 /* Address family not supported by protocol family */
#define EADDRINUSE 48 /* Address already in use */
......@@ -142,7 +143,7 @@ extern char *_inet_err(void);
#define ENOTCONN 57 /* Socket is not connected */
#define ESHUTDOWN 58 /* Can't send after socket shutdown */
#define ETOOMANYREFS 59 /* Too many references: can't splice */
#define ETIMEDOUT 60 /* Connection timed out */
#define ETIMEDOUT 60 /* Operation timed out */
#define ECONNREFUSED 61 /* Connection refused */
#define ELOOP 62 /* Too many levels of symbolic links */
......@@ -179,13 +180,39 @@ extern char *_inet_err(void);
#define EFTYPE 79 /* Inappropriate file type or format */
#define EAUTH 80 /* Authentication error */
#define ENEEDAUTH 81 /* Need authenticator */
#define ELAST 81 /* Must be equal largest errno */
#define EIDRM 82 /* Identifier removed */
#define ENOMSG 83 /* No message of desired type */
#define EOVERFLOW 84 /* Value too large to be stored in data type */
#define ECANCELED 85 /* Operation canceled */
#ifdef EILSEQ /* get rid of ANSI define */
#undef EILSEQ
#endif
#define EILSEQ 86 /* Illegal byte sequence */
#define ENOATTR 87 /* Attribute not found */
#define EDOOFUS 88 /* Programming error */
#endif /* _POSIX_SOURCE */
#define EBADMSG 89 /* Bad message */
#define EMULTIHOP 90 /* Multihop attempted */
#define ENOLINK 91 /* Link has been severed */
#define EPROTO 92 /* Protocol error */
#ifndef _POSIX_SOURCE
#define ENOTCAPABLE 93 /* Capabilities insufficient */
#define ECAPMODE 94 /* Not permitted in capability mode */
#endif /* _POSIX_SOURCE */
#ifndef _POSIX_SOURCE
#define ELAST 94 /* Must be equal largest errno */
#endif /* _POSIX_SOURCE */
#ifdef KERNEL
/* pseudo-errors returned inside kernel to modify return to process */
#define ERESTART -1 /* restart syscall */
#define EJUSTRETURN -2 /* don't modify regs, just return */
#define ERESTART (-1) /* restart syscall */
#define EJUSTRETURN (-2) /* don't modify regs, just return */
#define ENOIOCTL (-3) /* ioctl not handled by this layer */
#define EDIRIOCTL (-4) /* do direct ioctl in GEOM */
#endif
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment