]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFC r228177:
kib [Sun, 1 Jan 2012 23:36:13 +0000 (23:36 +0000)]
MFC r228177:
Add a simple test for pipe inode numbers reported by fstat(2).

git-svn-id: svn://svn.freebsd.org/base/stable/9@229240 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228674:
dim [Sun, 1 Jan 2012 23:34:59 +0000 (23:34 +0000)]
MFC r228674:

In usr.sbin/route6d/route6d.c, use the correct printf length modifier
for an ssize_t.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229239 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227656:
kib [Sun, 1 Jan 2012 23:34:06 +0000 (23:34 +0000)]
MFC r227656:
Use the alternate form of the gcc extension that works even with
-ansi -pedantic without issuing a warning, and which is recommended
by gcc manual.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229238 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228673:
dim [Sun, 1 Jan 2012 23:33:08 +0000 (23:33 +0000)]
MFC r228673:

In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
ptrdiff_t.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229237 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228672:
dim [Sun, 1 Jan 2012 23:26:49 +0000 (23:26 +0000)]
MFC r228672:

In contrib/pnpinfo/pnpinfo.c, remove an extraneous parameter from the
call to isolation_protocol().

git-svn-id: svn://svn.freebsd.org/base/stable/9@229236 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228671:
dim [Sun, 1 Jan 2012 23:20:36 +0000 (23:20 +0000)]
MFC r228671:

In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format
strings not being literals.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229235 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228670:
dim [Sun, 1 Jan 2012 23:18:34 +0000 (23:18 +0000)]
MFC r228670:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227817:
kib [Sun, 1 Jan 2012 23:17:08 +0000 (23:17 +0000)]
MFC r227817:
Put all the messages from msdosfs under the MSDOSFS_DEBUG ifdef.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229232 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227696:
kib [Sun, 1 Jan 2012 23:12:43 +0000 (23:12 +0000)]
MFC r227696:
Do not use NULLVPTOLOWERVP() in the null_print(). If diagnostic is compiled
in, and show vnode is used from ddb on the faulty nullfs vnode, we get
panic instead of vnode dump.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229230 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228665:
dim [Sun, 1 Jan 2012 23:08:19 +0000 (23:08 +0000)]
MFC r228665:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229228 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227695:
kib [Sun, 1 Jan 2012 23:07:13 +0000 (23:07 +0000)]
MFC r227695:
Use the plain panic calls, without additional printing around them.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229227 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228664:
dim [Sun, 1 Jan 2012 23:04:27 +0000 (23:04 +0000)]
MFC r228664:

In usr.sbin/lpr/lpd/printjob.c, use the correct printf length modifiers
for off_t (aka int64_t).

git-svn-id: svn://svn.freebsd.org/base/stable/9@229226 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228663:
dim [Sun, 1 Jan 2012 22:34:37 +0000 (22:34 +0000)]
MFC r228663:

In usr.sbin/lpr/filters/lpf.c, use a less obtuse way of clearing the
buffer, that also avoids warnings.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228909:
dougb [Sun, 1 Jan 2012 22:33:02 +0000 (22:33 +0000)]
MFC r228909:

1. Remove a bunch of duplicates. Usually this means removing them from
   fortunes, but occasionally remove them from the other 2 files when
   they are not offensive, or not murphy'ish enough.

   Where the version in fortunes had better attribution and/or formatting,
   copy it over.

2. Fix a few typos

3. Use the full name of François De La Rochefoucauld, fix one of his
   quotes, and remove the duplicate of it.

MFC r228934:

Prefer ASCII apostrophes over Unicode ones like the rest of the file.

MFC r228938:

1. Correct capitalization of the nobility particle for
   Francois de La Rochefoucauld introduced in r228909

2. Change c-cedilla introduced in the same commit to ASCII c since
   non-UTF-8 terminals will choke on the non-ASCII text.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228662:
dim [Sun, 1 Jan 2012 22:26:56 +0000 (22:26 +0000)]
MFC r228662:

In usr.sbin/keyserv, fix some implicit enum conversions, and use the
correct printf length modifiers for uid_t.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229221 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228661:
dim [Sun, 1 Jan 2012 22:11:22 +0000 (22:11 +0000)]
MFC r228661:

