Commit Graph

4286 Commits

Author SHA1 Message Date
mycroft a02b2cb6d8 Small bug fixes:
* Allow , as a separator in the output field list.
* If we try to compare two fields that are not present in *either* file,
  consider it a match.
2000-06-10 19:15:15 +00:00
mycroft 5c886053bc Don't step off into space after a realloc(). (Get rid of `lastlp'.)
Also, allocate more data in powers of 2.
2000-06-10 19:03:22 +00:00
mycroft 83f22c12ea Nuke an `optimization' that made source list creation O(n^2). This may cause
more memory to be used with stupid Makefiles, but it saves a fair amount of
time (~13% just for libc) with sane ones.
2000-06-10 13:48:48 +00:00
sjg 70fc6bfcaf no need for v->name-- on JUNK vars anymore 2000-06-10 05:54:29 +00:00
mycroft b0d51d4783 For VAR_JUNK variables, defer freeing of the name string until the bottom of
Var_Parse(), as it may be used (strdup()ed) by some modifiers.
2000-06-10 04:51:00 +00:00
sjg 5d93c6ecfd Don't free v until after the last use. 2000-06-10 04:17:58 +00:00
enami 2eee9d6e1d Use u_int64_t to avoid an integer overflow when converting total number
of swap blocks into kilo bytes.
2000-06-09 07:09:28 +00:00
tsubai 290cb2c943 Recognize NetBSD/powerpc core file. 2000-06-08 13:57:41 +00:00
enami 4dc07f088a Pass the size of struct kinfo_proc2 instead of kinfo_proc to kvm_getproc2
so that w(1) displays what commands are running as before.
2000-06-08 02:37:28 +00:00
explorer e32bc6b6c4 Use
const char *yyname[] = {...};
	const char *yyrule[] = {...};
rather than
	char *yyname[] = {...};
	char *yyrule[] = {...};

to prevent warnings about
	initialization discards `const' from pointer target type
when the output of yacc is compiled with a picky warning level.
2000-06-07 23:54:17 +00:00
thorpej c57ef7446d check_pager() was using an uninitialized variable; fix it. 2000-06-07 18:52:31 +00:00
lukem d70c2ff830 fix the function prototypes in the generated header file (the second
arg should have been a pointer); without this you'd get a complaint
about a mismatch between the prototype in the header file and the
function declaration in foo_xdr.c.

