summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibuv/src/unix/procfs-exepath.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-07 15:48:01 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-07 15:48:01 (GMT)
commit42fbb285161a7424116a1e838b29741864ab3691 (patch)
tree858d1d7aa84098ce326d32c41da9047d9cd95064 /Utilities/cmlibuv/src/unix/procfs-exepath.c
parentdd3e1a737216b7c9bfb6c7569685b36a1bff9cba (diff)
parentc8b67ea119c4000018238f6c3201a1364356d93a (diff)
downloadCMake-42fbb285161a7424116a1e838b29741864ab3691.zip
CMake-42fbb285161a7424116a1e838b29741864ab3691.tar.gz
CMake-42fbb285161a7424116a1e838b29741864ab3691.tar.bz2
Merge branch 'upstream-libuv' into update-libuv
* upstream-libuv: libuv 2018-05-06 (bf605bd7)
Diffstat (limited to 'Utilities/cmlibuv/src/unix/procfs-exepath.c')
-rw-r--r--Utilities/cmlibuv/src/unix/procfs-exepath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmlibuv/src/unix/procfs-exepath.c b/Utilities/cmlibuv/src/unix/procfs-exepath.c
index 5fdb611..00dc021 100644
--- a/Utilities/cmlibuv/src/unix/procfs-exepath.c
+++ b/Utilities/cmlibuv/src/unix/procfs-exepath.c
@@ -29,14 +29,14 @@ int uv_exepath(char* buffer, size_t* size) {
ssize_t n;
if (buffer == NULL || size == NULL || *size == 0)
- return -EINVAL;
+ return UV_EINVAL;
n = *size - 1;
if (n > 0)
n = readlink("/proc/self/exe", buffer, n);
if (n == -1)
- return -errno;
+ return UV__ERR(errno);
buffer[n] = '\0';
*size = n;