Commit Graph

13363 Commits

Author SHA1 Message Date
christos
fa1ea25f42 use the logical path for -C if correct. 2017-02-07 21:16:31 +00:00
wiz
e28e311f97 Use full month name in Dd. 2017-02-06 16:08:56 +00:00
christos
eead193d4a Add nc. 2017-02-06 16:04:07 +00:00
christos
d71fee0faa - Disable crypto for now, and functionality that we don't provide.
- Fix warnings
2017-02-06 16:03:40 +00:00
christos
ac264ff54b Import OpenBSD's netcat. 2017-02-06 16:00:50 +00:00
dholland
3e58855b26 Fix misuse of arc4random by using arc4random_uniform.
Noticed by riastradh.
2017-02-06 02:26:44 +00:00
sjg
693df6904d Since we are avoiding VAR_INTERNAL, allow the variable :_ stores to
to be specified, also allows for multiple stages of modification to
be stashed.
2017-02-01 18:39:27 +00:00
sjg
a4a30cd47c Just have :_ use current ctxt, avoid need to force VAR_INTERNAL. 2017-02-01 18:00:14 +00:00
christos
10c59ee542 Use the first name we requested the http/https URL for, not any name we ended
up with after random redirects.
2017-01-31 21:05:35 +00:00
sjg
197bd38659 Add check to cmpv test to ensure that target specific vars with
modifiers work as expected.
2017-01-31 18:56:35 +00:00
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