linux-user: getpriority errno fix
getpriority returned wrong errno; fixes LTP test getpriority02. Signed-off-by: Ulrich Hecht <uli@suse.de> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
This commit is contained in:
parent
d092793872
commit
691372066c
@ -5311,7 +5311,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
|||||||
/* libc does special remapping of the return value of
|
/* libc does special remapping of the return value of
|
||||||
* sys_getpriority() so it's just easiest to call
|
* sys_getpriority() so it's just easiest to call
|
||||||
* sys_getpriority() directly rather than through libc. */
|
* sys_getpriority() directly rather than through libc. */
|
||||||
ret = sys_getpriority(arg1, arg2);
|
ret = get_errno(sys_getpriority(arg1, arg2));
|
||||||
break;
|
break;
|
||||||
case TARGET_NR_setpriority:
|
case TARGET_NR_setpriority:
|
||||||
ret = get_errno(setpriority(arg1, arg2, arg3));
|
ret = get_errno(setpriority(arg1, arg2, arg3));
|
||||||
|
Loading…
Reference in New Issue
Block a user