| Age | Commit message (Collapse) | Author |
|
|
|
Just in case of uninitialized padding which would lead to kernel
stack disclosure. If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.
|
|
|
|
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
|
|
old_uname and oldold_uname syscalls to ensure that all *utsname fields
are always NUL terminated.
|
|
- delete the machine sysctl that never worked, and gc linux_machine.
|
|
some applications seem to want.
|
|
|
|
|
|
- fix a couple of unused bugs
- no more -Wno-unused for i386
|
|
|
|
|
|
value). A few major applications check for this (like VMware), and
there is no other way to trick them. Needs a more generic solution
eventually.
|
|
|
|
|
|
osrelease, and ostype and remove "extern char foo[];" (for hostname
and domainname too).
Also delete redunctant decl of boottime in kern_info_43.c.
|
|
|
|
|
|
Regen syscall files after script change.
|
|
|
|
|
|
multi-architechture functions.
|
|
* Increase the size of sigset_t to accomodate 128 signals -- adding new
versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and
sys_sigsuspend() to handle the changed arguments.
* Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(),
sys_sigpending() and sys_sigsuspend() into separate functions, and call them
from all the emulations rather than hard-coding everything. (Avoids uses
the stackgap crap for these system calls.)
* Add a new flag (p_checksig) to indicate that a process may have signals
pending and userret() needs to do the full (slow) check.
* Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE.
* Correct emulation bugs with restoring SS_ONSTACK.
* Make the signal mask in the sigcontext always use the emulated mask format.
* Store signals internally in sigaction structures, rather than maintaining a
bunch of little sigsets for each SA_* bit.
* Keep track of where we put the signal trampoline, rather than figuring it out
in *_sendsig().
* Issue a warning when a non-emulated sigaction bit is observed.
* Add missing emulated signals, and a native SIGPWR (currently not used).
* Implement the `not reset when caught' semantics for relevant signals.
Note: Only code touched by the i386 port has been modified. Other ports and
emulations need to be updated.
|
|
the individual emulated readdirs must check.
Since netbsd and freebsd return EINVAL for the error
and I don't know what the other platforms do, return
EINVAL for them too.
|
|
|
|
|
|
call, provided by Urban Boquist <boquist@cs.chalmers.se> in PR #5693.
Add a comment about how one might implement the growing bit of mremap(2).
|
|
|
|
|
|
|
|
|
|
the XPG4.2 definition in that it returns the kernel virtual address
of the session structure, rather than the process group ID of the
session leader.
|
|
|
|
|
|
realloc(3) and other uses. From Matthias Scheler in PR 3920.
|
|
in 32 bits. Provide an error message to the user, and return EINVAL.
Also, pay attention to the EOF flag from VOP_READDIR. Correct a
misspell in a panic message.
|
|
directory and running out of space in the dest buffer, off should point to the
current entry (which was not saved) and not to the next.
I discovered this bug using linux and SunOS emulation over NFS, but seems to
affect other emulations as well.
|
|
- It is now possible to handle devices that want "looping" DMA,
e.g. the SoundBlaster correctly. The WSS and SB drivers use this.
To do this several new methods were introduced in audio_hw_if.
- Different silence handling (forced by previous change).
- The audio driver can now be mmap()-ed, but due to problems in
the VM system only for writing for now.
- The OSS (Linux) audio emulation takes advantage of some of the
new features.
|
|
|
|
|
|
|
|
used and doable.
|
|
- Fix bug that gcc -Wall found in linux_sys_getpgid()
|
|
|
|
to the emulation as well.
|
|
|
|
|
|
|
|
prototypes into scope.
|
|
Linux, but avoid endless loops.
|