svn commit: r252684 - head/sys/cam

2013-07-03 Thread Jung-uk Kim
Author: jkim Date: Thu Jul 4 05:58:53 2013 New Revision: 252684 URL: http://svnweb.freebsd.org/changeset/base/252684 Log: Make it little bit more C++ friendly. This explicit casting fixes some ports, emulators/virtualbox-ose and sysutils/smartmontools for example. Modified: head/sys/cam/c

svn commit: r252683 - head/sys/kern

2013-07-03 Thread Alfred Perlstein
Author: alfred Date: Thu Jul 4 05:53:05 2013 New Revision: 252683 URL: http://svnweb.freebsd.org/changeset/base/252683 Log: The change in r236456 (atomic_store_rel not locked) exposed a bug in the ithread code where we could lose ithread interrupts if intr_event_schedule_thread() is called

svn commit: r252682 - head/usr.sbin/bhyve

2013-07-03 Thread Peter Grehan
Author: grehan Date: Thu Jul 4 05:35:56 2013 New Revision: 252682 URL: http://svnweb.freebsd.org/changeset/base/252682 Log: Support an optional "mac=" parameter to virtio-net config, to allow users to set the MAC address for a device. Clean up some obsolete code in pci_virtio_net.c

Re: svn commit: r252608 - in head: include lib/libc/stdlib

2013-07-03 Thread Andrey Chernov
On 04.07.2013 6:47, Bruce Evans wrote: > Er, I think it is too dangerous to change either RAND_MAX or the offset > without more preparation: > - increasing the range returned (and increasing RAND_MAX to match) would > obviously be binary-incompatible. Old binaries may have the old RAND_MAX > b

svn commit: r252679 - in head/usr.bin: mail make

2013-07-03 Thread Kevin Lo
Author: kevlo Date: Thu Jul 4 03:24:58 2013 New Revision: 252679 URL: http://svnweb.freebsd.org/changeset/base/252679 Log: Remove unnecessary cast to pid_t. Modified: head/usr.bin/mail/popen.c head/usr.bin/make/job.c Modified: head/usr.bin/mail/popen.c

Re: svn commit: r252608 - in head: include lib/libc/stdlib

2013-07-03 Thread Bruce Evans
On Wed, 3 Jul 2013, Andrey A. Chernov wrote: Log: 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, but ACM formula we use have internal state (and return value) in the [1, 0x7ffe] range, so our RAND_MAX (0x7fff) is never reached because it is off by one, zero

svn commit: r252678 - head/share/misc

2013-07-03 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jul 4 01:48:55 2013 New Revision: 252678 URL: http://svnweb.freebsd.org/changeset/base/252678 Log: - add myself to the committers list and add adrian as my mentor Approved by: adrian (mentor) Modified: head/share/misc/committers-src.dot Modified: head/share/misc

Re: svn commit: r252672 - head/sbin/nvmecontrol

2013-07-03 Thread Bruce Evans
On Thu, 4 Jul 2013, Jim Harris wrote: Log: Fix printf argument mismatch reported by gcc on i386. This just substitutes one printf format with another. Modified: head/sbin/nvmecontrol/firmware.c == --- head/sbin/nvme

svn commit: r252677 - stable/9/sys/fs/ext2fs

2013-07-03 Thread Pedro F. Giffuni
Author: pfg Date: Thu Jul 4 01:40:32 2013 New Revision: 252677 URL: http://svnweb.freebsd.org/changeset/base/252677 Log: MFC r252364: Bring some updates from ufs/ufs_lookup to ext2fs. Don't set IN_CHANGE and IN_UPDATE on inodes for potentially suspended file systems. Only set

svn commit: r252676 - stable/9/usr.sbin/nfsd

2013-07-03 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 4 01:22:52 2013 New Revision: 252676 URL: http://svnweb.freebsd.org/changeset/base/252676 Log: MFC: r252483 Document that NFSv4 mounts won't work if hostid_enable="NO" is set in /etc/rc.conf because the host uuid is used to uniquely identify the client to th

svn commit: r252675 - stable/9/usr.sbin/gssd

2013-07-03 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 4 01:18:38 2013 New Revision: 252675 URL: http://svnweb.freebsd.org/changeset/base/252675 Log: MFC: r252139 Document the "-o" option added by r252138. This is a content change. Modified: stable/9/usr.sbin/gssd/gssd.8 Directory Properties: stable/9/usr.sbi