In usr.sbin/iostat/iostat.c, use printf format specifiers from
inttypes.h for u_int64_t's.  While here, sort #include directives.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228660:
dim [Sun, 1 Jan 2012 22:08:52 +0000 (22:08 +0000)]
MFC r228660:

In usr.sbin/i2c/i2c.c, fix a few warnings about format strings not being
literals.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229217 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228659:
dim [Sun, 1 Jan 2012 22:06:41 +0000 (22:06 +0000)]
MFC r228659:

In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width
parameter to int.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229216 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228658:
dim [Sun, 1 Jan 2012 21:50:21 +0000 (21:50 +0000)]
MFC r228658:

Use NO_WCAST_ALIGN for usr.sbin/cpucontrol; because this is only built
for x86, any alignment warnings can be safely ignored.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229215 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228657:
dim [Sun, 1 Jan 2012 21:43:14 +0000 (21:43 +0000)]
MFC r228657:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229213 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228656:
dim [Sun, 1 Jan 2012 21:38:58 +0000 (21:38 +0000)]
MFC r228656:

Use NO_WCAST_ALIGN for usr.sbin/boot0cfg; because this is only built for
x86, any alignment warnings can be safely ignored.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229212 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228655:
dim [Sun, 1 Jan 2012 21:28:55 +0000 (21:28 +0000)]
MFC r228655:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229210 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r226427:
dim [Sun, 1 Jan 2012 21:21:57 +0000 (21:21 +0000)]
MFC r226427:

Build rwho(1) with WARNS=6.

The only reason why it didn't build with WARNS=6, is because of some
simple to fix string formatting bugs.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229209 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228654:
dim [Sun, 1 Jan 2012 21:12:29 +0000 (21:12 +0000)]
MFC r228654:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229208 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228651:
dim [Sun, 1 Jan 2012 21:06:07 +0000 (21:06 +0000)]
MFC r228651:

In contrib/telnet/telnet/utilities.c, fix a few warnings about format
strings not being literals.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229207 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228650:
dim [Sun, 1 Jan 2012 20:57:38 +0000 (20:57 +0000)]
MFC r228650:

  In usr.bin/netstat/atalk.c, work around a clang false positive with
  printf format warnings and conditional operators.

MFC r228668:

  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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229205 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228649:
dim [Sun, 1 Jan 2012 20:53:33 +0000 (20:53 +0000)]
MFC r228649:

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...)

git-svn-id: svn://svn.freebsd.org/base/stable/9@229203 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228647:
dim [Sun, 1 Jan 2012 20:51:51 +0000 (20:51 +0000)]
MFC r228647:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229202 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228639:
dim [Sun, 1 Jan 2012 19:25:43 +0000 (19:25 +0000)]
MFC r228639:

In usr.bin/indent/io.c, fix a few warnings about format strings not
being literals.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229194 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228712:
dim [Sun, 1 Jan 2012 19:19:48 +0000 (19:19 +0000)]
MFC r228712:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228636:
dim [Sun, 1 Jan 2012 19:15:52 +0000 (19:15 +0000)]
MFC r228636:

Correct a logic error in usr.bin/hexdump/conv.c, found by clang.

Whenever the conv_c() function encounters an incomplete multibyte char,
it peeks ahead.  It also sets p to peekbuf, to indicate it is still
processing the incomplete character.

However, on the next retry, it compares buf against peekbuf, which
always returns false, since both buf and peekbuf are local char arrays,
whose addresses are never the same.

Fix this by comparing against p instead, which was the intention.  Also
turn peekbuf into an array of u_char, to prevent conversion warnings.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229192 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228628:
dim [Sun, 1 Jan 2012 19:11:47 +0000 (19:11 +0000)]
MFC r228628:

  In usr.bin/gprof/aout.c, use the correct printf length modifier for a
  uint32_t.

MFC r228629:

  More fixes for correct printf length modifiers usr.bin/gprof.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229190 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227529:
