NetBSD/sys/compat
bouyer ccc8030189 Provide netbsd32 compat for bpf. Beside the ioctls, the structure
returned to userland by read(2) also needs to be converted.
For this, the bpf descriptor is flagged as compat32 (or not) in the
open and ioctl functions (where the user process's pid is also updated
in the descriptor). When the bpf buffer is filled in, the 32bits or native
header is used depending on the information stored in the descriptor.

This won't work if a 64bit binary does the open and ioctls, and then
exec a 32bit program which will do the read. But this is very
unlikely to happen in real life ...

Tested on i386 and loongson; with these changes my loongson can run
dhclient and tcpdump with a n32 userland.
2011-08-30 14:22:22 +00:00
..
aoutm68k Regen: use COMPAT_50 quotactl, not the native one 2011-03-07 19:27:27 +00:00
common add libcompat.o/.po targets for COMPAT_AS=obj 2011-08-11 21:23:09 +00:00
freebsd merge the bouyer-quota2 branch. This adds a new on-disk format 2011-03-06 17:08:10 +00:00
ibcs2 Introduce struct pathbuf. This is an abstraction to hold a pathname 2010-11-19 06:44:33 +00:00
linux Better debugging. 2011-08-18 02:26:38 +00:00
linux32 Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura. 2011-05-30 21:37:37 +00:00
m68k4k buildfix: #include <sys/exec_aout.h> 2009-08-17 06:00:05 +00:00
ndis Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
net Add a new AF/PF_ROUTE which is 64-bit clean which makes the routing socket 2011-02-01 01:39:19 +00:00
netbsd32 Provide netbsd32 compat for bpf. Beside the ioctls, the structure 2011-08-30 14:22:22 +00:00
netinet6
osf1 Fix SYSCALL_DEBUG build. 2011-07-22 10:02:08 +00:00
ossaudio add a lot more debugging and error checking. Alas, skype seems to be happy 2009-08-22 23:31:16 +00:00
sa Remove pfind() and pgfind(), fix locking in various broken uses of these. 2010-07-01 02:38:26 +00:00
sunos many changes for COMPAT_LINUX: 2010-07-07 01:30:32 +00:00
sunos32 Introduce struct pathbuf. This is an abstraction to hold a pathname 2010-11-19 06:44:33 +00:00
svr4 * Arrange for interfaces that create new file descriptors to be able to 2011-06-26 16:42:39 +00:00
svr4_32 Abolish the SAVENAME and HASBUF flags. There is now always a buffer, 2010-11-30 10:43:01 +00:00
sys Give the body the same static inline treatment as the definition 2011-05-24 18:29:23 +00:00
ultrix many changes for COMPAT_LINUX: 2010-07-07 01:30:32 +00:00
vax1k Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to 2009-08-15 23:39:35 +00:00
Makefile