Re: svn commit: r226454 - head/sys/netinet

2011-10-16 Thread Andre Oppermann
On 17.10.2011 02:16, Bjoern A. Zeeb wrote: On 17. Oct 2011, at 00:05 , Bjoern A. Zeeb wrote: Author: bz Date: Mon Oct 17 00:05:31 2011 New Revision: 226454 URL: http://svn.freebsd.org/changeset/base/226454 Log: Add syntactic sugar missed in r226437 and then not added either when moving th

svn commit: r226460 - head/lib/msun/man

2011-10-16 Thread David Schultz
Author: das Date: Mon Oct 17 06:10:32 2011 New Revision: 226460 URL: http://svn.freebsd.org/changeset/base/226460 Log: It's no longer accurate to say that math.h "constitute[s] the C math library," since complex.h, tgmath.h, and fenv.h are also part of the math library. Replace the outdated

svn commit: r226459 - head/sys/mips/mips

2011-10-16 Thread Jayachandran C.
Author: jchandra Date: Mon Oct 17 05:42:53 2011 New Revision: 226459 URL: http://svn.freebsd.org/changeset/base/226459 Log: Fix for crash on MIPS /dev/mem read. Reading /dev/mem in 64 bit kernel crashes. This is because the page used to call uiomove_fromphys() from memrw() does not have

svn commit: r226458 - in head: include lib/msun lib/msun/man lib/msun/src

2011-10-16 Thread David Schultz
Author: das Date: Mon Oct 17 05:41:03 2011 New Revision: 226458 URL: http://svn.freebsd.org/changeset/base/226458 Log: Add c{cos,sin,tan}{,h}{,f} functions. This is joint work with bde and kargl. Added: head/lib/msun/man/ccos.3 (contents, props changed) head/lib/msun/man/ccosh.3 (con

Re: svn commit: r226046 - in head: crypto/openssh crypto/openssh/openbsd-compat secure/usr.sbin/sshd

2011-10-16 Thread Doug Barton
On 10/12/2011 02:09, Bjoern A. Zeeb wrote: > Mergemaster brought up this change: Yay for showing changes. :) ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-u

Re: svn commit: r226454 - head/sys/netinet

2011-10-16 Thread Bjoern A. Zeeb
On 17. Oct 2011, at 00:05 , Bjoern A. Zeeb wrote: > Author: bz > Date: Mon Oct 17 00:05:31 2011 > New Revision: 226454 > URL: http://svn.freebsd.org/changeset/base/226454 > > Log: > Add syntactic sugar missed in r226437 and then not added either when moving > things around in r226448 but despe

svn commit: r226454 - head/sys/netinet

2011-10-16 Thread Bjoern A. Zeeb
Author: bz Date: Mon Oct 17 00:05:31 2011 New Revision: 226454 URL: http://svn.freebsd.org/changeset/base/226454 Log: Add syntactic sugar missed in r226437 and then not added either when moving things around in r226448 but desperately needed to always make things compile successfully. M

Re: svn commit: r226433 - head/sys/netinet

2011-10-16 Thread Andrey Chernov
On Sun, Oct 16, 2011 at 01:54:46PM +, Andre Oppermann wrote: > Author: andre > Date: Sun Oct 16 13:54:46 2011 > New Revision: 226433 > URL: http://svn.freebsd.org/changeset/base/226433 > > Log: > Update the comment and description of tcp_sendspace and tcp_recvspace > to better reflect thei

svn commit: r226453 - head/sys/netinet6

2011-10-16 Thread Qing Li
Author: qingli Date: Sun Oct 16 22:24:04 2011 New Revision: 226453 URL: http://svn.freebsd.org/changeset/base/226453 Log: The code change made in r226040 was incomplete and resulted in routes such as fe80::1%lo0 no being installed. This patch completes the original intended fix. Reviewe

svn commit: r226452 - head/sys/cddl/dev/dtrace

2011-10-16 Thread Marcel Moolenaar
Author: marcel Date: Sun Oct 16 22:18:08 2011 New Revision: 226452 URL: http://svn.freebsd.org/changeset/base/226452 Log: Define dtrace_cmpset_long in terms of atomic_cmpset_long and not by virtue of inline assembly. Now this file compiles on all supported architectures. Modified: head/sy

svn commit: r226451 - head/sys/netinet6