fix by Vltteri Vuorikoski@datafellows.com <altteri.Vuorikoski@datafellows.com>
in [bin/6788], with some cosmetic mods by me.
2000-06-07 13:53:07 +00:00
simonb b267c1fb26 If there is no "set column" capability, don't try to use the "cursor
set" capability - just use the last-resort of using spaces.  Fixes the
``problem'' where "tset -Q" would move the cursor to the 24th line of an
xterm irrespective of where the cursor was before tset was run.
2000-06-07 13:21:43 +00:00
simonb d06abde2e6 Set "lines" and "columns" if ioctl(TIOCGWINSZ) returns something useful. 2000-06-07 13:18:36 +00:00
mycroft 6bf47769cb Do some evil with VAR_KEEP to make it happier. This seems... wrong. 2000-06-06 09:00:49 +00:00
mycroft 39bf056eb6 Allow further patterns after a :D or :U, as in ODE make. (Copied some code
from VarGetPattern.  It should become more flexible instead.)
2000-06-06 08:44:57 +00:00
mycroft 123757193a Roll back my for-expansion changes. Doing this right is just too hard to be
worth it.
2000-06-06 04:56:52 +00:00
sjg 3d93bb57a6 Check_Cwd_av: Ensure that word after a '(', '{' etc is considered a command,
so that we spot the cd/chdir and don't put one in.
2000-06-06 03:00:11 +00:00
mycroft 4e87b9d4f5 Fix bogons in command parsing for >1 arg. 2000-06-05 21:48:25 +00:00
mycroft 2f240403c3 Display disk busy statistics as `%busy', as it's less confusing. 2000-06-05 21:36:34 +00:00
lukem 71c4464e3e - fix ai_unmapped() to be a no-op in the !def INET6 case
- display `(-INET6)' at the end of the version string if !def INET6
- clarify in the man page that IPv6 support may not be present (for lukemftp :)
2000-06-05 09:22:52 +00:00
simonb 7f7c61365d Now that the CPUSTATES info is in <sys/sched.h>, we don't need to include
<sys/dkstat.h> anymore.
2000-06-05 05:24:07 +00:00
cgd cffb580806 Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
mycroft 981f9b7d7b Use hline() and variants in a bunch of places. 2000-06-04 18:29:13 +00:00
mycroft 796e1a63fa Fix a check so that holding down the space bar doesn't cause systat to lose. 2000-06-04 18:14:45 +00:00
mycroft 3ddc3c22b9 Fix the CPU usage bar graph. 2000-06-04 18:10:40 +00:00
thorpej 13ba787e60 Use kern.cp_time to fetch cp_time[]. Don't support fetching it from
crash dumps yet, as that requires determining which CPU we should fetch
it from, etc.
2000-06-04 16:06:25 +00:00
itojun 872ae35bf5 cp_time is no longer available in the kernel.
remove it from namelist[] to make vmstat work.
2000-06-04 08:07:36 +00:00
perry 0da76771e9 include sys/sched.h to get definition of CPUSTATES 2000-06-04 02:25:40 +00:00
perry a3d66afde6 include sys/sched.h to get definition of CPUSTATES 2000-06-04 02:11:11 +00:00
perry bd70b1984f include sys/sched.h to get definition of CPUSTATES 2000-06-04 01:53:51 +00:00
thorpej ae67003975 Need to include <sys/sched.h> to get cp_time-related constants. 2000-06-03 21:00:42 +00:00
fvdl f99c32bacc Complete ANSIfication. 2000-06-03 19:32:34 +00:00
fvdl 147850f99c Adapt to TI-RPC, enable IPv6. 2000-06-03 19:30:03 +00:00
fvdl 6ae2cb140a Fixup field with a bit. 2000-06-03 15:34:44 +00:00
fvdl 02cf1ccebe Correct last argument to clnt_broadcast. 2000-06-03 14:05:29 +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
fvdl 21a52aab9e Enable the TI-RPC switch by default. Add a kludge that Sun appears to
use for the names of the XDR functions to take care of rpc*_t.
2000-06-02 23:30:17 +00:00
fvdl 5531feb1a7 USe new RPC interface. 2000-06-02 23:20:49 +00:00
fvdl b992cb1db9 Update rpcinfo to handle rpcbind version 3 and 4. Taken from Sun TI-RPC
distribution.
2000-06-02 23:19:38 +00:00
thorpej 97b236dc90 Make this compile again. 2000-06-02 22:22:55 +00:00
thorpej 38c3726a7b Handle SONPROC state. 2000-06-02 04:32:07 +00:00
aidan dbb0b2f74d Backout login_get_kconf function, because it breaks crypto-intl builds.
Keep the variables for setting default behaviour with krb4 and krb5
compiled in, even though they act like constants, to facilitate adding
another preference mechanism later.
2000-06-02 03:01:22 +00:00
sjg 2293fdd17b Make ::= work again with the VAR_FOR context changes. 2000-06-01 09:39:02 +00:00
itojun b347bd9b87 updated comment on IPv4 mapped address. sync with kame. 2000-06-01 04:26:38 +00:00
mycroft ea218bb6e9 Create a `for' context, and substitute iteration variable from it using the
normal Var_Parse() path.  This allows :R, etc. to work on iteration variables.
2000-06-01 04:16:39 +00:00
sjg cd8908a299 Rats! ${FOO:=bar} is a common usage of the SysV = modifier.
To avoid that, we now do ::[+?!]*= but the SysV = modifier can
conflict with any new modifier.  At there are currently no Makefiles
in our tree that use ${FOO::=bar}
2000-06-01 02:29:21 +00:00
jdc 4a3a422fde Handle xterm's alternate screen when entering or leaving ex mode, e.g.
":!ls", so that the screen is not changed before the "Press any key"
message.  Taken from v1.79.
2000-05-31 19:49:23 +00:00