Subject: CVS commit: [netbsd-1-6] src/sys/compat/linux/common
To: None <source-changes@NetBSD.org>
From: James Chacon <jmc@netbsd.org>
List: source-changes
Date: 10/22/2003 04:18:35
Module Name: src
Committed By: jmc
Date: Wed Oct 22 04:18:35 UTC 2003
Modified Files:
src/sys/compat/linux/common [netbsd-1-6]: linux_socket.c
Log Message:
Pullup rev 1.49 (via patch) (requested by tv in ticket #1425)
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).
To generate a diff of this commit:
cvs rdiff -r1.39.4.1 -r1.39.4.2 src/sys/compat/linux/common/linux_socket.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.