Age | Commit message (Collapse) | Author |
|
so that the process-level stuff is to/from struct process and not
struct proc. This fixes a bunch of problem cases in rthreads.
Based on earlier work by blambert and myself, but mostly written
at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
|
|
not a pointer." So just use the native implementation.
ok deraadt@
|
|
|
|
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include
<sys/dkio.h> to the places that actually want and use the disk
ioctls.
this became an issue when krw@'s X build failed when he was testing
a change to dkio.h.
tested by krw@
help from and ok miod@
|
|
|
|
when not doing CLONE_THREAD, like we did before, instead of treating
it as an error. This unbreaks Opera running in linux compat.
Also, Linux completely ignores CLONE_DETACHED, so do that too, and
consistently refer to the flags in comment via their Linux names
without trying to abbreviate them further.
Problem found and fix confirmed by sturm@
|
|
and catching FORK_THREAD when RTHREADS wasn't compiled in. Simplify
sys_rfork() based on that.
Flesh out the Linux clone support with more flags, but stricter
checks for missing support or bad combos. Still not enough for
NPTL to work, mind you.
ok kettenis@
|
|
Prompted by parfait noticing overflows in ibcs2/svr4 which
are now changed to being NSIG sized like the others as
suggested by tedu.
ok tedu@ miod@ guenther@
|
|
ok deraadt@
|
|
correctly, usually yielding the right value on 32 bit machines because
sizeof int == sizeof pointer.
|
|
NetBSD.
ok kurt@, drahn@, miod@
|
|
|
|
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
|
|
find their interpreter, as the linux ld.so name is unique and not likely to
be found in another /emul/foo hierarchy; allows Opera to run again. Noticed
by sturm@
|
|
also recognize modern Linux binaries without branding, but with a ``GNU''
ABI note.
|
|
socket, since some of them do that. ok deraadt@, henning@.
|
|
|
|
|
|
ok krw@, ok pyr@
|
|
translate the errnos added over the last few releases.
|
|
version for i386
more architectures and ctob() replacement is being worked on
prodded by and ok miod
|
|
type of all variables to daddr64_t. this includes the APIs for XXsize()
and XXdump(), all range checks inside bio drivers, internal variables
for disklabel handling, and even uvm's swap offsets. re-read numerous
times by otto, miod, krw, thib to look for errors
|
|
|
|
to size. tested on almost all machines, double checked by miod and krw
next comes the type handling surrounding these values
|
|
fold sys_shmat1() back into sys_shmat(), instead add flag for shmget(2)
to specify that later shmat(2) for the shared memory segment should succeed
even if the segment would be marked removed; use this to implement the
Linux-compatible semantics of shmat(2)
this fixes current opera with shm
ok millert
|
|
|
|
|
|
discovered/ok beck
|
|
the problem with lost signals in MP kernels.
miod@, kettenis@ ok
|
|
check and translate options. from netbsd
ok deraadt, kettenis
|
|
have multiple bits set, which lead to surprising results. Spotted by
from Paul Stoeber, more to come. ok miod@
|
|
Not yet activated. Diff by marius@ long ago, from NetBSD.
Okay miod@ and krw@.
|
|
|
|
take interp[MAXPATHLEN] off the stack. from mickey, ok otto
while here, switch above from malloc to pool, remove stupid casts
tedu@ miod@ ok
|
|
|
|
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.
|
|
|
|
|
|
|
|
|
|
- sturct -> struct (spotted by pedro)
- elimination of consecutive 'the' words
ok jmc@, henning@, krw@, robert@, some whining by jolan@
|
|
and have it stall on a semaphore. This allows all kthread creations which
could have been requested during autoconf to be processed before root
is mounted as well.
This causes umass devices attached to any usb with flags 1 (such as on macppc)
to configure properly instead of panicing the kernel at mountroot time.
From NetBSD; tested by various.
|
|
|
|
|
|
|
|
|
|
Idea from NetBSD, OK deraadt@
|
|
|
|
encapsulating all such access into wall-defined functions
that makes sure locking is done as needed.
It also cleans up some uses of wall time vs. uptime some
places, but there is sure to be more of these needed as
well, particularily in MD code. Also, many current calls
to microtime() should probably be changed to getmicrotime(),
or to the {,get}microuptime() versions.
ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others
"Oh, that is not your problem!" from miod@
|
|
use compat-specific MAXNAMLEN values where appropriate
ok millert@, pedro@
|