/*
 * errno.h for libRILc.

    This file is part of libRILc, a standard C library for GCC on Amiga OS.
    Copyright © 1998  Rask Ingemann Lambertsen

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public
    License along with this library; if not, write to the Free
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

    As a special exception, if you link this library with files compiled
    with a GNU compiler to produce an executable, this does not cause the
    resulting executable to be covered by the GNU General Public License.
    This exception does not however invalidate any other reasons why the
    executable file might be covered by the GNU General Public License.
*/

#ifndef _ERRNO_H
#define _ERRNO_H

#ifdef __cplusplus
extern "C" {
#endif

extern int errno;

/* Wouldn't it be fun to see what happens if you shuffle these numbers? */

#define	EPERM           1
#define	ENOENT          2
#define	ESRCH           3
#define	EINTR           4
#define	EIO             5
#define	ENXIO           6
#define	E2BIG           7
#define	ENOEXEC         8
#define	EBADF           9
#define	ECHILD          10
#define	EAGAIN          11
#define	ENOMEM          12
#define	EACCES          13
#define	EFAULT          14
#define	ENOTBLK         15
#define	EBUSY           16
#define	EEXIST          17
#define	EXDEV           18
#define	ENODEV          19
#define	ENOTDIR         20
#define	EISDIR          21
#define	EINVAL          22
#define	ENFILE          23
#define	EMFILE          24
#define	ENOTTY          25
#define	ETXTBSY         26
#define	EFBIG           27
#define	ENOSPC          28
#define	ESPIPE          29
#define	EROFS           30
#define	EMLINK          31
#define	EPIPE           32
#define	EDOM            33
#define	ERANGE          34
#define	EDEADLK         35
#define	EINPROGRESS     36
#define	EALREADY        37
#define	ENOTSOCK        38
#define	EDESTADDRREQ    39
#define	EMSGSIZE        40
#define	EPROTOTYPE      41
#define	ENOPROTOOPT     42
#define	EPROTONOSUPPORT 43
#define	ESOCKTNOSUPPORT 44
#define	EOPNOTSUPP      45
#define	EPFNOSUPPORT    46
#define	EAFNOSUPPORT    47
#define	EADDRINUSE      48
#define	EADDRNOTAVAIL   49
#define	ENETDOWN        50
#define	ENETUNREACH     51
#define	ENETRESET       52
#define	ECONNABORTED    53
#define	ECONNRESET      54
#define	ENOBUFS         55
#define	EISCONN         56
#define	ENOTCONN        57
#define	ESHUTDOWN       58
#define	ETOOMANYREFS    59
#define	ETIMEDOUT       60
#define	ECONNREFUSED    61
#define	ELOOP           62
#define	ENAMETOOLONG    63
#define	EHOSTDOWN       64
#define	EHOSTUNREACH    65
#define	ENOTEMPTY       66
#define	EPROCLIM        67
#define	EUSERS          68
#define	EDQUOT          69
#define	ESTALE          70
#define	EREMOTE         71
#define	EBADRPC         72
#define	ERPCMISMATCH    73
#define	EPROGUNAVAIL    74
#define	EPROGMISMATCH   75
#define	EPROCUNAVAIL    76
#define	ENOLCK          77
#define	ENOSYS          78
#define	EFTYPE          79
#define	EWOULDBLOCK     80

#ifdef __cplusplus
}
#endif

#endif /* _ERRNO_H */
