summaryrefslogtreecommitdiffstats
path: root/src/common/errno.h
blob: 8f967d0888a6510aaa0ad59adc5e71a3097d4093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef CEPH_ERRNO_H
#define CEPH_ERRNO_H

#include <string>

/* Return a given error code as a string */
std::string cpp_strerror(int err);

#ifdef _WIN32
// While cpp_strerror handles errors defined in errno.h, this one
// accepts standard Windows error codes.
std::string win32_strerror(int err);
std::string win32_lasterror_str();
#endif /* _WIN32 */

#endif