| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "files/public/c/lib/real_errno_impl.h" | 5 #include "files/c/lib/real_errno_impl.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 | 8 |
| 9 namespace mojio { | 9 namespace mojio { |
| 10 | 10 |
| 11 int RealErrnoImpl::Get() const { | 11 int RealErrnoImpl::Get() const { |
| 12 return errno; | 12 return errno; |
| 13 } | 13 } |
| 14 | 14 |
| 15 void RealErrnoImpl::Set(int error) { | 15 void RealErrnoImpl::Set(int error) { |
| 16 errno = error; | 16 errno = error; |
| 17 } | 17 } |
| 18 | 18 |
| 19 } // namespace mojio | 19 } // namespace mojio |
| OLD | NEW |