kib [Sun, 1 Jan 2012 19:08:56 +0000 (19:08 +0000)]
MFC r227529:
Remove the condition that is always true.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229189 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228627:
dim [Sun, 1 Jan 2012 19:05:15 +0000 (19:05 +0000)]
MFC r228627:

In contrib/ee/ee.c, fix a few warnings about format strings not being
literals.  Also, change the direction argument to move_rel() from char
to int; K&R function definions cause it to be promoted to an int anyway,
and this way we avoid clang warning about it.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229188 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227394:
kib [Sun, 1 Jan 2012 18:54:29 +0000 (18:54 +0000)]
MFC r227394:
Stopped process may legitimately have some threads sleeping and not
suspended, if the sleep is uninterruptible.

MFC r227442:
Weaken the part of assertions added in the r227394. Only check that the
process state is stopped.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229186 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228625:
dim [Sun, 1 Jan 2012 18:42:00 +0000 (18:42 +0000)]
MFC r228625:

  In usr.bin/csup/auth.c, use the correct number of bytes for zeroing the
  shared secret, and use long long format to snprintf a time_t.

MFC r228626:

  In usr.bin/csup/proto.c, use the correct printf length modifier to print
  an off_t.

MFC r228667:

  In usr.bin/csup/auth.c, cast time_t to intmax_t instead, and use the
  corresponding printf length modifier.

  Requested by: mdf

git-svn-id: svn://svn.freebsd.org/base/stable/9@229184 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228624:
dim [Sun, 1 Jan 2012 18:29:37 +0000 (18:29 +0000)]
MFC r228624:

In contrib/bzip2/bzip2recover.c, use the correct printf length modifier
for unsigned long long.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229182 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228619:
dim [Sun, 1 Jan 2012 18:25:16 +0000 (18:25 +0000)]
MFC r228619:

In usr.bin/mt/mt.c, the c_code member of struct commands should really
be an unsigned long, since it will contain values of ioctl request
codes.  On 64-bit arches, these will not fit into an int.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229181 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227090:
dim [Sun, 1 Jan 2012 18:17:37 +0000 (18:17 +0000)]
MFC r227090:

Fix a warning emitted by Clang.

The size passed to strlcat() must depend on the input length, not the
output length. Because the input and output buffers are equal in size,
the resulting binary does not change at all.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229180 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228618
dim [Sun, 1 Jan 2012 17:47:52 +0000 (17:47 +0000)]
MFC r228618

In sbin/devd/devd.h, 'event_proc' and 'eps' are declared as structs.  In
devd.hh, they are redeclared as classes.  Fix the inconsistency.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229179 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228616:
dim [Sun, 1 Jan 2012 17:44:26 +0000 (17:44 +0000)]
MFC r228616:

In usr.bin/tar/tree.c, if you really want to poke to NULL, you must use
volatile, otherwise the indirection will not be emitted.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228614:
dim [Sun, 1 Jan 2012 17:42:02 +0000 (17:42 +0000)]
MFC r228614:

  In sbin/dhclient, work around warnings about the size argument to
  strlcpy appearing to be the size of the source buffer, instead of the
  destination.

MFC r228615:

  In sbin/dhclient, since we know the size of the source strings anyway,
  we might as well use memcpy; strlcpy is really unnecessary here.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229177 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228612
dim [Sun, 1 Jan 2012 17:37:17 +0000 (17:37 +0000)]
MFC r228612

Use both NO_WFORMAT and NO_WARRAY_BOUNDS for sbin/ipf, it would be too
disruptive to actually fix all the warnings, and the code hasn't been
maintained for several years.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229176 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228611:
dim [Sun, 1 Jan 2012 17:27:31 +0000 (17:27 +0000)]
MFC r228611:

In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings
not being literals.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229175 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228610:
dim [Sun, 1 Jan 2012 17:23:03 +0000 (17:23 +0000)]
MFC r228610:

Use NO_WCAST_ALIGN for sbin/gbde, this is more appropriate to fix the
alignment warnings than using WARNS=3, and it also works for clang.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229174 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: r227493
rmacklem [Sun, 1 Jan 2012 16:41:33 +0000 (16:41 +0000)]
MFC: r227493
Move the assignment of default values for some mount options
to before the nfs_decode_args() call in the new NFS client,
so they don't overwrite the value specified on the command line.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229172 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoKeep track of PVO entries in each pmap, which allows much faster
nwhitehorn [Sun, 1 Jan 2012 16:05:36 +0000 (16:05 +0000)]
Keep track of PVO entries in each pmap, which allows much faster
pmap_remove() for large sparse requests. This can prevent pmap_remove()
operations on 64-bit process destruction or swapout that would take
several hundred times the lifetime of the universe to complete. This
behavior is largely indistinguishable from a hang.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoIncrease the available virtual address space for user programs on PowerPC
nwhitehorn [Sun, 1 Jan 2012 16:04:02 +0000 (16:04 +0000)]
Increase the available virtual address space for user programs on PowerPC
AIM systems to 4 GB on 32-bit systems and 2^64 bytes on 64-bit systems.
VM_MAXUSER_ADDRESS remains at 2 GB on Book-E, due to a different memory
layout used on this platform.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229170 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228443:
mdf [Sat, 31 Dec 2011 20:42:34 +0000 (20:42 +0000)]
MFC r228443:

Do not define bool/true/false if the symbols already exist.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229157 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228607:
dim [Sat, 31 Dec 2011 20:27:36 +0000 (20:27 +0000)]
MFC r228607:

Use NO_WARRAY_BOUNDS for sbin/routed/rtquery.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229156 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228440:
mdf [Sat, 31 Dec 2011 20:12:26 +0000 (20:12 +0000)]
MFC r228440:

Consistently use types in ixgbe driver code:

 - {ixgbe,ixv}_header_split is passed to TUNABLE_INT, so delcare it
   int, not bool.
 - {ixgbe,ixv}_tx_ctx_setup() returns a boolean value, so declare it
   bool, not int.
 - {ixgbe,ixv}_tso_setup() returns a bool, so declare it bool, not boolean_t.
 - {ixgbe,ixv}_txeof() returns a bool, so declare it bool, not boolean_t.
 - Do not re-define bool if the symbol already exists.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228603:
dim [Sat, 31 Dec 2011 20:06:38 +0000 (20:06 +0000)]
MFC r228603:

  In sbin/fsdb/fsdbutil.c, work around a clang false positive with printf
  format warnings and conditional operators.  (See LLVM PR 11313 for more
  information.)

MFC r228693:

  Revert r228603, and add the workaround to sbin/fsdb/Makefile instead.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228602:
dim [Sat, 31 Dec 2011 20:01:40 +0000 (20:01 +0000)]
MFC r228602:

In sbin/camcontrol/camcontrol.c, fix a few warnings about format strings
not being literals.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229151 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228601:
dim [Sat, 31 Dec 2011 19:58:25 +0000 (19:58 +0000)]
MFC r228601:

Define YY_NO_INPUT when building libbinutils, to prevent warnings about
unused input() functions emitted by lex.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229149 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228598:
dim [Sat, 31 Dec 2011 19:56:25 +0000 (19:56 +0000)]
MFC r228598:

In cddl/contrib/opensolaris/cmd/dtrace/dtrace.c, fix some obtuse
snprintf tricks.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229148 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228597:
dim [Sat, 31 Dec 2011 19:53:00 +0000 (19:53 +0000)]
MFC r228597:

In cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c, a size_t is passed
to fprintf as a field width.  It should be an int instead, so cast it.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229146 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228441:
mdf [Sat, 31 Dec 2011 19:50:55 +0000 (19:50 +0000)]
MFC r228441:

Consistently use types in e1000 driver code:

 - Two struct members eee_disable are used in a function that expects
   an int *, so declare them int, not bool.
 - igb_tx_ctx_setup() returns a boolean value, so declare it bool, not int.
 - igb_header_split is passed to TUNABLE_INT, so delcare it int, not bool.
 - igb_tso_setup() returns a bool, so declare it bool, not boolean_t.
 - Do not re-define bool/true/false if the symbols already exist.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229145 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228596:
dim [Sat, 31 Dec 2011 19:50:52 +0000 (19:50 +0000)]
MFC r228596:

