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
mrg
20c21f9f52
in getpcblist_sysctl() if sysctlnametomib() fails, return NULL and
...
set *len = 0, rather than bailing. now "netstat" doesn't give up
early on kernels without INET6.
2016-12-23 06:22:00 +00:00
mrg
65d0ad5f99
add the member name to an error string so we know what object failed
...
while being requested.
2016-12-22 22:41:02 +00:00
abhinav
2faad91b8c
Instead of saying "The finger displays information..." say "The finger utility"
...
(not sure if it was intentionally written like that :)
Also, add an xref to fingerd(8)
2016-12-22 12:39:40 +00:00
abhinav
59fbdd4908
Add an xref to wait4(2) in SEE ALSO as it has been referred to for the -l option.
2016-12-21 18:01:21 +00:00
abhinav
fa0751d0dd
Add missing full stop.
2016-12-21 09:06:24 +00:00
abhinav
1ccf3ec022
Update SYNOPSIS to reflect that y and n options are mutually exclusive.
...
Also, mention what does biff(1) do if no arguments are given.
Add xref to from(1)
ok wiz@
2016-12-20 08:21:32 +00:00
christos
f015338360
print only the latest entry for debugging.
2016-12-19 01:48:00 +00:00
mlelstv
d19ac03c1e
Print previously missing fields from a TCP6 PCB.
2016-12-17 09:12:22 +00:00
nonaka
a69e0947f2
handle proxy authentication correctly.
2016-12-15 04:49:15 +00:00