mrg
a9cc7dd256
use a buffer the size we fill. ensure another buffer is nul-terminated (ok in this code)
1998-07-06 10:16:40 +00:00
mrg
80efe80bc9
- change setgid kmem programs (that lend themselves to this) so setegid(getgid())
...
and the top, and then set the effective gid back to kmem around the call to
kvm_openfiles(). this reduces the time group kmem is available.
- for those above that also allow this, setgid(getgid()) after the call to
kvm_openfiles() to fully revoke priviledges.
- some KNF
- use err(3) over fprintf(3) in some places
1998-07-06 07:50:18 +00:00
kleink
d88a338146
Need <time.h> for localtime() prototype.
1998-04-01 21:10:30 +00:00
lukem
180f5dc383
WARNSify, fix .Nm usage, getopt returns -1 not EOF
1997-10-19 03:23:46 +00:00
mrg
e5baf973cc
avoid not knowing the length of internal buffers.
1997-02-11 08:43:23 +00:00
explorer
00933138c8
Allocate space for 'ipcs -m' correctly; this floated across a FreeBSD
...
mailing list, and seems correct
1996-07-19 23:58:33 +00:00
thorpej
cb237a9633
Discard setgid privileges if not reading the running kernel as suggested
...
by Mike Grupenhoff <kashmir@umiacs.umd.edu> in PR #2485 .
While I'm here, update for modern libkvm interfaces, and be more
careful to check for error conditions reported by kvm_read(3).
1996-06-07 01:26:38 +00:00
cgd
1eb63df179
some copyright updates requested by Thorsten Lockert <tholo@SigmaSoft.COM>
1995-04-15 02:22:37 +00:00
jtc
ae0b9c2010
KERNEL -> _KERNEL
1995-03-28 17:18:59 +00:00
cgd
f8829b960e
add string.h, fix up rcsid.
1994-12-24 16:46:18 +00:00
mycroft
959ab396d2
Fix typos, pointed out by Arne Juul.
1994-09-05 00:28:59 +00:00
cgd
de6dacc48c
add thorsten's copyright, which he sent to me.
1994-06-18 22:05:08 +00:00
cgd
7d77cc236d
KNF, also clean up error messages.
1994-06-18 21:20:28 +00:00
cgd
0644f71bd2
new version by Thorsten Lockert <tholo@SigmaSoft.COM>
1994-06-18 21:09:40 +00:00
cgd
46429e6474
don't include shm.h if NOSHM defined, and defined it
1994-05-11 07:41:09 +00:00
cgd
67f7468b24
bad cast
1994-04-01 03:32:38 +00:00
cgd
0444b9fbd1
Add a System V -style ipc status monitor. Implemented by Daniel Boulet
...
<danny@BouletFermat.ab.ca> Needs a man page, and *much* cleanup.
1993-11-14 16:17:55 +00:00