15f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell/* 25f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * Copyright (C) 2016 The Android Open Source Project 35f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * 45f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * Licensed under the Apache License, Version 2.0 (the "License"); 55f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * you may not use this file except in compliance with the License. 65f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * You may obtain a copy of the License at 75f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * 85f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * http://www.apache.org/licenses/LICENSE-2.0 95f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * 105f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * Unless required by applicable law or agreed to in writing, software 115f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * distributed under the License is distributed on an "AS IS" BASIS, 125f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 135f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * See the License for the specific language governing permissions and 145f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell * limitations under the License. 155f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell */ 165f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell 175f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell#include "android-base/errors.h" 185f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell 195f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell#include <errno.h> 205f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell 215f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursellnamespace android { 225f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursellnamespace base { 235f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell 245f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursellstd::string SystemErrorCodeToString(int error_code) { 255f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell return strerror(error_code); 265f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell} 275f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell 285f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell} // namespace base 295f787ed2b3b9f6cc02aa5923b95d77e2a5865438David Pursell} // namespace android 30