Age | Commit message (Collapse) | Author |
|
and doing runtime detection of what the target kernel is using. Getting
this is now to avoid breakage when kernel bits come.
ok deraadt@
|
|
Found a while ago when porting cpulimit.
ok deraadt@
|
|
doesn't need anything from it.
While there, fix format strings and remove unused local variable declarations.
|
|
a SLIST.
OK mpi@ benno@
|
|
lower VM_MIN_KERNEL_ADDRESS, since these systems are not crippled by the
Sun-4 MMU hole and have the real 4GB of address space.
Kernels running on Sun-4 MMU are not affected and will still be restricted
to the existing 128MB of kernel space, with 1GB - 128MB of user space.
Kernels running on SRMMU will now provide the low 3GB of address space to
userland, and use the top 1GB for the kernel, except when compiled with
option SMALL_KERNEL, in which case they will keep Sun-4 style the layout
(this is temporary to allow for people to boot bsd.rd to upgrade even when
not running 2.10 boot blocks, and will be removed eventually)
A consequence of this is that the top of the userland stack is no longer at
0xf0000000. But since nothing in userland uses USRSTACK anymore, this should
not be an issue.
Tested on sun4c and various sun4m, with physical memory sizes ranging from 32
to 448MB.
|
|
Bump minor number because of this.
OK guenther@
|
|
|
|
the extra argument to be zero; instead, make it filter on the file
type (DTYPE_*) when non-zero to make claudio's netstat work easier.
ok claudio@
|
|
|
|
review by millert, binary checking process with doug, concept with guenther
|
|
backed out because of libkvm breakage, recommitting now with libkvm fix.
ok deraadt@
|
|
ok millert
|
|
ok deraadt@
|
|
ok espie@ deraadt@ millert@ tedu@
|
|
i dont know if this is the right fix, but the tree needs to build.
|
|
gets only allocated when needed. This way struct socket shrinks
from 472 to 392 bytes on amd64. When splicing gets active, another
88 bytes are allocated for struct sosplice.
OK dlg@
|
|
ok millert@
|
|
ok millert@ doug@
|
|
ok guenther
|
|
on it, simplifying error checking, reducing system calls, and improving
thread-safety for libraries.
ok miod@
|
|
special rule that sys/sysctl.h gets it. mips64 always wanted special
treatment.
found by todd
|
|
ok guenther
|
|
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.
tweaks kettenis@
feedback and ok matthew@
|
|
|
|
struct ucred; struct process then directly links to the ucred
Based on a discussion at c2k10 or so before noting that FreeBSD and
NetBSD did this too.
ok matthew@
|
|
|
|
this hardware alive is becoming increasingly difficult, and I should heed the
message sent by the three disks which have died on me over the last few days.
Noone sane will mourn these ports anyway. So long, and thanks for the fish.
|
|
in file info. Drop some unnecessary casts and unused variables too.
ok millert@
|
|
|
|
make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread
flags to process flags. Add allprocess list for the code that just wants
to see processes.
ok tedu@
|
|
|
|
albeit ones no one should be using, so major bump the shlib.
ok kettenis@
ports testing by landry@
|
|
|
|
|
|
declarations, including _kvm_getftype(), into a new header, kvm_file.h,
so that we don't have to pull <sys/vnode.h> into all the .c files. No
more extern function declaration in .c files.
ok millert@
|
|
Treat failure to KREAD teh pcredd or ucreds to be errors insteading of
continuing with bogus data.
ok deraadt@ millert@
|
|
and don't act like an unknown vnode type is "ok"
|
|
ok guenther millert
|
|
- convert netstat from kvm_getfiles() to kvm_getfile2() using that
- delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major)
- rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file
and KERN_FILE2 to KERN_FILE.
ok deraadt@, millert@
ports scan sthen@
|
|
ok miod
|
|
From: Jan Stary
|
|
members to 64bit types. Assign new syscall numbers for (almost
all) the syscalls that involve the affected types, including anything
with time_t, timeval, itimerval, timespec, rusage, dirent, stat,
or kevent arguments. Add a d_off member to struct dirent and replace
getdirentries() with getdents(), thus immensely simplifying and
accelerating telldir/seekdir. Build perl with -DBIG_TIME.
Bump the major on every single base library: the compat bits included
here are only good enough to make the transition; the T32 compat
option will be burned as soon as we've reached the new world are
are happy with the snapshots for all architectures.
DANGER: ABI incompatibility. Updating to this kernel requires extra
work or you won't be able to login: install a snapshot instead.
Much assistance in fixing userland issues from deraadt@ and tedu@
and build assistance from todd@ and otto@
|
|
pointed out by Dominique Laigle (dlaigle (at) gmail.com)
|
|
|
|
know it from the machine.
ok miod
|
|
|
|
|
|
any kernel addresses information.
ok guenther
|
|
ok deraadt@ pirofti@ kettenis@
|
|
ok guenther millert kettenis
|