svn commit: r252674 - stable/9/usr.sbin/gssd

2013-07-03 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 4 01:15:44 2013 New Revision: 252674 URL: http://svnweb.freebsd.org/changeset/base/252674 Log: MFC: r252138 Add a new "-o" option to the gssd which forces gss_init_sec_context() to use DES and the associated old style GSS initialization token. This appears t

svn commit: r252673 - head/sys/nfsclient

2013-07-03 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 4 00:54:23 2013 New Revision: 252673 URL: http://svnweb.freebsd.org/changeset/base/252673 Log: A problem with the old NFS client where large writes to large files would sometimes result in a corrupted file was reported via email. This problem appears to have b

Re: svn commit: r252672 - head/sbin/nvmecontrol

2013-07-03 Thread Steve Kargl
On Thu, Jul 04, 2013 at 12:26:24AM +, Jim Harris wrote: > Author: jimharris > Date: Thu Jul 4 00:26:24 2013 > New Revision: 252672 > URL: http://svnweb.freebsd.org/changeset/base/252672 > > Log: > Fix printf argument mismatch reported by gcc on i386. > > Reported by: kargl > Thanks.

svn commit: r252672 - head/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Thu Jul 4 00:26:24 2013 New Revision: 252672 URL: http://svnweb.freebsd.org/changeset/base/252672 Log: Fix printf argument mismatch reported by gcc on i386. Reported by: kargl Modified: head/sbin/nvmecontrol/firmware.c Modified: head/sbin/nvmecontrol/firmware.c

svn commit: r252671 - in stable/9: sbin/nvmecontrol sys/dev/nvme

2013-07-03 Thread Jim Harris
Author: jimharris Date: Thu Jul 4 00:16:43 2013 New Revision: 252671 URL: http://svnweb.freebsd.org/changeset/base/252671 Log: MFC r252278: Add firmware replacement and activation support to nvmecontrol(8) through a new firmware command. NVMe controllers may support up to 7 fi

svn commit: r252670 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Thu Jul 4 00:06:11 2013 New Revision: 252670 URL: http://svnweb.freebsd.org/changeset/base/252670 Log: MFC r252277: Add log page support to nvmecontrol(8) through a new logpage command. This includes pretty printers for all of the standard NVMe log pages

svn commit: r252669 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Thu Jul 4 00:03:30 2013 New Revision: 252669 URL: http://svnweb.freebsd.org/changeset/base/252669 Log: MFC r252275: Add generalized helper functions for printing hex data as part of nvmecontrol commands. Submitted by: Joe Golio Obtained from:EM

svn commit: r252668 - head/lib/libc/stdlib

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Thu Jul 4 00:02:10 2013 New Revision: 252668 URL: http://svnweb.freebsd.org/changeset/base/252668 Log: After fixing ranges restore POSIX requirement: rand() call without srand() must be the same as srand(1); rand(); (yet one increment) Modified: head/lib/libc/stdlib/ra

svn commit: r252667 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Thu Jul 4 00:00:59 2013 New Revision: 252667 URL: http://svnweb.freebsd.org/changeset/base/252667 Log: MFC r252274: Ensure that a device node is specified when invoking the identify or reset commands. Also improve the checking of device node names, so t

svn commit: r252666 - stable/9/sys/dev/nvme

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:59:08 2013 New Revision: 252666 URL: http://svnweb.freebsd.org/changeset/base/252666 Log: MFC r252273: Remove remaining uio-related code. The nvme_physio() function was removed quite a while ago, which was the only user of this uio-related

svn commit: r252665 - stable/9/sys/dev/nvme

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:58:09 2013 New Revision: 252665 URL: http://svnweb.freebsd.org/changeset/base/252665 Log: MFC r252272: Fail any passthrough command whose transfer size exceeds the controller's max transfer size. This guards against rogue commands coming in from

svn commit: r252664 - stable/9/sys/dev/nvme

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:56:41 2013 New Revision: 252664 URL: http://svnweb.freebsd.org/changeset/base/252664 Log: MFC r252271: Use MAXPHYS to specify the maximum I/O size for nvme(4). Also allow admin commands to transfer up to this maximum I/O size, rather than t

