| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PLATFORM_UTILS_FUCHSIA_H_ | 5 #ifndef PLATFORM_UTILS_FUCHSIA_H_ |
| 6 #define PLATFORM_UTILS_FUCHSIA_H_ | 6 #define PLATFORM_UTILS_FUCHSIA_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 | 62 |
| 63 | 63 |
| 64 inline uint64_t Utils::HostToLittleEndian64(uint64_t value) { | 64 inline uint64_t Utils::HostToLittleEndian64(uint64_t value) { |
| 65 UNIMPLEMENTED(); | 65 UNIMPLEMENTED(); |
| 66 return 0; | 66 return 0; |
| 67 } | 67 } |
| 68 | 68 |
| 69 | 69 |
| 70 inline char* Utils::StrError(int err, char* buffer, size_t bufsize) { | 70 inline char* Utils::StrError(int err, char* buffer, size_t bufsize) { |
| 71 UNIMPLEMENTED(); | 71 snprintf(buffer, bufsize, "errno = %d", err); |
| 72 return NULL; | 72 return buffer; |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace dart | 75 } // namespace dart |
| 76 | 76 |
| 77 #endif // PLATFORM_UTILS_FUCHSIA_H_ | 77 #endif // PLATFORM_UTILS_FUCHSIA_H_ |
| OLD | NEW |