summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r283497:dchagin2016-01-091-1/+2
| | | | Convert SCM_TIMESTAMP in recvmsg().
* MFC r283488:dchagin2016-01-091-0/+9
| | | | Implement recvmmsg() and sendmmsg() system calls.
* MFC r283487:dchagin2016-01-091-0/+16
| | | | | Reduce duplication between MD Linux code by moving msg related struct definitions out into the compat/linux/linux_socket.h
* MFC r283413:dchagin2016-01-091-0/+127
| | | | | 64-bit paltforms, like x86_64, do not use multiplexing on socketcall system calls.
* Reduce duplication between i386/linux/linux.h and amd64/linux32/linux.hjhb2013-01-291-0/+40
| | | | | | | by moving bits that are MI out into headers in compat/linux. Reviewed by: Chagin Dmitry dmitry | gmail MFC after: 2 weeks
* linux compat: improve and fix sendmsg/recvmsg compatibilityavg2011-03-261-2/+4
| | | | | | | | | | | | | | | | | - implement baseic stubs for capget, capset, prctl PR_GET_KEEPCAPS and prctl PR_SET_KEEPCAPS. - add SCM_CREDS support to sendmsg and recvmsg - modify sendmsg to ignore control messages if not using UNIX domain sockets This should allow linux pulse audio daemon and client work on FreeBSD and interoperate with native counter-parts modulo the differences in pulseaudio versions. PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks
* Implement MSG_CMSG_CLOEXEC flag for linux_recvmsg().dchagin2009-05-181-0/+1
| | | | | Approved by: kib (mentor) MFC after: 1 month
* Somewhere between 2.6.23 and 2.6.27, Linux added SOCK_CLOEXEC anddchagin2009-05-161-0/+7
| | | | | | | | | | SOCK_NONBLOCK flags, that allow to save fcntl() calls. Implement a variation of the socket() syscall which takes a flags in addition to the type argument. Approved by: kib (mentor) MFC after: 1 month
* Return EINVAL in case when the incorrect or unsupporteddchagin2009-05-161-0/+10
| | | | | | | | | type argument is specified. Do not map type argument value as its Linux values are identical to FreeBSD values. Approved by: kib (mentor)
* Emulate SO_PEERCRED socket option.dchagin2009-05-161-0/+6
| | | | | | | | | | Temporarily use 0 for pid member as the FreeBSD does not cache remote UNIX domain socket peer pid. PR: kern/102956 Reviewed by: rwatson Approved by: kib (mentor) MFC after: 1 month
* To avoid excessive code duplication move MI definitions to the MIdchagin2009-05-071-0/+10
| | | | | | | header file. As it is defined in Linux. Approved by: kib (mentor) MFC after: 1 month
* Make linux_sendmsg() and linux_recvmsg() work on linux32/amd64.kib2008-11-291-0/+31
| | | | | | | | Change types used in the linux' struct msghdr and struct cmsghdr definitions to the properly-sized architecture-specific types. Move ancillary data handler from linux_sendit() to linux_sendmsg(). Submitted by: dchagin
* Fix typo in the BSD copyright: s/withough/without/schweikh2002-06-021-1/+1
| | | | | Spotted and suggested by: des MFC after: 3 weeks
* translate the flags in recvfrom and recvmsg from linux to bsd onesassar2000-12-191-0/+52
Approved by: marcel
OpenPOWER on IntegriCloud