OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 part of os; | 5 part of os; |
6 | 6 |
7 final Errnos errnos = _getErrnos(); | 7 final Errnos errnos = _getErrnos(); |
8 | 8 |
9 Errnos _getErrnos() { | 9 Errnos _getErrnos() { |
10 switch (Foreign.platform) { | 10 switch (Foreign.platform) { |
11 case Foreign.ANDROID: | 11 case Foreign.ANDROID: |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 class _LinuxErrnos extends _PosixErrnos { | 100 class _LinuxErrnos extends _PosixErrnos { |
101 int get EADDRNOTAVAIL => 99; | 101 int get EADDRNOTAVAIL => 99; |
102 int get EINPROGRESS => 115; | 102 int get EINPROGRESS => 115; |
103 } | 103 } |
104 | 104 |
105 class _MacOSErrnos extends _PosixErrnos { | 105 class _MacOSErrnos extends _PosixErrnos { |
106 int get EADDRNOTAVAIL => 49; | 106 int get EADDRNOTAVAIL => 49; |
107 int get EINPROGRESS => 36; | 107 int get EINPROGRESS => 36; |
108 } | 108 } |
OLD | NEW |