]> git.proxmox.com Git - ceph.git/blob - ceph/src/common/errno.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / common / errno.h
1 #ifndef CEPH_ERRNO_H
2 #define CEPH_ERRNO_H
3
4 #include <string>
5
6 /* Return a given error code as a string */
7 std::string cpp_strerror(int err);
8
9 #ifdef _WIN32
10 // While cpp_strerror handles errors defined in errno.h, this one
11 // accepts standard Windows error codes.
12 std::string win32_strerror(int err);
13 std::string win32_lasterror_str();
14 #endif /* _WIN32 */
15
16 #endif