sjg
5a008e2e63
Use VAR_INTERNAL when calling ApplyModifiers for VAR_{CMD,GLOBAL} only.
2017-01-31 07:00:59 +00:00
sjg
5f2f8cfca3
Partially initialize Dir before MainParseArgs can be called.
...
The rest can be done once curdir is finalized.
2017-01-31 06:54:23 +00:00
sjg
4098307a7f
Add :range and :_
...
:range replaces var value with an integer sequence one per word
in the current var value.
:_ stores the current var value in $_ so that it can be referred to
later in the modifier series.
Reviewed by: christos
2017-01-30 02:46:20 +00:00
christos
ce31bd9da4
add sqlite3
2017-01-28 23:42:36 +00:00
abhinav
5abd78da99
Fix spelling: s/overritten/overwritten
2017-01-23 10:05:25 +00:00
mrg
1e71d48020
re-do the previous to avoid malloc/free on the same size every iteration.
...
with this, or the previous, 'netstat -b 1' no longer leaks memory in
-current (or any older release using sysctl for this.)
2017-01-22 04:52:04 +00:00
christos
e5282544de
sprinkle free
2017-01-22 04:26:31 +00:00
christos
40465f45bf
leave pragmas alone.
2017-01-15 21:10:24 +00:00
sjg
c3ec6594d3
Allow providing a utc value to :{gm,local}time
...
Reviewed by: christos
2017-01-14 22:58:04 +00:00
christos
31ed49d544
don't do _KERNEL; hides bswap stuff.
2017-01-14 01:01:48 +00:00
christos
a91ed3e0f7
use _KMEMUSER for <sys/file.h>
2017-01-13 04:22:51 +00:00
christos
ea36f744b3
fix compilation
2017-01-12 18:52:15 +00:00
christos
d59d37f770
give the absolute path for the error message.
2017-01-12 14:27:14 +00:00
ozaki-r
5787b995ac
Fix showing multicast addresses of !IFF_UP interfaces
...
netstat appends '*' to the name of an interface without IFF_UP, so
if_nametoindex which is used in mc_print fails. mc_print needs just
an interface index so pass it instead of a tweaked interface name.
2017-01-11 01:25:05 +00:00
christos
f4547403ad
need <sys/stat.h>
2017-01-10 21:15:54 +00:00
christos
6dbf86bc11
need <sys/stat.h> for DEFFILEMODE etc.
2017-01-10 21:15:23 +00:00
christos
32377daaf2
need <sys/stat.h>
2017-01-10 21:14:51 +00:00
christos
1df62eba0c
needs <sys/stat.h>
2017-01-10 21:14:13 +00:00
christos
5326356364
refactor includes, add <sys/stat.h>
2017-01-10 21:13:45 +00:00
christos
a80110f6b6
need <sys/stat.h>
2017-01-10 21:08:48 +00:00
wiz
4e70675da5
Document --keep. From Timo Buhrmester <fstd.lkml@gmail.com> on netbsd-docs.
...
Use more macros while here.
2017-01-08 14:18:31 +00:00
christos
d106d90e70
add pcs
2017-01-07 18:28:49 +00:00
ryo
55563c97ca
"vmstat -ie[v]" auto fit to minimum columns
...
Reviewed by msaitoh@
2017-01-05 07:53:20 +00:00
pgoyette
c0a30d4dc7
Adapt to use of bintime(9) for kernel history timestamps (7.99.55).
2017-01-05 03:42:27 +00:00
pgoyette
09c45791e2
Fix error handling confusion between error and errno
2017-01-04 01:29:18 +00:00
pgoyette
394eed3eed
Adapt to new version of the sysctl export structure
2017-01-04 01:06:26 +00:00
pgoyette
58e3ff39b3
Use appropriate PRI* format specifiers for fixed-bit-size numbers
...
Should fix i386 build.
2017-01-02 09:24:54 +00:00
pgoyette
ba8c50ff8b
For kvm-based kernhist code, print size of history table and "next free"
...
pointer, same as we do for sysctl-based code.
2017-01-02 02:08:05 +00:00
pgoyette
6a4fc5e568
Restore the kvm-grovelling code for use on crash files (where sysctl(3)
...
is not available). Otherwise, this would always report on the current
running kernel regardless of the use of -M option.
2017-01-02 01:48:56 +00:00
pgoyette
93058c7f3d
For kernel history display, replace the kvm grovelling with the newly
...
available sysctl access to the history data.
XXX vmstat still uses kvm for several other displays
2017-01-02 01:02:19 +00:00
dholland
4e631407ca
PR 51754 Charlotte Koch: fix -v output of config parser.
2016-12-31 10:13:15 +00:00
christos
f51d1f25b9
Print the interface for bpf.
2016-12-30 21:08:23 +00:00
christos
c9601077e7
- add buffer bounded attribute
...
- allow empty attributes
2016-12-30 19:53:08 +00:00
christos
4f56be094e
sort, kill typo
2016-12-30 03:36:51 +00:00
christos
b79407b5a4
add bounded, fix nonnull
2016-12-30 02:16:36 +00:00
christos
3e691a5244
fix __typeof
2016-12-30 00:57:10 +00:00
christos
b29ce927f5
handle __ symbols differently (so we don't duplicate entries in the table)
...
and add non_null.
2016-12-29 23:54:29 +00:00
mrg
1383c0c74f
build vmstat as n64 on mips64. only kernel histories and hash stats
...
need to be fixed fot this to be reverted.
2016-12-29 23:42:38 +00:00
christos
ab5bdf51ae
only return attributes if looking for attributes
2016-12-29 19:40:35 +00:00
christos
9ef948be1d
allow cascaded attributes
2016-12-29 19:40:21 +00:00
christos
a4c7faa796
Add alias attribute
2016-12-29 18:44:49 +00:00
christos
28617f6731
Add always_inline
2016-12-29 18:37:32 +00:00
christos
8deef5e5f2
Add more attributes.
2016-12-29 16:41:16 +00:00
christos
a6761f0073
accept optional type attributes after struct/union members
2016-12-29 16:01:46 +00:00
christos
502c644dd9
teach lint __attribute__((__unused__))
2016-12-27 21:52:35 +00:00
christos
b074a61a87
- use UTC
...
- initialize tm_isdst
- use accpath to handle relative paths
2016-12-26 14:53:17 +00:00
wiz
d2bf829be4
Whitespace, sort, remove some superfluous macros/quoting.
2016-12-25 11:10:53 +00:00
christos
90c8a9f073
Add -R (source filename remapping) for MKREPRO
2016-12-24 17:43:45 +00:00
abhinav
842412540f
Update the description of the -t option to bring it in sync with IEEE 1003.1 -2008.
...
The .SS field of the datetime argument of -t option can have range from 0 to 60
as per the 1003.1 2008 standard. POSIX has removed all mentions of double leap
seconds, therefore the allowed range of seconds is now [0,60].
Also, add an ENVIRONMENT section, as the interpretation of the datetime
argument in -t option depends on the TZ environment variable.
Add an xref for parsedate(3) in SEE ALSO.
ok wiz@
2016-12-24 15:49:18 +00:00
mrg
0537635d0c
for 64 bit mips platforms where we built userland largely as n32 by
...
default, build a handful of tools as n64 so they work properly.
unfortunately, they're also static as dynamic n64 has a problem.
of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.
the rest are difficult to perhaps foolish.
the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00