svn commit: r252663 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:54:36 2013 New Revision: 252663 URL: http://svnweb.freebsd.org/changeset/base/252663 Log: MFC r252270: Create #defines for NVME_CTRLR_PREFIX and NVME_NS_PREFIX for the "nvme" and "ns" strings, rather than hardcoding the string values throughout th

svn commit: r252662 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:53:28 2013 New Revision: 252662 URL: http://svnweb.freebsd.org/changeset/base/252662 Log: MFC r252269: Add an nvme_function structure array, defining the name, C function and usage message for each nvmecontrol command. This helps reduce some code

svn commit: r252660 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:51:03 2013 New Revision: 252660 URL: http://svnweb.freebsd.org/changeset/base/252660 Log: MFC r252268: Break out code related to the reset command into a separate source file. Sponsored by: Intel Added: stable/9/sbin/nvmecontrol/reset.c -

svn commit: r252659 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:48:58 2013 New Revision: 252659 URL: http://svnweb.freebsd.org/changeset/base/252659 Log: MFC r252267: Break out code related to the perftest command into a separate file. Sponsored by: Intel Added: stable/9/sbin/nvmecontrol/perftest.c -

svn commit: r252658 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:47:23 2013 New Revision: 252658 URL: http://svnweb.freebsd.org/changeset/base/252658 Log: MFC r252266: Break out code related to the identify command into a separate source file. Sponsored by: Intel Added: stable/9/sbin/nvmecontrol/identify.c

svn commit: r252657 - in head/sys: cam/scsi geom

2013-07-03 Thread Steven Hartland
Author: smh Date: Wed Jul 3 23:46:30 2013 New Revision: 252657 URL: http://svnweb.freebsd.org/changeset/base/252657 Log: Bump disk(9) ABI version to signify the addition of d_delmaxsize by r249940. Ensure that d_delmaxsize is always set, removing init to 0 which could cause future issues

svn commit: r252656 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:45:58 2013 New Revision: 252656 URL: http://svnweb.freebsd.org/changeset/base/252656 Log: MFC r252265: Break out code related to the devlist command into a separate source file. Sponsored by: Intel Added: stable/9/sbin/nvmecontrol/devlist.c

svn commit: r252655 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:42:12 2013 New Revision: 252655 URL: http://svnweb.freebsd.org/changeset/base/252655 Log: MFC r252264: Add separate *_usage() functions for each nvmecontrol command. Sponsored by: Intel Modified: stable/9/sbin/nvmecontrol/nvmecontrol.c Directo

svn commit: r252654 - stable/9/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:40:43 2013 New Revision: 252654 URL: http://svnweb.freebsd.org/changeset/base/252654 Log: MFC r252263: Add an open_dev() helper function to be used in the various places where nvmecontrol needs to open a handle to a controller or namespace dev

svn commit: r252653 - head/sys/vm

2013-07-03 Thread Neel Natu
Author: neel Date: Wed Jul 3 23:38:37 2013 New Revision: 252653 URL: http://svnweb.freebsd.org/changeset/base/252653 Log: vm_phys_fictitious_reg_range() was losing the 'memattr' because it would be reset by pmap_page_init() right after being initialized in vm_page_initfake(). The stateme

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

2013-07-03 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Jul 3 23:38:02 2013 New Revision: 252652 URL: http://svnweb.freebsd.org/changeset/base/252652 Log: Fix one of INVARIANTS-related UMA panics on ARM Force UMA zone to allocate service structures like slabs using own allocator. uma_debug code performs atomic ops on

svn commit: r252651 - stable/9/sys/dev/isci/scil

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:29:40 2013 New Revision: 252651 URL: http://svnweb.freebsd.org/changeset/base/252651 Log: MFC r252262: For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA by treating it as UDMA. This fixes a problem introduced in r249933/r

svn commit: r252650 - stable/8/sys/dev/isci/scil

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:28:07 2013 New Revision: 252650 URL: http://svnweb.freebsd.org/changeset/base/252650 Log: MFC r252262: For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA by treating it as UDMA. This fixes a problem introduced in r249933/r

svn commit: r252648 - head/lib/libc/stdlib

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Wed Jul 3 23:27:04 2013 New Revision: 252648 URL: http://svnweb.freebsd.org/changeset/base/252648 Log: In addition to prev. commit, for repeated rand_r(3) calls don't forget to compensate back at the end incremented at the start internal state. MFC after: 2 week

