]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: Add win32_strerror and errno_to_ntstatus
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 30 Apr 2020 07:02:58 +0000 (07:02 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 12 Nov 2020 10:23:22 +0000 (10:23 +0000)
commitf1a9a3739c66d493178c6e006da43c94b6810fc3
tree5baab3ac537dfa76d2084261679f40c2ec6f9e3f
parentd48c6c4ab9abf2a10428658301ed9c3ca8481dd7
common: Add win32_strerror and errno_to_ntstatus

dlfcn_win32.cc provides a function converting Windows error codes
to string error messages. We'll move it to the common errno modules
so that it can easily be reused.

Add the same time, we're adding a function that's converting
errno values to NTSTATUS codes.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/CMakeLists.txt
src/common/dlfcn_win32.cc
src/common/errno.h
src/common/win32_errno.c [deleted file]
src/common/win32_errno.cc [new file with mode: 0644]