Commit Graph

58 Commits

Author SHA1 Message Date
wiz 1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
lukem 0449f26fed fix -Wsign-compare issues 2009-01-18 01:02:41 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
rmind 8d700f664c Fix shared memory code that it could handle > 4GB addresses correctly.
PR/38109, patch (a little bit modified) from Chris Brand.
2008-04-12 20:49:22 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
perry 36c7456d7c include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
christos df031f1edc PR/34837: Mindaguas: Add SysV SHM dynamic reallocation and locking to the
physical memory
2006-11-25 21:40:04 +00:00
christos 92706ef61d make nlist struct static and use c99 initializers 2006-10-22 16:17:44 +00:00
christos 0f2aabcd39 Coverity CID 1858, 1857: Fix leaks. While here, pass lint use warn/warnx
instead of perror/fprintf. KNF.
2006-04-28 20:35:15 +00:00
simonb b6dcc6d5d8 Print a nice introductory line, per SUSv3 (and Posix?) 2005-02-21 04:32:55 +00:00
hubertf 2fa09966de Change copyright to 2-clause BSD-copyright.
Changed with explicit permission of Thorsten Lockert (tholo sigmasoft com)
2004-09-15 19:45:17 +00:00
snj a726afffcb New sentence, new line. 2004-03-21 18:48:20 +00:00
simonb 221634063e Fix option handling so that you can show information about more than
one thing at a time.
Patch from Chris Demetriou a very long time ago.
2004-03-21 10:02:12 +00:00
fvdl c82a2904cb The last argument to sysctl() is a size_t, don't pass NULL in it. 2003-10-21 02:20:22 +00:00
itojun 032ed69f9a strlcpy 2003-07-12 13:23:55 +00:00
simonb 09b326de30 Make the ID field a little wider. 2003-04-07 01:42:37 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
chs ffccbdabce fix a printf. 2002-09-21 04:30:42 +00:00
wiz 97bab15ef2 Add Xrefs to shm*(2). 2002-06-16 22:43:30 +00:00
simonb 61ea584c2f Widen the ID field to 7 chars; probably should be auto-sized... 2002-05-21 01:10:06 +00:00
wiz f4caa7c15b Sort sections, use standard markup for AUTHORS section, use standard headers. 2001-12-01 19:29:08 +00:00
wiz a428be00d5 Remove some unnecessary quotation marks. 2001-06-05 11:50:48 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
simonb 643cb3c341 Don't check namelist when choosing to use the sysctl interface. 2000-06-16 03:51:00 +00:00
simonb 01f089f91b Include system info command line options [-MQST] in usage message.
Bomb out with usage message if extra command line arguments are present.
2000-06-03 04:12:48 +00:00
simonb 7474436532 Finished an unfinished sentence. 2000-06-03 04:05:35 +00:00
simonb cc24eb4a14 Big makeover:
- Use new SysV IPC sysctl interface if no core file or system name
   list supplied.
 - Break up into functions instead of a 398 line main (necessary for
   code re-use in kvm vs. sysctl case anyway).
 - Remove "#define _KERNEL" before including some kernel files!
 - Remove setgid bit.
2000-06-03 03:58:44 +00:00
thorpej 97b236dc90 Make this compile again. 2000-06-02 22:22:55 +00:00
sommerfeld 54de2bfd70 Rip out semconfig, since it's now a NOOP 2000-05-29 03:29:50 +00:00
simonb 91c0ba617c Make some columns and headers line up. 2000-04-12 15:37:14 +00:00
augustss 52bb6db3ff Make this compile again after several global structs where declared extern. 2000-03-28 23:36:11 +00:00
kristerw e71aea426d Typos (from OpenBSD) 1999-11-19 22:29:24 +00:00
thorpej 345cb51c05 Update for changes to SVID IPC data structures. 1999-08-25 05:11:51 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
mycroft a1c657fe56 Clean up SYNOPSIS formatting. 1999-03-07 11:29:58 +00:00
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 0f189ac2ed use correct RCS Ids 1995-04-15 02:31:13 +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 04df62ca21 clean up lots 1994-06-18 22:28:58 +00:00
cgd de6dacc48c add thorsten's copyright, which he sent to me. 1994-06-18 22:05:08 +00:00