svn commit: r252647 - stable/7/sys/dev/isci/scil

2013-07-03 Thread Jim Harris
Author: jimharris Date: Wed Jul 3 23:24:53 2013 New Revision: 252647 URL: http://svnweb.freebsd.org/changeset/base/252647 Log: MFC r252262: For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA by treating it as UDMA. This fixes a problem introduced in r249933/r

svn commit: r252646 - head/sys/amd64/amd64

2013-07-03 Thread Neel Natu
Author: neel Date: Wed Jul 3 23:21:25 2013 New Revision: 252646 URL: http://svnweb.freebsd.org/changeset/base/252646 Log: If a superpage mapping is being removed then we need to ignore the PG_PDE_PAT bit when looking up the vm_page associated with the superpage's physical address. If t

svn commit: r252644 - stable/8/sys/dev/mfi

2013-07-03 Thread Mark Johnston
Author: markj Date: Wed Jul 3 23:16:33 2013 New Revision: 252644 URL: http://svnweb.freebsd.org/changeset/base/252644 Log: MFC r242726 (ambrisko): Add support for SCSI pass through devices to be attached and detached. MFC r251172 (sbruno): xpt_create_path() requires mfi_io_lock to be h

svn commit: r252643 - stable/9/sys/dev/mfi

2013-07-03 Thread Mark Johnston
Author: markj Date: Wed Jul 3 23:15:30 2013 New Revision: 252643 URL: http://svnweb.freebsd.org/changeset/base/252643 Log: MFC r242726 (ambrisko): Add support for SCSI pass through devices to be attached and detached. MFC r251172 (sbruno): xpt_create_path() requires mfi_io_lock to be h

svn commit: r252642 - in stable/6/usr.sbin/pkg_install: add create lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 23:06:58 2013 New Revision: 252642 URL: http://svnweb.freebsd.org/changeset/base/252642 Log: MF7: r252640 MF8: r252639 MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. Modified: stable/6/usr.sbin/pkg_inst

svn commit: r252641 - head/sys/amd64/vmm

2013-07-03 Thread Neel Natu
Author: neel Date: Wed Jul 3 23:05:17 2013 New Revision: 252641 URL: http://svnweb.freebsd.org/changeset/base/252641 Log: Verify that all bytes in the instruction buffer are consumed during decoding. Suggested by: grehan Modified: head/sys/amd64/vmm/vmm_instruction_emul.c Modified: hea

svn commit: r252640 - in stable/7/usr.sbin/pkg_install: add create lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 23:03:28 2013 New Revision: 252640 URL: http://svnweb.freebsd.org/changeset/base/252640 Log: MF8: r252639 MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. Modified: stable/7/usr.sbin/pkg_install/add/extract.c

svn commit: r252639 - in stable/8/usr.sbin/pkg_install: add create lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:59:46 2013 New Revision: 252639 URL: http://svnweb.freebsd.org/changeset/base/252639 Log: MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. Modified: stable/8/usr.sbin/pkg_install/add/extract.c stable/8/usr.sbin/pk

svn commit: r252638 - in stable/9/usr.sbin/pkg_install: add create lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:57:20 2013 New Revision: 252638 URL: http://svnweb.freebsd.org/changeset/base/252638 Log: Really MFC r252363 (sysconf(3) returns a long, not an int). Modified: stable/9/usr.sbin/pkg_install/add/extract.c stable/9/usr.sbin/pkg_install/create/pl.c stable/9

svn commit: r252637 - head/usr.bin/patch

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:46:30 2013 New Revision: 252637 URL: http://svnweb.freebsd.org/changeset/base/252637 Log: Merge r252513 from src/gnu/usr.bin/patch into src/usr.bin/patch: Properly handle input lines containing NUL characters such that pgets() accurately fills the read b

svn commit: r252636 - head/usr.bin/patch

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:44:26 2013 New Revision: 252636 URL: http://svnweb.freebsd.org/changeset/base/252636 Log: Merge r252512 from src/gnu/usr.bin/patch into src/usr.bin/patch: Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same. The former makes a copy o

svn commit: r252635 - stable/9/usr.sbin/pkg_install/lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:25:00 2013 New Revision: 252635 URL: http://svnweb.freebsd.org/changeset/base/252635 Log: MFC: r252348, r252363: sysconf(3) returns a long, not an int. Modified: stable/9/usr.sbin/pkg_install/lib/exec.c Directory Properties: stable/9/ (props changed) s

