dim
5c80b18763
Merge ^/head r288126 through r288196.
2015-09-24 21:48:04 +00:00
emaste
47a49e1e6c
Rename ELFOSABI_SYSV to ELFOSABI_NONE to match current spec
...
Source: http://www.sco.com/developers/gabi/latest/ch4.eheader.html
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3731
2015-09-24 21:04:48 +00:00
bdrewery
8e145cce0d
Similar to r266147, don't define PROG in the test subdirs.
...
Magic things happen when including bsd.prog.mk in them.
Sponsored by: EMC / Isilon Storage Division
2015-09-23 21:35:58 +00:00
emaste
3ef25e9daf
elfdump: report MIPS ELF section type SHT_MIPS_REGINFO
...
Sponsored by: The FreeBSD Foundation
2015-09-23 00:32:38 +00:00
dim
3715394e84
Merge ^/head r288035 through r288099.
2015-09-22 09:50:11 +00:00
emaste
0f9952051e
elfdump: report MIPS-specific section type SHT_MIPS_ABIFLAGS
...
Sponsored by: The FreeBSD Foundation
2015-09-22 01:45:43 +00:00
mav
b41e8cfe2a
Bunch of improvements to ctlstat.
...
Add -p option to allow filtering by ports.
Make -l and -p options work in all modes as filters.
Improve output formatting to better fit columns.
2015-09-21 09:37:49 +00:00
mav
197901fa17
Output times as normal microseconds, rather then in bintime format.
2015-09-20 21:06:37 +00:00
dim
18b14b4a2f
Merge ^/head r287878 through r288034.
2015-09-20 20:34:17 +00:00
bdrewery
dfc33083c5
Connect sesutil(1) and numactl(1) for META_MODE.
...
Sponsored by: EMC / Isilon Storage Division
2015-09-19 17:47:36 +00:00
bapt
a31c9038cc
Restore man -t for manpages rendered by mandoc
...
Reported by: swills
2015-09-19 16:00:50 +00:00
bdrewery
47e52b294f
Don't hide build commands.
2015-09-18 21:01:52 +00:00
bdrewery
bdebc05d94
Update META_MODE dependencies.
2015-09-17 05:06:34 +00:00
dim
7b8be09912
Merge ^/head r287680 through r287877.
2015-09-16 22:35:59 +00:00
trasz
bbe0ea3ac0
Make it clear that 'swapuse' is swap reservation and not actual swap usage.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-09-14 15:37:19 +00:00
dim
5cc32d7f18
Merge ^/head r287527 through r287679.
2015-09-11 17:20:03 +00:00
markj
65d9a559eb
Use a common subroutine to fetch and zero protocol stats instead of
...
duplicating roughly similar code for each protocol.
MFC after: 2 weeks
2015-09-11 04:37:01 +00:00
markj
052afc4e16
Remove prototypes for undefined functions from netstat.h.
2015-09-11 04:02:05 +00:00
markj
34116761ff
Remove the v_cache_min and v_cache_max sysctls. They are unused and have
...
no effect.
Reviewed by: alc
Sponsored by: EMC / Isilon Storage Division
2015-09-11 03:00:24 +00:00
delphij
650e74c9cc
login.c doesn't really need libutil.h, don't include it.
...
login_fbtab.c includes paths.h and pathnames.h, and pathnames.h includes
paths.h. Eliminate the paths.h inclusion in login_fbtab.c.
MFC after: 2 weeks
2015-09-10 22:25:40 +00:00
delphij
c4ba6d848b
- Avoid accessing window properties directly, instead, use accessors.
...
This should be no-op for now, but allows the code to work if we
move to NCURSES_OPAQUE.
- Use calloc() instead of malloc+bzero.
MFC after: 2 weeks
2015-09-10 22:07:52 +00:00
delphij
425dddcbc4
w(1) is not setgid binary since r53279, so remove the setgid() call.
...
Reviewed By: wollman
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3541
2015-09-09 05:17:04 +00:00
dim
0c1fa3e6ad
Merge ^/head r287502 through r287526.
2015-09-06 22:05:55 +00:00
dim
fe6d24a2c1
Minimize the number of files compiled for clang only (e.g. when neither
...
WITH_CLANG_EXTRAS nor WITH_LLDB is in effect).
2015-09-06 22:02:13 +00:00
allanjude
33c44a9756
Fix inverted output re: stack protection no-execute flag in procstat(1)
...
PR: 196110
Submitted by: Joerg Pernfuss <code.jpe@gmail.com>
Approved by: bapt (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3576
2015-09-06 17:47:03 +00:00
dim
ee8d011a70
Merge ^/head r287490 through r287501.
2015-09-06 12:02:28 +00:00
allanjude
6790a7bcb4
Fix build error on gcc platforms
...
Approved by: bapt (mentor)
2015-09-05 19:28:41 +00:00
dim
fe74670889
Merge ^/head r286858 through r287489.
2015-09-05 18:36:23 +00:00
allanjude
4a886231b3
Introduce libxo to procstat(1)
...
Reviewed by: rodrigc, bapt
Approved by: marcel (mentor)
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D2446
2015-09-05 17:02:01 +00:00
araujo
c12d2cd4bc
Rename YP to NIS in the manpages.
...
Approved by: bapt (mentor)
Differential Revision: D3555
2015-09-03 07:18:52 +00:00
hrs
07e5aa0065
Simplify kvm symbol resolution and error handling. The symbol table
...
nl_symbols will eventually be organized into several modules depending
on MK_* variables.
2015-09-02 18:51:36 +00:00
hrs
2d45fb7584
Divide statistics in the number of packets with 1000 instead of 1024
...
in human-readable form.
PR: 183598
2015-09-02 18:42:35 +00:00
hrs
df2a89db2b
- Add -W flag support for network column in intpr() (-i flag) and
...
routepr() (-r flag). It is too narrow to show an IPv6 prefix
in most cases.
- Accept "local" as a synonym of "unix" in protocol family name.
- Show a prefix length in CIDR notation when name resolution failed in
netname().
- Make routename() and netname() AF-independent and remove
unnecessary typecasting from struct sockaddr.
- Use getnameinfo(3) to format L2 addr in intpr().
- Fix a bug which showed "Address" when -A flag is specfied in pr_rthdr().
- Replace cryptic GETSA() macro with SA_SIZE().
- Fix declarations shadowing local variables with the same names.
- Add more static, remove unused header files and variables.
MFC after: 1 week
2015-09-01 08:42:04 +00:00
delphij
061b55cf19
Drop group privileges after opening the kvm descriptor, otherwise, the code
...
would not drop privileges as expected.
While there also add checks for the drop and bail out immediately if we
failed.
MFC after: 3 days
2015-09-01 06:28:16 +00:00
delphij
bfe32e53e7
Failure of dropping privilege should be fatal, so test and bail out
...
when setgid() fails.
Reported by: clang static analyzer
MFC after: 2 weeks
2015-09-01 06:05:43 +00:00
emaste
e033b0162b
vtfontcvt: fix buffer overflow for non-default size .hex fonts
...
Sponsored by: The FreeBSD Foundation
2015-09-01 01:35:43 +00:00
emaste
ae7f4a4433
vtfontcvt: introduce xmalloc to abort on out-of-memory
...
Sponsored by: The FreeBSD Foundation
2015-08-31 23:08:39 +00:00
emaste
e49e66556c
ar: Deobfuscate a while loop
2015-08-31 18:07:17 +00:00
emaste
928826a48d
ar: fix deterministic mode when running as ranlib
...
This was broken by r286024.
PR: 202741
Submitted by: fk@fabiankeil.de
Obtained from: ElectroBSD
2015-08-31 12:28:13 +00:00
delphij
12dcab665d
- uri is expected to be nul-terminated (strchr used later),
...
so use strlcpy instead of strncpy.
- unroll the other two cases of strncpy+\0 to strlcpy.
MFC after: 2 weeks
2015-08-31 06:11:39 +00:00
delphij
7e8aee6f07
Constify opt_f and opt_t and eliminate unneeded copying. This fixes
...
memory leaks.
Reported by: clang static analyzer
MFC after: 2 weeks
2015-08-31 05:57:26 +00:00
tuexen
7103f3af38
Use the userland exported states and handle them completely.
2015-08-29 09:27:29 +00:00
tuexen
f929629b26
Report CLOSED as state for bound sockets for consistency with
...
netstat and the way TCP is handled.
PR: 201585
MFC after: 3 weeks
2015-08-29 09:10:52 +00:00
jmg
e60631af23
add documentation for timers that silby added in r197244, almost 6 years
...
ago...
2015-08-27 19:12:42 +00:00
ed
066f63003b
Decompose linkat()/renameat() rights to source and target.
...
To make it easier to understand how Capsicum interacts with linkat() and
renameat(), rename the rights to CAP_{LINK,RENAME}AT_{SOURCE,TARGET}.
This also addresses a shortcoming in Capsicum, where it isn't possible
to disable linking to files stored in a directory. Creating hardlinks
essentially makes it possible to access files with additional rights.
Reviewed by: rwatson, wblock
Differential Revision: https://reviews.freebsd.org/D3411
2015-08-27 15:16:41 +00:00
kan
956823f74d
Unbreak nvi message catalog generation for 8 bit locales.
...
Feeding any file encoded in 8 bit locales such as KOI8-RU
to sort utility running under UTF-8 locale produces astonishing
result of recoding the output to UTF-8. To counter that, just
run sort under 'C' locale for now.
2015-08-27 14:00:16 +00:00
tuexen
4c1edcc074
Add SCTP support.
...
PR: 201585
MFC after: 3 weeks
2015-08-26 23:45:06 +00:00
tuexen
65536eeb68
Remove a variable which is set but never used.
...
PR: 201585
MFC after: 3 weeks
2015-08-26 22:52:18 +00:00
tuexen
04611f8b16
Print the status on the first line of a socket description, not at
...
the last one. This doesn't matter for TCP, but it does for the upcoming
SCTP support.
PR: 201585
MFC after: 3 weeks
2015-08-26 22:50:53 +00:00
pluknet
949ebfc34f
Fix SEE ALSO.
...
The history mechanism applies to csh.
Sponsored by: Nginx, Inc.
2015-08-26 11:54:40 +00:00