diff options
author | Franklin \"Snaipe\" Mathieu <snaipe@diacritic.io> | 2017-02-17 08:58:00 +0000 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2017-02-27 23:10:02 +0100 |
commit | 98a3331a552f6e033da10bd07b14ccdd81d05e61 (patch) | |
tree | 08fe11e2a1fc3d9c3b614ec25627bcbb9664d412 /linux-user/m68k/syscall_nr.h | |
parent | 59ebb6e451ffe5d4ccb5a62ee6646ed418361ef0 (diff) |
syscall: fixed mincore(2) not failing with ENOMEM
The current implementation of the mincore(2) syscall sets errno to
EFAULT when the region identified by the first two parameters is
invalid.
This goes against the man page specification, where mincore(2) should
only fail with EFAULT when the third parameter is an invalid address;
and fail with ENOMEM when the checked region does not point to mapped
memory.
Signed-off-by: Franklin "Snaipe" Mathieu <snaipe@diacritic.io>
Cc: Riku Voipio <riku.voipio@linaro.org>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20170217085800.28873-2-snaipe@diacritic.io>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/m68k/syscall_nr.h')
0 files changed, 0 insertions, 0 deletions