svn commit: r252634 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:23:25 2013 New Revision: 252634 URL: http://svnweb.freebsd.org/changeset/base/252634 Log: MFp4 @229488: Sandbox unprivileged process using capability mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/dhclie

svn commit: r252633 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:22:29 2013 New Revision: 252633 URL: http://svnweb.freebsd.org/changeset/base/252633 Log: MFp4 @229487: Revoke all capability rights from STDIN and allow only for write to STDOUT and STDERR. All those descriptors are redirected to /dev/null. Reviewed b

svn commit: r252632 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:21:11 2013 New Revision: 252632 URL: http://svnweb.freebsd.org/changeset/base/252632 Log: MFp4 @229486: Once PID is written to the pidfile, revoke all capability rights. We just want to keep the pidfile open. Reviewed by: brooks Sponsored by: The Fr

svn commit: r252631 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:19:43 2013 New Revision: 252631 URL: http://svnweb.freebsd.org/changeset/base/252631 Log: MFp4 @229485: Only allow to overwrite lease file. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/dhclient.c Modified:

svn commit: r252630 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:18:40 2013 New Revision: 252630 URL: http://svnweb.freebsd.org/changeset/base/252630 Log: MFp4 @229484: Limit routing socket so only poll(2) and read(2) are allowed (CAP_POLL_EVENT and CAP_READ). This prevents unprivileged process from adding, removing or

svn commit: r252629 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:17:29 2013 New Revision: 252629 URL: http://svnweb.freebsd.org/changeset/base/252629 Log: MFp4 @229483: Limit communication pipe with privileged process to CAP_READ and CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: h

svn commit: r252628 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:16:02 2013 New Revision: 252628 URL: http://svnweb.freebsd.org/changeset/base/252628 Log: MFp4 @229482: - Limit bpf descriptor in unprivileged process to CAP_POLL_EVENT, CAP_READ and allow for SIOCGIFFLAGS, SIOCGIFMEDIA ioctls. - While here limit bpf de

svn commit: r252627 - stable/9/lib/libc/sys

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 22:14:12 2013 New Revision: 252627 URL: http://svnweb.freebsd.org/changeset/base/252627 Log: MFC r251181: fork(2): #include is not needed. Modified: stable/9/lib/libc/sys/fork.2 Directory Properties: stable/9/lib/libc/ (props changed) stable/9/lib/libc/s

svn commit: r252626 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:12:54 2013 New Revision: 252626 URL: http://svnweb.freebsd.org/changeset/base/252626 Log: MFp4 @229481: Currently it was allowed to send any UDP packets from unprivileged process and possibly any packets because /dev/bpf was open for writing. Move send

svn commit: r252625 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:09:02 2013 New Revision: 252625 URL: http://svnweb.freebsd.org/changeset/base/252625 Log: MFp4 @229480: Shutdown write direction of the routing socket. We only need to read from it. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r252624 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:07:55 2013 New Revision: 252624 URL: http://svnweb.freebsd.org/changeset/base/252624 Log: MFp4 @229479: - Add new request (IMSG_SEND_PACKET) that will be handled by privileged process. - Add $FreeBSD$. Reviewed by: brooks Sponsored by: The FreeBSD

svn commit: r252623 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:05:36 2013 New Revision: 252623 URL: http://svnweb.freebsd.org/changeset/base/252623 Log: MFp4 @229477: The gethostname(3) function won't work in capability mode, because reading kern.hostname sysctl is not permitted there. Cache hostname early and use c

svn commit: r252622 - stable/9/lib/libc/sys

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 22:04:35 2013 New Revision: 252622 URL: http://svnweb.freebsd.org/changeset/base/252622 Log: MFC r248774: accept(2): Mention inheritance of O_ASYNC and signal destination. While almost nobody uses O_ASYNC, and rightly so, the inheritance of the related pr

svn commit: r252621 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:03:19 2013 New Revision: 252621 URL: http://svnweb.freebsd.org/changeset/base/252621 Log: Remove redundant white-spaces. Modified: head/sbin/dhclient/dhclient.c Modified: head/sbin/dhclient/dhclient.c ===

