| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
To reduce code duplication move socket defines to the MI path.
|
|
|
|
|
| |
Hide Linux socketcall constants under corresponding #ifdef since
they are used only in i386 Linuxulator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Mostly on comments but there are some user-visible messages as well.
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
struct definitions out into the compat/linux/linux_socket.h
|
|
|
|
|
|
|
| |
socketcall system calls.
Differential Revision: https://reviews.freebsd.org/D1065
Reviewed by: trasz
|
|
|
|
|
|
|
| |
by moving bits that are MI out into headers in compat/linux.
Reviewed by: Chagin Dmitry dmitry | gmail
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
| |
Approved by: kib (mentor)
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
type argument is specified.
Do not map type argument value as its Linux values are
identical to FreeBSD values.
Approved by: kib (mentor)
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
header file. As it is defined in Linux.
Approved by: kib (mentor)
MFC after: 1 month
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Spotted and suggested by: des
MFC after: 3 weeks
|
|
Approved by: marcel
|