blob: f783b3a2f5e35e748d690361740cc6acfcdde3d6 [file] [log] [blame]
Josh Gaod6d5c382016-11-21 16:06:43 -08001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
Josh Gao4fba3d22016-11-30 11:21:22 -080019#include <errno.h>
20#include <string.h>
21
22// Translate an errno value from linux to the host equivalent.
Josh Gaod6d5c382016-11-21 16:06:43 -080023int translate_linux_errno(int error);
Josh Gao4fba3d22016-11-30 11:21:22 -080024
25#if defined(_WIN32)
26char* adb_strerror(int err);
27#define strerror adb_strerror
28#endif