From c71dca0cbd5043f449a74e98eca8906e5d85451e Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 17 Jul 2015 17:54:44 +0300 Subject: [PATCH] os/fs: Define os_strerror as an alias to uv_strerror It is not needed to know that os/* uses libuv. --- src/nvim/os/fs_defs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nvim/os/fs_defs.h b/src/nvim/os/fs_defs.h index ddd382a3cb..df1031b721 100644 --- a/src/nvim/os/fs_defs.h +++ b/src/nvim/os/fs_defs.h @@ -21,4 +21,9 @@ typedef struct { uv_dirent_t ent; ///< @private The entry information. } Directory; +/// Function to convert -errno error to char * error description +/// +/// -errno errors are returned by a number of os functions. +#define os_strerror uv_strerror + #endif // NVIM_OS_FS_DEFS_H