dim
902ff105ec
In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings
...
not being literals.
MFC after: 1 week
2011-12-19 20:38:26 +00:00
dim
4ae7354b14
Fix r228719; when you use intmax_t, you need stdint.h.
...
Pointy hat to: dim
MFC after: 1 week
2011-12-19 20:33:53 +00:00
dim
feb552d6f3
Some people pointed out long is 32-bit on some arches, while time_t is
...
64-bit, so better cast time_t to intmax_t, and use the appropriate
printf format strings.
MFC after: 1 week
2011-12-19 20:29:50 +00:00
avg
8d78bfbee0
ule: ensure that batch timeshare threads are scheduled fairly
...
With the previous code, if the range of priorities for timeshare batch
threads was greater than RQ_NQS, then the threads with low priorities in
the part of the range above RQ_NQS would be scheduled to the run-queues
as if they had high priorities at the beginning of the range.
In other words, threads with a nice level of +N could be scheduled as
if they had a nice level of -M.
Reported by: George Mitchell <george@m5p.com>
Reviewed by: jhb
Tested by: George Mitchell <george@m5p.com> (earlier version)
MFC after: 1 week
2011-12-19 20:01:21 +00:00
yongari
291f526f0d
Increase wait time for OP_TCPSTART command processing. It seems
...
100us is not enough to ensure prefetch unit work.
2011-12-19 19:02:36 +00:00
yongari
ef17d6064d
TCP header size is represented by number of 32bits words.
...
Fix the TCP header size calculation such that makes TSO engine
cache all header(ethernet/IP/TCP) bytes to its internal buffer.
While here, remove extra pull up for TCP payload. Unlike some
em(4) controllers, fxp(4) does not require such work around for
TSO.
The two limitations are ethernet/IP/TCP header size should be less
than or equal to the size of controller's internal buffer(80 bytes)
and these header information should be found in the first fragment
of a TSO frame.
2011-12-19 19:00:34 +00:00
jhb
68a134710c
Add a TASK_INITIALIZER() macro that can be used to statically
...
initialize a task structure.
Reviewed by: gj
MFC after: 2 weeks
2011-12-19 18:55:13 +00:00
dim
9cdf8d529a
In usr.sbin/timed, fix several issues with printf formats:
...
- Cast time_t's to long, and print them with %ld.
- Print ptrdiff_t's with %td.
- Print ssize_t's and size_t's with %zd and %zu.
- Print int32_t's with %d.
Also, replace some int variables with the more appropriate size_t.
MFC after: 1 week
2011-12-19 18:08:31 +00:00
dim
83a41e00af
In contrib/tcpdump/print-icmp6.c, fix a problem where the comparison
...
against icmp6_hdr::icmp6_type is done incorrectly. (This fix has
already been applied upstream, but we do not have the latest version of
tcpdump.)
MFC after: 1 week
2011-12-19 17:32:54 +00:00
dim
9d35683411
Use NO_WCAST_ALIGN for usr.bin/hastctl and usr.bin/hastd; the alignment
...
warnings in sbin/hastd/lzf.c are only emitted for i386 and amd64, and
there they can be safely ignored.
MFC after: 1 week
2011-12-19 15:46:15 +00:00
hselasky
3a1f4384a1
Add code to wait for USB shutdown to be executed at system shutdown.
...
Add sysctl which can be used to skip this waiting.
MFC after: 3 days
2011-12-19 15:35:05 +00:00
avg
45e7ecc66a
opensolaris compat: fix vcmn_err so that panic(9) produces a proper message
...
... instead of just a verbatim format string.
Reviewed by: pjd
MFC after: 1 week
2011-12-19 14:55:14 +00:00
hselasky
7240dddfcc
Add missing unlock of USB controller's lock, when
...
doing shutdown, suspend and resume.
Suggested by: avg @
MFC after: 3 days
2011-12-19 14:53:42 +00:00
dim
3e050c7f7a
In usr.bin/vacation/Makefile, fix a typo in the comment about clang
...
warnings.
Spotted by: arundel
MFC after: 1 week
2011-12-19 13:38:28 +00:00
dim
842c3a3e59
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-19 13:35:44 +00:00
glebius
fb39c80992
Remove if_carp.ko. /boot/kernel should be upgraded atomically.
...
Requested by: netchild, bz
2011-12-19 12:50:12 +00:00
bz
6eb0dc9dd3
Unbreak the build after r228697 adding the { } block to make clear which
...
if the else belongs to.
2011-12-19 08:50:17 +00:00
maxim
330e98b5de
o Convert IPv6 read-only stats sysctls to the read-write ones.
...
o Teach netstat(1) -z to reset these stats sysctls.
PR: bin/153206
Reviewed by: glebuis
Sponsored by: NGINX, Inc.
MFC after: 1 month
2011-12-19 05:50:34 +00:00
maxim
473a67378d
o Sort .Xrs.
2011-12-19 05:09:08 +00:00
dim
301882f0f9
Repair breakage after r228697: since m4 now uses pow(3), it needs -lm.
...
Pointy hat to: bapt
2011-12-18 23:54:32 +00:00
bapt
e5ed194323
Reimplement support for the ** (exponent) gnu extension, make it available thought the -g (mimic gnu) option
...
Reviewed by: cognet
Approved by: cognet
Discussed with: espie@OpenBSD.org (upstream)
2011-12-18 22:04:55 +00:00
pjd
0283ff3e72
Use lex's standard way of not generating unused function.
...
Inspired by: r228555
MFC after: 1 week
2011-12-18 20:41:58 +00:00
pjd
509e6459e0
Don't use function name as format string.
...
Detected by: clang
MFC after: 1 week
2011-12-18 20:40:19 +00:00
marius
dc82ddf520
Fix compilation on sparc64 by actually supplying the bus_dma_tag_t member
...
of the rx_ring to bus_dmamap_sync(9). Given that netmap code tries to
obtain the bus addresses of netmap buffers via vtophys(9) instead of using
bus_dma(9) it currently has zero chance of actually working on sparc64
though (and for that matter f.e. also not with MACs limited to 32-bit DMA
on x86 machines with more than 4GB of RAM).
2011-12-18 17:48:54 +00:00
dim
f0e45fd775
Revert r228603, and add the workaround to sbin/fsdb/Makefile instead.
...
MFC after: 1 week
2011-12-18 17:42:26 +00:00
des
50a0ec7697
Upgrade to OpenPAM Lycopsida.
2011-12-18 17:22:45 +00:00
des
9a25ed673d
Vendor import of OpenPAM Lycopsida.
2011-12-18 17:08:40 +00:00
nwhitehorn
4c95353f1d
Support infrastructure for X11 on PS3.
...
Submitted by: geoffrey dot levand at mail dot ru
MFC after: 1 week
2011-12-18 16:53:21 +00:00
nwhitehorn
d5657c3a9b
Add version header to output file.
2011-12-18 16:53:03 +00:00
pluknet
732d61aa2b
Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
...
Reviewed by: kib
2011-12-18 15:36:21 +00:00
pjd
952e2f20b5
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
pjd
3c1d6d1593
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
dim
af15d16c0e
Forgot to add usr.sbin/sade/label.c in the previous commit.
...
MFC after: 1 week
2011-12-18 01:14:38 +00:00
dim
1ca71436d8
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
dim
6429d99436
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
dim
4b1ea42179
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
dim
b4db5ea758
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
dim
3785c803c7
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
dim
c33f43657f
Disable another clang warning (-Wempty-body) when WARNS <= 2.
...
MFC after: 1 week
2011-12-18 00:34:42 +00:00
dim
6990aaaaad
Disable yet another clang warning (-Wconversion) when WARNS <= 3.
...
MFC after: 1 week
2011-12-18 00:24:11 +00:00
dim
94c83b90f3
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
dim
8521853f9c
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
dim
0927bdfaaa
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
dim
0dd9212d5b
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
dim
45ec4ed058
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
8698d2b7e1
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
dim
5cdde91b9a
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
dim
226b72cf0d
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
trociny
d3234bb2c0
Fix style and white spaces.
...
MFC after: 1 week
2011-12-17 22:18:26 +00:00
dim
baf9f7519d
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