summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r315501:dchagin2017-04-151-0/+33
| | | | To reduce code duplication move socket defines to the MI path.
* MFC r314643:dchagin2017-03-151-6/+1
| | | | | Hide Linux socketcall constants under corresponding #ifdef since they are used only in i386 Linuxulator.
* MFC r313284:dchagin2017-02-221-118/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update syscall.master to 4.10-rc6. Also fix comments, a typo, and wrong numbering for a few unimplemented syscalls. For 32-bit Linuxulator, socketcall() syscall was historically the entry point for the sockets API. Starting in Linux 4.3, direct syscalls are provided for the sockets API. Enable it. The initial version of patch was provided by trasz@ and extended by me. MFC r313285: Regen after r313284. MFC r313684: Fix r313284. Members of the syscall argument structures are padded to a word size. So, for COMPAT_LINUX32 we should convert user supplied system call arguments which is 32-bit in that case to the array of register_t. MFC r313912: Finish r313684. Convert linux_recv(), linux_send() and linux_accept() system call arguments to the register_t type too.
* sys/compat/linux*: spelling fixes.pfg2016-04-301-1/+1
| | | | | | Mostly on comments but there are some user-visible messages as well. MFC after: 2 weeks
* Add support for IPPROTO_IPV6 socket layer for getsockopt/setsockopt calls.ae2016-03-091-0/+25
| | | | | | | | Also add mapping for several options from RFC 3493 and 3542. Reviewed by: dchagin Tested by: Joe Love <joe at getsomwhere dot net> MFC after: 2 weeks
* Convert SCM_TIMESTAMP in recvmsg().dchagin2015-05-241-1/+2
|
* Implement recvmmsg() and sendmmsg() system calls.dchagin2015-05-241-0/+9
|
* Reduce duplication between MD Linux code by moving msg relateddchagin2015-05-241-0/+16
| | | | struct definitions out into the compat/linux/linux_socket.h
* 64-bit paltforms, like x86_64, do not use multiplexing ondchagin2015-05-241-0/+127
| | | | | | | socketcall system calls. Differential Revision: https://reviews.freebsd.org/D1065 Reviewed by: trasz
* 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