svn commit: r252620 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:01:52 2013 New Revision: 252620 URL: http://svnweb.freebsd.org/changeset/base/252620 Log: MFp4 @229476,229478: Make use of two fields: rfdesc and wfdesc to keep bpf descriptor open for reading only in rfdesc and bpf descriptor open for writing only in wfdes

svn commit: r252619 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:58:26 2013 New Revision: 252619 URL: http://svnweb.freebsd.org/changeset/base/252619 Log: MFp4 @229474: iov_base field is 'void *' in FreeBSD, no need to cast. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/bp

svn commit: r252618 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:57:24 2013 New Revision: 252618 URL: http://svnweb.freebsd.org/changeset/base/252618 Log: MFp4 @229473: No caller checks send_packet() return value, so make it void. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhcli

svn commit: r252617 - in stable/9: bin/sh tools/regression/bin/sh/builtins

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:56:25 2013 New Revision: 252617 URL: http://svnweb.freebsd.org/changeset/base/252617 Log: MFC r248349: sh: Recognize "--" and explicitly reject options in wait builtin. If syntactically invalid job identifiers are to be taken as jobs that exited with s

svn commit: r252616 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:53:54 2013 New Revision: 252616 URL: http://svnweb.freebsd.org/changeset/base/252616 Log: MFp4 @229472: Use the same type for 'from' and 'to' argument in send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dh

svn commit: r252615 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:49:10 2013 New Revision: 252615 URL: http://svnweb.freebsd.org/changeset/base/252615 Log: MFp4 @229471: Remove unused argument from assemble_hw_header(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/bpf.c

svn commit: r252614 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:45:29 2013 New Revision: 252614 URL: http://svnweb.freebsd.org/changeset/base/252614 Log: MFp4 @229470: Remove unused argument from send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/bpf.c head/sb

svn commit: r252613 - in stable/9/tools/regression/bin/sh: builtins execution expansion

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:43:41 2013 New Revision: 252613 URL: http://svnweb.freebsd.org/changeset/base/252613 Log: MFC r245383,245392,247190,249220,251180,251797: New sh testcases. These already work on stable/9. Added: stable/9/tools/regression/bin/sh/builtins/break4.4 -

svn commit: r252612 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:41:35 2013 New Revision: 252612 URL: http://svnweb.freebsd.org/changeset/base/252612 Log: MFp4: @229469: Garbage-collect dead prototypes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/dhcpd.h head/sbin/dhcl

svn commit: r252611 - stable/9/bin/sh

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:31:13 2013 New Revision: 252611 URL: http://svnweb.freebsd.org/changeset/base/252611 Log: MFC r251763: sh(1): A subshell environment has its own rlimits (ulimit). This has always been the case and is intended (just like cd). This matches Austin group

svn commit: r252610 - stable/9/bin/sh

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:25:46 2013 New Revision: 252610 URL: http://svnweb.freebsd.org/changeset/base/252610 Log: MFC r248870 by joel: Minor mdoc fix in previous commit. Modified: stable/9/bin/sh/sh.1 Directory Properties: stable/9/bin/sh/ (props changed) Modified: stable/9/bi

svn commit: r252609 - stable/9/bin/sh

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:22:47 2013 New Revision: 252609 URL: http://svnweb.freebsd.org/changeset/base/252609 Log: MFC r248692: sh(1): Mention possible ambiguities with $(( and ((. In some other shells, things like $((a);(b)) are command substitutions. Also, there are shells

svn commit: r252608 - in head: include lib/libc/stdlib

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Wed Jul 3 21:21:54 2013 New Revision: 252608 URL: http://svnweb.freebsd.org/changeset/base/252608 Log: 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, but ACM formula we use have internal state (and return value) in the [1, 0x7ffe] range, so

svn commit: r252607 - stable/9/bin/test

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:14:57 2013 New Revision: 252607 URL: http://svnweb.freebsd.org/changeset/base/252607 Log: MFC r251209: test(1): List non-standard primaries. Modified: stable/9/bin/test/test.1 Directory Properties: stable/9/bin/test/ (props changed) Modified: stable/9/b

svn commit: r252603 - head/usr.sbin/rwhod

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:04:20 2013 New Revision: 252603 URL: http://svnweb.freebsd.org/changeset/base/252603 Log: The whole sending functionality was implemented within signal handler, which is very bad idea. Split sending and receiving in two processes, which fixes this problem and

