freebsd-dev/sys/compat/freebsd32
Marcel Moolenaar 0fa211be96 In freebsd32_sendmsg(), replace the call to sockargs() followed by a
call to freebsd32_convert_msg_in() with freebsd32_copyin_control() to
readin and convert in a single step. This makes it simpler to put all
the control messages in a single mbuf or mbuf cluster as per the
limitations imposed upon us by ip6_setpktopts().

The logic is as follows:
1.  Go over the array of control messages to determine overall size
    and include extra padding for proper alignment as we go.
2.  Get a mbuf or mbuf cluster as needed or fail if the overall
    (adjusted) size is larger than a cluster.
3.  Go over the array of control messages again, but now copy them
    into kernel space and into aligned offsets.
4.  Update the length of the control message to take padding between
    the header and the data into account (but not for padding added
    between one control message and the next).

Obtained from:	Juniper Networks, Inc.
MFC after:	1 week
2014-04-05 18:56:01 +00:00
..
freebsd32_capability.c Update kernel inclusions of capability.h to use capsicum.h instead; some 2014-03-16 10:55:57 +00:00
freebsd32_ioctl.c Update kernel inclusions of capability.h to use capsicum.h instead; some 2014-03-16 10:55:57 +00:00
freebsd32_ioctl.h Provide the structures and ioctl number definition for handling 2011-04-02 15:47:23 +00:00
freebsd32_ipc.h
freebsd32_misc.c In freebsd32_sendmsg(), replace the call to sockargs() followed by a 2014-04-05 18:56:01 +00:00
freebsd32_misc.h Move the PAIR32TO64() macro and the RETVAL_HI/RETVAL_LO defines to a 2013-08-18 13:34:11 +00:00
freebsd32_proto.h Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_signal.h Move the convert_sigevent32() utility function into freebsd32_misc.c 2013-07-21 19:33:48 +00:00
freebsd32_syscall.h Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_syscalls.c Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_sysent.c Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_systrace_args.c Regen per r263318. 2014-03-18 21:34:11 +00:00
freebsd32_util.h In order to maximize the re-usability of kernel code in user space this 2011-09-16 13:58:51 +00:00
freebsd32.h Add an kinfo sysctl to retrieve signal trampoline location for the 2013-11-26 19:47:09 +00:00
Makefile add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls 2011-03-12 08:51:43 +00:00
syscalls.conf add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls 2011-03-12 08:51:43 +00:00
syscalls.master Remove dead code from umtx support: 2014-03-18 21:32:03 +00:00