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 class MacOSSystem extends PosixSystem { | 7 class MacOSSystem extends PosixSystem { |
8 static final ForeignFunction _lseekMac = ForeignLibrary.main.lookup("lseek"); | 8 static final ForeignFunction _lseekMac = ForeignLibrary.main.lookup("lseek"); |
9 static final ForeignFunction _openMac = ForeignLibrary.main.lookup("open"); | 9 static final ForeignFunction _openMac = ForeignLibrary.main.lookup("open"); |
10 | 10 |
11 int get AF_INET6 => 30; | 11 int get AF_INET6 => 30; |
(...skipping 24 matching lines...) Expand all Loading... |
36 MacOSSockAddrIn allocateSockAddrIn() { | 36 MacOSSockAddrIn allocateSockAddrIn() { |
37 ForeignMemory buffer = new ForeignMemory.allocated(SOCKADDR_IN_SIZE); | 37 ForeignMemory buffer = new ForeignMemory.allocated(SOCKADDR_IN_SIZE); |
38 return new MacOSSockAddrIn(buffer, 0); | 38 return new MacOSSockAddrIn(buffer, 0); |
39 } | 39 } |
40 | 40 |
41 MacOSSockAddrIn6 allocateSockAddrIn6() { | 41 MacOSSockAddrIn6 allocateSockAddrIn6() { |
42 ForeignMemory buffer = new ForeignMemory.allocated(SOCKADDR_IN6_SIZE); | 42 ForeignMemory buffer = new ForeignMemory.allocated(SOCKADDR_IN6_SIZE); |
43 return new MacOSSockAddrIn6(allocateSockAddrStorageMemory(), 0); | 43 return new MacOSSockAddrIn6(allocateSockAddrStorageMemory(), 0); |
44 } | 44 } |
45 } | 45 } |
OLD | NEW |