Nathan Whitehorn
795c0232aa
Add version header to output file.
2011-12-18 16:53:03 +00:00
Sergey Kandaurov
148ddfed15
Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
...
Reviewed by: kib
2011-12-18 15:36:21 +00:00
Pawel Jakub Dawidek
bb265163b2
From time to time people report space map corruption resulting in panic
...
(ss == NULL) on pool import. I had such a panic recently. With current version
of ZFS it is still possible to import the pool in readonly mode and backup
all the data, but in case it is impossible for some reason add tunable
vfs.zfs.space_map_last_hope, which when set to '1' will tell ZFS to remove
colliding range and retry. This seems to have worked for me, but I consider
it highly risky to use.
MFC after: 1 week
2011-12-18 12:27:45 +00:00
Pawel Jakub Dawidek
efe17e5a28
Implement replying of ACLs updates. ACL changes should go to ZIL only
...
if the 'sync' property is set to 'always', so replying them is not common.
MFC after: 1 month
2011-12-18 12:19:03 +00:00
Dimitry Andric
b134560923
Forgot to add usr.sbin/sade/label.c in the previous commit.
...
MFC after: 1 week
2011-12-18 01:14:38 +00:00
Dimitry Andric
7b910e702a
In usr.sbin/sade/install.c and usr.sbin/sade/label.c, fix a few warnings
...
about format strings not being literals.
MFC after: 1 week
2011-12-18 01:13:21 +00:00
Dimitry Andric
4c14050c9d
In usr.sbin/sa/db.c, avoid warnings about assigning two const char
...
arrays to non-const void pointers, by casting away const explicitly.
MFC after: 1 week
2011-12-18 01:08:25 +00:00
Dimitry Andric
0af4e80ae5
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, since intmax_t is signed, just
...
like time_t, better use %jd instead of %ju. Strangely enough, neither
gcc, clang nor gcc 4.6 warn about this discrepancy...
MFC after: 1 week
2011-12-18 00:55:46 +00:00
Dimitry Andric
ae1d153674
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, include stdint.h, so intmax_t
...
is known, otherwise it won't build.
Pointy hat to: dim
MFC after: 1 week
2011-12-18 00:44:59 +00:00
Dimitry Andric
7027737f5a
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, use the appropriate printf
...
length modifier for time_t (after casting it to intmax_t).
MFC after: 1 week
2011-12-18 00:40:30 +00:00
Dimitry Andric
c09186a2bb
Disable another clang warning (-Wempty-body) when WARNS <= 2.
...
MFC after: 1 week
2011-12-18 00:34:42 +00:00
Dimitry Andric
ac7472adb6
Disable yet another clang warning (-Wconversion) when WARNS <= 3.
...
MFC after: 1 week
2011-12-18 00:24:11 +00:00
Dimitry Andric
2214781145
In usr.sbin/route6d/route6d.c, use the correct printf length modifier
...
for an ssize_t.
MFC after: 1 week
2011-12-18 00:03:03 +00:00
Dimitry Andric
5893527d84
In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
...
ptrdiff_t.
MFC after: 1 week
2011-12-17 23:46:47 +00:00
Dimitry Andric
6d683f9dfa
In contrib/pnpinfo/pnpinfo.c, remove an extraneous parameter from the
...
call to isolation_protocol().
MFC after: 1 week
2011-12-17 23:43:40 +00:00
Dimitry Andric
e2d0cd59c3
In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format
...
strings not being literals.
MFC after: 1 week
2011-12-17 23:39:13 +00:00
Dimitry Andric
9a3df8edd1
In usr.sbin/pkg_install/updating/main.c, use the size of the destination
...
buffer as size argument to strlcpy(), not the length of the source.
MFC after: 1 week
2011-12-17 23:35:46 +00:00
Jilles Tjoelker
6530d2f2d5
du: Allow multiple -HLP options, the last one wins.
...
This matches 4.4BSD tradition and other utilities with these options and is
required by POSIX (POSIX does not specify -P, only -HL).
MFC after: 2 weeks
2011-12-17 23:18:14 +00:00
Dimitry Andric
d88ccef562
Revert r228650, and work around the clang false positive with printf
...
formats in usr.bin/netstat/atalk.c by conditionally adding NO_WFORMAT to
the Makefile instead.
MFC after: 1 week
2011-12-17 22:32:00 +00:00
Dimitry Andric
be120ddea0
In usr.bin/csup/auth.c, cast time_t to intmax_t instead, and use the
...
corresponding printf length modifier.
Requested by: mdf
MFC after: 1 week
2011-12-17 22:20:46 +00:00
Mikolaj Golub
547b155eb1
Fix style and white spaces.
...
MFC after: 1 week
2011-12-17 22:18:26 +00:00
Dimitry Andric
b41349deef
Use NO_WCAST_ALIGN for usr.sbin/ndiscvt; because this is only built for
...
x86, any alignment warnings can be safely ignored. Define YY_NO_INPUT
in usr.sbin/ndiscvt/inf-token.l, so no unused lex functions are defined.
MFC after: 1 week
2011-12-17 22:16:27 +00:00
Dimitry Andric
97fbdc11ea
In usr.sbin/lpr/lpd/printjob.c, use the correct printf length modifiers
...
for off_t (aka int64_t).
MFC after: 1 week
2011-12-17 22:05:28 +00:00
Dimitry Andric
7ae1a27825
In usr.sbin/lpr/filters/lpf.c, use a less obtuse way of clearing the
...
buffer, that also avoids warnings.
MFC after: 1 week
2011-12-17 21:37:21 +00:00
Dimitry Andric
740885817c
In usr.sbin/keyserv, fix some implicit enum conversions, and use the
...
correct printf length modifiers for uid_t.
MFC after: 1 week
2011-12-17 20:53:06 +00:00
Dimitry Andric
cfed15e6c5
In usr.sbin/iostat/iostat.c, use printf format specifiers from
...
inttypes.h for u_int64_t's. While here, sort #include directives.
MFC after: 1 week
2011-12-17 20:25:23 +00:00
Dimitry Andric
928e797dc0
In usr.sbin/i2c/i2c.c, fix a few warnings about format strings not being
...
literals.
MFC after: 1 week
2011-12-17 20:12:17 +00:00
Dimitry Andric
e0c518be94
In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width
...
parameter to int.
MFC after: 1 week
2011-12-17 20:07:42 +00:00
Dimitry Andric
5207dac8ba
Use NO_WCAST_ALIGN for usr.sbin/cpucontrol; because this is only built
...
for x86, any alignment warnings can be safely ignored.
MFC after: 1 week
2011-12-17 19:58:48 +00:00
Dimitry Andric
1605515d77
In usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h, use the correct
...
enumeration types for the mesh_peering and mesh_forwarding members of
struct wlan_iface, to fix enum conversion warnings.
MFC after: 1 week
2011-12-17 19:53:08 +00:00
Dimitry Andric
14fa6dc403
Use NO_WCAST_ALIGN for usr.sbin/boot0cfg; because this is only built for
...
x86, any alignment warnings can be safely ignored.
MFC after: 1 week
2011-12-17 19:33:26 +00:00
Dimitry Andric
98e0f284ba
In usr.sbin/bluetooth/sdpd/server.c, don't use the size of a pointer as
...
the length argument to memset, but the size of the object pointed to.
MFC after: 1 week
2011-12-17 19:26:03 +00:00
Dimitry Andric
b7de4fa0d3
In usr.bin/vmstat/vmstat.c, cast several printf field widths to int, and
...
use printf format specifiers from inttypes.h for uint64_t's.
MFC after: 1 week
2011-12-17 19:22:24 +00:00
Michael Tuexen
7215cc1b74
Fix unused parameter warnings.
...
While there, fix some whitespace issues.
MFC after: 3 months.
2011-12-17 19:21:40 +00:00
Dimitry Andric
cb3b0d8fb9
Unfortunately, clang gives warnings about sendmail code that cannot be
...
turned off yet. Since this is contrib code, and we don't really care
about the warnings, just turn make them non-fatal for now.
MFC after: 1 week
2011-12-17 18:39:04 +00:00
Dimitry Andric
e9db6b2474
In contrib/telnet/telnet/utilities.c, fix a few warnings about format
...
strings not being literals.
MFC after: 1 week
2011-12-17 18:18:36 +00:00
Dimitry Andric
288fcda320
In usr.bin/netstat/atalk.c, work around a clang false positive with
...
printf format warnings and conditional operators.
MFC after: 1 week
2011-12-17 17:21:47 +00:00
Dimitry Andric
d411ccb3b2
Use NO_WCAST_ALIGN for usr.bin/ncplist, as there are many potential
...
alignment issues in it. (Though I doubt anyone still cares about
NetWare support...)
MFC after: 1 week
2011-12-17 17:04:30 +00:00
Mikolaj Golub
fa3935bcea
On start most of sysctl_kern_proc functions use the same pattern:
...
locate a process calling pfind() and do some additional checks like
p_candebug(). To reduce this code duplication a new function pget() is
introduced and used.
As the function may be useful not only in kern_proc.c it is in the
kernel name space.
Suggested by: kib
Reviewed by: kib
MFC after: 2 weeks
2011-12-17 16:59:22 +00:00
Dimitry Andric
081aa5169d
In usr.bin/mail/cmd1.c, use the correct printf length modifier for a
...
ptrdiff_t. In usr.bin/mail/main.c, cast a field width to int.
MFC after: 1 week
2011-12-17 16:30:42 +00:00
Nathan Whitehorn
4b51c69976
Additional icache paranoia: non-PLT relocations can modify the text segment.
...
It is then important to make sure the icache is synchronized again to
prevent (rare) random seg faults and illegal instructions.
MFC after: 3 days
2011-12-17 16:20:27 +00:00
Dimitry Andric
8ee4178c4c
In contrib/less, cast away const a bunch of times, to make it build
...
without conversion warnings. This code desparately needs a good dose of
const poison, but fixing all the issues would be rather disruptive.
MFC after: 1 week
2011-12-17 16:10:14 +00:00
Andriy Gapon
8f3ae92165
syscons: provide a first iteration of cngrab/cnungrab implementation
...
- put underlying keyboard(s) into the polling mode for the whole
duration of the grab, instead of the previous behavior of going into
and out of the polling mode around each polling attempt
- ditto for setting K_XLATE mode and enabling a disabled keyboard
Inspired by: bde
MFC after: 2 months
2011-12-17 15:57:39 +00:00
Andriy Gapon
f389bc9585
belatedly transfer copyrights from libkern/gets.c to kern_cons.c
...
MFC after: 2 months
MFC with: r228642
2011-12-17 15:50:45 +00:00
Andriy Gapon
6aa40c0146
retire libkern gets
...
Inspired by: bde
MFC after: 2 months
X-MFC-Note: if deemed a part of KPI, just call cngets internally
2011-12-17 15:48:55 +00:00
Bjoern A. Zeeb
9b776960c3
Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksum
...
offloading on vlans and document the new option.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2011-12-17 15:44:34 +00:00
Bjoern A. Zeeb
3b29d0033d
Unbreak the OCTEON1 kernel build after r228483 removing the left over
...
declaration.
MFC after: 11 days
2011-12-17 15:42:37 +00:00
Dimitry Andric
f7c0d4c7ea
In usr.bin/indent/io.c, fix a few warnings about format strings not being literals.
...
MFC after: 1 week
2011-12-17 15:41:58 +00:00
Andriy Gapon
ac8dee6952
move GETS_*ECHO* defintions from libkern.h to cons.h
...
MFC after: 2 months
2011-12-17 15:39:14 +00:00
Kevin Lo
0022629fe0
Another axe(4), found in ASUS zenbook.
2011-12-17 15:38:16 +00:00