In games/factor/factor.c, fix a warning about a format string not being
a literal.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228595:
dim [Sat, 31 Dec 2011 19:48:04 +0000 (19:48 +0000)]
MFC r228595:

Fix some obtuse fprintf tricks in bin/ed.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229143 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228600:
dim [Sat, 31 Dec 2011 19:46:06 +0000 (19:46 +0000)]
MFC r228600:

Fix the incompatible enum conversions in libexec/ypxfr in another, more
messy way, so as to not disrupt other yp programs: just add casts to
convert the incompatible enums, as the numerical values are the same
(either by accident, design, or the phase of the moon at that time).

git-svn-id: svn://svn.freebsd.org/base/stable/9@229142 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228589:
dim [Sat, 31 Dec 2011 19:42:52 +0000 (19:42 +0000)]
MFC r228589:

In contrib/telnet/telnetd/utility.c, fix a few warnings about format
strings not being literals.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229141 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228587:
dim [Sat, 31 Dec 2011 19:36:11 +0000 (19:36 +0000)]
MFC r228587:

In libexec/rbootd/utils.c, use the correct printf length modifiers for
u_int32_t and size_t.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229140 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228586:
dim [Sat, 31 Dec 2011 19:34:25 +0000 (19:34 +0000)]
MFC r228586:

In libexec/pppoed/pppoed.c, use the correct printf length modifier for a
size_t.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229139 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228584:
dim [Sat, 31 Dec 2011 19:28:54 +0000 (19:28 +0000)]
MFC r228584:

In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
length modifier for the difference between two pointers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229138 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228582:
dim [Sat, 31 Dec 2011 19:26:24 +0000 (19:26 +0000)]
MFC r228582:

In libexec/getty/chat.c, replace && with & in chat_send().  The intent
is to test if the CHATDEBUG_SEND bit is set in the chat_debug global.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229137 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228581:
dim [Sat, 31 Dec 2011 19:19:19 +0000 (19:19 +0000)]
MFC r228581:

In libexec/bootpd/bootpgw/bootpgw.c, add a cast for the remaining
minutes of activity, to avoid a warning on platforms where time_t is a
32-bit integer.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229136 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228580:
dim [Sat, 31 Dec 2011 18:53:11 +0000 (18:53 +0000)]
MFC r228580:

In cddl/contrib/opensolaris/lib/libdtrace/common/dt_handle.c, some
uint64_t values are snprintf'd using %llx.  On amd64, uint64_t is
typedef'd as unsigned long, so cast the values to u_longlong_t, as is
done similarly in the rest of the file.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229134 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228579:
dim [Sat, 31 Dec 2011 18:49:46 +0000 (18:49 +0000)]
MFC r228579:

In cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c, some
uint64_t values are snprintf'd using %llx.  On amd64, uint64_t is
typedef'd as unsigned long, so cast the values to u_longlong_t, as is
done similarly in the rest of the file.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229133 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227775:
nwhitehorn [Sat, 31 Dec 2011 18:09:31 +0000 (18:09 +0000)]
MFC r227775:
Connect LLVM/clang to the build on powerpc64. After the binutils 2.17.50
import, it works without issue.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229131 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC: r226987
pho [Sat, 31 Dec 2011 17:56:05 +0000 (17:56 +0000)]
MFC: r226987

Added missing cache purge of from argument for rename().

git-svn-id: svn://svn.freebsd.org/base/stable/9@229130 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228578
dim [Sat, 31 Dec 2011 17:14:56 +0000 (17:14 +0000)]
MFC r228578

In lib/libthread_db/arch/i386/libpthread_md.c, clang gives two incorrect
warnings about alignment, so turn -Wcast-align off for now.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229129 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228559:
dim [Sat, 31 Dec 2011 16:32:26 +0000 (16:32 +0000)]
MFC r228559:

