Age | Commit message (Collapse) | Author |
|
- use ltsleep() instead of the unlock + sleep combo
ok art@, inspiration from free/net
|
|
|
|
tedu@ ok
|
|
"put this process to sleep" and "find a process to run" operations.
no functional change. ok art@
|
|
code is all conditionalized on __HAVE_TIMECOUNTER, and not
enabled on any platforms.
adjtime(2) support exists, courtesy of nordin@, sysctl(2) support
and a concept of quality for each time source attached exists.
High quality time sources exists for PIIX4 ACPI timer as well as
some AMD power management chips. This will have to be redone
once we actually add ACPI support (at that time we need to use
the ACPI interfaces to get at these clocks).
ok art@ ken@ miod@ jmc@ and many more
|
|
read path rather than recv. Previously, if an fd was passed via
sendmsg() but was consumed by the receiver via read() the ref count
was incremented and never decremented and so the ref count would
never reach zero even when there was no long any processes holding
the file open (this was especially bad for locked fds).
OK markus@ and art@
|
|
shuffle functions around so that scheduler is all together.
no real functional changes. ok art@ testing miod@
|
|
Also move the whole deadproc infrastructure to kern_exit, it's only used
there.
miod@ ok
|
|
yamt@netbsd
|
|
|
|
signal), don't jump to unlocked_error: and do things that we don't need
to do (including messing up the internal state of the pipe). Just return.
ok niklas@ miod@
|
|
is horrible and doesn't add anything.
Remove it.
XXX - the fdplock macro will need a separate cleanup.
niklas@ markus@ ok
|
|
|
|
biglock. We need to protect them with a mutex.
|
|
|
|
This is the MI (slightly inefficient and not MP safe) implementation.
deraadt@ ok Tested by many. (this and following commits)
|
|
ok millert@, miod@, marius@
|
|
|
|
|
|
|
|
etc to avoid confusion and for consistency with the *35 ones.
Remove *n2o functions that don't belong outside of compat.
|
|
|
|
the msgctl, semctl, and shmctl system calls. This moves the old
versions to COMPAT_35 and adds new ones.
WARNING: While this fixes things like shared memory in the X server
for old (pre-mode_t change) binaries, it will break binaries that
use shared memory built between the time of the mode_t change (Jul
13th) and now. If you rebuild X during that interval you will need
to do it again after updating the rest of userland.
|
|
which also takes two function pointers for copyin/copyout. For the
real syscalls these are just the normal copyin/copyout functions.
For the compat routines, these are funtions that convert between
the new and old foo_ds structs automagically. OK deraadt@
|
|
|
|
OK miod@
|
|
|
|
use mode_t in syscalls.master and to use mode_t in more places in
the kernel. It also makes lint much more useful on kernel code.
I've also added a placeholder for st_birthtime to make a UFS2 import
easier at some future date.
Requested by and OK deraadt@
|
|
symbolic links. fixes pr 3842, ok tedu@, art@
|
|
|
|
Idea from NetBSD, OK deraadt@
|
|
|
|
the argv[0] would be normalized, and hence break scripts
that depend on how they were called.
this fixes an issue in the ports builds.
ok provos@ deraadt@; lots of testing during hackathon sturm@ naddy@
|
|
|
|
|
|
|
|
with modifications from me. Includes code for generic interrupt counter
fetching via sysctl. deraadt@ tholo@ drahn@ millert@ ok
|
|
|
|
translates a cpu_info structure into a human-readable cpu number.
drahn@ deraadt@ ok
|
|
Add trivial support for passing a NULL pointer for the argv buffer;
currently just returns ARG_MAX for KERN_PROC_ARGV and KERN_PROC_ENV.
|
|
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@
|
|
- add an exec message so that whenever a set-uid/gid process
exec's a new image which we may control, the exec does not
go by unnoticed.
- take special care to check for P_SUGIDEXEC as well as
P_SUGID, corresponding to the same changes that were made in
the ptrace code a while ago
ok niels@, sturm@; thanks to naddy for testing
|
|
things such that code that only need a second-resolution uptime or wall
time, and used to get that from time.tv_secs or mono_time.tv_secs now get
this from separate time_t globals time_second and time_uptime.
ok art@ niklas@ nordin@
|
|
Found by otto@drijf.net
deraadt@ ok
|
|
scheduling errors on non-i386 yet.
deraadt@ aaron@ ok
|
|
in malloc_debug.
Also, add an assert-like function to sprinkle in code you're debugging at the
moment. Those asserts are _not_ supposed to be ever comitted, just use them
while debugging.
beck@ ok
|
|
|
|
|
|
|
|
|