NetBSD/sys/compat/netbsd32
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
..
Makefile
files.netbsd32
netbsd32.h dependant -> dependent 2011-06-30 20:09:15 +00:00
netbsd32_compat_09.c
netbsd32_compat_10.c
netbsd32_compat_12.c
netbsd32_compat_13.c
netbsd32_compat_14.c
netbsd32_compat_20.c
netbsd32_compat_30.c
netbsd32_compat_43.c
netbsd32_compat_50.c Update from GNU extension to C99 syntax for designated initializer 2011-05-23 21:34:47 +00:00
netbsd32_conv.h merge the bouyer-quota2 branch. This adds a new on-disk format 2011-03-06 17:08:10 +00:00
netbsd32_core.c udpate license clauses on my code to match the new-style BSD licenses. 2011-02-02 20:07:25 +00:00
netbsd32_event.c Update from GNU extension to C99 syntax for designated initializer 2011-05-23 21:34:47 +00:00
netbsd32_exec.h
netbsd32_exec_aout.c
netbsd32_exec_elf32.c Pass down ELF Auxillary Vectors for static NetBSD binaries too. 2011-03-07 05:09:09 +00:00
netbsd32_execve.c
netbsd32_fs.c Delete some splurious commas and very unexpected trailing space 2011-06-05 08:42:59 +00:00
netbsd32_ioctl.c Provide netbsd32 compat for bpf. Beside the ioctls, the structure 2011-08-30 14:22:22 +00:00
netbsd32_ioctl.h Provide netbsd32 compat for bpf. Beside the ioctls, the structure 2011-08-30 14:22:22 +00:00
netbsd32_ipc.c
netbsd32_lwp.c netbsd32__lwp_create: add a comment and CTASSERT. 2011-02-05 13:46:44 +00:00
netbsd32_mod.c
netbsd32_netbsd.c Add pipe2 syscall now needed for popen(3). 2011-07-05 14:21:46 +00:00
netbsd32_sa.c
netbsd32_sa.h
netbsd32_select.c
netbsd32_sem.c
netbsd32_signal.c Explicitly initialize ucontext before calling getmcontext. 2011-02-03 21:45:31 +00:00
netbsd32_socket.c
netbsd32_syscall.h Regen for pipe2. 2011-07-05 14:23:26 +00:00
netbsd32_syscallargs.h Regen for pipe2. 2011-07-05 14:23:26 +00:00
netbsd32_syscalls.c Regen for pipe2. 2011-07-05 14:23:26 +00:00
netbsd32_sysctl.c Use __UNCONST to get rid of const 2011-05-23 21:34:01 +00:00
netbsd32_sysctl.h
netbsd32_sysent.c Regen for pipe2. 2011-07-05 14:23:26 +00:00
netbsd32_time.c
netbsd32_wait.c
syscalls.conf
syscalls.master Add pipe2 syscall now needed for popen(3). 2011-07-05 14:21:46 +00:00