In contrib/telnet/libtelnet/sra.c, use the correct number of bytes to
zero the password buffer.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229128 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228235 and r228236:
hselasky [Sat, 31 Dec 2011 15:49:07 +0000 (15:49 +0000)]
MFC r228235 and r228236:
Minor code simplification.
No functional change.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229124 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r226430:
stefanf [Sat, 31 Dec 2011 15:49:04 +0000 (15:49 +0000)]
MFC r226430:
Adjust posix_memalign() prototype to match what we define in stdlib.h for
C++ compilation.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229123 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227404:
hselasky [Sat, 31 Dec 2011 15:46:36 +0000 (15:46 +0000)]
MFC r227404:
Add definition of some USB 3.0 descriptors to libusb 1.0 and libusb 2.0.
Some header file parts of this patch were taken from a patch submitted
by Maya Erez <merez@codeaurora.org> to the LibUSB developers list.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229122 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228195:
hselasky [Sat, 31 Dec 2011 15:43:55 +0000 (15:43 +0000)]
MFC r228195:
Fix checks for error return from urtw_alloc_rx_data_list() and
urtw_alloc_tx_data_list().

git-svn-id: svn://svn.freebsd.org/base/stable/9@229121 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228232 and r228303:
hselasky [Sat, 31 Dec 2011 15:42:05 +0000 (15:42 +0000)]
MFC r228232 and r228303:
Fix clang compile warnings.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229120 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227706, r227748, r227749 and r228234:
hselasky [Sat, 31 Dec 2011 15:37:31 +0000 (15:37 +0000)]
MFC r227706, r227748, r227749 and r228234:
Simplify the usb_pause_mtx() function by factoring out the generic parts
to the kernel's pause() function. The pause() function can now be used
when cold != 0. Also assert that the timeout in system ticks must be
greater or equal to zero.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229119 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227701, r227847 and r227849:
hselasky [Sat, 31 Dec 2011 15:31:34 +0000 (15:31 +0000)]
MFC r227701, r227847 and r227849:
Move the device_delete_all_children() function from usb_util.c
to kern/subr_bus.c. Simplify this function so that it no longer
depends on malloc() to execute. Rename device_delete_all_children()
into device_delete_children(). Identify a few other places where
it makes sense to use device_delete_children().

git-svn-id: svn://svn.freebsd.org/base/stable/9@229118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227610 and r228243:
hselasky [Sat, 31 Dec 2011 15:18:51 +0000 (15:18 +0000)]
MFC r227610 and r228243:
Add more quirks for USB mass storage devices.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229117 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228637:
hselasky [Sat, 31 Dec 2011 15:15:30 +0000 (15:15 +0000)]
MFC r228637:
Add new USB ID.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229116 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227781:
hselasky [Sat, 31 Dec 2011 15:14:07 +0000 (15:14 +0000)]
MFC r227781:
Add new USB IDs.

PR:     usb/162712, usb/163732

git-svn-id: svn://svn.freebsd.org/base/stable/9@229115 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228688,228689:
nwhitehorn [Sat, 31 Dec 2011 15:11:47 +0000 (15:11 +0000)]
MFC r228688,228689:
Support infrastructure for X11 on PS3.

Submitted by: geoffrey dot levand at mail dot ru

git-svn-id: svn://svn.freebsd.org/base/stable/9@229114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228646:
nwhitehorn [Sat, 31 Dec 2011 15:08:33 +0000 (15:08 +0000)]
MFC r228646:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229113 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228558, r228585, r228588, r228652, r228707:
dim [Sat, 31 Dec 2011 15:03:29 +0000 (15:03 +0000)]
MFC r228558, r228585, r228588, r228652, r228707:

  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 make them non-fatal for now.

MFC r228590:

  Fix typos in the comments about clang warnings in several
  sendmail-related Makefiles.

  Spotted by: arundel

MFC r228708:

  In usr.bin/vacation/Makefile, fix a typo in the comment about clang
  warnings.

  Spotted by: arundel

