summaryrefslogtreecommitdiff
path: root/sys/compat/linux
AgeCommit message (Collapse)Author
2003-12-20Put back Emmanuel's sigfilter hooks, as decided by Core.fvdl
2003-12-20Introduce lwp_emuldata and the associated hooks. No hook is provided for themanu
exec case, as the emulation already has the ability to intercept that with the e_proc_exec hook. It is the responsability of the emulation to take appropriaye action about lwp_emuldata in e_proc_exec. Patch reviewed by Christos.
2003-12-08remove error(1) comment.christos
2003-12-05back the sigfilter emulation hook change offjdolecek
2003-12-04Dynamic sysctl.atatat
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(), vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all nodes are registered with the tree, and nodes can be added (or removed) easily, and I/O to and from the tree is handled generically. Since the nodes are registered with the tree, the mapping from name to number (and back again) can now be discovered, instead of having to be hard coded. Adding new nodes to the tree is likewise much simpler -- the new infrastructure handles almost all the work for simple types, and just about anything else can be done with a small helper function. All existing nodes are where they were before (numerically speaking), so all existing consumers of sysctl information should notice no difference. PS - I'm sorry, but there's a distinct lack of documentation at the moment. I'm working on sysctl(3/8/9) right now, and I promise to watch out for buses.
2003-12-03Add a sigfilter emulation hook. It is used at the beginning of kpsignal2()manu
so that a specific emulation has the oportunity to filter out some signals. if sigfilter returns 0, then no signal is sent by kpsignal2(). There is another place where signals can be generated: trapsignal. Since this function is already an emulation hook, no call to the sigfilter hook was introduced in trapsignal. This is needed to emulate the softsignal feature in COMPAT_DARWIN (signals sent as Mach exception messages)
2003-11-15We have CVS; there is no reason to make .bak files when generating thethorpej
syscall tables.
2003-10-31adapt for changes to kern/exec_elf32.cdrochner
2003-10-27uninitialized variableschs
2003-10-26Use ${HOST_SH} instead of `sh'.lukem
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH; Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-25Fix uninitialized variable warningschristos
2003-10-10Adapt to SIGINFO changes.matt
2003-10-10Adapt ARM Linux compat code to deal with SIGINFO.matt
2003-10-10Adapt to SIGINFO changes.matt
2003-10-08Use ksi_signo accessor macro.thorpej
2003-10-06Catch up with chuck's stack changes. Don't map the linux stuff executablechristos
and avoid mapping segments that have 0 size.
2003-09-28fix fmovem argument referencecl
2003-09-28catch up with const sigset_tcl
2003-09-26Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Testsimonb
compiled on most architectures.
2003-09-25constify sendsig/trapsignalchristos
2003-09-25Add siginfo support for PowerPC.matt
2003-09-22SA_SIGINFO support for m68k (emul linux)cl
2003-09-21make compile after last change (!)jdolecek
2003-09-21Now that we have siginfo, use it, instead of pretending to have one.christos
2003-09-06SA_SIGINFO changeschristos
2003-08-24add support for non-executable mappings (where the hardware allows this)chs
and make the stack and heap non-executable by default. the changes fall into two basic catagories: - pmap and trap-handler changes. these are all MD: = alpha: we already track per-page execute permission with the (software) PG_EXEC bit, so just have the trap handler pay attention to it. = i386: use a new GDT segment for %cs for processes that have no executable mappings above a certain threshold (currently the bottom of the stack). track per-page execute permission with the last unused PTE bit. = powerpc/ibm4xx: just use the hardware exec bit. = powerpc/oea: we already track per-page exec bits, but the hardware only implements non-exec mappings at the segment level. so track the number of executable mappings in each segment and turn on the no-exec segment bit iff the count is 0. adjust the trap handler to deal. = sparc (sun4m): fix our use of the hardware protection bits. fix the trap handler to recognize text faults. = sparc64: split the existing unified TSB into data and instruction TSBs, and only load TTEs into the appropriate TSB(s) for the permissions. fix the trap handler to check for execute permission. = not yet implemented: amd64, hppa, sh5 - changes in all the emulations that put a signal trampoline on the stack. instead, we now put the trampoline into a uvm_aobj and map that into the process separately. originally from openbsd, adapted for netbsd by me.
2003-08-21Hide prototype of linux_exec_setup_stack() inside #ifdef _KERNEL sodsl
that sbin/sysctl will compile.
2003-08-21Fix syscall_vm86 argument:hannken
struct trapframe -> struct trapframe *
2003-08-14remove the args from the macro.christos
2003-08-10regen - added wrapper for Linux ftruncate64()jdolecek
2003-08-10add Linux compat arg wrapper for ftruncate64(), and change linux compatjdolecek
truncate64() wrapper to translate args structure NetBSD truncate() and ftrucate() have hidden 'pad' argument, so we have to do the argument translation Problem found and patch supplied in PR kern/22360 by Ales Krenek This is the last of syscalls with hidden 'pad' arg we didn't have wrapper for; all the others (lseek, mmap, pwrite, pread) already had wrapper before.
2003-08-09fix linux_sys_p{read|write}() to actually call correct syscall afterjdolecek
arg massage, i.e. sys_p{read|write} as appropriate; up to now, the functions called sys_{read|write}() by mistake
2003-08-09Explain a diagnostic message a bit better, and make it a debug only message.christos
2003-08-08- GC all the setup_stack functionschristos
- add one for linux/i386
2003-08-08Conditionally declare function that is not used all the time.christos
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-02use copyout() instead of subyte()jdolecek
2003-08-02use copyin()/copyout() instead of fubyte()/subyte()jdolecek
also nuke uvm_useracc() check, copyin()/copyout() do this atomically XXX only compile-tested
2003-08-02replace fuword() with copyin(), and suword() with copyout()jdolecek
2003-07-27More complete sendmsg(2) and recvmsg(2) emulation:jdolecek
* translate MSG_* flags * rewrite CMSG level/type to appropriate NetBSD value on input, and to Linux value on output * handle different CMSG_DATA alignment for some archs This fixes SCM_RIGHTS passing. Other SCM_* types are not supported - the set is different on NetBSD and Linux. SCM_TIMESTAMP doesn't seem to be actually implemented in Linux 2.5.15, so it's not supported for Linux binaries either (for now). PR: 21577 by Todd Vierling
2003-07-27add a cast appease gcc3.3mrg
2003-07-26add LINUX_SO_PEERNAME, LINUX_SO_TIMESTAMP where it has been missingjdolecek
fix value for LINUX_SO_DETACH_FILTER on couple places (unused anyway) g/c LINUX_SCM_TIMESTAMP definition for some archs, it will be defined in generic linux_socket.h
2003-07-23make credentials work on the i386 by passing the original msg structure.christos
(from Todd Vierling)
2003-07-04Actually move the prototype of native_to_linux_sigaltstack here.enami
2003-07-03Regen.christos
2003-07-03Implement linux_rt_sigreturn for real. Add a hack for more plausible siginfo.christos
The java segv handler still segv's again inside the signal handler, but our sample test program now works [gets the proper ucontext].
2003-07-03make the converter of sigaltstack public.christos
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-29Adapt to ktrace/lwp changes.thorpej
2003-06-29Regen: adapt to linux mmap2 changes.thorpej