]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r314866:
authordchagin <dchagin@FreeBSD.org>
Sat, 15 Apr 2017 15:11:23 +0000 (15:11 +0000)
committerdchagin <dchagin@FreeBSD.org>
Sat, 15 Apr 2017 15:11:23 +0000 (15:11 +0000)
commit92fe6dbe06a92e3b53c56202f180cfcd6436bd0e
treec78d7aa6c7887a97d64d0a71a81c958e493c85f3
parent0d28ee294899b065b8b0f868f780a293190049c5
MFC r314866:

Reduce code duplication between MD Linux code by moving SYSV IPC 64-bit
related struct definitions out into the MI path.

Invert the native ipc structs to the Linux ipc structs convesion logic.
Since 64-bit variant of ipc structs has more precision convert native ipc
structs to the 64-bit Linux ipc structs and then truncate 64-bit values
into the non 64-bit if needed. Unlike Linux, return EOVERFLOW if the
values do not fit.

Fix SYSV IPC for 64-bit Linuxulator which never sets IPC_64 bit.
sys/amd64/linux/linux.h
sys/amd64/linux32/linux.h
sys/amd64/linux32/linux32_ipc64.h [deleted file]
sys/compat/linux/linux_ipc.c
sys/compat/linux/linux_ipc64.h [moved from sys/amd64/linux/linux_ipc64.h with 82% similarity]
sys/i386/linux/linux.h
sys/i386/linux/linux_ipc64.h [deleted file]