svn commit: r252605 - head/usr.sbin/rwhod

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:07:02 2013 New Revision: 252605 URL: http://svnweb.freebsd.org/changeset/base/252605 Log: Sandbox rwhod(8) receiver process using capability mode and Capsicum capabilities. rwhod(8) receiver can now only receive packages, write to /var/rwho/ directory and

svn commit: r252604 - stable/9/lib/libc/sys

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:05:35 2013 New Revision: 252604 URL: http://svnweb.freebsd.org/changeset/base/252604 Log: MFC r250982: sigreturn(2): Remove ancient compatibility warning about 4.2BSD The HISTORY subsection still says that sigreturn() was added in 4.3BSD. Modified: stab

svn commit: r252606 - stable/9/bin/sleep

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:11:56 2013 New Revision: 252606 URL: http://svnweb.freebsd.org/changeset/base/252606 Log: MFC r251078,r251433: sleep: Improve nanosleep() error handling: * Work around kernel bugs that cause a spurious [EINTR] return if a debugger (such as truss(1))

svn commit: r252602 - head/usr.sbin/rwhod

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 20:58:58 2013 New Revision: 252602 URL: http://svnweb.freebsd.org/changeset/base/252602 Log: Style cleanups. Submitted by: Mariusz Zaborski Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after:1 month Modified: head/usr.sbin/rwhod/r

svn commit: r252601 - stable/8/usr.sbin/sysinstall

2013-07-03 Thread Devin Teske
Author: dteske Date: Wed Jul 3 20:55:49 2013 New Revision: 252601 URL: http://svnweb.freebsd.org/changeset/base/252601 Log: MFC r252600: Fix grammar in a comment. Modified: stable/8/usr.sbin/sysinstall/package.c Modified: stable/8/usr.sbin/sysinstall/package.c ==

svn commit: r252600 - stable/9/usr.sbin/sysinstall

2013-07-03 Thread Devin Teske
Author: dteske Date: Wed Jul 3 20:54:25 2013 New Revision: 252600 URL: http://svnweb.freebsd.org/changeset/base/252600 Log: Fix grammar in a comment. Modified: stable/9/usr.sbin/sysinstall/package.c Modified: stable/9/usr.sbin/sysinstall/package.c ===

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

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 20:44:47 2013 New Revision: 252599 URL: http://svnweb.freebsd.org/changeset/base/252599 Log: Few more style nits. MFC after:1 month Modified: head/usr.bin/rwho/rwho.c Modified: head/usr.bin/rwho/rwho.c

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

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 20:42:10 2013 New Revision: 252598 URL: http://svnweb.freebsd.org/changeset/base/252598 Log: Sandbox rwho(1) using capability mode and Capsicum capabilities. rwho(1) gets only read-only access to /var/rwho/ directory. Submitted by: Mariusz Zaborski Sponsore

svn commit: r252597 - head/sys/dev/cpuctl

2013-07-03 Thread Rui Paulo
Author: rpaulo Date: Wed Jul 3 20:29:15 2013 New Revision: 252597 URL: http://svnweb.freebsd.org/changeset/base/252597 Log: Increase the microcode max size to 16K to accomodate more recent Intel firmware. Modified: head/sys/dev/cpuctl/cpuctl.c Modified: head/sys/dev/cpuctl/cpuctl.c ==

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

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 20:28:33 2013 New Revision: 252596 URL: http://svnweb.freebsd.org/changeset/base/252596 Log: Style cleanups. Submitted by: Mariusz Zaborski Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after:1 month Modified: head/usr.bin/rwho/rwh

svn commit: r252595 - stable/9/usr.bin/truss

2013-07-03 Thread Mateusz Guzik
Author: mjg Date: Wed Jul 3 20:24:37 2013 New Revision: 252595 URL: http://svnweb.freebsd.org/changeset/base/252595 Log: MFC r252414: truss: recognize O_DIRECTORY, O_EXEC, O_TTY_INIT and O_CLOEXEC Modified: stable/9/usr.bin/truss/syscalls.c Directory Properties: stable/9/usr.bin/truss/

svn commit: r252594 - head/sys/conf

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 20:22:12 2013 New Revision: 252594 URL: http://svnweb.freebsd.org/changeset/base/252594 Log: Add an entry for filemon. Modified: head/sys/conf/files head/sys/conf/options Modified: head/sys/conf/files ==

