/*
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.mozilla.org/MPL/

Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
specific language governing rights and limitations under the License.

The Original Code is Lepton.

The Initial Developer of the Original Code is Chauvin-Arnoux.
Portions created by Chauvin-Arnoux are Copyright (C) 2011. All Rights Reserved.

Alternatively, the contents of this file may be used under the terms of the eCos GPL license
(the  [eCos GPL] License), in which case the provisions of [eCos GPL] License are applicable
instead of those above. If you wish to allow use of your version of this file only under the
terms of the [eCos GPL] License and not to allow others to use your version of this file under
the MPL, indicate your decision by deleting  the provisions above and replace
them with the notice and other provisions required by the [eCos GPL] License.
If you do not delete the provisions above, a recipient may use your version of this file under
either the MPL or the [eCos GPL] License."
*/
#ifndef _ERRNO_H
#define _ERRNO_H


/*===========================================
Includes
=============================================*/


/*===========================================
Declaration
=============================================*/


#define E2BIG 1
//Argument list too long.

#define EACCES 2
//Permission denied.

#define EADDRINUSE 3
//Address in use.

#define EADDRNOTAVAIL 4
//Address not available.

#define EAFNOSUPPORT 5
//Address family not supported.

#define EAGAIN 6
//Resource unavailable, try again (may be the same value as EWOULDBLOCK).

#define EALREADY 7
//Connection already in progress.

#define EBADF 8
//Bad file descriptor.

#define EBADMSG 9
//Bad message.

#define EBUSY 10
//Device or resource busy.

#define ECANCELED 11
//Operation canceled.

#define ECHILD 12
//No child processes.

#define ECONNABORTED 13
//Connection aborted.

#define ECONNREFUSED 14
//Connection refused.

#define ECONNRESET 15
//Connection reset.

#define EDEADLK 16
//Resource deadlock would occur.

#define EDESTADDRREQ 17
//Destination address required.

#define EDOM 18
//Mathematics argument out of domain of function.

#define EDQUOT 19
//Reserved.

#define EEXIST 20
//File exists.

#define EFAULT 21
//Bad address.

#define EFBIG 22
//File too large.

#define EHOSTUNREACH 23
//Host is unreachable.

#define EIDRM 24
//Identifier removed.

#define EILSEQ 25
//Illegal byte sequence.

#define EINPROGRESS 26
//Operation in progress.

#define EINTR 27
//Interrupted function.

#define EINVAL 28
//Invalid argument.

#define EIO  29
//I/O error.

#define EISCONN 30
//Socket is connected.

#define EISDIR 31
//Is a directory.

#define ELOOP 32
//Too many levels of symbolic links.

#define EMFILE 33
//Too many open files.

#define EMLINK 34
//Too many links.

#define EMSGSIZE 35
//Message too large.

#define EMULTIHOP 36
//Reserved.

#define ENAMETOOLONG 37
//Filename too long.

#define ENETDOWN 38
//Network is down.

#define ENETUNREACH 39
//Network unreachable.

#define ENFILE 40
//Too many files open in system.

#define ENOBUFS 41
//No buffer space available.

#define ENODATA 42
//No message is available on the STREAM head read queue.

#define ENODEV 43
//No such device.

#define ENOENT 44
//No such file or directory.

#define ENOEXEC 45
//Executable file format error.

#define ENOLCK 46
//No locks available.

#define ENOLINK 47
//Reserved.

#define ENOMEM 48
//Not enough space.

#define ENOMSG 49
//No message of the desired type.

#define ENOPROTOOPT 50
//Protocol not available.

#define ENOSPC 51
//No space left on device.

#define ENOSR 52
//No STREAM resources.

#define ENOSTR 53
//Not a STREAM.

#define ENOSYS 54
//Function not supported.

#define ENOTCONN 55
//The socket is not connected.

#define ENOTDIR 56
//Not a directory.

#define ENOTEMPTY 57
//Directory not empty.

#define ENOTSOCK 58
//Not a socket.

#define ENOTSUP 59
//Not supported.

#define ENOTTY 60
//Inappropriate I/O control operation.

#define ENXIO 61
//No such device or address.

#define EOPNOTSUPP 62
//Operation not supported on socket.

#define EOVERFLOW 63
//Value too large to be stored in data type.

#define EPERM 64
//Operation not permitted.

#define EPIPE 65
//Broken pipe.

#define EPROTO 66
//Protocol error.

#define EPROTONOSUPPORT 67
//Protocol not supported.

#define EPROTOTYPE 68
//Socket type not supported.

#define ERANGE 69
//Result too large.

#define EROFS 70
//Readonly file system.

#define ESPIPE 71
//Invalid seek.

#define ESRCH 72
//No such process.

#define ESTALE 73
//Reserved.

#define ETIME 74
//Stream ioctl() timeout.

#define ETIMEDOUT 75
//Connection timed out.

#define ETXTBSY 76
//Text file busy.

#define EWOULDBLOCK 77
//Operation would block (may be the same value as [EAGAIN]).

#define EXDEV 78
//Crossdevice link.



#endif
