Commit Graph

10264 Commits

Author SHA1 Message Date
mrg a4a48f5384 note that -n also stops the timestamp from being output.
bump date.
2009-04-01 08:15:37 +00:00
dholland d25b0fe6a8 A couple minor fixes, from Alan R. S. Bueno in PR 41046. 2009-03-29 05:58:41 +00:00
mrg fcc023545e - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes.  this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.

- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.

- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)

- patch sh, and csh to notice RLIMIT_AS.  (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)

- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.

- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information.  (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)


this addresses PR 7897.  it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.

tested on i386 and sparc64, build tested on several other platforms.

thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
2009-03-29 01:02:48 +00:00
he cb69d4f55d Don't include the AMD stuff if SMALLPROG is defined.
Brings the size of the sparc INSTALL ramdisk image under control again.
2009-03-28 12:19:51 +00:00
christos ae102ccd34 remove debugging code. 2009-03-27 21:48:26 +00:00
christos 419fb993b6 fix off-by-one bug that did not add a tag for "foo" in
"typedef struct foo { int x; } foo_t";
as intended.
2009-03-27 21:48:05 +00:00
perry 08429de660 remove unneeded special rule for main.o 2009-03-24 13:54:37 +00:00
perry f113e91b18 per dholland, put back MAKE_VERSION for the benefit of third party users. 2009-03-24 13:53:21 +00:00
joerg 614d810747 Remove physical markup. 2009-03-24 00:17:25 +00:00
joerg 833d1509e8 .sp -> .Pp 2009-03-24 00:14:01 +00:00
joerg 5d8c8ad0cf Fix quoting. 2009-03-23 17:02:06 +00:00
christos 1297dd791c turn on amd support for eject now that we have it. From Anon Ymous 2009-03-23 04:00:44 +00:00
perry a24e0ba1bb The Makefile and main.c arranged to put "netbsd-${DATE}" into the
executable. Remove this so that different compiles can be binary
compared. rcsid's for all files are already embedded in the executable
so versions can be easily distinguished. (I didn't catch this on
previous passes because I did my builds on the same day.)

Note: there's a special rule for main.o in Makefile with a purpose I
can't actually discern -- I think it isn't needed, and I've flagged it
with a comment.
2009-03-20 20:48:00 +00:00
christos 0efea3414c use progname instead of getprogname() for portability. 2009-03-18 22:02:49 +00:00
joerg cf421e9ff2 Fix and improve mark up. 2009-03-15 16:21:46 +00:00
joerg ca46068b38 Fix number of columns. 2009-03-15 15:19:57 +00:00
joerg 832978fe6f Fix markup. 2009-03-15 15:18:04 +00:00
cube 1894a7d27b Now that condmkopttab isn't a hash table anymore, don't initialise it with
ht_new()...  So actually rename it to condmkoptions to avoid confusion.

Reported build failure on amd64 (strange that I wouldn't get it on i386) on
current-users by Kurt Schreiner.
2009-03-13 20:44:59 +00:00
cube a16a636500 Actually allow a full expression for the condition for "makeoptions" in
files.*

Patch from Yorick Hardy.
2009-03-13 18:24:41 +00:00
joerg 35d9d36c82 Use .Tn for XMODEM. Use .Bl -column for physically marked up table. 2009-03-13 11:12:28 +00:00
joerg 7ffbcccbf3 Don't use macros for the synopsis. Improve markup to break argument
groups together by not splitting opening and closing macro over lines.
2009-03-13 10:51:56 +00:00
joerg 8deda0e429 Use paragraph breaks before notes, not just line breaks. 2009-03-12 12:36:48 +00:00
joerg 89fd8256a6 Don't workaround ancient macro argument limit with .Xo/.Xc. Don't use
.Sm off / .Sm on.
2009-03-12 12:35:51 +00:00
joerg 6cb9af04f6 Don't workaround ancient macro argument limit with .Xo/.Xc. Don't use
.Sm off/.Sm on.
2009-03-12 12:35:17 +00:00
joerg f39d76e336 Fix markup 2009-03-11 13:59:00 +00:00
joerg 8929e0dce4 Don't workaround ancient macro argument limit with .Xo/.Xc. 2009-03-11 13:58:29 +00:00
joerg 9952d3ea53 Fix markup 2009-03-11 13:57:53 +00:00
joerg 31ea1ec643 Use semantic markup 2009-03-11 13:57:11 +00:00
joerg c094012060 Fix markup 2009-03-11 13:54:05 +00:00
joerg 223f3c1eab Use semantic markup 2009-03-11 13:53:30 +00:00
joerg fc64dfd825 Fix markup 2009-03-11 13:53:09 +00:00
christos df68463076 fix warnings. 2009-03-11 01:10:05 +00:00
joerg 70588139b2 Explicitly escape : in .It. 2009-03-10 21:18:35 +00:00
joerg 1cc1109801 Specify width for tag list. 2009-03-10 20:23:47 +00:00
joerg aea22a43d4 Specify width for tag list. 2009-03-10 19:54:43 +00:00
joerg 4154d53ea2 Use item list instead of tag list 2009-03-10 19:36:33 +00:00
joerg 442e8df612 Use item list as no tag is present. Fix markup for item. 2009-03-10 19:34:18 +00:00
joerg 7e69823738 Don't workaround ancient macro argumentent limitation with .Xo/.Xc. 2009-03-10 13:57:08 +00:00
joerg cbebb4f578 Don't break scope for .Oo/.Oc to workaround ancient argument limit. 2009-03-10 13:46:43 +00:00
joerg fda71aab5e Remove use of .Xo/.Xc to workaround argument number limit. 2009-03-10 13:44:02 +00:00
joerg d23bde9aff Replace .br and .sp with .Pp for vertical spacing. 2009-03-10 01:53:30 +00:00
njoly 90a93774af In vmstat display, increase software interrupt count output from 5 to
6 columns.
2009-03-09 19:48:02 +00:00
joerg 997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
joerg f385dfc57f Don't escape %, but do escape DD and SS macros. OK wiz@ 2009-03-09 14:26:44 +00:00
joerg c2a53cec5c Fix markup (.I is an unknown macro in this context). 2009-03-09 14:10:12 +00:00
he 9bc0986f89 If this is built for arm, build it for armeb as well, so that
a build of evbarm-eb does not give set list errors.
2009-03-08 15:37:12 +00:00
joerg cc9b628146 Fix markup as hinted by mdoclint. OK wiz. 2009-03-05 14:00:53 +00:00
christos 7c8a9296cc Don't produce type mismatch warnings if one side of ?: is "[qual] void *"
and the other side is "[qual] pointer".
2009-03-02 20:53:10 +00:00
christos 20ad44cb97 use siginfo to report on the directory we are working on if available. 2009-03-01 01:49:17 +00:00
wiz 30ec97f151 Drop trailing whitespace. 2009-02-28 19:21:42 +00:00