projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69a7ca7
)
hurd: Also turn KERN_INVALID_ADDRESS to EINVAL
author
Samuel Thibault
<samuel.thibault@ens-lyon.org>
Sat, 19 Dec 2020 17:57:47 +0000
(18:57 +0100)
committer
Samuel Thibault
<samuel.thibault@ens-lyon.org>
Sat, 19 Dec 2020 17:57:47 +0000
(18:57 +0100)
When e.g. mmap is passed an invalid address we would return
KERN_INVALID_ADDRESS, while POSIX applications would expect EINVAL.
hurd/hurd.h
patch
|
blob
|
history
diff --git
a/hurd/hurd.h
b/hurd/hurd.h
index
c6e88a6
..
5fa7be5
100644
(file)
--- 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;