History log of /netbsd/sys/compat/linux/common/linux_socket.h (Results 1 – 25 of 25)
Revision Date Author Comments
# f036aca9 23-Sep-2021 ryo <ryo@NetBSD.org>

add support COMPAT_LINUX for aarch64


# b7fa3afd 24-Aug-2019 maxv <maxv@NetBSD.org>

Don't read data from userland directly. This simply does not work on any
recent x86 CPU (thanks to SMAP) and all architectures that forbid direct
access to userland from the kernel. But I guess no on

Don't read data from userland directly. This simply does not work on any
recent x86 CPU (thanks to SMAP) and all architectures that forbid direct
access to userland from the kernel. But I guess no one noticed because no
one ever uses compat_linux, right?

show more ...


# eab9789e 03-Feb-2017 christos <christos@NetBSD.org>

add sendmmsg and recvmmsg


# bc3413cb 27-Jan-2014 njoly <njoly@NetBSD.org>

Add basic IPV6 level socket options support (IPV6_V6ONLY).


# fcddf71f 30-Jun-2011 wiz <wiz@NetBSD.org>

dependant -> dependent


# 3c3115da 02-Nov-2010 chs <chs@NetBSD.org>

update linux_sys_socket() to understand the flags that are now
included in the "type" parameter. in linux_sys_sendmsg(),
if we see an SCM_CREDENTIALS control message, just drop it
instead of giving

update linux_sys_socket() to understand the flags that are now
included in the "type" parameter. in linux_sys_sendmsg(),
if we see an SCM_CREDENTIALS control message, just drop it
instead of giving an error. the linux and native versions of
the cred-passing operation are very different and some apps
(eg. linux pulseaudio library talking to a native server)
will work without the control data.

show more ...


# ea4ea02d 28-Nov-2009 dsl <dsl@NetBSD.org>

Add LINUX_SIOCGIFMTU and LINUX_IP_HDRINCL support.
Fixes part of PR/31358
The other parts are rather too intrusive to be fixed as in the PR.


# f50c7f6e 17-Jun-2009 njoly <njoly@NetBSD.org>

Add a new linux_msghdr structure, as its size differs on 64bit archs.
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust
their definitions accordingly.


# cb90fddd 16-Jun-2009 njoly <njoly@NetBSD.org>

Add LINUX_CMSG_{SPACE,LEN} macros. Use then when calculating the
msg_controllen size, when converting the control message buffer from
native (previous version was missing the linux_cmsghdr size).


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# 813e1c75 01-Jul-2007 dsl <dsl@NetBSD.org>

Fix long-term breakage in the definition of 'control' data for linux.
cmsg->cmsg_len is 'size_t' not 'socklen_t' - so it is 8 bytes on 64bit
platforms instead of 4. There is also never padding after

Fix long-term breakage in the definition of 'control' data for linux.
cmsg->cmsg_len is 'size_t' not 'socklen_t' - so it is 8 bytes on 64bit
platforms instead of 4. There is also never padding after the header.
Redo linux sendmsg() so that it stands a chance of getting it right.
Redo linux recvmsg() so that it process control data directly from the mbuf
list. Allowing it to hack the data without using the stackgap.

show more ...


# 53524e44 04-Mar-2007 christos <christos@NetBSD.org>

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.


# 95e1ffb1 11-Dec-2005 christos <christos@NetBSD.org>

merge ktrace-lwp.


# 89647c7c 03-May-2005 manu <manu@NetBSD.org>

First work on COMPAT_LINUX/amd64
Process startup and dynamiclinking work, but processes hang due to
Linux arch_prctl(2) not being really supported yet.


# a2d0517a 27-Jul-2003 jdolecek <jdolecek@NetBSD.org>

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

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

show more ...


# 64625064 14-Jan-2002 bjh21 <bjh21@NetBSD.org>

Crude first cut at ARMLinux binary compatibility. Successfully runs
"/emul/linux/bin/echo hello, world", dynamically linked.


# e302bb5b 22-Sep-2001 manu <manu@NetBSD.org>

Enable Mips Linux emulation in header files


# cac0b393 19-Jan-2001 manu <manu@NetBSD.org>

Added Linux compatibility support for powerpc ports


# 0c080222 15-Dec-1998 itohy <itohy@NetBSD.org>

Added linux compat support on m68k ports.


# 8096c25a 04-Oct-1998 fvdl <fvdl@NetBSD.org>

Assign my copyright to TNF. Merge with others were appropriate.
Regen syscall files after script change.


# 908291d2 03-Oct-1998 christos <christos@NetBSD.org>

Attempt to fix the mess.


# 79905dc1 01-Oct-1998 erh <erh@NetBSD.org>

Split linux_socket.h into i386 and common parts.


# 32659780 28-May-1995 mycroft <mycroft@NetBSD.org>

Convert TCP socket options.


# e8950467 28-May-1995 mycroft <mycroft@NetBSD.org>

Convert IP socket options.


# 3bf459f3 28-Feb-1995 fvdl <fvdl@NetBSD.org>

Added Linux compat code.