svn commit: r252593 - head/sys/conf

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 20:21:39 2013 New Revision: 252593 URL: http://svnweb.freebsd.org/changeset/base/252593 Log: Move static ZFS compile option to the other static file system options. Modified: head/sys/conf/options Modified: head/sys/conf/options

svn commit: r252592 - head/sys/dev/cpuctl

2013-07-03 Thread Rui Paulo
Author: rpaulo Date: Wed Jul 3 20:19:23 2013 New Revision: 252592 URL: http://svnweb.freebsd.org/changeset/base/252592 Log: Typos in comments. Modified: head/sys/dev/cpuctl/cpuctl.c Modified: head/sys/dev/cpuctl/cpuctl.c ==

svn commit: r252591 - vendor/v4l/2.6.34.14

2013-07-03 Thread Alexander Leidinger
Author: netchild Date: Wed Jul 3 20:08:22 2013 New Revision: 252591 URL: http://svnweb.freebsd.org/changeset/base/252591 Log: Tag 2.6.34.14. Added: vendor/v4l/2.6.34.14/ - copied from r252372, vendor/v4l/dist/ Replaced: vendor/v4l/2.6.34.14/videodev2.h - copied unchanged from r25

svn commit: r252590 - vendor/v4l/dist

2013-07-03 Thread Alexander Leidinger
Author: netchild Date: Wed Jul 3 19:56:39 2013 New Revision: 252590 URL: http://svnweb.freebsd.org/changeset/base/252590 Log: Update videodev2.h to the version from linux kernel 2.6.34.14. This version is dual-licensed: 3 clause BSD license and GPL v2+. Modified: vendor/v4l/dist/videodev2.

svn commit: r252588 - stable/9

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 19:12:35 2013 New Revision: 252588 URL: http://svnweb.freebsd.org/changeset/base/252588 Log: MFC: r238051: Add "hier" as an alternate spelling of "hierarchy" to match hier(9). Modified: stable/9/Makefile (contents, props changed) stable/9/Makefile.in

svn commit: r252587 - head/contrib/llvm/tools/clang/lib/Sema

2013-07-03 Thread Dimitry Andric
Author: dim Date: Wed Jul 3 19:08:10 2013 New Revision: 252587 URL: http://svnweb.freebsd.org/changeset/base/252587 Log: Pull in r185446 from clang trunk: Fix to PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout. Reported by: glebius Modified: head/contrib/llv

svn commit: r252586 - head/sys/boot/i386/gptboot

2013-07-03 Thread Warren Block
Author: wblock (doc committer) Date: Wed Jul 3 18:53:36 2013 New Revision: 252586 URL: http://svnweb.freebsd.org/changeset/base/252586 Log: Add descriptions to the FILES list, fix some mdoc complaints, move the "neither" entry out of the table in BOOTING. Submitted by: joeld Reviewed b

svn commit: r252585 - head/sys/netinet

2013-07-03 Thread Michael Tuexen
Author: tuexen Date: Wed Jul 3 18:48:43 2013 New Revision: 252585 URL: http://svnweb.freebsd.org/changeset/base/252585 Log: Code cleanups. MFC after: 3 days Modified: head/sys/netinet/sctp_indata.c head/sys/netinet/sctp_indata.h head/sys/netinet/sctp_input.c head/sys/netinet/sctp_

svn commit: r252584 - head/lib/libc/iconv

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 18:35:21 2013 New Revision: 252584 URL: http://svnweb.freebsd.org/changeset/base/252584 Log: Make it clear that there are three separate internal locks. Modified: head/lib/libc/iconv/citrus_csmapper.c head/lib/libc/iconv/citrus_iconv.c head/lib/libc/iconv/ci

svn commit: r252583 - in head: lib/libc/iconv lib/libiconv_modules/BIG5 lib/libiconv_modules/DECHanyu lib/libiconv_modules/EUC lib/libiconv_modules/EUCTW lib/libiconv_modules/GBK2K lib/libiconv_mod...

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 18:27:45 2013 New Revision: 252583 URL: http://svnweb.freebsd.org/changeset/base/252583 Log: As a followup to r252547, propate const down the call stack. Modified: head/lib/libc/iconv/citrus_none.c head/lib/libc/iconv/citrus_stdenc.h head/lib/libc/iconv/citr

  1   2   >