2011-10-16 Thread Qing Li
Author: qingli Date: Sun Oct 16 22:15:13 2011 New Revision: 226451 URL: http://svn.freebsd.org/changeset/base/226451 Log: The IPv6 code was influx at the time of r196865 due to the L2/L3 separation rewrite changes. r196865 was committed to fix a scope violation problem in the following test

svn commit: r226450 - head/lib/libutil

2011-10-16 Thread Pawel Jakub Dawidek
Author: pjd Date: Sun Oct 16 21:30:15 2011 New Revision: 226450 URL: http://svn.freebsd.org/changeset/base/226450 Log: In pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet) and the caller requested other process' PID by passing non-NULL pidptr argument, we will wait

svn commit: r226449 - in head: etc/devd share/man/man4/man4.powerpc sys/conf sys/dev/adb

2011-10-16 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 16 21:01:42 2011 New Revision: 226449 URL: http://svn.freebsd.org/changeset/base/226449 Log: Add support for special keys (volume/brightness/eject) on Apple laptops with ADB keyboards. Submitted by: Justin Hibbits MFC after:9.0-RELEASE Added: hea

svn commit: r226448 - head/sys/netinet

2011-10-16 Thread Andre Oppermann
Author: andre Date: Sun Oct 16 20:18:39 2011 New Revision: 226448 URL: http://svn.freebsd.org/changeset/base/226448 Log: Move the tcp_sendspace and tcp_recvspace sysctl's from the middle of tcp_usrreq.c to the top of tcp_output.c and tcp_input.c respectively next to the socket buffer autos

svn commit: r226447 - head/sys/netinet

2011-10-16 Thread Andre Oppermann
Author: andre Date: Sun Oct 16 20:06:44 2011 New Revision: 226447 URL: http://svn.freebsd.org/changeset/base/226447 Log: Remove the ss_fltsz and ss_fltsz_local sysctl's which have long been superseded by the RFC3390 initial CWND sizing. Also remove the remnants of TCP_METRICS_CWND which u

svn commit: r226446 - head/sys/netinet6

2011-10-16 Thread Hiroki Sato
Author: hrs Date: Sun Oct 16 19:46:52 2011 New Revision: 226446 URL: http://svn.freebsd.org/changeset/base/226446 Log: Fix a problem that an interface unexpectedly becomes IFF_UP by just doing "ifconfing inet6 -ifdisabled" when the interface has ND6_IFF_AUTO_LINKLOCAL flag and no link-local

svn commit: r226445 - head/usr.bin/look

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 19:23:43 2011 New Revision: 226445 URL: http://svn.freebsd.org/changeset/base/226445 Log: Add missing #include. Note to myself: don't write patches while watching a movie. Modified: head/usr.bin/look/look.c Modified: head/usr.bin/look/look.c =

svn commit: r226444 - head/usr.bin/look

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 19:15:25 2011 New Revision: 226444 URL: http://svn.freebsd.org/changeset/base/226444 Log: Don't cast SIZE_T_MAX to off_t. I focused so much on the 32-bits case where we have to cast SIZE_T_MAX up in size, that I forgot about the 64-bits case, where off_t and si

Re: svn commit: r226345 - in head: etc/rc.d sbin/dhclient; Re: svn commit: r225849 - head/etc

2011-10-16 Thread Bjoern A. Zeeb
On 13. Oct 2011, at 17:20 , Dag-Erling Smorgrav wrote: > Author: des > Date: Thu Oct 13 17:20:45 2011 > New Revision: 226345 > URL: http://svn.freebsd.org/changeset/base/226345 > > Log: > Make dhclient use a pid file. Modify the rc script accordingly; while > there, clean it up and add some er

Re: svn commit: r226436 - in head: . gnu/usr.bin/binutils/objcopy gnu/usr.bin/binutils/strip lib/libc/gen lib/libelf lib/libipsec lib/libpmc lib/msun/man libexec/rtld-elf/amd64 libexec/rtld-elf/i386 s

2011-10-16 Thread Doug Barton
On 10/16/2011 07:30, Eitan Adler wrote: > Author: eadler (ports committer) > Date: Sun Oct 16 14:30:28 2011 > New Revision: 226436 > URL: http://svn.freebsd.org/changeset/base/226436 > > Log: > - change "is is" to "is" or "it is" > - change "the the" to "the" > > Approved by:lstew

Re: svn commit: r226359 - head/usr.bin/look

