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 const int F_GETFD = 1; | 7 const int F_GETFD = 1; |
8 const int F_SETFD = 2; | 8 const int F_SETFD = 2; |
9 const int F_GETFL = 3; | 9 const int F_GETFL = 3; |
10 const int F_SETFL = 4; | 10 const int F_SETFL = 4; |
11 | 11 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 address += UTSNAME_LENGTH; | 393 address += UTSNAME_LENGTH; |
394 fp = new ForeignPointer(address); | 394 fp = new ForeignPointer(address); |
395 var machine = cStringToString(fp); | 395 var machine = cStringToString(fp); |
396 return new SystemInformation(operatingSystemName, nodeName, release, | 396 return new SystemInformation(operatingSystemName, nodeName, release, |
397 version, machine); | 397 version, machine); |
398 } finally { | 398 } finally { |
399 utsname.free(); | 399 utsname.free(); |
400 } | 400 } |
401 } | 401 } |
402 } | 402 } |
OLD | NEW |