Subject: CVS commit: syssrc/sys/compat/linux/common
To: None <>
From: Jaromir Dolecek <>
List: source-changes
Date: 07/04/2001 13:09:25
Module Name:	syssrc
Committed By:	jdolecek
Date:		Wed Jul  4 10:09:25 UTC 2001

Modified Files:
	syssrc/sys/compat/linux/common: linux_socket.c linux_socketcall.c

Log Message:
Do address family (AF_*) number translation for socket system calls which
pass socket address in our or out. This makes Linux programs using IPv6
working under emulation. This addresses kern/13279 by Jun-ichiro itojun Hagino.

Change sendmsg()/recvmsg() to expect the control information
to be passed the standard way (not 4.3BSD one, imlied by compat_43 code
or MSG_COMPAT). Linux uses different (arguably broken) CMSG_ALIGN() on some
architectures unfortunately, that would need to be handled eventually.

Also provide some other trivial stubs (like linux_sys_send()) to avoid
unneeded dependance on uipc_syscalls_43.c.

To generate a diff of this commit:
cvs rdiff -r1.31 -r1.32 syssrc/sys/compat/linux/common/linux_socket.c
cvs rdiff -r1.20 -r1.21 syssrc/sys/compat/linux/common/linux_socketcall.c
cvs rdiff -r1.5 -r1.6 syssrc/sys/compat/linux/common/linux_socketcall.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.