OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [include/] [sys/] [errno.h] - Diff between revs 207 and 345

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 345
/* errno is not a global variable, because that would make using it
/* errno is not a global variable, because that would make using it
   non-reentrant.  Instead, its address is returned by the function
   non-reentrant.  Instead, its address is returned by the function
   __errno.  */
   __errno.  */
 
 
#ifndef _SYS_ERRNO_H_
#ifndef _SYS_ERRNO_H_
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#endif
#define _SYS_ERRNO_H_
#define _SYS_ERRNO_H_
 
 
#include <sys/reent.h>
#include <sys/reent.h>
 
 
#ifndef _REENT_ONLY
#ifndef _REENT_ONLY
#define errno (*__errno())
#define errno (*__errno())
extern int *__errno _PARAMS ((void));
extern int *__errno _PARAMS ((void));
#endif
#endif
 
 
/* Please don't use these variables directly.
/* Please don't use these variables directly.
   Use strerror instead. */
   Use strerror instead. */
extern __IMPORT _CONST char * _CONST _sys_errlist[];
extern __IMPORT _CONST char * _CONST _sys_errlist[];
extern __IMPORT int _sys_nerr;
extern __IMPORT int _sys_nerr;
#ifdef __CYGWIN__
#ifdef __CYGWIN__
extern __IMPORT const char * const sys_errlist[];
extern __IMPORT const char * const sys_errlist[];
extern __IMPORT int sys_nerr;
extern __IMPORT int sys_nerr;
#endif
#endif
 
 
#define __errno_r(ptr) ((ptr)->_errno)
#define __errno_r(ptr) ((ptr)->_errno)
 
 
#define EPERM 1         /* Not super-user */
#define EPERM 1         /* Not super-user */
#define ENOENT 2        /* No such file or directory */
#define ENOENT 2        /* No such file or directory */
#define ESRCH 3         /* No such process */
#define ESRCH 3         /* No such process */
#define EINTR 4         /* Interrupted system call */
#define EINTR 4         /* Interrupted system call */
#define EIO 5           /* I/O error */
#define EIO 5           /* I/O error */
#define ENXIO 6         /* No such device or address */
#define ENXIO 6         /* No such device or address */
#define E2BIG 7         /* Arg list too long */
#define E2BIG 7         /* Arg list too long */
#define ENOEXEC 8       /* Exec format error */
#define ENOEXEC 8       /* Exec format error */
#define EBADF 9         /* Bad file number */
#define EBADF 9         /* Bad file number */
#define ECHILD 10       /* No children */
#define ECHILD 10       /* No children */
#define EAGAIN 11       /* No more processes */
#define EAGAIN 11       /* No more processes */
#define ENOMEM 12       /* Not enough core */
#define ENOMEM 12       /* Not enough core */
#define EACCES 13       /* Permission denied */
#define EACCES 13       /* Permission denied */
#define EFAULT 14       /* Bad address */
#define EFAULT 14       /* Bad address */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ENOTBLK 15      /* Block device required */
#define ENOTBLK 15      /* Block device required */
#endif
#endif
#define EBUSY 16        /* Mount device busy */
#define EBUSY 16        /* Mount device busy */
#define EEXIST 17       /* File exists */
#define EEXIST 17       /* File exists */
#define EXDEV 18        /* Cross-device link */
#define EXDEV 18        /* Cross-device link */
#define ENODEV 19       /* No such device */
#define ENODEV 19       /* No such device */
#define ENOTDIR 20      /* Not a directory */
#define ENOTDIR 20      /* Not a directory */
#define EISDIR 21       /* Is a directory */
#define EISDIR 21       /* Is a directory */
#define EINVAL 22       /* Invalid argument */
#define EINVAL 22       /* Invalid argument */
#define ENFILE 23       /* Too many open files in system */
#define ENFILE 23       /* Too many open files in system */
#define EMFILE 24       /* Too many open files */
#define EMFILE 24       /* Too many open files */
#define ENOTTY 25       /* Not a typewriter */
#define ENOTTY 25       /* Not a typewriter */
#define ETXTBSY 26      /* Text file busy */
#define ETXTBSY 26      /* Text file busy */
#define EFBIG 27        /* File too large */
#define EFBIG 27        /* File too large */
#define ENOSPC 28       /* No space left on device */
#define ENOSPC 28       /* No space left on device */
#define ESPIPE 29       /* Illegal seek */
#define ESPIPE 29       /* Illegal seek */
#define EROFS 30        /* Read only file system */
#define EROFS 30        /* Read only file system */
#define EMLINK 31       /* Too many links */
#define EMLINK 31       /* Too many links */
#define EPIPE 32        /* Broken pipe */
#define EPIPE 32        /* Broken pipe */
#define EDOM 33         /* Math arg out of domain of func */
#define EDOM 33         /* Math arg out of domain of func */
#define ERANGE 34       /* Math result not representable */
#define ERANGE 34       /* Math result not representable */
#define ENOMSG 35       /* No message of desired type */
#define ENOMSG 35       /* No message of desired type */
#define EIDRM 36        /* Identifier removed */
#define EIDRM 36        /* Identifier removed */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ECHRNG 37       /* Channel number out of range */
#define ECHRNG 37       /* Channel number out of range */
#define EL2NSYNC 38     /* Level 2 not synchronized */
#define EL2NSYNC 38     /* Level 2 not synchronized */
#define EL3HLT 39       /* Level 3 halted */
#define EL3HLT 39       /* Level 3 halted */
#define EL3RST 40       /* Level 3 reset */
#define EL3RST 40       /* Level 3 reset */
#define ELNRNG 41       /* Link number out of range */
#define ELNRNG 41       /* Link number out of range */
#define EUNATCH 42      /* Protocol driver not attached */
#define EUNATCH 42      /* Protocol driver not attached */
#define ENOCSI 43       /* No CSI structure available */
#define ENOCSI 43       /* No CSI structure available */
#define EL2HLT 44       /* Level 2 halted */
#define EL2HLT 44       /* Level 2 halted */
#endif
#endif
#define EDEADLK 45      /* Deadlock condition */
#define EDEADLK 45      /* Deadlock condition */
#define ENOLCK 46       /* No record locks available */
#define ENOLCK 46       /* No record locks available */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define EBADE 50        /* Invalid exchange */
#define EBADE 50        /* Invalid exchange */
#define EBADR 51        /* Invalid request descriptor */
#define EBADR 51        /* Invalid request descriptor */
#define EXFULL 52       /* Exchange full */
#define EXFULL 52       /* Exchange full */
#define ENOANO 53       /* No anode */
#define ENOANO 53       /* No anode */
#define EBADRQC 54      /* Invalid request code */
#define EBADRQC 54      /* Invalid request code */
#define EBADSLT 55      /* Invalid slot */
#define EBADSLT 55      /* Invalid slot */
#define EDEADLOCK 56    /* File locking deadlock error */
#define EDEADLOCK 56    /* File locking deadlock error */
#define EBFONT 57       /* Bad font file fmt */
#define EBFONT 57       /* Bad font file fmt */
#endif
#endif
#define ENOSTR 60       /* Device not a stream */
#define ENOSTR 60       /* Device not a stream */
#define ENODATA 61      /* No data (for no delay io) */
#define ENODATA 61      /* No data (for no delay io) */
#define ETIME 62        /* Timer expired */
#define ETIME 62        /* Timer expired */
#define ENOSR 63        /* Out of streams resources */
#define ENOSR 63        /* Out of streams resources */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ENONET 64       /* Machine is not on the network */
#define ENONET 64       /* Machine is not on the network */
#define ENOPKG 65       /* Package not installed */
#define ENOPKG 65       /* Package not installed */
#define EREMOTE 66      /* The object is remote */
#define EREMOTE 66      /* The object is remote */
#endif
#endif
#define ENOLINK 67      /* The link has been severed */
#define ENOLINK 67      /* The link has been severed */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define EADV 68         /* Advertise error */
#define EADV 68         /* Advertise error */
#define ESRMNT 69       /* Srmount error */
#define ESRMNT 69       /* Srmount error */
#define ECOMM 70        /* Communication error on send */
#define ECOMM 70        /* Communication error on send */
#endif
#endif
#define EPROTO 71       /* Protocol error */
#define EPROTO 71       /* Protocol error */
#define EMULTIHOP 74    /* Multihop attempted */
#define EMULTIHOP 74    /* Multihop attempted */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ELBIN 75        /* Inode is remote (not really error) */
#define ELBIN 75        /* Inode is remote (not really error) */
#define EDOTDOT 76      /* Cross mount point (not really error) */
#define EDOTDOT 76      /* Cross mount point (not really error) */
#endif
#endif
#define EBADMSG 77      /* Trying to read unreadable message */
#define EBADMSG 77      /* Trying to read unreadable message */
#define EFTYPE 79       /* Inappropriate file type or format */
#define EFTYPE 79       /* Inappropriate file type or format */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ENOTUNIQ 80     /* Given log. name not unique */
#define ENOTUNIQ 80     /* Given log. name not unique */
#define EBADFD 81       /* f.d. invalid for this operation */
#define EBADFD 81       /* f.d. invalid for this operation */
#define EREMCHG 82      /* Remote address changed */
#define EREMCHG 82      /* Remote address changed */
#define ELIBACC 83      /* Can't access a needed shared lib */
#define ELIBACC 83      /* Can't access a needed shared lib */
#define ELIBBAD 84      /* Accessing a corrupted shared lib */
#define ELIBBAD 84      /* Accessing a corrupted shared lib */
#define ELIBSCN 85      /* .lib section in a.out corrupted */
#define ELIBSCN 85      /* .lib section in a.out corrupted */
#define ELIBMAX 86      /* Attempting to link in too many libs */
#define ELIBMAX 86      /* Attempting to link in too many libs */
#define ELIBEXEC 87     /* Attempting to exec a shared library */
#define ELIBEXEC 87     /* Attempting to exec a shared library */
#endif
#endif
#define ENOSYS 88       /* Function not implemented */
#define ENOSYS 88       /* Function not implemented */
#ifdef __CYGWIN__
#ifdef __CYGWIN__
#define ENMFILE 89      /* No more files */
#define ENMFILE 89      /* No more files */
#endif
#endif
#define ENOTEMPTY 90    /* Directory not empty */
#define ENOTEMPTY 90    /* Directory not empty */
#define ENAMETOOLONG 91 /* File or path name too long */
#define ENAMETOOLONG 91 /* File or path name too long */
#define ELOOP 92        /* Too many symbolic links */
#define ELOOP 92        /* Too many symbolic links */
#define EOPNOTSUPP 95   /* Operation not supported on transport endpoint */
#define EOPNOTSUPP 95   /* Operation not supported on transport endpoint */
#define EPFNOSUPPORT 96 /* Protocol family not supported */
#define EPFNOSUPPORT 96 /* Protocol family not supported */
#define ECONNRESET 104  /* Connection reset by peer */
#define ECONNRESET 104  /* Connection reset by peer */
#define ENOBUFS 105     /* No buffer space available */
#define ENOBUFS 105     /* No buffer space available */
#define EAFNOSUPPORT 106 /* Address family not supported by protocol family */
#define EAFNOSUPPORT 106 /* Address family not supported by protocol family */
#define EPROTOTYPE 107  /* Protocol wrong type for socket */
#define EPROTOTYPE 107  /* Protocol wrong type for socket */
#define ENOTSOCK 108    /* Socket operation on non-socket */
#define ENOTSOCK 108    /* Socket operation on non-socket */
#define ENOPROTOOPT 109 /* Protocol not available */
#define ENOPROTOOPT 109 /* Protocol not available */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ESHUTDOWN 110   /* Can't send after socket shutdown */
#define ESHUTDOWN 110   /* Can't send after socket shutdown */
#endif
#endif
#define ECONNREFUSED 111        /* Connection refused */
#define ECONNREFUSED 111        /* Connection refused */
#define EADDRINUSE 112          /* Address already in use */
#define EADDRINUSE 112          /* Address already in use */
#define ECONNABORTED 113        /* Connection aborted */
#define ECONNABORTED 113        /* Connection aborted */
#define ENETUNREACH 114         /* Network is unreachable */
#define ENETUNREACH 114         /* Network is unreachable */
#define ENETDOWN 115            /* Network interface is not configured */
#define ENETDOWN 115            /* Network interface is not configured */
#define ETIMEDOUT 116           /* Connection timed out */
#define ETIMEDOUT 116           /* Connection timed out */
#define EHOSTDOWN 117           /* Host is down */
#define EHOSTDOWN 117           /* Host is down */
#define EHOSTUNREACH 118        /* Host is unreachable */
#define EHOSTUNREACH 118        /* Host is unreachable */
#define EINPROGRESS 119         /* Connection already in progress */
#define EINPROGRESS 119         /* Connection already in progress */
#define EALREADY 120            /* Socket already connected */
#define EALREADY 120            /* Socket already connected */
#define EDESTADDRREQ 121        /* Destination address required */
#define EDESTADDRREQ 121        /* Destination address required */
#define EMSGSIZE 122            /* Message too long */
#define EMSGSIZE 122            /* Message too long */
#define EPROTONOSUPPORT 123     /* Unknown protocol */
#define EPROTONOSUPPORT 123     /* Unknown protocol */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ESOCKTNOSUPPORT 124     /* Socket type not supported */
#define ESOCKTNOSUPPORT 124     /* Socket type not supported */
#endif
#endif
#define EADDRNOTAVAIL 125       /* Address not available */
#define EADDRNOTAVAIL 125       /* Address not available */
#define ENETRESET 126
#define ENETRESET 126
#define EISCONN 127             /* Socket is already connected */
#define EISCONN 127             /* Socket is already connected */
#define ENOTCONN 128            /* Socket is not connected */
#define ENOTCONN 128            /* Socket is not connected */
#define ETOOMANYREFS 129
#define ETOOMANYREFS 129
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define EPROCLIM 130
#define EPROCLIM 130
#define EUSERS 131
#define EUSERS 131
#endif
#endif
#define EDQUOT 132
#define EDQUOT 132
#define ESTALE 133
#define ESTALE 133
#define ENOTSUP 134             /* Not supported */
#define ENOTSUP 134             /* Not supported */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ENOMEDIUM 135   /* No medium (in tape drive) */
#define ENOMEDIUM 135   /* No medium (in tape drive) */
#endif
#endif
#ifdef __CYGWIN__
#ifdef __CYGWIN__
#define ENOSHARE 136    /* No such host or network path */
#define ENOSHARE 136    /* No such host or network path */
#define ECASECLASH 137  /* Filename exists with different case */
#define ECASECLASH 137  /* Filename exists with different case */
#endif
#endif
#define EILSEQ 138
#define EILSEQ 138
#define EOVERFLOW 139   /* Value too large for defined data type */
#define EOVERFLOW 139   /* Value too large for defined data type */
#define ECANCELED 140   /* Operation canceled */
#define ECANCELED 140   /* Operation canceled */
#define ENOTRECOVERABLE 141     /* State not recoverable */
#define ENOTRECOVERABLE 141     /* State not recoverable */
#define EOWNERDEAD 142  /* Previous owner died */
#define EOWNERDEAD 142  /* Previous owner died */
#ifdef __LINUX_ERRNO_EXTENSIONS__
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ESTRPIPE 143    /* Streams pipe error */
#define ESTRPIPE 143    /* Streams pipe error */
#endif
#endif
#define EWOULDBLOCK EAGAIN      /* Operation would block */
#define EWOULDBLOCK EAGAIN      /* Operation would block */
 
 
#define __ELASTERROR 2000       /* Users can add values starting here */
#define __ELASTERROR 2000       /* Users can add values starting here */
 
 
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
#endif /* _SYS_ERRNO_H */
#endif /* _SYS_ERRNO_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.