File tree Expand file tree Collapse file tree 2 files changed +487
-5
lines changed Expand file tree Collapse file tree 2 files changed +487
-5
lines changed Original file line number Diff line number Diff line change 1
- // FIXME: Only defining _POSIXError for Darwin at the moment.
1
+ // FIXME: Only defining POSIXErrorCode for Darwin at the moment.
2
2
3
3
#if os(OSX) || os(iOS) || os(tvOS) || os(watchOS)
4
4
/// Enumeration describing POSIX error codes.
5
- @objc public enum POSIXError : Int32 {
5
+ @objc public enum POSIXErrorCode : Int32 {
6
6
// FIXME: These are the values for Darwin. We need to get the Linux
7
7
// values as well.
8
8
/// Operation not permitted.
81
81
/// Resource temporarily unavailable.
82
82
case EAGAIN = 35
83
83
/// Operation would block.
84
- public static var EWOULDBLOCK : POSIXError { return EAGAIN }
84
+ public static var EWOULDBLOCK : POSIXErrorCode { return EAGAIN }
85
85
/// Operation now in progress.
86
86
case EINPROGRESS = 36
87
87
/// Operation already in progress.
246
246
/// Interface output queue is full.
247
247
case EQFULL = 106
248
248
/// Must be equal largest errno.
249
- public static var ELAST : POSIXError { return EQFULL }
249
+ public static var ELAST : POSIXErrorCode { return EQFULL }
250
250
251
251
// FIXME: EOPNOTSUPP has different values depending on __DARWIN_UNIX03 and
252
252
// KERNEL.
You can’t perform that action at this time.
0 commit comments