summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_socket.h
AgeCommit message (Collapse)Author
2021-09-23add support COMPAT_LINUX for aarch64ryo
2019-08-24Don't read data from userland directly. This simply does not work on anymaxv
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?
2017-02-03add sendmmsg and recvmmsgchristos
2014-01-27Add basic IPV6 level socket options support (IPV6_V6ONLY).njoly
2011-06-30dependant -> dependentwiz
2010-11-02update linux_sys_socket() to understand the flags that are nowchs
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.
2009-11-28Add LINUX_SIOCGIFMTU and LINUX_IP_HDRINCL support.dsl
Fixes part of PR/31358 The other parts are rather too intrusive to be fixed as in the PR.
2009-06-17Add a new linux_msghdr structure, as its size differs on 64bit archs.njoly
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust their definitions accordingly.
2009-06-16Add LINUX_CMSG_{SPACE,LEN} macros. Use then when calculating thenjoly
msg_controllen size, when converting the control message buffer from native (previous version was missing the linux_cmsghdr size).
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-07-01Fix long-term breakage in the definition of 'control' data for linux.dsl
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.
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2005-12-11merge ktrace-lwp.christos
2005-05-03First work on COMPAT_LINUX/amd64manu
Process startup and dynamiclinking work, but processes hang due to Linux arch_prctl(2) not being really supported yet.
2003-07-27More complete sendmsg(2) and recvmsg(2) emulation:jdolecek
* 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
2002-01-14Crude first cut at ARMLinux binary compatibility. Successfully runsbjh21
"/emul/linux/bin/echo hello, world", dynamically linked.
2001-09-22Enable Mips Linux emulation in header filesmanu
2001-01-19Added Linux compatibility support for powerpc portsmanu
1998-12-15Added linux compat support on m68k ports.itohy
1998-10-04Assign my copyright to TNF. Merge with others were appropriate.fvdl
Regen syscall files after script change.
1998-10-03Attempt to fix the mess.christos
1998-10-01Split linux_socket.h into i386 and common parts.erh
1995-05-28Convert TCP socket options.mycroft
1995-05-28Convert IP socket options.mycroft
1995-02-28Added Linux compat code.fvdl