]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r329825:
authorhselasky <hselasky@FreeBSD.org>
Sun, 25 Feb 2018 10:40:41 +0000 (10:40 +0000)
committerhselasky <hselasky@FreeBSD.org>
Sun, 25 Feb 2018 10:40:41 +0000 (10:40 +0000)
commit8451d08a37aae24cdfc14206265b06fa5f71e00e
tree145c62bf29d8c56dfe1edaba8b33a873f542453b
parent05e6cf26b81490a562706283802e3d4a9161d2b2
MFC r329825:
Return correct error code to user-space when a system call receives a
signal in the LinuxKPI.

The read(), write() and mmap() system calls can return either EINTR or
ERESTART upon receiving a signal. Add code to figure out the correct
return value by temporarily storing the return code from the relevant
FreeBSD kernel APIs in the Linux task structure.

Sponsored by: Mellanox Technologies
sys/compat/linuxkpi/common/include/linux/mutex.h
sys/compat/linuxkpi/common/include/linux/rwsem.h
sys/compat/linuxkpi/common/include/linux/sched.h
sys/compat/linuxkpi/common/src/linux_compat.c
sys/compat/linuxkpi/common/src/linux_lock.c
sys/compat/linuxkpi/common/src/linux_schedule.c