git-svn-id: svn://svn.freebsd.org/base/stable/9@229112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r226465 and r226467:
hselasky [Sat, 31 Dec 2011 14:57:52 +0000 (14:57 +0000)]
MFC r226465 and r226467:
Fix an issue with 11g beacon frames which looks to be a limitation
on the largest multi-write size.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229111 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228494, r228508:
hselasky [Sat, 31 Dec 2011 14:54:30 +0000 (14:54 +0000)]
MFC r228494, r228508:
Fix for random USB transfer time out.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229108 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227462:
hselasky [Sat, 31 Dec 2011 14:50:38 +0000 (14:50 +0000)]
MFC r227462:
Enable power save mode for the USB storage device driver.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229107 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r226743:
hselasky [Sat, 31 Dec 2011 14:47:35 +0000 (14:47 +0000)]
MFC r226743:
Implement TX/RX checksum offloading support for ASIX AX88772B
controller.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r226709:
hselasky [Sat, 31 Dec 2011 14:45:43 +0000 (14:45 +0000)]
MFC r226709:
Allow USB ethernet drivers to define a driver specific
attach handler so that a USB ethernet driver can
announce interface capabilities and do its own MII attach.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC 228304:
hselasky [Sat, 31 Dec 2011 14:37:51 +0000 (14:37 +0000)]
MFC 228304:
Correct some bInterval USB template descriptor values.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228557:
dim [Sat, 31 Dec 2011 14:36:51 +0000 (14:36 +0000)]
MFC r228557:

In lib/libpmc/libpmc.c, struct pmc_cputype_map's pm_cputype field should
be of type 'enum pmc_cputype', not 'enum pmc_class'.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229102 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228556:
dim [Sat, 31 Dec 2011 14:34:07 +0000 (14:34 +0000)]
MFC r228556:

Add "%option noinput" to aicasm_scan.l and aicasm_macro_scan.l, so no
unneeded input functions will be emitted.

Spotted by: arundel

git-svn-id: svn://svn.freebsd.org/base/stable/9@229101 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228709, r228711 and r228723:
hselasky [Sat, 31 Dec 2011 14:33:15 +0000 (14:33 +0000)]
MFC r228709, r228711 and r228723:
- Add missing unlock of USB controller's lock, when
doing shutdown, suspend and resume.
- Add code to wait for USB shutdown to be executed at system shutdown.
- Add sysctl which can be used to skip this waiting.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229100 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r227285:
hselasky [Sat, 31 Dec 2011 14:29:01 +0000 (14:29 +0000)]
MFC r227285:
Add support for new USB modem protocol.

PR:             usb/159919

git-svn-id: svn://svn.freebsd.org/base/stable/9@229099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228554:
dim [Sat, 31 Dec 2011 14:27:26 +0000 (14:27 +0000)]
MFC r228554:

In sys/contrib/ngatm/netnatm/msg/uni_ie.c, use a more appropriate way to
tell the compiler some parameters are purposefully unused.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228758:
hselasky [Sat, 31 Dec 2011 14:24:22 +0000 (14:24 +0000)]
MFC r228758:
Fix for race against user-space applications trying to change the
configuration on USB HUBs.

PR: kern/163091

git-svn-id: svn://svn.freebsd.org/base/stable/9@229097 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r229086, r228483 and r228640:
hselasky [Sat, 31 Dec 2011 14:22:02 +0000 (14:22 +0000)]
MFC r229086, r228483 and r228640:
Implement better support for USB controller suspend and resume.
Fix some build issues in avr32dci.c

git-svn-id: svn://svn.freebsd.org/base/stable/9@229096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228553:
dim [Sat, 31 Dec 2011 14:21:41 +0000 (14:21 +0000)]
MFC r228553:

In contrib/file/softmagic.c, fix a potential format string security
problem.  (This fix has already been applied upstream, but we do not
have the latest version of file in the tree at the moment.)

git-svn-id: svn://svn.freebsd.org/base/stable/9@229095 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

12 years agoMFC r228552:
dim [Sat, 31 Dec 2011 14:13:11 +0000 (14:13 +0000)]
MFC r228552:

  Define YY_NO_INPUT in lib/libipsec/policy_token.l, so lex's input()
  function does not get defined needlessly.

MFC r228555:

  In lib/libipsec/policy_token.l, use lex's standard "%option noinput"
  instead of hand-defining the YY_NO_INPUT macro.

git-svn-id: svn://svn.freebsd.org/base/stable/9@229094 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f