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 LinuxSystem extends PosixSystem { | 7 class LinuxSystem extends PosixSystem { |
8 static final ForeignFunction _lseekLinux = | 8 static final ForeignFunction _lseekLinux = |
9 ForeignLibrary.main.lookup("lseek64"); | 9 ForeignLibrary.main.lookup("lseek64"); |
10 static final ForeignFunction _openLinux = | 10 static final ForeignFunction _openLinux = |
11 ForeignLibrary.main.lookup("open64"); | 11 ForeignLibrary.main.lookup("open64"); |
(...skipping 13 matching lines...) Expand all Loading... |
25 int get SO_REUSEADDR => 2; | 25 int get SO_REUSEADDR => 2; |
26 | 26 |
27 // The size of fields and the struct used by uname. | 27 // The size of fields and the struct used by uname. |
28 // From /usr/include/sys/utsname.h | 28 // From /usr/include/sys/utsname.h |
29 int get UTSNAME_LENGTH => 65; | 29 int get UTSNAME_LENGTH => 65; |
30 int get SIZEOF_UTSNAME => 6 * UTSNAME_LENGTH; | 30 int get SIZEOF_UTSNAME => 6 * UTSNAME_LENGTH; |
31 | 31 |
32 ForeignFunction get _lseek => _lseekLinux; | 32 ForeignFunction get _lseek => _lseekLinux; |
33 ForeignFunction get _open => _openLinux; | 33 ForeignFunction get _open => _openLinux; |
34 } | 34 } |
OLD | NEW |