matt
60dec93655
change lint to ${LINT} ${LINTFLAGS} so that includes in ${DESTDIR} are used.
2000-06-14 20:22:19 +00:00
cgd
db755e7c76
sweep of my licenses (userland files w/o only my copyright) for
...
consistency. (no functional changes)
2000-06-14 17:24:02 +00:00
ad
28c000fd87
- Re-word and reformat this to be more readable.
...
- Address PR 9794 by matthew green: 'd' is raw part on arches other than i386.
2000-06-14 14:38:52 +00:00
ad
1904914b75
Apply patch supplied in PR 8561 from URA Hiroshi: fixes LBA mode display on
...
little endian machines.
2000-06-14 13:51:45 +00:00
cgd
d220ca5ba3
fix up NetBSD RCS Ids to match the standard, and the leading comment as
...
to match as well. No functional changes.
2000-06-14 06:48:47 +00:00
ad
3553879fc2
Use my proper name.
2000-06-13 13:36:42 +00:00
simonb
54736c4744
Use the NFS_NFSSTATS sysctl that has been around since Feb '96.
...
By using a common function to retrieve the NFS stats, the sysctl
aware binary is smaller than the old kvm-only binary on at least
two architectures!
2000-06-13 12:39:43 +00:00
itohy
07db0e6ae9
Add "pecoff" emulation.
2000-06-13 00:59:22 +00:00
simonb
a097e35162
Allow "-s" to specify a section name, ala the SysV man command.
...
Unlike the SysV man command, this doesn't allow for the -s argument
to be a list.
2000-06-12 14:53:48 +00:00
mrg
de9e599c9d
apply patches in PR bin/9249: rdist doesn't remove temporary file, from
...
<Michael.Eriksson@era-t.ericsson.se> to ensure we always remove the tempfile
(broken since mkstemp() was introduced).
2000-06-12 04:43:11 +00:00
lukem
f970de1382
from itojun: better fix for previous (doesn't need in_addr_t or u_int32_t)
2000-06-11 15:15:52 +00:00
mycroft
886d104ff1
Fix uninitialized structure element.
2000-06-11 14:31:11 +00:00
mycroft
d53a63dfff
Use a lower threshold for rebuilding hash tables.
2000-06-11 07:54:32 +00:00
mycroft
796fb2ec8c
Readd optimization last night. Problems earlier were partially due to the
...
arguments names on one function being swapped (by a previous author).
Do not do any duplicate suppression when a source list is created. Instead:
* OP_MADE protects against trying to make the source multiple times.
* A new OP_MARK flag is introduced to suppress duplicates while expanding
the .ALLSRC variable and .USE targets.
This turns the O(n^2) insertion into O(n) in most cases.
This is tested with a `make build' and some special test cases.
2000-06-11 07:39:52 +00:00
thorpej
d041b74cf4
Sprinkle in a little const.
2000-06-11 03:38:29 +00:00
mycroft
1c44e76f57
Initialize this->hits.
2000-06-11 03:36:40 +00:00
lukem
f48d57e2d2
portability fixes for lukemftp:
...
* initconn(): use in_addr_t instead of u_int32_t when manipulating IPv6
addresses (and assume anything with ipv6 has in_addr_t; if not, i'll
add an autoconf test for it)
* ai_unmapped(): not all systems have sin_len; so only set #ifdef BSD4_4
* fix some lint
2000-06-11 02:12:05 +00:00
mycroft
83660a50d9
Back out last night's optimization for now.
2000-06-10 22:28:33 +00:00
mycroft
04af209e45
Don't use OP_MARK when attaching suffix transformations.
2000-06-10 22:24:21 +00:00
mycroft
edfd0106e2
Introduce an OP_MARK bit, and use it to suppress duplicates during .ALLSRC
...
and .USE expansion. Also, remove some more Lst_Member() checks that are now
redundant.
2000-06-10 21:44:08 +00:00
mycroft
f11e179e71
Fix another off-by-one error, attempting to output a non-existant field.
2000-06-10 19:21:05 +00:00
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