| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include <errno.h> | 5 #include <errno.h> |
| 6 | 6 |
| 7 #include "bin/utils.h" | 7 #include "bin/utils.h" |
| 8 | 8 |
| 9 OSError::OSError() : code_(0), message_(NULL) { | 9 OSError::OSError() : sub_system_(kSystem), code_(0), message_(NULL) { |
| 10 set_sub_system(kSystem); |
| 10 set_code(errno); | 11 set_code(errno); |
| 11 SetMessage(strerror(errno)); | 12 SetMessage(strerror(errno)); |
| 12 } | 13 } |
| OLD | NEW |