Commit Graph

293 Commits

Author SHA1 Message Date
atatat
42d379d041 Use new PTRTOUINT64() macro instead of local PTRTOINT64() macro. 2004-02-19 03:57:56 +00:00
wiz
d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
jmmv
70eabe78c3 List sys/param.h as a prerequisite of sys/sysctl.h. Bump date. 2004-02-10 12:48:48 +00:00
christos
895d7dee51 zero out nl, from Todd Miller. thanks! 2003-11-17 20:41:54 +00:00
cube
b9d0c518f9 When using /dev/ksyms, don't keep it open more than strictly necessary.
This allows LKM manipulation while an application using libkvm, such as
vmstat or gkrellm, is running.

Patch reviewed by Anders Magnusson.
2003-11-04 14:59:10 +00:00
wiz
37ac1db454 available, not avaliable. From miod@openbsd. 2003-09-29 09:50:21 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
wiz
e414629c30 Pa Aq -> Aq Pa so that both work. 2003-06-27 14:50:31 +00:00
wiz
b976c55907 Consistently spell "crash dump" as two separate words. From jmc@openbsd. 2003-05-16 10:24:55 +00:00
wiz
98a71c5969 Bump date for last; remove end-of-line spaces. 2003-05-13 10:03:43 +00:00
ragge
2bb5ce73f8 Update after recent changes. 2003-05-11 15:40:03 +00:00
ragge
f08d6eb0c9 Make the kvm routines use /dev/ksyms to get the kernel namelist.
If it fails, use /netbsd instead.
2003-05-11 13:37:34 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
nathanw
cc1db07645 Just use PAGE_SHIFT from <machine/vmparam.h> instead of going through
hoops to read and cache the value from the crash dump header.
2003-04-09 22:46:39 +00:00
martin
dc8fa84c54 #include <machine/vmparam.h> for PAGE_SIZE 2003-04-03 22:07:16 +00:00
christos
eb430229c6 do the exit on lint warnings only on i386 like libc, to avoid the wrath of
the sloppy archs.
2003-03-28 14:02:45 +00:00
christos
d5cff0612e exit on lint warnings. 2003-03-28 14:01:46 +00:00
christos
9d952b3742 remove scanning of deadproc, since zombproc should contain all the processes
in deadproc according to the comment in kern_proc.c. deadproc is not a
struct proclist anymore, so it would require more work to scan anyway, and
this is unnecessary.
2003-03-28 14:01:32 +00:00
ross
f80c89ab02 fix LP64 and other warnings 2003-03-20 22:53:12 +00:00
dsl
9be8ac5294 Alternative pid/proc allocater, removes all searches associated with pid
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.
2003-03-19 11:36:32 +00:00
lukem
b1c71074fa Add workaround for building with ${MACHINE}==sparc64, ${MACHINE_ARCH}==sparc;
symlink the appropriate machine & sparc include directories into the objdir.

XXX: this is necessary until (when?) the sparc Arch Dependent headers
(used by MACHINE_ARCH==sparc) are separated from the sparc Machine
Dependent headeres (used by MACHINE==sparc but not MACHINE==sparc64).
2003-03-01 06:10:39 +00:00
atatat
40f3045957 Add p_svuid and p_svgid to kinfo_proc2. Populate them in the kernel
and in libkvm.  Then teach ps how to show them to you.

Also, teach ps how to show the names for all the uids, the rest of the
group numbers, and the "group access list".
2003-03-01 05:41:55 +00:00
enami
b7577d634c Use _kvm_freeprocs() rather than free() so that kvm_close() won't
free already free'ed region.
2003-02-26 23:05:53 +00:00
enami
30fca248b5 Cosmetic changes. 2003-02-26 23:04:37 +00:00
christos
45103cd2c0 delint (unsigned long long) -> (unsigned long) casts. 2003-02-02 02:29:59 +00:00
christos
acc1cc5b41 undo mallocvar.h change! 2003-02-02 02:25:50 +00:00
tron
edb9087c05 Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 21:12:25 +00:00
tron
6b521c7489 Fix build problem by rearranging the order of "#include" statements so
that "sys/mallocvar.h" gets include while "_KERNEL" is defined.
2003-02-01 17:22:44 +00:00
thorpej
c62a74e6d5 Merge the nathanw_sa branch. 2003-01-18 10:32:11 +00:00
itojun
d8cb639e16 use strlcpy to ensure string termination 2002-11-16 23:34:30 +00:00
wiz
99bcb5e9de session, not sessiod. By Adrian Mrva. 2002-10-02 10:59:45 +00:00
wiz
bec910b3b0 New sentence, new line. From Robert Elz. 2002-10-01 19:18:12 +00:00
christos
c524f280a6 Use FD_CLOEXEC instead of `1' and don't cast. 2002-09-17 21:37:13 +00:00
atatat
28f3a22acb Default using the value of machdep.booted_kernel from sysctl() if it
is available and points to a file.  The value of "/netbsd" is still
the ultimate fallback.
2002-09-17 20:34:08 +00:00
drochner
ead5c05ddb another SETFL->SETFD 2002-09-17 19:50:48 +00:00
drochner
8b4aa8a489 actually do the close-on-exec 2002-09-17 19:38:26 +00:00
christos
dd45b62148 Set the close-on-exec bit on all file descriptors we open. Inspired by a
FreeBSD security advisory.

Reviewed by thorpej
2002-09-16 17:20:45 +00:00
wiz
0b87087d0c "initialse" looks nice, but is not correct. 2002-09-04 01:12:03 +00:00
wiz
e066ad32dc Use Nm instead of Xrefing ourselves. 2002-08-20 16:48:47 +00:00
lukem
ec5dbc56b8 Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the
Makefile (before including <bsd.own.mk>)
2002-08-19 14:55:14 +00:00
yamt
356b12bae1 change DIAGNOSTICS to RETURN VALUES
since it describes return values.
from openbsd.
2002-08-18 07:40:04 +00:00
yamt
447d4188a2 add FILES section to refer to /dev/mem.
from openbsd.
2002-08-18 07:34:51 +00:00
soren
bdb11c55b6 Don't omit third argument to open(2).
PR lib/15752 from Stephen Ma.
2002-08-08 01:30:09 +00:00
scw
10344af629 Minor correction: s/i386/SH3/ 2002-07-10 09:17:02 +00:00
scw
2dceef3c5c SH-5 kvm glue, based on sh3 version. 2002-07-10 09:16:29 +00:00
fredette
02ac1ae2f0 Added hppa support (some of it incomplete) to lib/csu, lib/libc,
and lib/libkvm.
2002-06-06 20:31:19 +00:00
fvdl
d05b42e66d kva -> physaddr translation through pagetable walking; for crash dumps
(as yet untested).
2002-06-05 22:01:55 +00:00
wiz
effeef0d33 __STDC__ is always defined on NetBSD. 2002-05-26 18:33:25 +00:00
ross
814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
wiz
35fa939a59 Sort sections, fix punctuation nits. 2002-01-15 02:53:04 +00:00