about summary refs log tree commit diff
path: root/hurd/hurd.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-19 18:57:47 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-19 18:57:47 +0100
commitb74233d0092c9ee6a2faee5adb375b3151bdc99c (patch)
tree982625fe75205c68affd1ab6759a787232f6a42f /hurd/hurd.h
parent69a7ca7705626177e09d2fec6cf571f2015b76fc (diff)
downloadglibc-b74233d0092c9ee6a2faee5adb375b3151bdc99c.tar.gz
glibc-b74233d0092c9ee6a2faee5adb375b3151bdc99c.tar.xz
glibc-b74233d0092c9ee6a2faee5adb375b3151bdc99c.zip
hurd: Also turn KERN_INVALID_ADDRESS to EINVAL
When e.g. mmap is passed an invalid address we would return
KERN_INVALID_ADDRESS, while POSIX applications would expect EINVAL.
Diffstat (limited to 'hurd/hurd.h')
-rw-r--r--hurd/hurd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hurd/hurd.h b/hurd/hurd.h
index c6e88a63c2..5fa7be5add 100644
--- a/hurd/hurd.h
+++ b/hurd/hurd.h
@@ -66,6 +66,7 @@ __hurd_fail (error_t err)
       err = (error_t) ENOMEM;
       break;
 
+    case KERN_INVALID_ADDRESS:
     case KERN_INVALID_ARGUMENT:
       err = (error_t) EINVAL;
       break;