56
56
* necessary to compare errno against abs(ECODE), because there is no
57
57
* redefinition for such error codes.
59
* FIXME: maybe all HOS error codes should be redefined
59
* XXX: maybe all HOS error codes should be redefined
61
61
* NOTE: This redefinition is slightly POSIX incompatible, since the
62
62
* specification requires the macro values to be usable in preprocessing
134
134
POSIX_ENOTSUP = -ENOTSUP,
135
135
POSIX_ENOTTY = __TOP_ERRNO + 37,
136
136
POSIX_ENXIO = __TOP_ERRNO + 38,
137
POSIX_EOPNOTSUPP = POSIX_ENOTSUP,
137
POSIX_EOPNOTSUPP = __TOP_ERRNO + 39,
138
138
POSIX_EOVERFLOW = -EOVERFLOW,
139
POSIX_EOWNERDEAD = __TOP_ERRNO + 39,
139
POSIX_EOWNERDEAD = __TOP_ERRNO + 40,
140
140
POSIX_EPERM = -EPERM,
141
POSIX_EPIPE = __TOP_ERRNO + 40,
142
POSIX_EPROTO = __TOP_ERRNO + 41,
141
POSIX_EPIPE = __TOP_ERRNO + 41,
142
POSIX_EPROTO = __TOP_ERRNO + 42,
143
143
POSIX_EPROTONOSUPPORT = -EPROTONOSUPPORT,
144
POSIX_EPROTOTYPE = __TOP_ERRNO + 42,
144
POSIX_EPROTOTYPE = __TOP_ERRNO + 43,
145
145
POSIX_ERANGE = -ERANGE,
146
POSIX_EROFS = __TOP_ERRNO + 43,
147
POSIX_ESPIPE = __TOP_ERRNO + 44,
148
POSIX_ESRCH = __TOP_ERRNO + 45,
149
POSIX_ESTALE = __TOP_ERRNO + 46,
150
POSIX_ETIME = __TOP_ERRNO + 47,
151
POSIX_ETIMEDOUT = __TOP_ERRNO + 48,
152
POSIX_ETXTBSY = __TOP_ERRNO + 49,
153
POSIX_EWOULDBLOCK = POSIX_EAGAIN,
146
POSIX_EROFS = __TOP_ERRNO + 44,
147
POSIX_ESPIPE = __TOP_ERRNO + 45,
148
POSIX_ESRCH = __TOP_ERRNO + 46,
149
POSIX_ESTALE = __TOP_ERRNO + 47,
150
POSIX_ETIME = __TOP_ERRNO + 48,
151
POSIX_ETIMEDOUT = __TOP_ERRNO + 49,
152
POSIX_ETXTBSY = __TOP_ERRNO + 50,
153
POSIX_EWOULDBLOCK = __TOP_ERRNO + 51,
154
154
POSIX_EXDEV = -EXDEV,