libuv: Expose uv_translate_sys_error?

It would be nice if it were possible for user code which runs posix syscalls to return uv_err_t. However, that’s not the case, because uv_translate_sys_error, despite its singly-underscored name, is not exposed publicly. (This also makes it difficult to translate the error into a string like ‘ENOENT’; you can use strerror but that just provides the long English string.)

I realize that the function is Unix-specific and would require some sort of Windows stub (or for users to #ifdef _WIN32, but it still seems useful.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 21 (17 by maintainers)

Commits related to this issue

Most upvoted comments

Sure.