Subversion Repositories freemyipod

Rev

Rev 424 | Details | Compare with Previous | Last modification | View Log | RSS feed

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