ƒ²h228504 193 412 107 154 462 186 374 784 150 119 154 534 188 260 847 778 399 518 159 129 233 115 369 111 121 153 265 360 173 166 135 266 327 1130 363 450 655 318 353 191 239 172 437 257 321 224 226 433 159 222 309 244 229 244 238 313 208 280 997 870 141 218 115 171 228 194 266 133 1391 322 284 285 133 156 122 245 356 355 265 253 289 241 312 193 205 312 209 218 98 216 328 153 153 195 256 194 236 391 225 205 270 200 255 387 157 1881 303 250 202 283 388 261 248 241 162 251 308 131 415 157 187 208 246 195 372 191 173 150 536 187 549 154 287 674 133 166 196 195 270 216 197 461 321 326 244 465 266 230 210 312 189 246 254 236 300 238 199 195 242 224 216 209 328 143 237 276 302 253 209 212 194 198 177 116 173 239 238 309 248 226 171 181 258 584 177 135 208 128 114 122 181 504 172 190 K 10 svn:author V 3 raj K 8 svn:date V 27 2011-12-14T17:12:59.484723Z K 7 svn:log V 319 Make *intr{cnt,names} on ARM reside in data section, similar to other arches. sintrnames and sintrcnt are initialized with non-zero values, which were discarded by the .bss directive, so consumers like "vmstat -i" were not getting correct data. Submitted by: Lukasz Plachno Obtained from: Semihalf MFC after: 1 month END K 10 svn:author V 4 joel K 8 svn:date V 27 2011-12-14T19:48:21.724735Z K 7 svn:log V 14 Add SEE ALSO. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-12-14T20:57:41.227083Z K 7 svn:log V 58 Increase fixed static buffer sizes and maximum hunk size. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2011-12-14T22:04:14.925626Z K 7 svn:log V 369 Merge ext2_readwrite.c into ext2_vnops.c as done in UFS in r101729. This removes the obfuscations mentioned in ext2_readwrite and places the clustering funtion in a location similar to other UFS-based implementations. No performance or functional changeses are expected from this move. PR: kern/159232 Suggested by: bde Approved by: jhb (mentor) MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-12-14T22:14:05.258874Z K 7 svn:log V 89 Improve fix for random USB transfer time out. Suggested by: YougHyeon MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-14T22:22:19.212617Z K 7 svn:log V 281 Add a helper API to allow in-kernel code to map portions of shared memory objects created by shm_open(2) into the kernel's address space. This provides a convenient way for creating shared memory buffers between userland and the kernel without requiring custom character devices. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-12-14T22:26:39.813892Z K 7 svn:log V 688 Fix select/poll/kqueue for write on reverse direction before first write. The reverse direction of a pipe is lazily allocated on the first write in that direction (because pipes are usually used in one direction only). A special case is needed to ensure the pipe appears writable before the first write because there are 0 bytes of pending data in 0 bytes of buffer space at that point, leaving 0 bytes of data that can be written with the normal code. Note that the first write returns [ENOMEM] if kern.ipc.maxpipekva is exceeded and does not block or return [EAGAIN], so selecting true for write is correct even in that case. PR: kern/93685 Submitted by: gianni MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-12-14T23:22:40.861033Z K 7 svn:log V 54 Reflect the move of eventtimers(7) to eventtimers(4). END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-12-14T23:26:48.689122Z K 7 svn:log V 24 Add a test for r228510. END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-12-14T23:57:47.783234Z K 7 svn:log V 62 Create large page mappings in pmap_map(). MFC after: 6 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-15T00:52:30.200298Z K 7 svn:log V 438 Modify the ACL code slightly to support a few nifty things: * Call it before sending probe responses, so the ACL code has the chance to reject sending them. * Pass the whole frame to the ACL code now, rather than just the destination MAC - that way the ACL module can look at the frame contents to determine what the response should be. This is part of some uncommitted work to support band steering. Sponsored by: Hobnob, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-15T00:54:11.112021Z K 7 svn:log V 93 Use the correct RF version probe routine. Obtained from: Atheros Sponsored by: Hobnob, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-15T00:55:27.799766Z K 7 svn:log V 164 Print out the radio RF version at startup, so I can better see which RF frontend versions people have when they submit problem reports. Sponsored by: Hobnob, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-15T00:59:11.683007Z K 7 svn:log V 751 Add the 11n chipset RF frontends to the linker set, even though they're not attached this way. The AR5212 based NICs have a variety of RF frontends, so there's a linker set which the AR5212 attach routine calls. The same framework is used for the AR5416 and later but as there's a fixed RF frontend for each 11n NIC, it is just directly attached. However in the case of compiling a cut down HAL (eg _just_ AR9130 WMAC support), the linker set ends up being empty and this causes the compile to fail. So this is just a workaround for that - it means those users who wish an 11n only HAL can compile the 11n chipsets and RF frontend they need, and just "ath_ar5212" for the AR5212/AR5416 common code, and it'll just work. Sponsored by: Hobnob, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-15T01:03:49.202408Z K 7 svn:log V 682 Re-jiggle the GPIO code a little to remove the hard-coded AR71xx GPIO config and function mask setup. * "gpiomask" now specifies which GPIO pins to enable, for devices to bind to. * "function_set" allows bits in the function register to be set at GPIO setup. * "function_clear" allows bits in the function register to be cleared at GPIO setup. The function_set/function_clear bits allow for individual GPIO pins to either drive a GPIO line or an alternate function - eg USB, JTAG, etc. This allows for things like CS1/CS2 be enabled for those boards w/ >1 SPI device connected, or disabling JTAG for the AR7240 (which is apparently needed ..) I've verified this on the AR71xx. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-12-15T01:05:38.209027Z K 7 svn:log V 303 * Add in the gpio/gpioled drivers into AR91XX_BASE. * Add in a default GPIO section for AR91XX_BASE.hints, which doesn't define the GPIO function masks or any GPIO pines. * Add in the GPIO line definitions for LEDs and GPIO pins for the TP-WR1043nd. I've verified the LEDs work fine using gpioset. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-12-15T02:26:53.831074Z K 7 svn:log V 421 Honor NFSv3 commit call (RFC 1813, Section 3.3.21) where when count is 0, the full length from offset is being flushed. Note that for now VOP_FSYNC does not support offset and length parameters so we still do the same full VOP_FSYNC. This issue was reported at FreeNAS support site as FreeNAS ticket #1096. Submitted by: "ceckerle" Prodded by: gcooper Reviewed by: rmacklem MFC after: 2 weeks END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-12-15T03:13:23.592949Z K 7 svn:log V 66 job make: if stdout is a tty create a pty when running a command. END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-12-15T05:07:16.872273Z K 7 svn:log V 37 Eliminate vestiges of page coloring. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-12-15T06:01:06.266221Z K 7 svn:log V 139 Add job error output test. make(1) with openpty() currently fails this test: there's a race condition and error output is sometimes lost. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-12-15T06:12:43.507599Z K 7 svn:log V 22 Fix last-minute typo. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2011-12-15T06:25:19.190596Z K 7 svn:log V 275 Revert r228521: sometimes job output is lost (see tools/regression/usr.bin/make/execution/joberr test). openpty(fd + 0, fd + 1,...) version does not have this problem but it sometimes enters an infinite sleep in "ttywait" state in tty_drain() when make(1) closes slave pty. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-12-15T06:29:13.987089Z K 7 svn:log V 17 s/timout/timeout END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-15T11:15:23.096675Z K 7 svn:log V 25 Add RADIX_MPATH to LINT. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2011-12-15T11:16:41.224750Z K 7 svn:log V 56 Small style(9) improvements. Approved by: dim (mentor) END K 10 svn:author V 8 theraven K 8 svn:date V 27 2011-12-15T11:21:56.681059Z K 7 svn:log V 167 Add a pointless and superfluous GNUism that people at a certain large data aggregation and advertising company seem to believe is standard. Approved by: dim (mentor) END K 10 svn:author V 3 raj K 8 svn:date V 27 2011-12-15T12:14:15.252502Z K 7 svn:log V 267 ARM pmap fixes: - Write Buffers have to be drained after write to Page Table even if caches are in write-through mode. - Make sure to sync PTE in pmap_zero_page_generic(). Submitted by: Michal Mazur Reviewed by: cognet Obtained from: Semihalf MFC after: 1 month END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-12-15T12:35:03.745527Z K 7 svn:log V 78 Fix a bug where sctp_sendmdg() uses uninitialized memory. MFC after: 3 days. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-15T12:49:10.930354Z K 7 svn:log V 70 Simplify rtrequest(RTM_ADD): ifa can't be NULL after rt_getifa_fib(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-15T15:17:19.284891Z K 7 svn:log V 43 Use vm_mmap_to_errno(). Submitted by: kib END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-15T16:39:48.163564Z K 7 svn:log V 173 MFC 225168: If a drive is not part of the array (i.e. missing) we need to print the new line after the pd state information as well, so move it to the outside of the block. END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-12-15T17:54:23.893185Z K 7 svn:log V 234 Simplify the implementation of the identity mapping in start_all_aps(). Since mpboot.s enables processor support for PG_PS before enabling paging, there is no reason that the identity must use 4 KB page mappings. Discussed with: jhb END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T19:42:25.750404Z K 7 svn:log V 1036 The TCB_GET32() and TCB_GET64() macros in the i386 and amd64-specific versions of pthread_md.h have a special case of dereferencing a null pointer. Clang warns about this with: In file included from lib/libthr/arch/i386/i386/pthread_md.c:36: lib/libthr/arch/i386/include/pthread_md.h:96:10: error: indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference] return (TCB_GET32(tcb_self)); ^~~~~~~~~~~~~~~~~~~ lib/libthr/arch/i386/include/pthread_md.h:73:13: note: expanded from: : "m" (*(u_int *)(__tcb_offset(name)))); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/libthr/arch/i386/include/pthread_md.h:96:10: note: consider using __builtin_trap() or qualifying pointer with 'volatile' Since this indirection is done relative to the fs or gs segment, to retrieve thread-specific data, it is an exception to the rule. Therefore, add a volatile qualifier to tell the compiler we really want to dereference a zero address. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T20:10:12.309605Z K 7 svn:log V 270 Remove meaningless self-assignment in res_send.c, otherwise clang will warn about it. I guess this was originally done to silence a bogus warning by an older version of gcc, but I could not reproduce it with any version of gcc that I have access to. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T20:27:36.750989Z K 7 svn:log V 357 In lib/libc/rpc/crypt_client.c, fix a clang warning about an implicit conversion between enum desdir/desmode from include/rpc/des.h, and enum desdir/desmode from include/rpcsvc/crypt.x. These are actually different enums, with different value names, but by accident the integer representation of the enum values happened to be the same. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2011-12-15T20:31:18.429697Z K 7 svn:log V 562 Bring in reallocblk to ext2fs. The feature has been standard for a while in UFS as a means to reduce fragmentation, therefore maintaining consistent performance with filesystem aging. This is also very similar to what ext4 calls "delayed allocation". In his 2010 GSoC, Zheng Liu ported and benchmarked the missing FANCY_REALLOC code to find more consistent performance improvements than with the preallocation approach. PR: 159233 Author: Zheng Liu Sponsored by: Google Inc. Approved by: jhb (mentor) MFC after: 2 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T20:40:11.121051Z K 7 svn:log V 225 Since clang does not support the tls_model attribute used in malloc.c yet (see LLVM PR 9788), and warns about it, rub it out for now. When clang grows support for this attribute, I will revert this again. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-12-15T21:06:37.733680Z K 7 svn:log V 260 - Put one file into one line. This makes keeping local changes and merging with FreeBSD easier for vendors. - For optional files use variables starting with underscore. Both changes make rc.d/Makefile look similar to sys/modules/Makefile. Reviewed by: dim END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-12-15T22:01:34.288264Z K 7 svn:log V 99 Remove redundant setting of the error variable. Found by: Clang Static Analyzer MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-12-15T22:03:17.836300Z K 7 svn:log V 146 Simplify code by changing functions types from int to avoid, as the functions always return 0. Found by: Clang Static Analyzer MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-12-15T22:05:23.979491Z K 7 svn:log V 80 Remove redundant assignment. Found by: Clang Static Analyzer MFC after: 1 week END K 10 svn:author V 4 bapt K 8 svn:date V 27 2011-12-15T22:07:36.386661Z K 7 svn:log V 343 Modify pw_copy: - if pw is NULL and oldpw is not NULL then the oldpw is deleted - if pw->pw_name != oldpw->pw_name but pw->pw_uid == oldpw->pw_uid then it renames the user add new gr_* functions so now gr_util API is similar to pw_util API, this allow to manipulate groups in a safe way. Reviewed by: des Approved by: des MFC after: 1 month END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T22:08:08.077475Z K 7 svn:log V 164 Clang has more warnings enabled by default, and when using -Wall, so if WARNS is set to low values, some of them have to be disabled explicitly. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T22:10:27.006000Z K 7 svn:log V 228 Cast away a clang alignment warning in drti.c's fixsymbol() function. This code only runs on i386 and amd64, so there should be no problems if buf + sec->dofs_offset is not aligned (which is unlikely anyway). MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T22:37:33.363761Z K 7 svn:log V 131 In cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c, use the correct printf format for an unsigned long. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T22:46:04.772765Z K 7 svn:log V 133 In cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c, use the correct printf format for a key_t (aka long). MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T23:06:46.166042Z K 7 svn:log V 340 In cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c, the dt_popc() function assumes that either _ILP32 or _LP64 is defined, otherwise it has no suitable implementation. However, the _ILP32 and _LP64 macros come from isa_defs.h, which is not included in this file. Add the include now, to get the macros defined. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T23:13:57.498628Z K 7 svn:log V 67 Disable one more clang warning when WARNS <= 3. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T23:22:24.834683Z K 7 svn:log V 129 Define YY_NO_INPUT in lib/libipsec/policy_token.l, so lex's input() function does not get defined needlessly. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T23:28:17.371752Z K 7 svn:log V 216 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.) MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-15T23:47:36.271596Z K 7 svn:log V 151 In sys/contrib/ngatm/netnatm/msg/uni_ie.c, use a more appropriate way to tell the compiler some parameters are purposefully unused. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T00:01:19.723834Z K 7 svn:log V 136 In lib/libipsec/policy_token.l, use lex's standard "%option noinput" instead of hand-defining the YY_NO_INPUT macro. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T00:04:28.622463Z K 7 svn:log V 151 Add "%option noinput" to aicasm_scan.l and aicasm_macro_scan.l, so no unneeded input functions will be emitted. Spotted by: arundel MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T00:13:43.216319Z K 7 svn:log V 145 In lib/libpmc/libpmc.c, struct pmc_cputype_map's pm_cputype field should be of type 'enum pmc_cputype', not 'enum pmc_class'. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T00:39:44.746449Z K 7 svn:log V 220 Unfortunately, clang gives a warning 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T00:48:53.176448Z K 7 svn:log V 115 In contrib/telnet/libtelnet/sra.c, use the correct number of bytes to zero the password buffer. MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-12-16T00:58:41.736657Z K 7 svn:log V 182 Patch the new NFS server in a manner analagous to r228520 for the old NFS server, so that it correctly handles a count == 0 argument for Commit. PR: kern/118126 MFC after: 2 weeks END K 10 svn:author V 2 np K 8 svn:date V 27 2011-12-16T02:09:51.820055Z K 7 svn:log V 905 Many updates to cxgbe(4) - Device configuration via plain text config file. Also able to operate when not attached to the chip as the master driver. - Generic "work request" queue that serves as the base for both ctrl and ofld tx queues. - Generic interrupt handler routine that can process any event on any kind of ingress queue (via a dispatch table). - A couple of new driver ioctls. cxgbetool can now install a firmware to the card ("loadfw" command) and can read the card's memory ("memdump" and "tcb" commands). - Lots of assorted information within dev.t4nex.X.misc.* This is primarily for debugging and won't show up in sysctl -a. - Code to manage the L2 tables on the chip. - Updates to cxgbe(4) man page to go with the tunables that have changed. - Updates to the shared code in common/ - Updates to the driver-firmware interface (now at fw 1.4.16.0) MFC after: 1 month END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-12-16T08:22:23.686898Z K 7 svn:log V 778 Process a lot of feedback from bde@ on : - Add __alignof() for non-GCC and GCC < 2.95. - Simply implement the C1X keywords on top of the existing __macros. - Add struct __hack to _Static_assert to require consumers to add a semicolon. - Add an extra underscore to __assert_ to allow it to be combined with locally defined versions of CTASSERT in the tree. - Add proper casts to __offsetof() to make it work for cases where sizeof(size_t) != sizeof(uintptr_t). - Globally replace size_t and uintptr_t by __size_t and __uintptr_t. This removes the dependency on / . Practically any header file ends up including somehow. - Change argument names of macros to match with the rest of the file. MFC after: 3 months END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-16T08:27:04.757098Z K 7 svn:log V 45 Fix my braino in description of RADIX_MPATH. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-12-16T09:56:22.652308Z K 7 svn:log V 126 Fix typo in macro. I copied this macro directly from Bruce's email, as I assumed it was awesome already. Reported by: tijl@ END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-16T10:14:41.070008Z K 7 svn:log V 19 Xref re_format(7). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-16T10:21:01.023205Z K 7 svn:log V 75 Xref re_format(7) in devd.conf(5), not in devd(8). Pointy hat to: glebius END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-12-16T10:56:16.597639Z K 7 svn:log V 135 Move kstack_cache_entry into the private header, and make the stack cache list header accessible outside vm_glue.c. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-12-16T11:42:50.346285Z K 7 svn:log V 101 Show the thread kernel stack base address for 'show threads'. Discussed with: pho MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-12-16T11:44:20.473754Z K 7 svn:log V 173 Add 'findstack' ddb command to search either the thread kernel stack or cached stack containing the specified kernel virtual address. Discussed with: pho MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-12-16T11:52:33.365044Z K 7 svn:log V 41 Document 'findstack'. MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-16T12:16:56.312571Z K 7 svn:log V 1293 A major overhaul of the CARP implementation. The ip_carp.c was started from scratch, copying needed functionality from the old implemenation on demand, with a thorough review of all code. The main change is that interface layer has been removed from the CARP. Now redundant addresses are configured exactly on the interfaces, they run on. The CARP configuration itself is, as before, configured and read via SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or SIOCAIFADDR_IN6 may now be configured to a particular virtual host id, which makes the prefix redundant. ifconfig(8) semantics has been changed too: now one doesn't need to clone carpXX interface, he/she should directly configure a vhid on a Ethernet interface. To supply vhid data from the kernel to an application the getifaddrs(8) function had been changed to pass ifam_data with each address. [1] The new implementation definitely closes all PRs related to carp(4) being an interface, and may close several others. It also allows to run a single redundant IP per interface. Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for idea on using ifam_data and for several rounds of reviewing! PR: kern/117000, kern/126945, kern/126714, kern/120130, kern/117448 Reviewed by: bz Submitted by: bz [1] END K 10 svn:author V 2 se K 8 svn:date V 27 2011-12-16T12:42:02.674617Z K 7 svn:log V 230 Fix format string Z --> z, since the former is a deprecated and (in FreeBSD) unsupported form of the latter. This change has been reviewed and accepted in the -hackers list. Submitted by: Alexander Best Reviewed by: David Schulz END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-12-16T12:53:15.352090Z K 7 svn:log V 191 MFC: r228360 Move cpu_set_upcall(newtd, td) up before the first call of thread_free(newtd). This to avoid a possible page fault in cpu_thread_clean() as seen on amd64 with syscall fuzzing. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-16T13:30:17.098507Z K 7 svn:log V 188 Since size of struct in_aliasreq has just been changed in r228571, and thus ifconfig(8) needs recompile, it is a good chance to make parameter checks on SIOCAIFADDR arguments more strict. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-12-16T14:19:46.475782Z K 7 svn:log V 41 Some formatting fixes. Submitted by: ru END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-16T14:28:34.468638Z K 7 svn:log V 60 - Rename if_carp.ko to carp.ko. - carp.ko depends on sha1.c END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-12-16T14:30:58.713133Z K 7 svn:log V 26 Rename ifcarp.c to carp.c END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T15:00:56.556855Z K 7 svn:log V 152 In lib/libthread_db/arch/i386/libpthread_md.c, clang gives two incorrect warnings about alignment, so turn -Wcast-align off for now. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T15:04:47.204995Z K 7 svn:log V 263 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. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T15:12:42.104666Z K 7 svn:log V 262 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. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T15:38:11.578515Z K 7 svn:log V 172 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. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T15:44:12.335851Z K 7 svn:log V 160 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. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2011-12-16T15:47:43.816850Z K 7 svn:log V 196 Style cleanups by jh@. Fix a comment from the previous commit. Use M_ZERO instead of bzero() in ext2_vfsops.c Add include guards from PR. PR: 162564 Approved by: jhb (mentor) MFC after: 2 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T15:55:43.368042Z K 7 svn:log V 148 In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf length modifier for the difference between two pointers. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T15:58:38.331093Z K 7 svn:log V 219 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T16:07:39.159248Z K 7 svn:log V 100 In libexec/pppoed/pppoed.c, use the correct printf length modifier for a size_t. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T16:29:51.338452Z K 7 svn:log V 112 In libexec/rbootd/utils.c, use the correct printf length modifiers for u_int32_t and size_t. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T16:32:08.043377Z K 7 svn:log V 219 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T16:53:54.836189Z K 7 svn:log V 116 In contrib/telnet/telnetd/utility.c, fix a few warnings about format strings not being literals. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T17:02:25.981853Z K 7 svn:log V 125 Fix typos in the comments about clang warnings in several sendmail-related Makefiles. Spotted by: arundel MFC after: 1 week END K 10 svn:author V 6 andrew K 8 svn:date V 27 2011-12-16T19:38:31.332762Z K 7 svn:log V 4 MFC END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T19:39:49.815643Z K 7 svn:log V 123 Attempt to fix the numerous incompatible enum conversions in libexec/ypxfr in the least disruptive way. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-12-16T20:10:00.788567Z K 7 svn:log V 235 Fire a kevent if necessary after seeking on a regular file. This fixes a case where a kevent would not fire on a regular file if an application read to EOF and then seeked backwards into the file. Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 2 np K 8 svn:date V 27 2011-12-16T20:38:22.523228Z K 7 svn:log V 62 Catch up with new driver ioctls in cxgbe. MFC after: 1 month END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T21:12:23.137520Z K 7 svn:log V 61 Fix some obtuse fprintf tricks in bin/ed. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T21:24:11.406946Z K 7 svn:log V 102 In games/factor/factor.c, fix a warning about a format string not being a literal. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T21:29:46.358993Z K 7 svn:log V 163 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. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T21:48:09.739903Z K 7 svn:log V 101 In cddl/contrib/opensolaris/cmd/dtrace/dtrace.c, fix some obtuse snprintf tricks. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T21:57:44.543032Z K 7 svn:log V 143 Revert r228592, as the non-messy way of fixing ypxfr breaks other yp programs (e.g. usr.sbin/rpc.yppasswdd). Spotted by: np MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T22:05:10.383243Z K 7 svn:log V 298 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). MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T22:19:13.202331Z K 7 svn:log V 132 Define YY_NO_INPUT when building libbinutils, to prevent warnings about unused input() functions emitted by lex. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T22:35:19.896363Z K 7 svn:log V 112 In sbin/camcontrol/camcontrol.c, fix a few warnings about format strings not being literals. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T23:09:31.429924Z K 7 svn:log V 177 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 after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T23:15:11.700815Z K 7 svn:log V 107 In contrib/gperf/src/output.cc, use the correct printf length modifier for a ptrdiff_t. MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-12-16T23:40:56.905915Z K 7 svn:log V 154 Zero BSS on start, in case the ELF loader that started the kernel did not do this for us. This can happen on some embedded systems. Submitted by: rpaulo END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T23:42:25.526991Z K 7 svn:log V 294 Add a NO_WARRAY_BOUNDS setting to bsd.sys.mk, only applicable to clang, to selectively work around warnings in programs that don't use flexible array members, but instead define arrays of length 1 at the end of the struct, and then access those beyond their declared bounds. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-16T23:43:58.281483Z K 7 svn:log V 65 Use NO_WARRAY_BOUNDS for sbin/routed/rtquery. MFC after: 1 week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-12-16T23:44:16.239191Z K 7 svn:log V 1785 MFC: r179530 - Replace rcsid with __FBSDID. - Remove paths.h and embed it in the source. - Remove stale alpha support. - Clean up compiler warnings and fix style(9) bugs. Not MFC'ed by: jkim MFC: r195339 Add a new options (-s) that, when specified, skips the question about adjusting the clock to UTC. That avoids to write on /etc/wall_cmos_clock which is useful in some cases (example: host user in a jail). Not MFC'ed by: attilio MFC: r198254 When tzsetup is run as non-root and the "CMOS clock question on UTC" is answered as No, it would abort without properly ending the dialog session. Not MFC'ed by: edwin MFC: r198267 Instead of having to know which timezone was picked last time, you now can run "tzsetup -r" which will reinstall the last choice. This data is recorded in /var/db/zoneinfo. Not MFC'ed by: edwin MFC: r198350 - Add support for chrooted installs. - Add examples to the man-page. Not MFC'ed by: edwin MFC: r208830 When there is a problem with writing, also bail out. Not MFC'ed by: edwin MFC: r208831 Add comment that this value is unused. It is obvious that it isn't used, but both clang and Coverity talk about it. Not MFC'ed by: edwin MFC: r209190 Use literal format strings. Found by clang. Not MFC'ed by: emaste MFC: r210243 Fix support for chrooted installs. Not MFC'ed by: nork While mentored by: imp MFC: r220172 Add a menu entry for UTC in the main menu. Not MFC'ed by: edwin MFC: r222139 - add missing options and arguments to program's usage() and sync it with manpage's SYNOPSIS - generally clean up a manpage's formatting Not MFC'ed by: ru MFC: r227011 If the user is moving from any other time zone to UTC we need to delete any old /var/db/zoneinfo file that may exist so that tzsetup -r does the right thing. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-12-16T23:46:05.895890Z K 7 svn:log V 202 Allow this to work on embedded systems without Open Firmware by making lack of a /chosen non-fatal, and manually removing memory in use by the kernel from the physical memory map. Submitted by: rpaulo END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T00:14:40.921360Z K 7 svn:log V 157 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. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T00:26:45.357089Z K 7 svn:log V 109 In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings not being literals. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T00:54:09.910041Z K 7 svn:log V 190 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. MFC after: 1 week END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2011-12-17T01:02:56.825725Z K 7 svn:log V 292 Merge in changes from kan@ 1. do not allow any requests until bus reset is done and we know node IDs 2. Do not set fc_status before fwohci_task_sid actually runs 3. When alocating dma blocks, use proper alignment, not whole block size, which is hardly ever multiple of 2 Submitted by: kan@ END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T01:19:07.767467Z K 7 svn:log V 168 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 after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T01:29:46.302276Z K 7 svn:log V 155 In sbin/dhclient, since we know the size of the source strings anyway, we might as well use memcpy; strlcpy is really unnecessary here. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T01:36:50.937808Z K 7 svn:log V 148 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. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T01:51:12.871233Z K 7 svn:log V 70 Disable yet another clang warning when WARNS <= 3. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T01:54:51.029352Z K 7 svn:log V 158 In sbin/devd/devd.h, 'event_proc' and 'eps' are declared as structs. In devd.hh, there are redeclared as classes. Fix the inconsistency. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T02:23:30.370596Z K 7 svn:log V 215 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. MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-12-17T06:57:35.822059Z K 7 svn:log V 40 Fixed some of markup. Reviewed by: jhb END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-12-17T10:23:17.409202Z K 7 svn:log V 317 Fix some net80211 enum nits: - ic_vap_create() uses an ieee80211_opmode argument - ieee80211_rate2media() takes an ieee80211_phymode argument - ieee80211_plcp2rate() takes an ieee80211_phytype argument - cast to enum ieee80211_protmode and ieee80211_roamingmode to silence compiler warnings Submitted by: arundel@ END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-12-17T10:32:31.072290Z K 7 svn:log V 60 Remove now redundant mac argument. Discussed with: adrian@ END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-12-17T11:06:22.563772Z K 7 svn:log V 96 Adter r228571 unbreak architectures with strict alignment rules by copying rather than casting. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T12:52:58.662638Z K 7 svn:log V 115 In contrib/bzip2/bzip2recover.c, use the correct printf length modifier for unsigned long long. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T13:14:44.640751Z K 7 svn:log V 153 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 after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T13:52:53.388926Z K 7 svn:log V 102 In usr.bin/csup/proto.c, use the correct printf length modifier to print an off_t. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T14:26:16.744604Z K 7 svn:log V 279 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. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T14:37:41.788184Z K 7 svn:log V 99 In usr.bin/gprof/aout.c, use the correct printf length modifier for a uint32_t. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T14:51:24.839768Z K 7 svn:log V 81 More fixes for correct printf length modifiers usr.bin/gprof. MFC after: 1 week END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-12-17T14:55:19.863231Z K 7 svn:log V 55 Address warnings found by clang. MFC after: 3 months. END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-17T15:08:43.528659Z K 7 svn:log V 443 kern cons: introduce infrastructure for console grabbing by kernel At the moment grab and ungrab methods of all console drivers are no-ops. Current intended meaning of the calls is that the kernel takes control of console input. In the future the semantics may be extended to mean that the calling thread takes full ownership of the console (e.g. console output from other threads could be suspended). Inspired by: bde MFC after: 2 months END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-17T15:11:22.506188Z K 7 svn:log V 95 introduce cngrab/cnungrab stub calls in some places where they make sense MFC after: 2 months END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-17T15:16:54.622612Z K 7 svn:log V 456 introduce cngets, a method for kernel to read a string from console This is intended as a replacement for libkern's gets and mostly borrows its implementation. It uses cngrab/cnungrab to delimit kernel's access to console input. Note: libkern's gets obviously doesn't share any bits of implementation iwth libc's gets. They also have different APIs and the former doesn't have the overflow problems of the latter. Inspired by: bde MFC after: 2 months END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-17T15:26:34.799871Z K 7 svn:log V 62 replace uses of libkern gets with cngets MFC after: 2 months END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-12-17T15:31:00.180043Z K 7 svn:log V 186 Fix RTLD on PowerPC after r228435. Changing the order of init_pltgot() caused the icache to be invalidated at the wrong time, resulting in an icache full of nonsense in the PLT section. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T15:33:26.478022Z K 7 svn:log V 581 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. MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-12-17T15:38:16.214784Z K 7 svn:log V 39 Another axe(4), found in ASUS zenbook. END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-17T15:39:14.884719Z K 7 svn:log V 74 move GETS_*ECHO* defintions from libkern.h to cons.h MFC after: 2 months END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T15:41:58.407002Z K 7 svn:log V 103 In usr.bin/indent/io.c, fix a few warnings about format strings not being literals. MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-12-17T15:42:37.515510Z K 7 svn:log V 103 Unbreak the OCTEON1 kernel build after r228483 removing the left over declaration. MFC after: 11 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-12-17T15:44:34.146723Z K 7 svn:log V 178 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 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-17T15:48:55.037905Z K 7 svn:log V 123 retire libkern gets Inspired by: bde MFC after: 2 months X-MFC-Note: if deemed a part of KPI, just call cngets internally END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-17T15:50:45.306460Z K 7 svn:log V 104 belatedly transfer copyrights from libkern/gets.c to kern_cons.c MFC after: 2 months MFC with: r228642 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-12-17T15:57:39.461678Z K 7 svn:log V 368 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T16:10:14.820179Z K 7 svn:log V 228 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 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-12-17T16:20:27.010907Z K 7 svn:log V 225 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T16:30:42.028067Z K 7 svn:log V 151 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 END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-12-17T16:59:22.565665Z K 7 svn:log V 368 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T17:04:30.106405Z K 7 svn:log V 173 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T17:21:47.242617Z K 7 svn:log V 137 In usr.bin/netstat/atalk.c, work around a clang false positive with printf format warnings and conditional operators. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T18:18:36.351047Z K 7 svn:log V 117 In contrib/telnet/telnet/utilities.c, fix a few warnings about format strings not being literals. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T18:39:04.737152Z K 7 svn:log V 219 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 END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-12-17T19:21:40.951833Z K 7 svn:log V 94 Fix unused parameter warnings. While there, fix some whitespace issues. MFC after: 3 months. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T19:22:24.060131Z K 7 svn:log V 153 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T19:26:03.671780Z K 7 svn:log V 161 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T19:33:26.792240Z K 7 svn:log V 143 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T19:53:08.280946Z K 7 svn:log V 207 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T19:58:48.397258Z K 7 svn:log V 145 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T20:07:42.349062Z K 7 svn:log V 106 In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width parameter to int. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T20:12:17.546631Z K 7 svn:log V 102 In usr.sbin/i2c/i2c.c, fix a few warnings about format strings not being literals. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T20:25:23.637332Z K 7 svn:log V 149 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T20:53:06.092882Z K 7 svn:log V 131 In usr.sbin/keyserv, fix some implicit enum conversions, and use the correct printf length modifiers for uid_t. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T21:37:21.954665Z K 7 svn:log V 123 In usr.sbin/lpr/filters/lpf.c, use a less obtuse way of clearing the buffer, that also avoids warnings. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T22:05:28.924330Z K 7 svn:log V 116 In usr.sbin/lpr/lpd/printjob.c, use the correct printf length modifiers for off_t (aka int64_t). MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T22:16:27.165199Z K 7 svn:log V 235 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 END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-12-17T22:18:26.926096Z K 7 svn:log V 47 Fix style and white spaces. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T22:20:46.787239Z K 7 svn:log V 144 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T22:32:00.925236Z K 7 svn:log V 183 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 END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-12-17T23:18:14.050850Z K 7 svn:log V 206 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T23:35:46.771351Z K 7 svn:log V 160 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T23:39:13.502094Z K 7 svn:log V 116 In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format strings not being literals. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T23:43:40.610548Z K 7 svn:log V 119 In contrib/pnpinfo/pnpinfo.c, remove an extraneous parameter from the call to isolation_protocol(). MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-17T23:46:47.426133Z K 7 svn:log V 101 In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a ptrdiff_t. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T00:03:03.163534Z K 7 svn:log V 105 In usr.sbin/route6d/route6d.c, use the correct printf length modifier for an ssize_t. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T00:24:11.554463Z K 7 svn:log V 85 Disable yet another clang warning (-Wconversion) when WARNS <= 3. MFC after: 1 week END K 10 svn:author V 3 lev K 8 svn:date V 27 2011-12-18T00:31:06.837712Z K 7 svn:log V 24 Merge r228674 from head END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T00:34:42.974312Z K 7 svn:log V 81 Disable another clang warning (-Wempty-body) when WARNS <= 2. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T00:40:30.956008Z K 7 svn:log V 146 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T00:44:59.198953Z K 7 svn:log V 145 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T00:55:46.488526Z K 7 svn:log V 216 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T01:08:25.306614Z K 7 svn:log V 155 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T01:13:21.866739Z K 7 svn:log V 133 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 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T01:14:38.983505Z K 7 svn:log V 79 Forgot to add usr.sbin/sade/label.c in the previous commit. MFC after: 1 week END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2011-12-18T02:10:25.761295Z K 7 svn:log V 86 Via some prodding, branch the module build dir into there as well Suggested by: kan@ END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-12-18T12:19:03.673938Z K 7 svn:log V 165 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 END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-12-18T12:27:45.546887Z K 7 svn:log V 491 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 END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-12-18T15:36:21.968919Z K 7 svn:log V 81 Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form. Reviewed by: kib END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-12-18T16:53:03.002137Z K 7 svn:log V 35 Add version header to output file. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-12-18T16:53:21.523105Z K 7 svn:log V 107 Support infrastructure for X11 on PS3. Submitted by: geoffrey dot levand at mail dot ru MFC after: 1 week END K 10 svn:author V 3 des K 8 svn:date V 27 2011-12-18T17:08:40.438302Z K 7 svn:log V 36 Vendor import of OpenPAM Lycopsida. END K 10 svn:author V 3 des K 8 svn:date V 27 2011-12-18T17:11:18.748129Z K 7 svn:log V 22 Tag OpenPAM Lycopsida END K 10 svn:author V 3 des K 8 svn:date V 27 2011-12-18T17:22:45.387479Z K 7 svn:log V 30 Upgrade to OpenPAM Lycopsida. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-12-18T17:42:26.404949Z K 7 svn:log V 89 Revert r228603, and add the workaround to sbin/fsdb/Makefile instead. MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-12-18T17:48:54.108643Z K 7 svn:log V 408 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). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-12-18T20:40:19.966502Z K 7 svn:log V 80 Don't use function name as format string. Detected by: clang MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-12-18T20:41:58.000997Z K 7 svn:log V 98 Use lex's standard way of not generating unused function. Inspired by: r228555 MFC after: 1 week END