Subject: CVS commit: src/sys/compat/linux/common
To: None <source-changes@NetBSD.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 07/27/2003 19:30:04
Module Name:	src
Committed By:	jdolecek
Date:		Sun Jul 27 19:30:04 UTC 2003

Modified Files:
	src/sys/compat/linux/common: linux_socket.c linux_socket.h

Log Message:
More complete sendmsg(2) and recvmsg(2) emulation:
* translate MSG_* flags
* rewrite CMSG level/type to appropriate NetBSD value on input, and to Linux
  value on output
* handle different CMSG_DATA alignment for some archs

This fixes SCM_RIGHTS passing. Other SCM_* types are not supported -
the set is different on NetBSD and Linux. SCM_TIMESTAMP doesn't seem
to be actually implemented in Linux 2.5.15, so it's not supported
for Linux binaries either (for now).

PR: 21577 by Todd Vierling


To generate a diff of this commit:
cvs rdiff -r1.48 -r1.49 src/sys/compat/linux/common/linux_socket.c
cvs rdiff -r1.10 -r1.11 src/sys/compat/linux/common/linux_socket.h

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