OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [include/] [sys/] [errno.h] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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