2011-10-16 Thread Colin Percival
On 10/16/11 11:20, Ed Schouten wrote: > Hmmm... Casting to size_t is not the way to go, but off_t also should be > avoided. We can assume st_size is non-negative, so we should do > something like this, right? > > - if (sb.st_size > (off_t)SIZE_T_MAX) > + if ((uintmax_t)sb.s

Re: svn commit: r226359 - head/usr.bin/look

2011-10-16 Thread Ed Schouten
* Colin Percival , 20111016 19:21: > This might make look(1) build, but on a 64-bit machine it also makes > look(1) fail with "File too large" whenever it's larger than > (int64_t)(UINT64_MAX) = -1 bytes long. d'oh! Stupid signedness. I casted to off_t explicitl

svn commit: r226443 - head/sys/arm/include

2011-10-16 Thread Olivier Houchard
Author: cognet Date: Sun Oct 16 17:59:28 2011 New Revision: 226443 URL: http://svn.freebsd.org/changeset/base/226443 Log: Fix 2 bugs : - A race condition could happen if two threads were using RAS at the same time as the code didn't reset RAS_END, the RAS code could believe we were not in

Re: svn commit: r226359 - head/usr.bin/look

2011-10-16 Thread Colin Percival
On 10/14/11 00:24, Ed Schouten wrote: > Log: > Build look(1) with WARNS=6. > > - if (sb.st_size > SIZE_T_MAX) > + if (sb.st_size > (off_t)SIZE_T_MAX) > errx(2, "%s: %s", file, strerror(EFBIG)); This might make look(1) build, but on a 64-bit machine i

svn commit: r226442 - head/sys/dev/iicbus

2011-10-16 Thread Christian Brueffer
Author: brueffer Date: Sun Oct 16 17:38:20 2011 New Revision: 226442 URL: http://svn.freebsd.org/changeset/base/226442 Log: Revert r226398 and instead move the allocation of usrbufs after the error check. Suggested by: pjd MFC after:1 week Modified: head/sys/dev/iicbus/iic.c Modi

svn commit: r226441 - head/sys/arm/arm

2011-10-16 Thread Olivier Houchard
Author: cognet Date: Sun Oct 16 17:37:54 2011 New Revision: 226441 URL: http://svn.freebsd.org/changeset/base/226441 Log: Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the page has been allocated, or we could end up using random values, and bad things could happen.

Re: svn commit: r226398 - head/sys/dev/iicbus

2011-10-16 Thread Pawel Jakub Dawidek
On Sun, Oct 16, 2011 at 06:57:18PM +0200, Christian Brueffer wrote: > > I think that better fix is to move usrbufs allocation after copyin(), as > > usrbufs is not used there. > > > > Agreed, how about the attached patch? Looks good. > Index: iic.c > =

Re: svn commit: r226398 - head/sys/dev/iicbus

2011-10-16 Thread Christian Brueffer
On 10/16/11 17:46 , Pawel Jakub Dawidek wrote: On Sat, Oct 15, 2011 at 03:57:56PM +, Christian Brueffer wrote: Author: brueffer Date: Sat Oct 15 15:57:55 2011 New Revision: 226398 URL: http://svn.freebsd.org/changeset/base/226398 Log: Properly free resources in an error case. CID:

svn commit: r226440 - head/sbin/atm/atmconfig

2011-10-16 Thread Olivier Houchard
Author: cognet Date: Sun Oct 16 16:58:28 2011 New Revision: 226440 URL: http://svn.freebsd.org/changeset/base/226440 Log: Unbreak NO_DYNAMICROOT by explicitely linking to libcrypto if MK_OPENSSL isn't set to no, as libbsnmp needs it. Modified: head/sbin/atm/atmconfig/Makefile Modified: hea

svn commit: r226439 - head/usr.sbin/kbdmap

2011-10-16 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Oct 16 16:05:23 2011 New Revision: 226439 URL: http://svn.freebsd.org/changeset/base/226439 Log: Place quotes around the output of kbdmap(1), designed to be pasted into /etc/rc.conf. PR: bin/161711 Submitted by: manolis MFC after:1 week Modi

Re: svn commit: r226398 - head/sys/dev/iicbus

2011-10-16 Thread Pawel Jakub Dawidek
On Sat, Oct 15, 2011 at 03:57:56PM +, Christian Brueffer wrote: > Author: brueffer > Date: Sat Oct 15 15:57:55 2011 > New Revision: 226398 > URL: http://svn.freebsd.org/changeset/base/226398 > > Log: > Properly free resources in an error case. > > CID:4203 > Found with

svn commit: r226437 - head/sys/netinet

2011-10-16 Thread Andre Oppermann
Author: andre Date: Sun Oct 16 15:08:43 2011 New Revision: 226437 URL: http://svn.freebsd.org/changeset/base/226437 Log: VNET virtualize tcp_sendspace/tcp_recvspace and change the type to INT. A long is not necessary as the TCP window is limited to 2**30. A larger initial window isn't usef

svn commit: r226436 - in head: . gnu/usr.bin/binutils/objcopy gnu/usr.bin/binutils/strip lib/libc/gen lib/libelf lib/libipsec lib/libpmc lib/msun/man libexec/rtld-elf/amd64 libexec/rtld-elf/i386 sb...

2011-10-16 Thread Eitan Adler
Author: eadler (ports committer) Date: Sun Oct 16 14:30:28 2011 New Revision: 226436 URL: http://svn.freebsd.org/changeset/base/226436 Log: - change "is is" to "is" or "it is" - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after:3 days Modifie

svn commit: r226435 - head/sys/kern

2011-10-16 Thread Marcel Moolenaar
Author: marcel Date: Sun Oct 16 14:16:46 2011 New Revision: 226435 URL: http://svn.freebsd.org/changeset/base/226435 Log: Fix double vision syndrome (read: double output) when in the debugger without a panic. Modified: head/sys/kern/subr_prf.c Modified: head/sys/kern/subr_prf.c ===

svn commit: r226434 - head/usr.bin/elfdump

2011-10-16 Thread Marcel Moolenaar
Author: marcel Date: Sun Oct 16 14:11:05 2011 New Revision: 226434 URL: http://svn.freebsd.org/changeset/base/226434 Log: o Use C99 designated initializer to properly handle ELFOSABI_STANDALONE. o In elf_get_byte(), cast through uint8_t and not char to avoid sign extension. Modified:

svn commit: r226433 - head/sys/netinet

2011-10-16 Thread Andre Oppermann
Author: andre Date: Sun Oct 16 13:54:46 2011 New Revision: 226433 URL: http://svn.freebsd.org/changeset/base/226433 Log: Update the comment and description of tcp_sendspace and tcp_recvspace to better reflect their purpose. MFC after:1 week Modified: head/sys/netinet/tcp_usrreq.c Mod

Re: svn commit: r226359 - head/usr.bin/look

2011-10-16 Thread tcb
This seems to break portsnap on amd64. As seen in ports/161703 (with error look: file too large). mfg tobias On Fri, 14 Oct 2011 09:24:48 +0200, Ed Schouten wrote: Author: ed Date: Fri Oct 14 07:24:48 2011 New Revision: 226359 URL: http://svn.freebsd.org/changeset/base/226359 Log: Build lo

Re: svn commit: r226430 - head/contrib/gcc/config/i386

2011-10-16 Thread Stefan Farfeleder
On Sun, Oct 16, 2011 at 12:25:14PM +0200, Roman Divacky wrote: > Can this be MFCed to stable/9 ? I've seen clang erroring out > because of this quite a lot. Yes I think so. Stefan > On Sun, Oct 16, 2011 at 10:14:33AM +, Stefan Farfeleder wrote: > > Author: stefanf > > Date: Sun Oct 16 10:14:

svn commit: r226431 - head/sys/netinet

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 10:58:00 2011 New Revision: 226431 URL: http://svn.freebsd.org/changeset/base/226431 Log: Forward declare mbuf and inpcb. This fixes a compiler warning at WARNS=6 when including the header files as follows: #include #include #includ

Re: svn commit: r226430 - head/contrib/gcc/config/i386

2011-10-16 Thread Roman Divacky
Can this be MFCed to stable/9 ? I've seen clang erroring out because of this quite a lot. roman On Sun, Oct 16, 2011 at 10:14:33AM +, Stefan Farfeleder wrote: > Author: stefanf > Date: Sun Oct 16 10:14:33 2011 > New Revision: 226430 > URL: http://svn.freebsd.org/changeset/base/226430 > > Log

svn commit: r226430 - head/contrib/gcc/config/i386

2011-10-16 Thread Stefan Farfeleder
Author: stefanf Date: Sun Oct 16 10:14:33 2011 New Revision: 226430 URL: http://svn.freebsd.org/changeset/base/226430 Log: Adjust posix_memalign() prototype to match what we define in stdlib.h for C++ compilation. PR: standards/147210 Modified: head/contrib/gcc/config/i386/pmm_malloc

svn commit: r226429 - head/usr.bin/ncplist

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 10:00:28 2011 New Revision: 226429 URL: http://svn.freebsd.org/changeset/base/226429 Log: Fix ncplist to build with WARNS=6. Add some const and static keywords to get it all to build. Also add missing #includes. Modified: head/usr.bin/ncplist/Makefile head

svn commit: r226428 - head/usr.bin/su

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 09:09:33 2011 New Revision: 226428 URL: http://svn.freebsd.org/changeset/base/226428 Log: Undo r226423. It seems su does build without warnings, but it requires a small fix to libbsm headers, which I have not committed to SVN yet. Modified: head/usr.bin/su/M

svn commit: r226427 - head/usr.bin/rwho

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:54:41 2011 New Revision: 226427 URL: http://svn.freebsd.org/changeset/base/226427 Log: 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. MFC after:3 months Modifie

svn commit: r226426 - head/lib/libsdp

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:45:16 2011 New Revision: 226426 URL: http://svn.freebsd.org/changeset/base/226426 Log: Change the SDP_GET* macros to cast to a const buffer. This fixes a compiler warning when passing a const buffer to them. Modified: head/lib/libsdp/sdp.h Modified: head/l

svn commit: r226425 - in head: lib/libncp sys/netncp

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:44:03 2011 New Revision: 226425 URL: http://svn.freebsd.org/changeset/base/226425 Log: Change ncp_scan_bindery_object() to pass a constant search string. The ncp_scan_bindery_object() function does not modify search_string internally, so there is no need to

svn commit: r226424 - head/usr.bin/systat

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:36:10 2011 New Revision: 226424 URL: http://svn.freebsd.org/changeset/base/226424 Log: Use integer to store the result of getch(). We need to use an integer to make the comparison against ERR work. MFC after:3 months Modified: head/usr.bin/systat/k

svn commit: r226423 - head/usr.bin/su

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:14:12 2011 New Revision: 226423 URL: http://svn.freebsd.org/changeset/base/226423 Log: Remove WARNS line. This tool builds with WARNS=6 properly. Modified: head/usr.bin/su/Makefile Modified: head/usr.bin/su/Makefile =

svn commit: r226422 - head/usr.bin/m4

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:09:17 2011 New Revision: 226422 URL: http://svn.freebsd.org/changeset/base/226422 Log: Fix build of m4 with WARNS=6. Change the parser; rename `exp' to `exponent' not to collide with exp(3). Modified: head/usr.bin/m4/Makefile head/usr.bin/m4/expr.c head

svn commit: r226421 - in head/usr.bin: lzmainfo xzdec

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:04:43 2011 New Revision: 226421 URL: http://svn.freebsd.org/changeset/base/226421 Log: Remove unneeded WARNS=3 lines. It seems these two tools can be built properly with WARNS=6, even on architectures that are stricter about alignment. Modified: head/usr.

svn commit: r226420 - head/usr.bin/at

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 07:57:01 2011 New Revision: 226420 URL: http://svn.freebsd.org/changeset/base/226420 Log: Build at(1) with NO_WFORMAT instead of WARNS=1. Modified: head/usr.bin/at/Makefile Modified: head/usr.bin/at/Makefile

svn commit: r226419 - head/usr.bin/ruptime

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 07:36:27 2011 New Revision: 226419 URL: http://svn.freebsd.org/changeset/base/226419 Log: Make some internal fixes to ruptime(1): - Prevent possible unaligned access to struct whoent. - Increase uptime column by one, to properly print hosts with an uptime g

svn commit: r226418 - head/usr.bin/gzip

2011-10-16 Thread Xin LI
Author: delphij Date: Sun Oct 16 07:35:26 2011 New Revision: 226418 URL: http://svn.freebsd.org/changeset/base/226418 Log: According to the NetBSD foundation [1]: Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Founda

svn commit: r226416 - head/usr.bin/newgrp

2011-10-16 Thread Xin LI
Author: delphij Date: Sun Oct 16 07:05:43 2011 New Revision: 226416 URL: http://svn.freebsd.org/changeset/base/226416 Log: Partially revert r226274, the old code was right. Modified: head/usr.bin/newgrp/newgrp.c Modified: head/usr.bin/newgrp/newgrp.c =