mirror of
https://github.com/opnsense/src.git
synced 2026-03-05 14:50:41 -05:00
alter the userspace sockaddr to convert the format between linux and BSD versions. That's the minimum 3 of copyin/copyout operations for one syscall. Also some syscall uses linux_sa_put() and linux_getsockaddr() when load sockaddr to userspace or from userspace accordingly. To avoid this chaos, especially converting sockaddr in the userspace, rewrite these 4 functions to convert sockaddr only in kernel and leave only 2 of this functions. Also in order to reduce duplication between MD parts of the Linuxulator put struct sockaddr conversion functions that are MI out into linux_common module. PR: 232920 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20157
27 lines
574 B
Makefile
27 lines
574 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/compat/linux
|
|
|
|
KMOD= linux_common
|
|
SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
|
|
linux_errno.c \
|
|
linux.c device_if.h vnode_if.h bus_if.h opt_inet6.h
|
|
|
|
EXPORT_SYMS=
|
|
EXPORT_SYMS+= linux_emul_path
|
|
EXPORT_SYMS+= linux_errtbl
|
|
EXPORT_SYMS+= linux_ioctl_register_handler
|
|
EXPORT_SYMS+= linux_ioctl_unregister_handler
|
|
EXPORT_SYMS+= linux_get_osname
|
|
EXPORT_SYMS+= linux_get_osrelease
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
.if defined(DEBUG)
|
|
CFLAGS+=-DDEBUG
|
|
.endif
|
|
.if defined(KTR)
|
|
CFLAGS+=-DKTR
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|