NetBSD/sys/compat/darwin
manu d77ec799a5 Support Darwin static binaries (I should say: support the only Darwin
static binary: otool). Dynamic binaires have a pointer to the Mach-O
header on the top of the stack, static binaries don't have this, and
having it produced a crash.

One bugfix: the EXEC_MACHO code assumes that entry = NULL means that
the entry point has not been found in the load commands seen so far.
Therefore we need to initialized entry to NULL if we want a static binary
to discover it. (dynamic binaries were forced to iscover it because when
the intepreter load command is found, entry is updated whatever its
value was before).

One hack: Both COMPAT_MACH and COMPAT_DARWIN are willing to run Mach-O
binaries. COMPAT_MACH fails for dynamic binaries because it cannot find
the interpreter in /emul/mach. For static binaires, it will accept them
(and for Darwin static binaries, this will cause a failure). Until we
rite a test for matchinf Darwin static binaries, just swap the order of
COMPAT_MACH and COMPAT_DARWIN in the exec switch so that COMPAT_DARWIN
is tried first (this will have the advantage of speeding up program
startup). EXECSW_PRIO_{FIRST_LAST} does not seem to work...
2003-10-19 07:52:22 +00:00
..
darwin_exec.c Support Darwin static binaries (I should say: support the only Darwin 2003-10-19 07:52:22 +00:00
darwin_exec.h If a Darwin process using the framebuffer (e.g.: XDarwin) crashes without 2003-08-29 23:11:40 +00:00
darwin_ioctl.c Implement Darwin's FIODTYPE ioctl (get a file d_type) 2003-09-03 07:28:38 +00:00
darwin_ioctl.h Implement Darwin's FIODTYPE ioctl (get a file d_type) 2003-09-03 07:28:38 +00:00
darwin_ioframebuffer.c Remove references to wsmux_cdevsw and wsdisplay_cdevsw (how to remove 2003-10-18 13:27:17 +00:00
darwin_ioframebuffer.h Added a IOFBSETCOLORCONVERTTABLE method in ioframebuffer driver. 2003-07-01 19:15:47 +00:00
darwin_iohidsystem.c Remove references to wsmux_cdevsw and wsdisplay_cdevsw (how to remove 2003-10-18 13:27:17 +00:00
darwin_iohidsystem.h Remove references to wsmux_cdevsw and wsdisplay_cdevsw (how to remove 2003-10-18 13:27:17 +00:00
darwin_iokit.c
darwin_iokit.h
darwin_mman.c Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
darwin_mount.c correct translation for struct statfs in getfsstat, ststfs and fstatfs 2003-09-02 21:31:01 +00:00
darwin_mount.h correct translation for struct statfs in getfsstat, ststfs and fstatfs 2003-09-02 21:31:01 +00:00
darwin_proc.h someone forgot to commit code. make this compile again. 2003-09-10 16:44:45 +00:00
darwin_signal.c
darwin_signal.h Build PowerPC again with _HAS_SIGINFO. Remove the ifdef on _HAS_SIGINFO 2003-09-30 21:04:54 +00:00
darwin_stat.c Convert dev_t for mknod 2003-09-06 11:50:00 +00:00
darwin_syscall.h regen 2003-09-06 11:50:25 +00:00
darwin_syscallargs.h regen 2003-09-06 11:50:25 +00:00
darwin_syscalls.c regen 2003-09-06 11:50:25 +00:00
darwin_sysctl.c Handle mouseup and mousdown events 2003-09-14 09:48:42 +00:00
darwin_sysctl.h Handle mouseup and mousdown events 2003-09-14 09:48:42 +00:00
darwin_sysent.c regen 2003-09-06 11:50:25 +00:00
darwin_thread.c
darwin_types.h Convert dev_t for mknod 2003-09-06 11:50:00 +00:00
darwin_unistd.c
files.darwin Correctly translate dev_t in stat/fstat/lstat 2003-09-06 11:18:03 +00:00
Makefile
syscalls.conf
syscalls.master Convert dev_t for mknod 2003-09-06 11:50:00 +00:00