From owner-svn-src-all@FreeBSD.ORG Sun Sep 25 11:17:35 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DE531065670; Sun, 25 Sep 2011 11:17:35 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4DBF68FC15; Sun, 25 Sep 2011 11:17:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8PBHZpr023755; Sun, 25 Sep 2011 11:17:35 GMT (envelope-from wkoszek@svn.freebsd.org) Received: (from wkoszek@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8PBHZp3023752; Sun, 25 Sep 2011 11:17:35 GMT (envelope-from wkoszek@svn.freebsd.org) Message-Id: <201109251117.p8PBHZp3023752@svn.freebsd.org> From: "Wojciech A. Koszek" Date: Sun, 25 Sep 2011 11:17:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-svnadmin@freebsd.org X-SVN-Group: svnadmin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225753 - svnadmin/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2011 11:17:35 -0000 Author: wkoszek Date: Sun Sep 25 11:17:34 2011 New Revision: 225753 URL: http://svn.freebsd.org/changeset/base/225753 Log: Please welcome Jakub Wojciech Klama (jceel@) as a new src committer. Jakub will be working on FreeBSD/arm and all sorts of embedded stuff. cognet@ and I will be mentoring Jakub. Approved by: core Modified: svnadmin/conf/access svnadmin/conf/mentors Modified: svnadmin/conf/access ============================================================================== --- svnadmin/conf/access Sun Sep 25 07:49:03 2011 (r225752) +++ svnadmin/conf/access Sun Sep 25 11:17:34 2011 (r225753) @@ -108,6 +108,7 @@ ivoras iwasaki jamie jasone +jceel jchandra jeff jfv Modified: svnadmin/conf/mentors ============================================================================== --- svnadmin/conf/mentors Sun Sep 25 07:49:03 2011 (r225752) +++ svnadmin/conf/mentors Sun Sep 25 11:17:34 2011 (r225753) @@ -18,6 +18,7 @@ eri mlaier Co-mentor: thompsa gabor delphij gber cognet gleb mdf +jceel wkoszek Co-mentor: cognet jinmei gnn jonathan rwatson jpaetzel kib From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 02:27:05 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E4FE106566B; Mon, 26 Sep 2011 02:27:05 +0000 (UTC) (envelope-from kensmith@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1BEB78FC12; Mon, 26 Sep 2011 02:27:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8Q2R4e0051801; Mon, 26 Sep 2011 02:27:05 GMT (envelope-from kensmith@svn.freebsd.org) Received: (from kensmith@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8Q2R4WI051793; Mon, 26 Sep 2011 02:27:04 GMT (envelope-from kensmith@svn.freebsd.org) Message-Id: <201109260227.p8Q2R4WI051793@svn.freebsd.org> From: Ken Smith Date: Mon, 26 Sep 2011 02:27:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225757 - in head: . gnu/usr.bin/groff/tmac release share/examples/cvsup sys/conf sys/sys usr.sbin/pkg_install/add X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 02:27:05 -0000 Author: kensmith Date: Mon Sep 26 02:27:04 2011 New Revision: 225757 URL: http://svn.freebsd.org/changeset/base/225757 Log: Shift head from 9.0-CURRENT to 10.0-CURRENT in preparation for releasing it from the 9.0-RELEASE release cycle code freeze. Approved by: re (implicit) Modified: head/UPDATING head/gnu/usr.bin/groff/tmac/mdoc.local head/release/Makefile.sysinstall head/share/examples/cvsup/stable-supfile head/sys/conf/newvers.sh head/sys/sys/param.h head/usr.sbin/pkg_install/add/main.c Modified: head/UPDATING ============================================================================== --- head/UPDATING Sun Sep 25 15:28:09 2011 (r225756) +++ head/UPDATING Mon Sep 26 02:27:04 2011 (r225757) @@ -9,8 +9,8 @@ handbook. Items affecting the ports and packages system can be found in /usr/ports/UPDATING. Please read that file before running portupgrade. -NOTE TO PEOPLE WHO THINK THAT FreeBSD 9.x IS SLOW: - FreeBSD 9.x has many debugging features turned on, in both the kernel +NOTE TO PEOPLE WHO THINK THAT FreeBSD 10.x IS SLOW: + FreeBSD 10.x has many debugging features turned on, in both the kernel and userland. These features attempt to detect incorrect use of system primitives, and encourage loud failure through extra sanity checking and fail stop semantics. They also substantially impact @@ -22,6 +22,10 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 9. machines to maximize performance. (To disable malloc debugging, run ln -s aj /etc/malloc.conf.) +20110923: + The stable/9 branch created in subversion. This corresponds to the + RELENG_9 branch in CVS. + 20110913: This commit modifies vfs_register() so that it uses a hash calculation to set vfc_typenum, which is enabled by default. Modified: head/gnu/usr.bin/groff/tmac/mdoc.local ============================================================================== --- head/gnu/usr.bin/groff/tmac/mdoc.local Sun Sep 25 15:28:09 2011 (r225756) +++ head/gnu/usr.bin/groff/tmac/mdoc.local Mon Sep 26 02:27:04 2011 (r225757) @@ -71,12 +71,13 @@ .ds doc-volume-as-arm arm . .\" Default .Os value -.ds doc-default-operating-system FreeBSD\~9.0 +.ds doc-default-operating-system FreeBSD\~10.0 . .\" FreeBSD releases not found in doc-common .ds doc-operating-system-FreeBSD-7.4 7.4 .ds doc-operating-system-FreeBSD-8.3 8.3 .ds doc-operating-system-FreeBSD-9.0 9.0 +.ds doc-operating-system-FreeBSD-10.0 10.0 . .\" Definitions not (yet) in doc-syms . Modified: head/release/Makefile.sysinstall ============================================================================== --- head/release/Makefile.sysinstall Sun Sep 25 15:28:09 2011 (r225756) +++ head/release/Makefile.sysinstall Mon Sep 26 02:27:04 2011 (r225757) @@ -24,16 +24,16 @@ # Set these, release builder! # # Fixed version: -#BUILDNAME=9.0-CURRENT +#BUILDNAME=10.0-CURRENT # # Automatic SNAP versioning: DATE != date +%Y%m%d -BASE = 9.0 +BASE = 10.0 BUILDNAME?=${BASE}-${DATE}-SNAP # #CHROOTDIR=/junk/release # If this is a -stable snapshot, then set -#RELEASETAG=RELENG_8 +#RELEASETAG=RELENG_9 # # To test a release with a source tree containing patches and # other work. This tree will get copied instead of getting the @@ -72,7 +72,7 @@ BUILDNAME?=${BASE}-${DATE}-SNAP # # Subversion branch to build for src. If this is not set then it is # automatically computed from RELEASETAG. -#SVNBRANCH=stable/8 +#SVNBRANCH=stable/9 # # Non-zero if ${RELEASETAG} is in the form "RELENG_ver_RELEASE"; we # are building an official release. Otherwise, we are building for Modified: head/share/examples/cvsup/stable-supfile ============================================================================== --- head/share/examples/cvsup/stable-supfile Sun Sep 25 15:28:09 2011 (r225756) +++ head/share/examples/cvsup/stable-supfile Mon Sep 26 02:27:04 2011 (r225757) @@ -66,11 +66,11 @@ *default host=CHANGE_THIS.FreeBSD.org *default base=/var/db *default prefix=/usr -# The following line is for 8-stable. If you want 7-stable, 6-stable, -# 5-stable, 4-stable, 3-stable, or 2.2-stable, change to "RELENG_7", -# "RELENG_6", "RELENG_5", "RELENG_4", "RELENG_3", or "RELENG_2_2" -# respectively. -*default release=cvs tag=RELENG_8 +# The following line is for 9-stable. If you want 8-stable, 7-stable, +# 6-stable, 5-stable, 4-stable, 3-stable, or 2.2-stable, change to +# "RELENG_7", "RELENG_6", "RELENG_5", "RELENG_4", "RELENG_3", or +# "RELENG_2_2" respectively. +*default release=cvs tag=RELENG_9 *default delete use-rel-suffix # If you seem to be limited by CPU rather than network or disk bandwidth, try Modified: head/sys/conf/newvers.sh ============================================================================== --- head/sys/conf/newvers.sh Sun Sep 25 15:28:09 2011 (r225756) +++ head/sys/conf/newvers.sh Mon Sep 26 02:27:04 2011 (r225757) @@ -31,8 +31,8 @@ # $FreeBSD$ TYPE="FreeBSD" -REVISION="9.0" -BRANCH="BETA2" +REVISION="10.0" +BRANCH="CURRENT" if [ "X${BRANCH_OVERRIDE}" != "X" ]; then BRANCH=${BRANCH_OVERRIDE} fi Modified: head/sys/sys/param.h ============================================================================== --- head/sys/sys/param.h Sun Sep 25 15:28:09 2011 (r225756) +++ head/sys/sys/param.h Mon Sep 26 02:27:04 2011 (r225757) @@ -58,7 +58,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 900044 /* Master, propagated to newvers */ +#define __FreeBSD_version 1000000 /* Master, propagated to newvers */ #ifdef _KERNEL #define P_OSREL_SIGSEGV 700004 Modified: head/usr.sbin/pkg_install/add/main.c ============================================================================== --- head/usr.sbin/pkg_install/add/main.c Sun Sep 25 15:28:09 2011 (r225756) +++ head/usr.sbin/pkg_install/add/main.c Mon Sep 26 02:27:04 2011 (r225757) @@ -87,6 +87,7 @@ struct { { 800000, 800499, "/packages-8.0-release" }, { 801000, 801499, "/packages-8.1-release" }, { 802000, 802499, "/packages-8.2-release" }, + { 900000, 900499, "/packages-9.0-release" }, { 300000, 399000, "/packages-3-stable" }, { 400000, 499000, "/packages-4-stable" }, { 502100, 502128, "/packages-5-current" }, @@ -94,7 +95,8 @@ struct { { 600100, 699000, "/packages-6-stable" }, { 700100, 799000, "/packages-7-stable" }, { 800500, 899000, "/packages-8-stable" }, - { 900000, 999000, "/packages-9-current" }, + { 900500, 999000, "/packages-9-stable" }, + { 1000000, 1099000, "/packages-10-current" }, { 0, 9999999, "/packages-current" }, { 0, 0, NULL } }; From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 05:58:40 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 400BB106564A; Mon, 26 Sep 2011 05:58:40 +0000 (UTC) (envelope-from mr.xanto@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A1C7D8FC0C; Mon, 26 Sep 2011 05:58:39 +0000 (UTC) Received: by fxg9 with SMTP id 9so7207050fxg.13 for ; Sun, 25 Sep 2011 22:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:x-mailer:x-priority:message-id:to:cc:subject:mime-version :content-type:content-transfer-encoding; bh=1qfwOgD2Or/Z5Xl0S1rAK6+wXgMdcwh7yvRNuQE6T6o=; b=aS6sAZ9PEY97uaEKrRnT8LLcE6g7Nm898faN3FFYx9DGtTnj8w7oLcWnNl4DF9xP// nD4CYGMGOFbFW5uJUFAdT+k15RG6yGq5iqz56J4ZvIkVFAAKhREc7SEaLL65DU3mhj4I V27qeA2AQRpCEzcy6DQeLSFpg4k6bddzE75YI= Received: by 10.223.55.209 with SMTP id v17mr9754508fag.77.1317015414958; Sun, 25 Sep 2011 22:36:54 -0700 (PDT) Received: from rmamontov.rvsco.ru ([93.186.103.7]) by mx.google.com with ESMTPS id g19sm4990810fai.8.2011.09.25.22.36.52 (version=SSLv3 cipher=OTHER); Sun, 25 Sep 2011 22:36:53 -0700 (PDT) Date: Mon, 26 Sep 2011 09:36:48 +0400 From: Mamontov Roman X-Mailer: Voyager (v3.99.8) Professional X-Priority: 3 (Normal) Message-ID: <1845048207.20110926093648@gmail.com> To: svn-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: kensmith@FreeBSD.org Subject: svn commit: r225757 - in head: . gnu/usr.bin/groff/tmac release share/examples/cvsup sys/conf sys/sys usr.sbin/pkg_install/add X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 05:58:40 -0000 On Mon Sep 26 02:27:05 UTC 2011 Ken Smith kensmith at FreeBSD.org wrote: > Modified: head/share/examples/cvsup/stable-supfile > ============================================================================== > --- head/share/examples/cvsup/stable-supfile Sun Sep 25 15:28:09 2011 (r225756) > +++ head/share/examples/cvsup/stable-supfile Mon Sep 26 02:27:04 2011 (r225757) ... > +# The following line is for 9-stable. If you want 8-stable, 7-stable, > +# 6-stable, 5-stable, 4-stable, 3-stable, or 2.2-stable, change to > +# "RELENG_7", "RELENG_6", "RELENG_5", "RELENG_4", "RELENG_3", or > +# "RELENG_2_2" respectively. > +*default release=cvs tag=RELENG_9 I think there error in comment (forgot RELENG_8). -- Best regards, Mamontov Roman mailto:mr.xanto@gmail.com From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 07:38:02 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F0AF106566B; Mon, 26 Sep 2011 07:38:02 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4D5C08FC0C; Mon, 26 Sep 2011 07:38:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8Q7c2Jj061597; Mon, 26 Sep 2011 07:38:02 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8Q7c2Qx061589; Mon, 26 Sep 2011 07:38:02 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201109260738.p8Q7c2Qx061589@svn.freebsd.org> From: Hans Petter Selasky Date: Mon, 26 Sep 2011 07:38:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225759 - stable/8/lib/libusb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 07:38:02 -0000 Author: hselasky Date: Mon Sep 26 07:38:01 2011 New Revision: 225759 URL: http://svn.freebsd.org/changeset/base/225759 Log: MFC r225659: Implement missing USB debug information functions. Modified: stable/8/lib/libusb/Makefile stable/8/lib/libusb/libusb.3 stable/8/lib/libusb/libusb.h stable/8/lib/libusb/libusb10.c stable/8/lib/libusb/libusb20.3 stable/8/lib/libusb/libusb20.c stable/8/lib/libusb/libusb20.h Directory Properties: stable/8/lib/libusb/ (props changed) stable/8/lib/libusb/usb.h (props changed) Modified: stable/8/lib/libusb/Makefile ============================================================================== --- stable/8/lib/libusb/Makefile Mon Sep 26 07:05:40 2011 (r225758) +++ stable/8/lib/libusb/Makefile Mon Sep 26 07:38:01 2011 (r225759) @@ -38,6 +38,7 @@ CFLAGS+= -DCOMPAT_32BIT MLINKS += libusb.3 libusb_init.3 MLINKS += libusb.3 libusb_exit.3 MLINKS += libusb.3 libusb_strerror.3 +MLINKS += libusb.3 libusb_error_name.3 MLINKS += libusb.3 libusb_set_debug.3 MLINKS += libusb.3 libusb_get_device_list.3 MLINKS += libusb.3 libusb_free_device_list.3 @@ -208,3 +209,5 @@ MLINKS += libusb20.3 libusb20_me_get_2.3 MLINKS += libusb20.3 libusb20_me_encode.3 MLINKS += libusb20.3 libusb20_me_decode.3 MLINKS += libusb20.3 libusb20_desc_foreach.3 +MLINKS += libusb20.3 libusb20_strerror.3 +MLINKS += libusb20.3 libusb20_error_name.3 Modified: stable/8/lib/libusb/libusb.3 ============================================================================== --- stable/8/lib/libusb/libusb.3 Mon Sep 26 07:05:40 2011 (r225758) +++ stable/8/lib/libusb/libusb.3 Mon Sep 26 07:38:01 2011 (r225759) @@ -63,6 +63,14 @@ Other libusb routines may not be called Get the ASCII representation of the error given by the .Fa code argument. +This function does not return NULL. +.Pp +.Ft const char * +.Fn libusb_error_name "int code" +Get the ASCII representation of the error enum given by the +.Fa code +argument. +This function does not return NULL. .Pp .Ft void .Fn libusb_set_debug "libusb_context *ctx" "int level" @@ -502,7 +510,8 @@ The library is also compliant with LibUS .Sh SEE ALSO .Xr libusb20 3 , .Xr usb 4 , -.Xr usbconfig 8 +.Xr usbconfig 8 , +.Xr usbdump 8 .Pp .Pa http://libusb.sourceforge.net/ .Sh HISTORY Modified: stable/8/lib/libusb/libusb.h ============================================================================== --- stable/8/lib/libusb/libusb.h Mon Sep 26 07:05:40 2011 (r225758) +++ stable/8/lib/libusb/libusb.h Mon Sep 26 07:38:01 2011 (r225759) @@ -303,6 +303,7 @@ typedef struct libusb_transfer { void libusb_set_debug(libusb_context * ctx, int level); const char *libusb_strerror(int code); +const char *libusb_error_name(int code); int libusb_init(libusb_context ** context); void libusb_exit(struct libusb_context *ctx); Modified: stable/8/lib/libusb/libusb10.c ============================================================================== --- stable/8/lib/libusb/libusb10.c Mon Sep 26 07:05:40 2011 (r225758) +++ stable/8/lib/libusb/libusb10.c Mon Sep 26 07:38:01 2011 (r225759) @@ -1449,6 +1449,73 @@ libusb_le16_to_cpu(uint16_t x) const char * libusb_strerror(int code) { - /* TODO */ - return ("Unknown error"); + switch (code) { + case LIBUSB_SUCCESS: + return ("Success"); + case LIBUSB_ERROR_IO: + return ("I/O error"); + case LIBUSB_ERROR_INVALID_PARAM: + return ("Invalid parameter"); + case LIBUSB_ERROR_ACCESS: + return ("Permissions error"); + case LIBUSB_ERROR_NO_DEVICE: + return ("No device"); + case LIBUSB_ERROR_NOT_FOUND: + return ("Not found"); + case LIBUSB_ERROR_BUSY: + return ("Device busy"); + case LIBUSB_ERROR_TIMEOUT: + return ("Timeout"); + case LIBUSB_ERROR_OVERFLOW: + return ("Overflow"); + case LIBUSB_ERROR_PIPE: + return ("Pipe error"); + case LIBUSB_ERROR_INTERRUPTED: + return ("Interrupted"); + case LIBUSB_ERROR_NO_MEM: + return ("Out of memory"); + case LIBUSB_ERROR_NOT_SUPPORTED: + return ("Not supported"); + case LIBUSB_ERROR_OTHER: + return ("Other error"); + default: + return ("Unknown error"); + } +} + +const char * +libusb_error_name(int code) +{ + switch (code) { + case LIBUSB_SUCCESS: + return ("LIBUSB_SUCCESS"); + case LIBUSB_ERROR_IO: + return ("LIBUSB_ERROR_IO"); + case LIBUSB_ERROR_INVALID_PARAM: + return ("LIBUSB_ERROR_INVALID_PARAM"); + case LIBUSB_ERROR_ACCESS: + return ("LIBUSB_ERROR_ACCESS"); + case LIBUSB_ERROR_NO_DEVICE: + return ("LIBUSB_ERROR_NO_DEVICE"); + case LIBUSB_ERROR_NOT_FOUND: + return ("LIBUSB_ERROR_NOT_FOUND"); + case LIBUSB_ERROR_BUSY: + return ("LIBUSB_ERROR_BUSY"); + case LIBUSB_ERROR_TIMEOUT: + return ("LIBUSB_ERROR_TIMEOUT"); + case LIBUSB_ERROR_OVERFLOW: + return ("LIBUSB_ERROR_OVERFLOW"); + case LIBUSB_ERROR_PIPE: + return ("LIBUSB_ERROR_PIPE"); + case LIBUSB_ERROR_INTERRUPTED: + return ("LIBUSB_ERROR_INTERRUPTED"); + case LIBUSB_ERROR_NO_MEM: + return ("LIBUSB_ERROR_NO_MEM"); + case LIBUSB_ERROR_NOT_SUPPORTED: + return ("LIBUSB_ERROR_NOT_SUPPORTED"); + case LIBUSB_ERROR_OTHER: + return ("LIBUSB_ERROR_OTHER"); + default: + return ("LIBUSB_ERROR_UNKNOWN"); + } } Modified: stable/8/lib/libusb/libusb20.3 ============================================================================== --- stable/8/lib/libusb/libusb20.3 Mon Sep 26 07:05:40 2011 (r225758) +++ stable/8/lib/libusb/libusb20.3 Mon Sep 26 07:38:01 2011 (r225759) @@ -212,6 +212,10 @@ USB access library (libusb -lusb) .Fn libusb20_me_decode "const void *pdata" "uint16_t len" "void *pdecoded" .Ft "const uint8_t *" .Fn libusb20_desc_foreach "const struct libusb20_me_struct *me" "const uint8_t *pdesc" +.Ft "const char *" +.Fn libusb20_strerror "int code" +.Ft "const char *" +.Fn libusb20_error_name "int code" . . .Sh DESCRIPTION @@ -996,6 +1000,22 @@ The total decoded length is returned. The buffer pointer cannot be NULL. . . +.Sh USB DEBUGGING +.Pp +.Ft const char * +.Fn libusb20_strerror "int code" +Get the ASCII representation of the error given by the +.Fa code +argument. +This function does not return NULL. +.Pp +.Ft const char * +.Fn libusb20_error_name "int code" +Get the ASCII representation of the error enum given by the +.Fa code +argument. +This function does not return NULL. +. .Sh FILES . . @@ -1003,7 +1023,8 @@ The buffer pointer cannot be NULL. .Sh SEE ALSO .Xr usb 4 , .Xr libusb 3 , -.Xr usbconfig 8 +.Xr usbconfig 8 , +.Xr usbdump 8 . . .Sh HISTORY Modified: stable/8/lib/libusb/libusb20.c ============================================================================== --- stable/8/lib/libusb/libusb20.c Mon Sep 26 07:05:40 2011 (r225758) +++ stable/8/lib/libusb/libusb20.c Mon Sep 26 07:38:01 2011 (r225759) @@ -1244,3 +1244,77 @@ libusb20_be_dequeue_device(struct libusb { TAILQ_REMOVE(&(pbe->usb_devs), pdev, dev_entry); } + +const char * +libusb20_strerror(int code) +{ + switch (code) { + case LIBUSB20_SUCCESS: + return ("Success"); + case LIBUSB20_ERROR_IO: + return ("I/O error"); + case LIBUSB20_ERROR_INVALID_PARAM: + return ("Invalid parameter"); + case LIBUSB20_ERROR_ACCESS: + return ("Permissions error"); + case LIBUSB20_ERROR_NO_DEVICE: + return ("No device"); + case LIBUSB20_ERROR_NOT_FOUND: + return ("Not found"); + case LIBUSB20_ERROR_BUSY: + return ("Device busy"); + case LIBUSB20_ERROR_TIMEOUT: + return ("Timeout"); + case LIBUSB20_ERROR_OVERFLOW: + return ("Overflow"); + case LIBUSB20_ERROR_PIPE: + return ("Pipe error"); + case LIBUSB20_ERROR_INTERRUPTED: + return ("Interrupted"); + case LIBUSB20_ERROR_NO_MEM: + return ("Out of memory"); + case LIBUSB20_ERROR_NOT_SUPPORTED: + return ("Not supported"); + case LIBUSB20_ERROR_OTHER: + return ("Other error"); + default: + return ("Unknown error"); + } +} + +const char * +libusb20_error_name(int code) +{ + switch (code) { + case LIBUSB20_SUCCESS: + return ("LIBUSB20_SUCCESS"); + case LIBUSB20_ERROR_IO: + return ("LIBUSB20_ERROR_IO"); + case LIBUSB20_ERROR_INVALID_PARAM: + return ("LIBUSB20_ERROR_INVALID_PARAM"); + case LIBUSB20_ERROR_ACCESS: + return ("LIBUSB20_ERROR_ACCESS"); + case LIBUSB20_ERROR_NO_DEVICE: + return ("LIBUSB20_ERROR_NO_DEVICE"); + case LIBUSB20_ERROR_NOT_FOUND: + return ("LIBUSB20_ERROR_NOT_FOUND"); + case LIBUSB20_ERROR_BUSY: + return ("LIBUSB20_ERROR_BUSY"); + case LIBUSB20_ERROR_TIMEOUT: + return ("LIBUSB20_ERROR_TIMEOUT"); + case LIBUSB20_ERROR_OVERFLOW: + return ("LIBUSB20_ERROR_OVERFLOW"); + case LIBUSB20_ERROR_PIPE: + return ("LIBUSB20_ERROR_PIPE"); + case LIBUSB20_ERROR_INTERRUPTED: + return ("LIBUSB20_ERROR_INTERRUPTED"); + case LIBUSB20_ERROR_NO_MEM: + return ("LIBUSB20_ERROR_NO_MEM"); + case LIBUSB20_ERROR_NOT_SUPPORTED: + return ("LIBUSB20_ERROR_NOT_SUPPORTED"); + case LIBUSB20_ERROR_OTHER: + return ("LIBUSB20_ERROR_OTHER"); + default: + return ("LIBUSB20_ERROR_UNKNOWN"); + } +} Modified: stable/8/lib/libusb/libusb20.h ============================================================================== --- stable/8/lib/libusb/libusb20.h Mon Sep 26 07:05:40 2011 (r225758) +++ stable/8/lib/libusb/libusb20.h Mon Sep 26 07:38:01 2011 (r225759) @@ -293,6 +293,11 @@ void libusb20_be_dequeue_device(struct l void libusb20_be_enqueue_device(struct libusb20_backend *pbe, struct libusb20_device *pdev); void libusb20_be_free(struct libusb20_backend *pbe); +/* USB debugging */ + +const char *libusb20_strerror(int); +const char *libusb20_error_name(int); + #if 0 { /* style */ #endif From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 10:12:17 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76D4B106564A; Mon, 26 Sep 2011 10:12:17 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2C8DA8FC0A; Mon, 26 Sep 2011 10:12:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QACHKJ066420; Mon, 26 Sep 2011 10:12:17 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8QACHXr066417; Mon, 26 Sep 2011 10:12:17 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201109261012.p8QACHXr066417@svn.freebsd.org> From: Attilio Rao Date: Mon, 26 Sep 2011 10:12:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225760 - stable/8/sys/sparc64/sparc64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 10:12:17 -0000 Author: attilio Date: Mon Sep 26 10:12:16 2011 New Revision: 225760 URL: http://svn.freebsd.org/changeset/base/225760 Log: MFC r225675: Initialize the pmap lock for the kernel pmap when it is really appropriate. Modified: stable/8/sys/sparc64/sparc64/machdep.c stable/8/sys/sparc64/sparc64/pmap.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/sparc64/sparc64/machdep.c ============================================================================== --- stable/8/sys/sparc64/sparc64/machdep.c Mon Sep 26 07:38:01 2011 (r225759) +++ stable/8/sys/sparc64/sparc64/machdep.c Mon Sep 26 10:12:16 2011 (r225760) @@ -596,11 +596,6 @@ sparc64_init(caddr_t mdp, u_long o1, u_l wrpr(pil, 0, 0); wrpr(pstate, 0, PSTATE_KERNEL); - /* - * Finish pmap initialization now that we're ready for mutexes. - */ - PMAP_LOCK_INIT(kernel_pmap); - OF_getprop(root, "name", sparc64_model, sizeof(sparc64_model) - 1); kdb_init(); Modified: stable/8/sys/sparc64/sparc64/pmap.c ============================================================================== --- stable/8/sys/sparc64/sparc64/pmap.c Mon Sep 26 07:38:01 2011 (r225759) +++ stable/8/sys/sparc64/sparc64/pmap.c Mon Sep 26 10:12:16 2011 (r225760) @@ -671,11 +671,9 @@ pmap_bootstrap(u_int cpu_impl) /* * Initialize the kernel pmap (which is statically allocated). - * NOTE: PMAP_LOCK_INIT() is needed as part of the initialization - * but sparc64 start up is not ready to initialize mutexes yet. - * It is called in machdep.c. */ pm = kernel_pmap; + PMAP_LOCK_INIT(pm); for (i = 0; i < MAXCPU; i++) pm->pm_context[i] = TLB_CTX_KERNEL; pm->pm_active = ~0; From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 11:57:49 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58C281065673; Mon, 26 Sep 2011 11:57:49 +0000 (UTC) (envelope-from kensmith@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 488AB8FC12; Mon, 26 Sep 2011 11:57:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QBvnl1073248; Mon, 26 Sep 2011 11:57:49 GMT (envelope-from kensmith@svn.freebsd.org) Received: (from kensmith@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8QBvnUI073246; Mon, 26 Sep 2011 11:57:49 GMT (envelope-from kensmith@svn.freebsd.org) Message-Id: <201109261157.p8QBvnUI073246@svn.freebsd.org> From: Ken Smith Date: Mon, 26 Sep 2011 11:57:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225764 - head/share/examples/cvsup X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 11:57:49 -0000 Author: kensmith Date: Mon Sep 26 11:57:48 2011 New Revision: 225764 URL: http://svn.freebsd.org/changeset/base/225764 Log: Forgot to add "RELENG_8" to list of CVS tags. Submitted by: Mamontov Roman Approved by: re (implicit) Modified: head/share/examples/cvsup/stable-supfile Modified: head/share/examples/cvsup/stable-supfile ============================================================================== --- head/share/examples/cvsup/stable-supfile Mon Sep 26 11:40:28 2011 (r225763) +++ head/share/examples/cvsup/stable-supfile Mon Sep 26 11:57:48 2011 (r225764) @@ -67,7 +67,7 @@ *default base=/var/db *default prefix=/usr # The following line is for 9-stable. If you want 8-stable, 7-stable, -# 6-stable, 5-stable, 4-stable, 3-stable, or 2.2-stable, change to +# 6-stable, 5-stable, 4-stable, 3-stable, or 2.2-stable, change to "RELENG_8", # "RELENG_7", "RELENG_6", "RELENG_5", "RELENG_4", "RELENG_3", or # "RELENG_2_2" respectively. *default release=cvs tag=RELENG_9 From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 12:28:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB0571065674 for ; Mon, 26 Sep 2011 12:28:37 +0000 (UTC) (envelope-from kensmith@FreeBSD.org) Received: from localmailB.acsu.buffalo.edu (localmail.buffalo.edu [128.205.5.200]) by mx1.freebsd.org (Postfix) with ESMTP id AB3488FC0A for ; Mon, 26 Sep 2011 12:28:37 +0000 (UTC) Received: from localmailB.acsu.buffalo.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 3F9985E837; Mon, 26 Sep 2011 07:58:49 -0400 (EDT) Received: from localmailB.acsu.buffalo.edu (localhost [127.0.0.1]) by localmailB.acsu.buffalo.edu (Postfix) with ESMTP id AD2AB5E893; Mon, 26 Sep 2011 07:58:48 -0400 (EDT) Received: from smtp3.acsu.buffalo.edu (smtp3.acsu.buffalo.edu [128.205.5.226]) by localmailB.acsu.buffalo.edu (Prefixe) with ESMTP id A68FD2F826; Mon, 26 Sep 2011 07:58:48 -0400 (EDT) Received: from [128.205.32.76] (bauer.cse.buffalo.edu [128.205.32.76]) (Authenticated sender: kensmith@buffalo.edu) by smtp3.acsu.buffalo.edu (Postfix) with ESMTPSA id 7FB4A461A1; Mon, 26 Sep 2011 07:58:48 -0400 (EDT) From: Ken Smith To: Mamontov Roman In-Reply-To: <1845048207.20110926093648@gmail.com> References: <1845048207.20110926093648@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-vBbc4MF8eK9LqKga5hqq" Date: Mon, 26 Sep 2011 07:58:41 -0400 Message-ID: <1317038321.83856.0.camel@bauer.cse.buffalo.edu> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-PM-EL-Spam-Prob: : 8% Cc: svn-src-all@freebsd.org Subject: Re: svn commit: r225757 - in head: . gnu/usr.bin/groff/tmac release share/examples/cvsup sys/conf sys/sys usr.sbin/pkg_install/add X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 12:28:37 -0000 --=-vBbc4MF8eK9LqKga5hqq Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Mon, 2011-09-26 at 09:36 +0400, Mamontov Roman wrote: > On Mon Sep 26 02:27:05 UTC 2011 Ken Smith kensmith at FreeBSD.org wrote: >=20 > > Modified: head/share/examples/cvsup/stable-supfile > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > --- head/share/examples/cvsup/stable-supfile Sun Sep 25 15:28:09 201= 1 (r225756) > > +++ head/share/examples/cvsup/stable-supfile Mon Sep 26 02:27:04 201= 1 (r225757) > ... > > +# The following line is for 9-stable. If you want 8-stable, 7-stable, > > +# 6-stable, 5-stable, 4-stable, 3-stable, or 2.2-stable, change to > > +# "RELENG_7", "RELENG_6", "RELENG_5", "RELENG_4", "RELENG_3", or > > +# "RELENG_2_2" respectively. > > +*default release=3Dcvs tag=3DRELENG_9 >=20 > I think there error in comment (forgot RELENG_8). >=20 Thanks. --=20 Ken Smith - From there to here, from here to | kensmith@freebsd.org there, funny things are everywhere. | - Theodor Geisel | --=-vBbc4MF8eK9LqKga5hqq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk6AaOQACgkQ/G14VSmup/bblACeImvT2PRywlWgHjdxRVlp7Z0r EFwAn1cnRAUZojY2Awgi1sQ4AN4+9lM2 =HKr2 -----END PGP SIGNATURE----- --=-vBbc4MF8eK9LqKga5hqq-- From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 13:59:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B92EA106564A; Mon, 26 Sep 2011 13:59:18 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id E53F58FC0A; Mon, 26 Sep 2011 13:59:17 +0000 (UTC) Received: by eyg7 with SMTP id 7so4808023eyg.13 for ; Mon, 26 Sep 2011 06:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WU915msPYJUVkrZEUfLf1e3/Dmf4dYkwMaPcg0AmnhM=; b=v/hJHreD0ftsOQKCVbs2zSOC3COjZIq+dvqMTzJFnyuIalG6HtlDmcR8c49RNAB2ND mrG2qxPO2cu77GaMuW5s+tZ8i0rXlTCubl1X0J1Aabtcda3nP49EVJKpD8+pr6rQGtH9 AQwTyWwjWCEYKogP1GzmZyw9aM0f++l/71n+s= MIME-Version: 1.0 Received: by 10.216.138.29 with SMTP id z29mr7517730wei.42.1317045556714; Mon, 26 Sep 2011 06:59:16 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.216.179.78 with HTTP; Mon, 26 Sep 2011 06:59:16 -0700 (PDT) In-Reply-To: <20110905023251.C832@besplex.bde.org> References: <201109041307.p84D72GY092462@svn.freebsd.org> <20110905023251.C832@besplex.bde.org> Date: Mon, 26 Sep 2011 15:59:16 +0200 X-Google-Sender-Auth: YhNFDxMjRghuH6UULO5WE0-lmJs Message-ID: From: Attilio Rao To: Bruce Evans Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225372 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 13:59:18 -0000 2011/9/4 Bruce Evans : > On Sun, 4 Sep 2011, Attilio Rao wrote: > >> Also please notice that intr enable/disable happens in the wrong way >> as it is done via the MD (x86 specific likely) interface. This is >> wrong for 2 reasons: > > No, intr_disable() is MI. =C2=A0It is also used by witness. =C2=A0disable= _intr() > is the corresponding x86 interface that you may be thinking of. =C2=A0The= MI > interface intr_disable() was introduced to avoid the MD'ness of > intr_disable(). I was a bit surprised to verify that you are right but spinlock_enter() has the big difference besides disable_intr() of also explicitly disabling preemption via critical_enter() which some codepath can trigger without even noticing it. This means it is more safer in presence of PREEMPTION option on and thus should be preferred to the normal intr_disable(), in particular for convoluted codepaths. >> 1) There may be some codepaths leading to explicit preemption >> 2) It should =C2=A0really use an MI interface >> >> The right way to do this should be via spinlock_enter(). > > spinlock_enter() is MI, but has wrong semantics. =C2=A0In my version of i= 386, > spinlocks don't disable any h/w interrupt, as is needed for fast interrup= t > handlers to actually work. =C2=A0I believe sparc64 is similar, except its > spinlock_enter() disables most h/w interrupts and this includes fast > interrupt handlers. =C2=A0I don't understand sparc64, but it looks like i= ts > spinlock_enter() disables all interrupts visible in C code, but not > all interrupts: Can you please explain more about the 'h/w interrupts not disabled' in X86? Are you speaking about NMIs? For those the only way to effectively mask them would be to reprogram the LAPIC entry, but I don't really think we may want that. > from cpufunc.h: > % static __inline register_t > % intr_disable(void) > % { > % =C2=A0 =C2=A0 =C2=A0 register_t s; > % % =C2=A0 =C2=A0 s =3D rdpr(pstate); > % =C2=A0 =C2=A0 =C2=A0 wrpr(pstate, s & ~PSTATE_IE, 0); > % =C2=A0 =C2=A0 =C2=A0 return (s); > % } > > This seems to mask all interrupts, as required. > > =C2=A0 =C2=A0(The interface here is slightly broken (non-MI). =C2=A0It re= turns register_t. > =C2=A0 =C2=A0This assumes that the interrupt state can be represented in = a single > =C2=A0 =C2=A0register. =C2=A0The type critical_t exists to avoid the same= bug in an > =C2=A0 =C2=A0old version of critical_enter(). =C2=A0Now this type is just= bogus. > =C2=A0 =C2=A0critical_enter() no longer returns it. =C2=A0Instead, spinlo= ck_enter() uses > =C2=A0 =C2=A0a non-reentrant interface which stores what used to be the r= eturn value > =C2=A0 =C2=A0of critical_enter() in a per-thread MD data structure (md_sa= ved_pil > =C2=A0 =C2=A0in the above). =C2=A0Most or all arches use register_t for t= his. =C2=A0This > =C2=A0 =C2=A0leaves critical_t as pure garbage -- the only remaining refe= rences to > =C2=A0 =C2=A0it are for its definition.) I mostly agree, I think we should have an MD specified type to replace register_t for this (it could alias it, if it is suitable, but this interface smells a lot like x86-centric). Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 15:26:59 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8603E106564A; Mon, 26 Sep 2011 15:26:59 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 73E318FC16; Mon, 26 Sep 2011 15:26:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QFQxfC079914; Mon, 26 Sep 2011 15:26:59 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8QFQx5W079912; Mon, 26 Sep 2011 15:26:59 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109261526.p8QFQx5W079912@svn.freebsd.org> From: Adrian Chadd Date: Mon, 26 Sep 2011 15:26:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org X-SVN-Group: stable-6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225767 - stable/6/sys/pci X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 15:26:59 -0000 Author: adrian Date: Mon Sep 26 15:26:59 2011 New Revision: 225767 URL: http://svn.freebsd.org/changeset/base/225767 Log: Update if_de(4) to fix bugs - a combination of bitrot and busdma changes. This commit is a merge of 197465, 197464, 197463, 197461, 177937 and 170389. Submitted by: Andreas Longwitz Reviewed by: jhb Modified: stable/6/sys/pci/if_de.c Directory Properties: stable/6/sys/ (props changed) stable/6/sys/contrib/pf/ (props changed) Modified: stable/6/sys/pci/if_de.c ============================================================================== --- stable/6/sys/pci/if_de.c Mon Sep 26 12:20:33 2011 (r225766) +++ stable/6/sys/pci/if_de.c Mon Sep 26 15:26:59 2011 (r225767) @@ -160,7 +160,7 @@ static void tulip_dma_map_rxbuf(void *, static void tulip_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error) { - u_int32_t *paddr; + bus_addr_t *paddr; if (error) return; @@ -182,7 +182,7 @@ tulip_dma_map_rxbuf(void *arg, bus_dma_s KASSERT(nseg == 1, ("too many DMA segments")); KASSERT(segs[0].ds_len >= TULIP_RX_BUFLEN, ("receive buffer too small")); - desc->d_addr1 = segs[0].ds_addr; + desc->d_addr1 = segs[0].ds_addr & 0xffffffff; desc->d_length1 = TULIP_RX_BUFLEN; #ifdef not_needed /* These should already always be zero. */ @@ -3160,8 +3160,8 @@ tulip_reset(tulip_softc_t * const sc) sc->tulip_ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; } - TULIP_CSR_WRITE(sc, csr_txlist, sc->tulip_txinfo.ri_dma_addr); - TULIP_CSR_WRITE(sc, csr_rxlist, sc->tulip_rxinfo.ri_dma_addr); + TULIP_CSR_WRITE(sc, csr_txlist, sc->tulip_txinfo.ri_dma_addr & 0xffffffff); + TULIP_CSR_WRITE(sc, csr_rxlist, sc->tulip_rxinfo.ri_dma_addr & 0xffffffff); TULIP_CSR_WRITE(sc, csr_busmode, (1 << (3 /*pci_max_burst_len*/ + 8)) |TULIP_BUSMODE_CACHE_ALIGN8 @@ -3476,7 +3476,7 @@ tulip_rx_intr(tulip_softc_t * const sc) struct mbuf *m0; KASSERT(ms != NULL, ("no packet to accept")); -#if defined(TULIP_COPY_RXDATA) +#ifndef __NO_STRICT_ALIGNMENT /* * Copy the data into a new mbuf that is properly aligned. If * we fail to allocate a new mbuf, then drop the packet. We will @@ -3515,7 +3515,7 @@ tulip_rx_intr(tulip_softc_t * const sc) */ ms = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR); -#if defined(TULIP_COPY_RXDATA) +#ifndef __NO_STRICT_ALIGNMENT skip_input: #endif if (ms == NULL) { @@ -3541,7 +3541,7 @@ tulip_rx_intr(tulip_softc_t * const sc) M_ASSERTPKTHDR(ms); KASSERT(ms->m_data == ms->m_ext.ext_buf, ("rx mbuf data doesn't point to cluster")); - ms->m_len = ms->m_pkthdr.len = MCLBYTES; + ms->m_len = ms->m_pkthdr.len = TULIP_RX_BUFLEN; error = bus_dmamap_load_mbuf(ri->ri_data_tag, *nextout->di_map, ms, tulip_dma_map_rxbuf, nextout->di_desc, BUS_DMA_NOWAIT); if (error) { @@ -4004,9 +4004,9 @@ tulip_txput(tulip_softc_t * const sc, st eop = nextout; eop->di_desc->d_flag &= TULIP_DFLAG_ENDRING|TULIP_DFLAG_CHAIN; eop->di_desc->d_status = d_status; - eop->di_desc->d_addr1 = segs[segcnt].ds_addr; + eop->di_desc->d_addr1 = segs[segcnt].ds_addr & 0xffffffff; eop->di_desc->d_length1 = segs[segcnt].ds_len; - eop->di_desc->d_addr2 = segs[segcnt+1].ds_addr; + eop->di_desc->d_addr2 = segs[segcnt+1].ds_addr & 0xffffffff; eop->di_desc->d_length2 = segs[segcnt+1].ds_len; d_status = TULIP_DSTS_OWNER; if (++nextout == ri->ri_last) @@ -4016,7 +4016,7 @@ tulip_txput(tulip_softc_t * const sc, st eop = nextout; eop->di_desc->d_flag &= TULIP_DFLAG_ENDRING|TULIP_DFLAG_CHAIN; eop->di_desc->d_status = d_status; - eop->di_desc->d_addr1 = segs[segcnt].ds_addr; + eop->di_desc->d_addr1 = segs[segcnt].ds_addr & 0xffffffff; eop->di_desc->d_length1 = segs[segcnt].ds_len; eop->di_desc->d_addr2 = 0; eop->di_desc->d_length2 = 0; @@ -4182,7 +4182,7 @@ tulip_txput_setup(tulip_softc_t * const nextout->d_length2 = 0; nextout->d_addr2 = 0; nextout->d_length1 = sizeof(sc->tulip_setupdata); - nextout->d_addr1 = sc->tulip_setup_dma_addr; + nextout->d_addr1 = sc->tulip_setup_dma_addr & 0xffffffff; bus_dmamap_sync(sc->tulip_setup_tag, sc->tulip_setup_map, BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); TULIP_TXDESC_PRESYNC(ri); @@ -4490,7 +4490,7 @@ tulip_busdma_freering(tulip_ringinfo_t * /* Allocate memory for a single descriptor ring. */ static int tulip_busdma_allocring(device_t dev, tulip_softc_t * const sc, size_t count, - bus_size_t maxsize, int nsegs, tulip_ringinfo_t *ri, const char *name) + bus_size_t align, int nsegs, tulip_ringinfo_t *ri, const char *name) { size_t size; int error, i; @@ -4498,7 +4498,7 @@ tulip_busdma_allocring(device_t dev, tul /* First, setup a tag. */ ri->ri_max = count; size = count * sizeof(tulip_desc_t); - error = bus_dma_tag_create(NULL, PAGE_SIZE, 0, BUS_SPACE_MAXADDR_32BIT, + error = bus_dma_tag_create(NULL, 32, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, size, 1, size, 0, NULL, NULL, &ri->ri_ring_tag); if (error) { @@ -4526,9 +4526,9 @@ tulip_busdma_allocring(device_t dev, tul } /* Allocate a tag for the data buffers. */ - error = bus_dma_tag_create(NULL, 4, 0, + error = bus_dma_tag_create(NULL, align, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, - maxsize, nsegs, TULIP_DATA_PER_DESC, 0, NULL, NULL, &ri->ri_data_tag); + MCLBYTES * nsegs, nsegs, MCLBYTES, 0, NULL, NULL, &ri->ri_data_tag); if (error) { device_printf(dev, "failed to allocate %s buffer dma tag\n", name); return (error); @@ -4562,6 +4562,7 @@ tulip_busdma_cleanup(tulip_softc_t * con if (sc->tulip_setupbuf != NULL) { bus_dmamem_free(sc->tulip_setup_tag, sc->tulip_setupdata, sc->tulip_setup_map); + bus_dmamap_destroy(sc->tulip_setup_tag, sc->tulip_setup_map); sc->tulip_setup_map = NULL; sc->tulip_setupbuf = NULL; } @@ -4585,8 +4586,8 @@ tulip_busdma_init(device_t dev, tulip_so /* * Allocate space and dmamap for transmit ring. */ - error = tulip_busdma_allocring(dev, sc, TULIP_TXDESCS, TULIP_DATA_PER_DESC, - TULIP_MAX_TXSEG, &sc->tulip_txinfo, "transmit"); + error = tulip_busdma_allocring(dev, sc, TULIP_TXDESCS, 1, TULIP_MAX_TXSEG, + &sc->tulip_txinfo, "transmit"); if (error) return (error); @@ -4597,7 +4598,7 @@ tulip_busdma_init(device_t dev, tulip_so * a waste in practice though as an ethernet frame can easily fit * in TULIP_RX_BUFLEN bytes. */ - error = tulip_busdma_allocring(dev, sc, TULIP_RXDESCS, MCLBYTES, 1, + error = tulip_busdma_allocring(dev, sc, TULIP_RXDESCS, 4, 1, &sc->tulip_rxinfo, "receive"); if (error) return (error); @@ -4605,7 +4606,7 @@ tulip_busdma_init(device_t dev, tulip_so /* * Allocate a DMA tag, memory, and map for setup descriptor */ - error = bus_dma_tag_create(NULL, 4, 0, + error = bus_dma_tag_create(NULL, 32, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, sizeof(sc->tulip_setupdata), 1, sizeof(sc->tulip_setupdata), 0, NULL, NULL, &sc->tulip_setup_tag); From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 21:40:22 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3EC11065673; Mon, 26 Sep 2011 21:40:21 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DF7BE8FC1F; Mon, 26 Sep 2011 21:40:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QLeLnR091757; Mon, 26 Sep 2011 21:40:21 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8QLeLUo091744; Mon, 26 Sep 2011 21:40:21 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201109262140.p8QLeLUo091744@svn.freebsd.org> From: Jung-uk Kim Date: Mon, 26 Sep 2011 21:40:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-sys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225768 - in vendor-sys/acpica/dist: . common compiler generate/unix generate/unix/acpibin generate/unix/acpiexec generate/unix/acpihelp generate/unix/acpinames generate/unix/acpisrc ge... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 21:40:22 -0000 Author: jkim Date: Mon Sep 26 21:40:21 2011 New Revision: 225768 URL: http://svn.freebsd.org/changeset/base/225768 Log: Import ACPICA 20110922. Added: vendor-sys/acpica/dist/tools/acpixtract/axmain.c (contents, props changed) Modified: vendor-sys/acpica/dist/changes.txt vendor-sys/acpica/dist/common/dmtable.c vendor-sys/acpica/dist/compiler/Makefile vendor-sys/acpica/dist/compiler/aslcompile.c vendor-sys/acpica/dist/compiler/aslcompiler.h vendor-sys/acpica/dist/compiler/asldefine.h vendor-sys/acpica/dist/compiler/aslfiles.c vendor-sys/acpica/dist/compiler/aslglobal.h vendor-sys/acpica/dist/compiler/asllisting.c vendor-sys/acpica/dist/compiler/aslload.c vendor-sys/acpica/dist/compiler/asllookup.c vendor-sys/acpica/dist/compiler/aslmain.c vendor-sys/acpica/dist/compiler/aslmessages.h vendor-sys/acpica/dist/compiler/asloperands.c vendor-sys/acpica/dist/compiler/aslpredef.c vendor-sys/acpica/dist/compiler/aslresource.c vendor-sys/acpica/dist/compiler/aslrestype1.c vendor-sys/acpica/dist/compiler/aslrestype1i.c vendor-sys/acpica/dist/compiler/aslrestype2.c vendor-sys/acpica/dist/compiler/aslrestype2d.c vendor-sys/acpica/dist/compiler/aslrestype2e.c vendor-sys/acpica/dist/compiler/aslrestype2q.c vendor-sys/acpica/dist/compiler/aslrestype2w.c vendor-sys/acpica/dist/compiler/asltree.c vendor-sys/acpica/dist/compiler/asltypes.h vendor-sys/acpica/dist/compiler/aslutils.c vendor-sys/acpica/dist/compiler/dtcompile.c vendor-sys/acpica/dist/generate/unix/Makefile.config vendor-sys/acpica/dist/generate/unix/acpibin/Makefile vendor-sys/acpica/dist/generate/unix/acpiexec/Makefile vendor-sys/acpica/dist/generate/unix/acpihelp/Makefile vendor-sys/acpica/dist/generate/unix/acpinames/Makefile vendor-sys/acpica/dist/generate/unix/acpisrc/Makefile vendor-sys/acpica/dist/generate/unix/acpixtract/Makefile vendor-sys/acpica/dist/generate/unix/iasl/Makefile vendor-sys/acpica/dist/include/acapps.h vendor-sys/acpica/dist/include/acconfig.h vendor-sys/acpica/dist/include/aclocal.h vendor-sys/acpica/dist/include/acpixf.h vendor-sys/acpica/dist/include/platform/acenv.h vendor-sys/acpica/dist/tools/acpibin/Makefile vendor-sys/acpica/dist/tools/acpibin/abmain.c vendor-sys/acpica/dist/tools/acpiexec/Makefile vendor-sys/acpica/dist/tools/acpiexec/aemain.c vendor-sys/acpica/dist/tools/acpihelp/Makefile vendor-sys/acpica/dist/tools/acpihelp/ahaslops.c vendor-sys/acpica/dist/tools/acpihelp/ahmain.c vendor-sys/acpica/dist/tools/acpihelp/ahpredef.c vendor-sys/acpica/dist/tools/acpinames/Makefile vendor-sys/acpica/dist/tools/acpinames/anmain.c vendor-sys/acpica/dist/tools/acpisrc/Makefile vendor-sys/acpica/dist/tools/acpisrc/asmain.c vendor-sys/acpica/dist/tools/acpisrc/astable.c vendor-sys/acpica/dist/tools/acpixtract/Makefile vendor-sys/acpica/dist/tools/acpixtract/acpixtract.c Modified: vendor-sys/acpica/dist/changes.txt ============================================================================== --- vendor-sys/acpica/dist/changes.txt Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/changes.txt Mon Sep 26 21:40:21 2011 (r225768) @@ -1,4 +1,81 @@ ---------------------------------------- +22 September 2011. Summary of changes for version 20110922: + +This release is available at www.acpica.org/downloads + +0) ACPI 5.0 News: + +Support for ACPI 5.0 in ACPICA has been underway for several months and will +be released at the same time that ACPI 5.0 is officially released. + +The ACPI 5.0 specification is on track for release in the next few months. + +1) ACPICA Core Subsystem: + +Fixed a problem where the maximum sleep time for the Sleep() operator was +intended to be limited to two seconds, but was inadvertently limited to 20 +seconds instead. + +Linux and Unix makefiles: Added header file dependencies to ensure correct +generation of ACPICA core code and utilities. Also simplified the makefiles +considerably through the use of the vpath variable to specify search paths. +ACPICA BZ 924. + +2) iASL Compiler/Disassembler and Tools: + +iASL: Implemented support to check the access length for all fields created to +access named Resource Descriptor fields. For example, if a resource field is +defined to be two bits, a warning is issued if a CreateXxxxField() is used +with an incorrect bit length. This is implemented for all current resource +descriptor names. ACPICA BZ 930. + +Disassembler: Fixed a byte ordering problem with the output of 24-bit and 56- +bit integers. + +iASL: Fixed a couple of issues associated with variable-length package +objects. 1) properly handle constants like One, Ones, Zero -- do not make a +VAR_PACKAGE when these are used as a package length. 2) Allow the VAR_PACKAGE +opcode (in addition to PACKAGE) when validating object types for predefined +names. + +iASL: Emit statistics for all output files (instead of just the ASL input and +AML output). Includes listings, hex files, etc. + +iASL: Added -G option to the table compiler to allow the compilation of custom +ACPI tables. The only part of a table that is required is the standard 36-byte +ACPI header. + +AcpiXtract: Ported to the standard ACPICA environment (with ACPICA headers), +which also adds correct 64-bit support. Also, now all output filenames are +completely lower case. + +AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when +loading table files. A warning is issued for any such tables. The only +exception is an FADT. This also fixes a possible fault when attempting to load +non-AML tables. ACPICA BZ 932. + +AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where a +missing table terminator could cause a fault when using the -p option. + +AcpiSrc: Fixed a possible divide-by-zero fault when generating file +statistics. + +3) Example Code and Data Size + +These are the sizes for the OS-independent acpica.lib produced by the +Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code +includes the debug output trace mechanism and has a much larger code and data +size. + + Previous Release (VC 9.0): + Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total + Debug Version: 165.6K Code, 68.4K Data, 234.0K Total + Current Release (VC 9.0): + Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total + Debug Version: 165.6K Code, 68.4K Data, 234.0K Total + + +---------------------------------------- 23 June 2011. Summary of changes for version 20110623: 1) ACPI CA Core Subsystem: Modified: vendor-sys/acpica/dist/common/dmtable.c ============================================================================== --- vendor-sys/acpica/dist/common/dmtable.c Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/common/dmtable.c Mon Sep 26 21:40:21 2011 (r225768) @@ -750,44 +750,25 @@ AcpiDmDumpTable ( AcpiOsPrintf ("%1.1X\n", (*Target >> 2) & 0x03); break; - /* Standard Data Types */ + /* Integer Data Types */ case ACPI_DMT_UINT8: - - AcpiOsPrintf ("%2.2X\n", *Target); - break; - case ACPI_DMT_UINT16: - - AcpiOsPrintf ("%4.4X\n", ACPI_GET16 (Target)); - break; - case ACPI_DMT_UINT24: - - AcpiOsPrintf ("%2.2X%2.2X%2.2X\n", - *Target, *(Target + 1), *(Target + 2)); - break; - case ACPI_DMT_UINT32: - - AcpiOsPrintf ("%8.8X\n", ACPI_GET32 (Target)); - break; - case ACPI_DMT_UINT56: - - for (Temp8 = 0; Temp8 < 7; Temp8++) + case ACPI_DMT_UINT64: + /* + * Dump bytes - high byte first, low byte last. + * Note: All ACPI tables are little-endian. + */ + for (Temp8 = (UINT8) ByteLength; Temp8 > 0; Temp8--) { - AcpiOsPrintf ("%2.2X", Target[Temp8]); + AcpiOsPrintf ("%2.2X", Target[Temp8 - 1]); } AcpiOsPrintf ("\n"); break; - case ACPI_DMT_UINT64: - - AcpiOsPrintf ("%8.8X%8.8X\n", - ACPI_FORMAT_UINT64 (ACPI_GET64 (Target))); - break; - case ACPI_DMT_BUF7: case ACPI_DMT_BUF16: case ACPI_DMT_BUF128: Modified: vendor-sys/acpica/dist/compiler/Makefile ============================================================================== --- vendor-sys/acpica/dist/compiler/Makefile Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/Makefile Mon Sep 26 21:40:21 2011 (r225768) @@ -19,50 +19,57 @@ PROG = iasl HOST = _LINUX NOMAN = YES -COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $? +COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $< ACPICA_COMPONENTS = -ACPICA_SRC = .. -ACPICA_COMMON = $(ACPICA_SRC)/common -ACPICA_CORE = $(ACPICA_SRC)$(ACPICA_COMPONENTS) -ACPICA_TOOLS = $(ACPICA_SRC)/tools -ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers -ASL_COMPILER = $(ACPICA_SRC)/compiler -INSTALLDIR = /usr/bin -INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR) +ACPICA_SRC = .. +ACPICA_INCLUDE = $(ACPICA_SRC)/include +ACPICA_COMMON = $(ACPICA_SRC)/common +ACPICA_CORE = $(ACPICA_SRC)$(ACPICA_COMPONENTS) +ACPICA_TOOLS = $(ACPICA_SRC)/tools +ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers +ACPICA_DEBUGGER = $(ACPICA_CORE)/debugger +ACPICA_DISASSEMBLER = $(ACPICA_CORE)/disassembler +ACPICA_DISPATCHER = $(ACPICA_CORE)/dispatcher +ACPICA_EXECUTER = $(ACPICA_CORE)/executer +ACPICA_NAMESPACE = $(ACPICA_CORE)/namespace +ACPICA_PARSER = $(ACPICA_CORE)/parser +ACPICA_TABLES = $(ACPICA_CORE)/tables +ACPICA_UTILITIES = $(ACPICA_CORE)/utilities +ASL_COMPILER = $(ACPICA_SRC)/compiler +INSTALLDIR = /usr/bin +INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR) + +ACPICA_HEADERS = \ + $(wildcard $(ACPICA_INCLUDE)/*.h) \ + $(wildcard $(ACPICA_INCLUDE)/platform/*.h) + +# +# Search paths for source files +# +vpath %.c \ + $(ASL_COMPILER) \ + $(ACPICA_DEBUGGER) \ + $(ACPICA_DISASSEMBLER) \ + $(ACPICA_DISPATCHER) \ + $(ACPICA_EXECUTER) \ + $(ACPICA_NAMESPACE) \ + $(ACPICA_PARSER) \ + $(ACPICA_TABLES) \ + $(ACPICA_UTILITIES) \ + $(ACPICA_COMMON) \ + $(ACPICA_OSL) + +HEADERS = \ + $(wildcard $(ASL_COMPILER)/*.h) \ + aslcompiler.y.h \ + dtparser.y.h -CFLAGS+= \ - -D$(HOST) \ - -D_GNU_SOURCE \ - -DACPI_ASL_COMPILER \ - -I$(ACPICA_SRC)/include \ - -I$(ASL_COMPILER) - -CWARNINGFLAGS = \ - -ansi \ - -Wall \ - -Wbad-function-cast \ - -Wdeclaration-after-statement \ - -Werror \ - -Wformat=2 \ - -Wmissing-declarations \ - -Wmissing-prototypes \ - -Wstrict-aliasing=0 \ - -Wstrict-prototypes \ - -Wswitch-default \ - -Wpointer-arith \ - -Wundef - -# -# Bison/Flex configuration -# -YACC= bison -YFLAGS+= -v -d -y - -LEX= flex -LFLAGS+= -i -s - -OBJS = \ +OBJECTS = \ + aslcompilerlex.o \ + aslcompilerparse.o \ + dtparserlex.o \ + dtparserparse.o \ adfile.o \ adisasm.o \ adwalk.o \ @@ -70,8 +77,6 @@ OBJS = \ aslbtypes.o \ aslcodegen.o \ aslcompile.o \ - aslcompilerlex.o \ - aslcompilerparse.o \ aslerror.o \ aslfiles.o \ aslfold.o \ @@ -104,8 +109,6 @@ OBJS = \ dtexpress.o \ dtfield.o \ dtio.o \ - dtparserlex.o \ - dtparserparse.o \ dtsubtable.o \ dttable.o \ dttemplate.o \ @@ -205,18 +208,67 @@ INTERMEDIATES = \ dtparserparse.c MISC = \ + aslcompilerparse.h \ aslcompiler.y.h \ aslcompilerparse.output \ + dtparserparse.h \ dtparser.y.h \ dtparserparse.output +CFLAGS+= \ + -D$(HOST) \ + -D_GNU_SOURCE \ + -DACPI_ASL_COMPILER \ + -I$(ACPICA_INCLUDE) \ + -I$(ASL_COMPILER) + +CWARNINGFLAGS = \ + -ansi \ + -Wall \ + -Wbad-function-cast \ + -Wdeclaration-after-statement \ + -Werror \ + -Wformat=2 \ + -Wmissing-declarations \ + -Wmissing-prototypes \ + -Wstrict-aliasing=0 \ + -Wstrict-prototypes \ + -Wswitch-default \ + -Wpointer-arith \ + -Wundef # -# Root rule +# gcc 4+ flags # -$(PROG) : $(INTERMEDIATES) $(OBJS) - $(CC) $(OBJS) $(LDFLAGS) -o $(PROG) +CWARNINGFLAGS += \ + -Waddress \ + -Waggregate-return \ + -Wchar-subscripts \ + -Wempty-body \ + -Wlogical-op \ + -Wmissing-declarations \ + -Wmissing-field-initializers \ + -Wmissing-parameter-type \ + -Wnested-externs \ + -Wold-style-declaration \ + -Wold-style-definition \ + -Wredundant-decls \ + -Wtype-limits +# +# Bison/Flex configuration +# +YACC= bison +YFLAGS+= -v -d -y + +LEX= flex +LFLAGS+= -i -s + +# +# Root rule +# +$(PROG) : $(INTERMEDIATES) $(MISC) $(OBJECTS) + $(CC) $(OBJECTS) $(LDFLAGS) -o $(PROG) # # Parser and Lexer - intermediate C files @@ -224,16 +276,24 @@ $(PROG) : $(INTERMEDIATES) $(OBJS) aslcompilerlex.c : $(ASL_COMPILER)/aslcompiler.l ${LEX} ${LFLAGS} -PAslCompiler -o$@ $? -aslcompilerparse.c : $(ASL_COMPILER)/aslcompiler.y +aslcompilerparse.c aslcompilerparse.h : $(ASL_COMPILER)/aslcompiler.y ${YACC} ${YFLAGS} -pAslCompiler -o$@ $? - @mv -f aslcompilerparse.h aslcompiler.y.h dtparserlex.c : $(ASL_COMPILER)/dtparser.l ${LEX} ${LFLAGS} -PDtParser -o$@ $? -dtparserparse.c : $(ASL_COMPILER)/dtparser.y +dtparserparse.c dtparserparse.h : $(ASL_COMPILER)/dtparser.y ${YACC} ${YFLAGS} -pDtParser -o$@ $? - @mv -f dtparserparse.h dtparser.y.h + +# Rename headers produced by bison/yacc + +dtparser.y.h: dtparserparse.h + @echo Copy intermediate file: + @cp -f -v dtparserparse.h dtparser.y.h + +aslcompiler.y.h : aslcompilerparse.h + @echo Copy intermediate file: + @cp -f -v aslcompilerparse.h aslcompiler.y.h # @@ -255,418 +315,11 @@ dtparserparse.o : dtparserparse.c $(CC) -c $(CFLAGS) -Wall -Werror -Wstrict-aliasing=0 -o$@ $? -# -# Compiler source -# -aslanalyze.o : $(ASL_COMPILER)/aslanalyze.c - $(COMPILE) - -aslbtypes.o : $(ASL_COMPILER)/aslbtypes.c - $(COMPILE) - -aslcodegen.o : $(ASL_COMPILER)/aslcodegen.c - $(COMPILE) - -aslcompile.o : $(ASL_COMPILER)/aslcompile.c - $(COMPILE) - -aslerror.o : $(ASL_COMPILER)/aslerror.c - $(COMPILE) - -aslfiles.o : $(ASL_COMPILER)/aslfiles.c - $(COMPILE) - -aslfold.o : $(ASL_COMPILER)/aslfold.c - $(COMPILE) - -asllength.o : $(ASL_COMPILER)/asllength.c - $(COMPILE) - -asllisting.o : $(ASL_COMPILER)/asllisting.c - $(COMPILE) - -aslload.o : $(ASL_COMPILER)/aslload.c - $(COMPILE) - -asllookup.o : $(ASL_COMPILER)/asllookup.c - $(COMPILE) - -aslmain.o : $(ASL_COMPILER)/aslmain.c - $(COMPILE) - -aslmap.o : $(ASL_COMPILER)/aslmap.c - $(COMPILE) - -aslopcodes.o : $(ASL_COMPILER)/aslopcodes.c - $(COMPILE) - -asloperands.o : $(ASL_COMPILER)/asloperands.c - $(COMPILE) - -aslopt.o : $(ASL_COMPILER)/aslopt.c - $(COMPILE) - -aslpredef.o : $(ASL_COMPILER)/aslpredef.c - $(COMPILE) - -aslresource.o : $(ASL_COMPILER)/aslresource.c - $(COMPILE) - -aslrestype1.o : $(ASL_COMPILER)/aslrestype1.c - $(COMPILE) - -aslrestype1i.o : $(ASL_COMPILER)/aslrestype1i.c - $(COMPILE) - -aslrestype2.o : $(ASL_COMPILER)/aslrestype2.c - $(COMPILE) - -aslrestype2d.o : $(ASL_COMPILER)/aslrestype2d.c - $(COMPILE) - -aslrestype2e.o : $(ASL_COMPILER)/aslrestype2e.c - $(COMPILE) - -aslrestype2q.o : $(ASL_COMPILER)/aslrestype2q.c - $(COMPILE) - -aslrestype2w.o : $(ASL_COMPILER)/aslrestype2w.c - $(COMPILE) - -aslstartup.o : $(ASL_COMPILER)/aslstartup.c - $(COMPILE) - -aslstubs.o : $(ASL_COMPILER)/aslstubs.c - $(COMPILE) - -asltransform.o : $(ASL_COMPILER)/asltransform.c - $(COMPILE) - -asltree.o : $(ASL_COMPILER)/asltree.c - $(COMPILE) - -aslutils.o : $(ASL_COMPILER)/aslutils.c - $(COMPILE) - -asluuid.o : $(ASL_COMPILER)/asluuid.c - $(COMPILE) - -aslwalks.o : $(ASL_COMPILER)/aslwalks.c - $(COMPILE) - - -# -# Data Table Compiler -# -dtcompile.o : $(ASL_COMPILER)/dtcompile.c - $(COMPILE) - -dtexpress.o : $(ASL_COMPILER)/dtexpress.c - $(COMPILE) - -dtfield.o : $(ASL_COMPILER)/dtfield.c - $(COMPILE) - -dtio.o : $(ASL_COMPILER)/dtio.c - $(COMPILE) - -dtsubtable.o : $(ASL_COMPILER)/dtsubtable.c - $(COMPILE) - -dttable.o : $(ASL_COMPILER)/dttable.c - $(COMPILE) - -dttemplate.o : $(ASL_COMPILER)/dttemplate.c - $(COMPILE) - -dtutils.o : $(ASL_COMPILER)/dtutils.c - $(COMPILE) - - -# -# ACPICA core source - common -# -adfile.o : $(ACPICA_COMMON)/adfile.c - $(COMPILE) - -adisasm.o : $(ACPICA_COMMON)/adisasm.c - $(COMPILE) - -adwalk.o : $(ACPICA_COMMON)/adwalk.c - $(COMPILE) - -dmextern.o : $(ACPICA_COMMON)/dmextern.c - $(COMPILE) - -dmrestag.o : $(ACPICA_COMMON)/dmrestag.c - $(COMPILE) - -dmtable.o : $(ACPICA_COMMON)/dmtable.c - $(COMPILE) - -dmtbdump.o : $(ACPICA_COMMON)/dmtbdump.c +%.o : %.c $(HEADERS) $(ACPICA_HEADERS) $(COMPILE) -dmtbinfo.o : $(ACPICA_COMMON)/dmtbinfo.c - $(COMPILE) - -getopt.o : $(ACPICA_COMMON)/getopt.c - $(COMPILE) - - -# -# ACPICA core source -# -dbfileio.o : $(ACPICA_CORE)/debugger/dbfileio.c - $(COMPILE) - -dmbuffer.o : $(ACPICA_CORE)/disassembler/dmbuffer.c - $(COMPILE) - -dmnames.o : $(ACPICA_CORE)/disassembler/dmnames.c - $(COMPILE) - -dmobject.o : $(ACPICA_CORE)/disassembler/dmobject.c - $(COMPILE) - -dmopcode.o : $(ACPICA_CORE)/disassembler/dmopcode.c - $(COMPILE) - -dmresrc.o : $(ACPICA_CORE)/disassembler/dmresrc.c - $(COMPILE) - -dmresrcl.o : $(ACPICA_CORE)/disassembler/dmresrcl.c - $(COMPILE) - -dmresrcs.o : $(ACPICA_CORE)/disassembler/dmresrcs.c - $(COMPILE) - -dmutils.o : $(ACPICA_CORE)/disassembler/dmutils.c - $(COMPILE) - -dmwalk.o : $(ACPICA_CORE)/disassembler/dmwalk.c - $(COMPILE) - -dsargs.o : $(ACPICA_CORE)/dispatcher/dsargs.c - $(COMPILE) - -dscontrol.o : $(ACPICA_CORE)/dispatcher/dscontrol.c - $(COMPILE) - -dsfield.o : $(ACPICA_CORE)/dispatcher/dsfield.c - $(COMPILE) - -dsobject.o : $(ACPICA_CORE)/dispatcher/dsobject.c - $(COMPILE) - -dsopcode.o : $(ACPICA_CORE)/dispatcher/dsopcode.c - $(COMPILE) - -dsutils.o : $(ACPICA_CORE)/dispatcher/dsutils.c - $(COMPILE) - -dswexec.o : $(ACPICA_CORE)/dispatcher/dswexec.c - $(COMPILE) - -dswload.o : $(ACPICA_CORE)/dispatcher/dswload.c - $(COMPILE) - -dswload2.o : $(ACPICA_CORE)/dispatcher/dswload2.c - $(COMPILE) - -dswscope.o : $(ACPICA_CORE)/dispatcher/dswscope.c - $(COMPILE) - -dswstate.o : $(ACPICA_CORE)/dispatcher/dswstate.c - $(COMPILE) - -exconvrt.o : $(ACPICA_CORE)/executer/exconvrt.c - $(COMPILE) - -excreate.o : $(ACPICA_CORE)/executer/excreate.c - $(COMPILE) - -exdump.o : $(ACPICA_CORE)/executer/exdump.c - $(COMPILE) - -exmisc.o : $(ACPICA_CORE)/executer/exmisc.c - $(COMPILE) - -exmutex.o : $(ACPICA_CORE)/executer/exmutex.c - $(COMPILE) - -exnames.o : $(ACPICA_CORE)/executer/exnames.c - $(COMPILE) - -exoparg1.o : $(ACPICA_CORE)/executer/exoparg1.c - $(COMPILE) - -exoparg2.o : $(ACPICA_CORE)/executer/exoparg2.c - $(COMPILE) - -exoparg3.o : $(ACPICA_CORE)/executer/exoparg3.c - $(COMPILE) - -exoparg6.o : $(ACPICA_CORE)/executer/exoparg6.c - $(COMPILE) - -exprep.o : $(ACPICA_CORE)/executer/exprep.c - $(COMPILE) - -exregion.o : $(ACPICA_CORE)/executer/exregion.c - $(COMPILE) - -exresnte.o : $(ACPICA_CORE)/executer/exresnte.c - $(COMPILE) - -exresolv.o : $(ACPICA_CORE)/executer/exresolv.c - $(COMPILE) - -exresop.o : $(ACPICA_CORE)/executer/exresop.c - $(COMPILE) - -exstore.o : $(ACPICA_CORE)/executer/exstore.c - $(COMPILE) - -exstoren.o : $(ACPICA_CORE)/executer/exstoren.c - $(COMPILE) - -exstorob.o : $(ACPICA_CORE)/executer/exstorob.c - $(COMPILE) - -exsystem.o : $(ACPICA_CORE)/executer/exsystem.c - $(COMPILE) - -exutils.o : $(ACPICA_CORE)/executer/exutils.c - $(COMPILE) - -nsaccess.o : $(ACPICA_CORE)/namespace/nsaccess.c - $(COMPILE) - -nsalloc.o : $(ACPICA_CORE)/namespace/nsalloc.c - $(COMPILE) - -nsdump.o : $(ACPICA_CORE)/namespace/nsdump.c - $(COMPILE) - -nsnames.o : $(ACPICA_CORE)/namespace/nsnames.c - $(COMPILE) - -nsobject.o : $(ACPICA_CORE)/namespace/nsobject.c - $(COMPILE) - -nsparse.o : $(ACPICA_CORE)/namespace/nsparse.c - $(COMPILE) - -nssearch.o : $(ACPICA_CORE)/namespace/nssearch.c - $(COMPILE) - -nsutils.o : $(ACPICA_CORE)/namespace/nsutils.c - $(COMPILE) - -nswalk.o : $(ACPICA_CORE)/namespace/nswalk.c - $(COMPILE) - -nsxfobj.o : $(ACPICA_CORE)/namespace/nsxfobj.c - $(COMPILE) - -psargs.o : $(ACPICA_CORE)/parser/psargs.c - $(COMPILE) - -psloop.o : $(ACPICA_CORE)/parser/psloop.c - $(COMPILE) - -psopcode.o : $(ACPICA_CORE)/parser/psopcode.c - $(COMPILE) - -psparse.o : $(ACPICA_CORE)/parser/psparse.c - $(COMPILE) - -psscope.o : $(ACPICA_CORE)/parser/psscope.c - $(COMPILE) - -pstree.o : $(ACPICA_CORE)/parser/pstree.c - $(COMPILE) - -psutils.o : $(ACPICA_CORE)/parser/psutils.c - $(COMPILE) - -pswalk.o : $(ACPICA_CORE)/parser/pswalk.c - $(COMPILE) - -tbfadt.o : $(ACPICA_CORE)/tables/tbfadt.c - $(COMPILE) - -tbinstal.o : $(ACPICA_CORE)/tables/tbinstal.c - $(COMPILE) - -tbutils.o : $(ACPICA_CORE)/tables/tbutils.c - $(COMPILE) - -tbxface.o : $(ACPICA_CORE)/tables/tbxface.c - $(COMPILE) - -utalloc.o : $(ACPICA_CORE)/utilities/utalloc.c - $(COMPILE) - -utcache.o : $(ACPICA_CORE)/utilities/utcache.c - $(COMPILE) - -utcopy.o : $(ACPICA_CORE)/utilities/utcopy.c - $(COMPILE) - -utdebug.o : $(ACPICA_CORE)/utilities/utdebug.c - $(COMPILE) - -utdecode.o : $(ACPICA_CORE)/utilities/utdecode.c - $(COMPILE) - -utdelete.o : $(ACPICA_CORE)/utilities/utdelete.c - $(COMPILE) - -utglobal.o : $(ACPICA_CORE)/utilities/utglobal.c - $(COMPILE) - -utinit.o : $(ACPICA_CORE)/utilities/utinit.c - $(COMPILE) - -utlock.o : $(ACPICA_CORE)/utilities/utlock.c - $(COMPILE) - -utmath.o : $(ACPICA_CORE)/utilities/utmath.c - $(COMPILE) - -utmisc.o : $(ACPICA_CORE)/utilities/utmisc.c - $(COMPILE) - -utmutex.o : $(ACPICA_CORE)/utilities/utmutex.c - $(COMPILE) - -utobject.o : $(ACPICA_CORE)/utilities/utobject.c - $(COMPILE) - -utresrc.o : $(ACPICA_CORE)/utilities/utresrc.c - $(COMPILE) - -utstate.o : $(ACPICA_CORE)/utilities/utstate.c - $(COMPILE) - -utxferror.o : $(ACPICA_CORE)/utilities/utxferror.c - $(COMPILE) - -utxface.o : $(ACPICA_CORE)/utilities/utxface.c - $(COMPILE) - - -# -# Unix OS services layer (OSL) -# -osunixxf.o : $(ACPICA_OSL)/osunixxf.c - $(COMPILE) - - clean : - rm -f $(PROG) $(PROG).exe $(OBJS) $(INTERMEDIATES) $(MISC) + rm -f $(PROG) $(PROG).exe $(OBJECTS) $(INTERMEDIATES) $(MISC) install : $(INSTALLPROG) Modified: vendor-sys/acpica/dist/compiler/aslcompile.c ============================================================================== --- vendor-sys/acpica/dist/compiler/aslcompile.c Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/aslcompile.c Mon Sep 26 21:40:21 2011 (r225768) @@ -472,6 +472,8 @@ CmDoCompile ( if (!RootNode) { + AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, + NULL, "- Could not resolve parse tree root node"); CmCleanupAndExit (); return -1; } Modified: vendor-sys/acpica/dist/compiler/aslcompiler.h ============================================================================== --- vendor-sys/acpica/dist/compiler/aslcompiler.h Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/aslcompiler.h Mon Sep 26 21:40:21 2011 (r225768) @@ -829,17 +829,12 @@ RsAllocateResourceNode ( UINT32 Size); void -RsCreateBitField ( +RsCreateResourceField ( ACPI_PARSE_OBJECT *Op, char *Name, UINT32 ByteOffset, - UINT32 BitOffset); - -void -RsCreateByteField ( - ACPI_PARSE_OBJECT *Op, - char *Name, - UINT32 ByteOffset); + UINT32 BitOffset, + UINT32 BitLength); void RsSetFlagBits ( Modified: vendor-sys/acpica/dist/compiler/asldefine.h ============================================================================== --- vendor-sys/acpica/dist/compiler/asldefine.h Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/asldefine.h Mon Sep 26 21:40:21 2011 (r225768) @@ -153,5 +153,25 @@ #define POSITIVE 0 +/* Helper macros for resource tag creation */ + +#define RsCreateMultiBitField \ + RsCreateResourceField + +#define RsCreateBitField(Op, Name, ByteOffset, BitOffset) \ + RsCreateResourceField (Op, Name, ByteOffset, BitOffset, 1) + +#define RsCreateByteField(Op, Name, ByteOffset) \ + RsCreateResourceField (Op, Name, ByteOffset, 0, 8); + +#define RsCreateWordField(Op, Name, ByteOffset) \ + RsCreateResourceField (Op, Name, ByteOffset, 0, 16); + +#define RsCreateDwordField(Op, Name, ByteOffset) \ + RsCreateResourceField (Op, Name, ByteOffset, 0, 32); + +#define RsCreateQwordField(Op, Name, ByteOffset) \ + RsCreateResourceField (Op, Name, ByteOffset, 0, 64); + #endif /* ASLDEFINE.H */ Modified: vendor-sys/acpica/dist/compiler/aslfiles.c ============================================================================== --- vendor-sys/acpica/dist/compiler/aslfiles.c Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/aslfiles.c Mon Sep 26 21:40:21 2011 (r225768) @@ -174,14 +174,18 @@ FlGetFileSize ( { FILE *fp; UINT32 FileSize; + long Offset; fp = Gbl_Files[FileId].Handle; + Offset = ftell (fp); fseek (fp, 0, SEEK_END); FileSize = (UINT32) ftell (fp); - fseek (fp, 0, SEEK_SET); + /* Restore file pointer */ + + fseek (fp, Offset, SEEK_SET); return (FileSize); } Modified: vendor-sys/acpica/dist/compiler/aslglobal.h ============================================================================== --- vendor-sys/acpica/dist/compiler/aslglobal.h Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/aslglobal.h Mon Sep 26 21:40:21 2011 (r225768) @@ -128,6 +128,7 @@ ASL_EXTERN UINT8 ASL_ ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_UseOriginalCompilerId, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_VerboseTemplates, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_DoTemplates, FALSE); +ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (Gbl_CompileGeneric, FALSE); #define HEX_OUTPUT_NONE 0 Modified: vendor-sys/acpica/dist/compiler/asllisting.c ============================================================================== --- vendor-sys/acpica/dist/compiler/asllisting.c Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/asllisting.c Mon Sep 26 21:40:21 2011 (r225768) @@ -850,9 +850,9 @@ LsFinishSourceListing ( FlPrintFile (FileId, "\n\nSummary of errors and warnings\n\n"); AePrintErrorLog (FileId); - FlPrintFile (FileId, "\n\n"); + FlPrintFile (FileId, "\n"); UtDisplaySummary (FileId); - FlPrintFile (FileId, "\n\n"); + FlPrintFile (FileId, "\n"); } } @@ -1309,6 +1309,7 @@ LsDoHexOutputC ( /* Get AML size, seek back to start */ AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT); + FlSeekFile (ASL_FILE_AML_OUTPUT, 0); FlPrintFile (ASL_FILE_HEX_OUTPUT, " * C source code output\n"); FlPrintFile (ASL_FILE_HEX_OUTPUT, " * AML code block contains 0x%X bytes\n *\n */\n", @@ -1365,7 +1366,6 @@ LsDoHexOutputC ( } FlPrintFile (ASL_FILE_HEX_OUTPUT, "};\n"); - FlCloseFile (ASL_FILE_HEX_OUTPUT); } @@ -1397,6 +1397,7 @@ LsDoHexOutputAsl ( /* Get AML size, seek back to start */ AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT); + FlSeekFile (ASL_FILE_AML_OUTPUT, 0); FlPrintFile (ASL_FILE_HEX_OUTPUT, " * ASL source code output\n"); FlPrintFile (ASL_FILE_HEX_OUTPUT, " * AML code block contains 0x%X bytes\n *\n */\n", @@ -1453,7 +1454,6 @@ LsDoHexOutputAsl ( } FlPrintFile (ASL_FILE_HEX_OUTPUT, " })\n"); - FlCloseFile (ASL_FILE_HEX_OUTPUT); } @@ -1485,6 +1485,7 @@ LsDoHexOutputAsm ( /* Get AML size, seek back to start */ AmlFileSize = FlGetFileSize (ASL_FILE_AML_OUTPUT); + FlSeekFile (ASL_FILE_AML_OUTPUT, 0); FlPrintFile (ASL_FILE_HEX_OUTPUT, "; Assembly code source output\n"); FlPrintFile (ASL_FILE_HEX_OUTPUT, "; AML code block contains 0x%X bytes\n;\n", @@ -1536,7 +1537,6 @@ LsDoHexOutputAsm ( } FlPrintFile (ASL_FILE_HEX_OUTPUT, "\n"); - FlCloseFile (ASL_FILE_HEX_OUTPUT); } Modified: vendor-sys/acpica/dist/compiler/aslload.c ============================================================================== --- vendor-sys/acpica/dist/compiler/aslload.c Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/aslload.c Mon Sep 26 21:40:21 2011 (r225768) @@ -290,7 +290,6 @@ LdLoadResourceElements ( InitializerOp = ASL_GET_CHILD_NODE (Op); while (InitializerOp) { - if (InitializerOp->Asl.ExternalName) { Status = AcpiNsLookup (WalkState->ScopeInfo, @@ -305,20 +304,15 @@ LdLoadResourceElements ( } /* - * Store the field offset in the namespace node so it - * can be used when the field is referenced + * Store the field offset and length in the namespace node + * so it can be used when the field is referenced */ - Node->Value = (UINT32) InitializerOp->Asl.Value.Integer; + Node->Value = InitializerOp->Asl.Value.Tag.BitOffset; + Node->Length = InitializerOp->Asl.Value.Tag.BitLength; InitializerOp->Asl.Node = Node; Node->Op = InitializerOp; - - /* Pass thru the field type (Bitfield or Bytefield) */ - - if (InitializerOp->Asl.CompileFlags & NODE_IS_BIT_OFFSET) - { - Node->Flags |= ANOBJ_IS_BIT_OFFSET; - } } + InitializerOp = ASL_GET_PEER_NODE (InitializerOp); } Modified: vendor-sys/acpica/dist/compiler/asllookup.c ============================================================================== --- vendor-sys/acpica/dist/compiler/asllookup.c Mon Sep 26 15:26:59 2011 (r225767) +++ vendor-sys/acpica/dist/compiler/asllookup.c Mon Sep 26 21:40:21 2011 (r225768) @@ -822,7 +822,10 @@ LkNamespaceLocateBegin ( ACPI_PARSE_OBJECT *OwningOp; ACPI_PARSE_OBJECT *SpaceIdOp; UINT32 MinimumLength; - UINT32 Temp; + UINT32 Offset; + UINT32 FieldBitLength; + UINT32 TagBitLength; + UINT8 Message = 0; const ACPI_OPCODE_INFO *OpInfo; UINT32 Flags; @@ -1026,74 +1029,106 @@ LkNamespaceLocateBegin ( /* 2) Check for a reference to a resource descriptor */ if ((Node->Type == ACPI_TYPE_LOCAL_RESOURCE_FIELD) || - (Node->Type == ACPI_TYPE_LOCAL_RESOURCE)) + (Node->Type == ACPI_TYPE_LOCAL_RESOURCE)) { /* - * This was a reference to a field within a resource descriptor. Extract - * the associated field offset (either a bit or byte offset depending on - * the field type) and change the named reference into an integer for - * AML code generation + * This was a reference to a field within a resource descriptor. + * Extract the associated field offset (either a bit or byte + * offset depending on the field type) and change the named *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-all@FreeBSD.ORG Mon Sep 26 21:42:23 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 421C9106566B; Mon, 26 Sep 2011 21:42:23 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1850E8FC13; Mon, 26 Sep 2011 21:42:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8QLgMZI091856; Mon, 26 Sep 2011 21:42:22 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8QLgMhw091855; Mon, 26 Sep 2011 21:42:22 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201109262142.p8QLgMhw091855@svn.freebsd.org> From: Jung-uk Kim Date: Mon, 26 Sep 2011 21:42:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-sys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225769 - vendor-sys/acpica/20110922 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 21:42:23 -0000 Author: jkim Date: Mon Sep 26 21:42:22 2011 New Revision: 225769 URL: http://svn.freebsd.org/changeset/base/225769 Log: Tag ACPICA 20110922. Added: vendor-sys/acpica/20110922/ - copied from r225768, vendor-sys/acpica/dist/ From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 03:20:53 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F244106566B; Tue, 27 Sep 2011 03:20:53 +0000 (UTC) (envelope-from kensmith@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4F1D18FC16; Tue, 27 Sep 2011 03:20:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R3KrC7002560; Tue, 27 Sep 2011 03:20:53 GMT (envelope-from kensmith@svn.freebsd.org) Received: (from kensmith@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R3Krfw002558; Tue, 27 Sep 2011 03:20:53 GMT (envelope-from kensmith@svn.freebsd.org) Message-Id: <201109270320.p8R3Krfw002558@svn.freebsd.org> From: Ken Smith Date: Tue, 27 Sep 2011 03:20:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-svnadmin@freebsd.org X-SVN-Group: svnadmin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225770 - svnadmin/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 03:20:53 -0000 Author: kensmith Date: Tue Sep 27 03:20:52 2011 New Revision: 225770 URL: http://svn.freebsd.org/changeset/base/225770 Log: Release head from code freeze now that stable/9 has been created and that will be what eventually becomes 9.0-RELEASE. Approved by: core (implicit) Modified: svnadmin/conf/approvers Modified: svnadmin/conf/approvers ============================================================================== --- svnadmin/conf/approvers Mon Sep 26 21:42:22 2011 (r225769) +++ svnadmin/conf/approvers Tue Sep 27 03:20:52 2011 (r225770) @@ -16,7 +16,7 @@ # # $FreeBSD$ # -^head/ re +#^head/ re ^stable/9/ re #^stable/8/ re #^stable/7/ re From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 05:30:53 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6372B1065672; Tue, 27 Sep 2011 05:30:53 +0000 (UTC) (envelope-from rmh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 536238FC12; Tue, 27 Sep 2011 05:30:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R5UrG2006557; Tue, 27 Sep 2011 05:30:53 GMT (envelope-from rmh@svn.freebsd.org) Received: (from rmh@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R5UrGV006555; Tue, 27 Sep 2011 05:30:53 GMT (envelope-from rmh@svn.freebsd.org) Message-Id: <201109270530.p8R5UrGV006555@svn.freebsd.org> From: Robert Millan Date: Tue, 27 Sep 2011 05:30:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225772 - head/share/misc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 05:30:53 -0000 Author: rmh Date: Tue Sep 27 05:30:52 2011 New Revision: 225772 URL: http://svn.freebsd.org/changeset/base/225772 Log: Add myself to committers-src.dot. Approved by: kib (mentor) Modified: head/share/misc/committers-src.dot Modified: head/share/misc/committers-src.dot ============================================================================== --- head/share/misc/committers-src.dot Tue Sep 27 03:27:54 2011 (r225771) +++ head/share/misc/committers-src.dot Tue Sep 27 05:30:52 2011 (r225772) @@ -70,6 +70,7 @@ onoe [label="Atsushi Onoe\nonoe@FreeBSD. rgrimes [label="Rod Grimes\nrgrimes@FreeBSD.org\n1993/06/12\n2003/03/08"] rink [label="Rink Springer\nrink@FreeBSD.org\n2006/01/16\n2010/11/04"] robert [label="Robert Drehmel\nrobert@FreeBSD.org\n2001/08/23\n2006/05/13"] +rmh [label="Robert Millan\nrmh@FreeBSD.org\n2011/09/18"] rpaulo [label="Rui Paulo\nrpaulo@FreeBSD.org\n2007/09/25\n2010/12/03"] sah [label="Sam Hopkins\nsah@FreeBSD.org\n2004/12/15\n2008/11/10"] shafeeq [label="Shafeeq Sinnamohideen\nshafeeq@FreeBSD.org\n2000/06/19\n2006/04/06"] @@ -270,6 +271,7 @@ day1 -> alm day1 -> dg adrian -> ray +adrian -> rmh andre -> qingli @@ -440,6 +442,7 @@ kib -> pho kib -> pluknet kib -> rdivacky kib -> rmacklem +kib -> rmh kib -> stas kib -> tijl kib -> trociny From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 06:43:52 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BA791065670; Tue, 27 Sep 2011 06:43:52 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D63D28FC15; Tue, 27 Sep 2011 06:43:51 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R6hpxa008829; Tue, 27 Sep 2011 06:43:51 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R6hpsv008827; Tue, 27 Sep 2011 06:43:51 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270643.p8R6hpsv008827@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 06:43:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225773 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 06:43:52 -0000 Author: pjd Date: Tue Sep 27 06:43:51 2011 New Revision: 225773 URL: http://svn.freebsd.org/changeset/base/225773 Log: Ensure that pjdlog functions don't modify errno. MFC after: 3 days Modified: head/sbin/hastd/pjdlog.c Modified: head/sbin/hastd/pjdlog.c ============================================================================== --- head/sbin/hastd/pjdlog.c Tue Sep 27 05:30:52 2011 (r225772) +++ head/sbin/hastd/pjdlog.c Tue Sep 27 06:43:51 2011 (r225773) @@ -148,11 +148,14 @@ pjdlog_printf_render_sockaddr(struct __p void pjdlog_init(int mode) { + int saved_errno; assert(pjdlog_initialized == PJDLOG_NEVER_INITIALIZED || pjdlog_initialized == PJDLOG_NOT_INITIALIZED); assert(mode == PJDLOG_MODE_STD || mode == PJDLOG_MODE_SYSLOG); + saved_errno = errno; + if (pjdlog_initialized == PJDLOG_NEVER_INITIALIZED) { __use_xprintf = 1; register_printf_render_std("T"); @@ -171,18 +174,25 @@ pjdlog_init(int mode) bzero(pjdlog_prefix, sizeof(pjdlog_prefix)); pjdlog_initialized = PJDLOG_INITIALIZED; + + errno = saved_errno; } void pjdlog_fini(void) { + int saved_errno; assert(pjdlog_initialized == PJDLOG_INITIALIZED); + saved_errno = errno; + if (pjdlog_mode == PJDLOG_MODE_SYSLOG) closelog(); pjdlog_initialized = PJDLOG_NOT_INITIALIZED; + + errno = saved_errno; } /* @@ -194,6 +204,7 @@ pjdlog_fini(void) void pjdlog_mode_set(int mode) { + int saved_errno; assert(pjdlog_initialized == PJDLOG_INITIALIZED); assert(mode == PJDLOG_MODE_STD || mode == PJDLOG_MODE_SYSLOG); @@ -201,12 +212,16 @@ pjdlog_mode_set(int mode) if (pjdlog_mode == mode) return; + saved_errno = errno; + if (mode == PJDLOG_MODE_SYSLOG) openlog(NULL, LOG_PID | LOG_NDELAY, LOG_DAEMON); else /* if (mode == PJDLOG_MODE_STD) */ closelog(); pjdlog_mode = mode; + + errno = saved_errno; } /* @@ -270,11 +285,16 @@ pjdlog_prefix_set(const char *fmt, ...) void pjdlogv_prefix_set(const char *fmt, va_list ap) { + int saved_errno; assert(pjdlog_initialized == PJDLOG_INITIALIZED); assert(fmt != NULL); + saved_errno = errno; + vsnprintf(pjdlog_prefix, sizeof(pjdlog_prefix), fmt, ap); + + errno = saved_errno; } /* @@ -329,6 +349,7 @@ void pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt, va_list ap) { + int saved_errno; assert(pjdlog_initialized == PJDLOG_INITIALIZED); assert(loglevel == LOG_EMERG || loglevel == LOG_ALERT || @@ -342,6 +363,8 @@ pjdlogv_common(int loglevel, int debugle if (loglevel == LOG_DEBUG && debuglevel > pjdlog_debug_level) return; + saved_errno = errno; + switch (pjdlog_mode) { case PJDLOG_MODE_STD: { @@ -398,6 +421,8 @@ pjdlogv_common(int loglevel, int debugle default: assert(!"Invalid mode."); } + + errno = saved_errno; } /* From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 06:53:31 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75F54106566C; Tue, 27 Sep 2011 06:53:31 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4C8888FC16; Tue, 27 Sep 2011 06:53:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R6rVud009164; Tue, 27 Sep 2011 06:53:31 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R6rVOb009162; Tue, 27 Sep 2011 06:53:31 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270653.p8R6rVOb009162@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 06:53:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-svnadmin@freebsd.org X-SVN-Group: svnadmin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225774 - svnadmin/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 06:53:31 -0000 Author: pjd Date: Tue Sep 27 06:53:30 2011 New Revision: 225774 URL: http://svn.freebsd.org/changeset/base/225774 Log: Mikolaj needs no mentor anymore. Thanks to Kostik for the help with co-mentoring Mikolaj. Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors ============================================================================== --- svnadmin/conf/mentors Tue Sep 27 06:43:51 2011 (r225773) +++ svnadmin/conf/mentors Tue Sep 27 06:53:30 2011 (r225774) @@ -33,6 +33,5 @@ sbruno scottl snb dwmalone sson gnn tijl kib -trociny pjd Co-mentor: kib versus gavin Co-mentor: fjoe will ken From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:00:25 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AABC106564A; Tue, 27 Sep 2011 07:00:25 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E86D48FC19; Tue, 27 Sep 2011 07:00:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R70OFp009430; Tue, 27 Sep 2011 07:00:24 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R70OFc009428; Tue, 27 Sep 2011 07:00:24 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201109270700.p8R70OFc009428@svn.freebsd.org> From: Gabor Kovesdan Date: Tue, 27 Sep 2011 07:00:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225775 - head/share/man/man4 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:00:25 -0000 Author: gabor Date: Tue Sep 27 07:00:24 2011 New Revision: 225775 URL: http://svn.freebsd.org/changeset/base/225775 Log: - Move misplaced reference [1] - Sort references [1] - s/Since/Because/ [2] Submitted by: arundel [1], Chad Perrin [2] MFC after: 3 days Modified: head/share/man/man4/smp.4 Modified: head/share/man/man4/smp.4 ============================================================================== --- head/share/man/man4/smp.4 Tue Sep 27 06:53:30 2011 (r225774) +++ head/share/man/man4/smp.4 Tue Sep 27 07:00:24 2011 (r225775) @@ -120,25 +120,24 @@ tasks on CPUs that are closely grouped t .Pp .Fx supports hyperthreading on Intel CPU's on the i386 and AMD64 platforms. -Since using logical CPUs can cause performance penalties under certain loads, +Because using logical CPUs can cause performance penalties under certain loads, the logical CPUs can be disabled by setting the .Va machdep.hyperthreading_allowed tunable to zero. -.Xr cpuset 1 . .Sh SEE ALSO +.Xr cpuset 1 , .Xr mptable 1 , +.Xr sched_4bsd 4 , +.Xr sched_ule 4 , .Xr loader 8 , .Xr sysctl 8 , .Xr condvar 9 , .Xr msleep 9 , .Xr mtx_pool 9 , .Xr mutex 9 , -.Xr sema 9 , -.Xr sx 9 , .Xr rwlock 9 , -.Xr sched_4bsd 4 , -.Xr sched_ule 4 , -.Xr cpuset 1 +.Xr sema 9 , +.Xr sx 9 .Sh HISTORY The .Nm From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:05:42 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 226DD106564A; Tue, 27 Sep 2011 07:05:42 +0000 (UTC) (envelope-from pluknet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 123D58FC12; Tue, 27 Sep 2011 07:05:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R75fr6009664; Tue, 27 Sep 2011 07:05:41 GMT (envelope-from pluknet@svn.freebsd.org) Received: (from pluknet@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R75fGj009662; Tue, 27 Sep 2011 07:05:41 GMT (envelope-from pluknet@svn.freebsd.org) Message-Id: <201109270705.p8R75fGj009662@svn.freebsd.org> From: Sergey Kandaurov Date: Tue, 27 Sep 2011 07:05:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225776 - head/share/man/man9 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:05:42 -0000 Author: pluknet Date: Tue Sep 27 07:05:41 2011 New Revision: 225776 URL: http://svn.freebsd.org/changeset/base/225776 Log: Fix typo in OSIOCGIFADDR. MFC after: 3 days Modified: head/share/man/man9/ifnet.9 Modified: head/share/man/man9/ifnet.9 ============================================================================== --- head/share/man/man9/ifnet.9 Tue Sep 27 07:00:24 2011 (r225775) +++ head/share/man/man9/ifnet.9 Tue Sep 27 07:05:41 2011 (r225776) @@ -1252,7 +1252,7 @@ function is called to perform the operat The socket's protocol control routine is called to implement the requested action. .Pp -.It Dv OSIOGIFADDR +.It Dv OSIOCGIFADDR .It Dv OSIOCGIFDSTADDR .It Dv OSIOCGIFBRDADDR .It Dv OSIOCGIFNETMASK From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:06:03 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BD671065672; Tue, 27 Sep 2011 07:06:03 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E5D9A8FC14; Tue, 27 Sep 2011 07:06:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R762gR009727; Tue, 27 Sep 2011 07:06:02 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R762F9009724; Tue, 27 Sep 2011 07:06:02 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201109270706.p8R762F9009724@svn.freebsd.org> From: Hans Petter Selasky Date: Tue, 27 Sep 2011 07:06:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225777 - in head/sys/dev/usb: . quirk X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:06:03 -0000 Author: hselasky Date: Tue Sep 27 07:06:02 2011 New Revision: 225777 URL: http://svn.freebsd.org/changeset/base/225777 Log: Add quirks for some USB mass storage devices which doesn't respond after trying to query the synchronize cache support. Submitted by: Keith White PR: usb/160911 Approved by: re (kensmith) MFC after: 1 week Modified: head/sys/dev/usb/quirk/usb_quirk.c head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/quirk/usb_quirk.c ============================================================================== --- head/sys/dev/usb/quirk/usb_quirk.c Tue Sep 27 07:05:41 2011 (r225776) +++ head/sys/dev/usb/quirk/usb_quirk.c Tue Sep 27 07:06:02 2011 (r225777) @@ -457,6 +457,13 @@ static struct usb_quirk_entry usb_quirks USB_QUIRK(ROLAND, SD80, 0x0000, 0xffff, UQ_AU_VENDOR_CLASS), USB_QUIRK(ROLAND, UA700, 0x0000, 0xffff, UQ_AU_VENDOR_CLASS), USB_QUIRK(MEDELI, DD305, 0x0000, 0xffff, UQ_SINGLE_CMD_MIDI, UQ_MATCH_VENDOR_ONLY), + + /* + * Quirks for manufacturers which USB devices does not respond + * after issuing non-supported commands: + */ + USB_QUIRK(FEIYA, DUMMY, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE, UQ_MATCH_VENDOR_ONLY), + USB_QUIRK(REALTEK, DUMMY, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE, UQ_MATCH_VENDOR_ONLY), }; #undef USB_QUIRK_VP #undef USB_QUIRK Modified: head/sys/dev/usb/usbdevs ============================================================================== --- head/sys/dev/usb/usbdevs Tue Sep 27 07:05:41 2011 (r225776) +++ head/sys/dev/usb/usbdevs Tue Sep 27 07:06:02 2011 (r225777) @@ -1569,6 +1569,7 @@ product EXTENDED XTNDACCESS 0x0100 XTNDA product FALCOM TWIST 0x0001 USB GSM/GPRS Modem /* FEIYA products */ +product FEIYA DUMMY 0x0000 Dummy product product FEIYA 5IN1 0x1132 5-in-1 Card Reader product FEIYA AC110 0x6300 AC-110 Card Reader @@ -2780,6 +2781,7 @@ product RATOC REXUSB60F 0xb020 USB seri /* ReakTek products */ /* Green House and CompUSA OEM this part */ +product REALTEK DUMMY 0x0000 Dummy product product REALTEK USB20CRW 0x0158 USB20CRW Card Reader product REALTEK USBKR100 0x8150 USBKR100 USB Ethernet product REALTEK RTL8187 0x8187 RTL8187 Wireless Adapter From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:14:13 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54C9C106566B; Tue, 27 Sep 2011 07:14:13 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 420B88FC1B; Tue, 27 Sep 2011 07:14:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R7EDNk010045; Tue, 27 Sep 2011 07:14:13 GMT (envelope-from stas@svn.freebsd.org) Received: (from stas@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R7EDem010030; Tue, 27 Sep 2011 07:14:13 GMT (envelope-from stas@svn.freebsd.org) Message-Id: <201109270714.p8R7EDem010030@svn.freebsd.org> From: Stanislav Sedov Date: Tue, 27 Sep 2011 07:14:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225778 - in head: . kerberos5/lib/libasn1 kerberos5/lib/libgssapi_krb5 kerberos5/lib/libgssapi_ntlm kerberos5/lib/libgssapi_spnego kerberos5/lib/libhdb kerberos5/lib/libheimntlm kerber... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:14:13 -0000 Author: stas Date: Tue Sep 27 07:14:12 2011 New Revision: 225778 URL: http://svn.freebsd.org/changeset/base/225778 Log: - Add missing interdependencies to kerberos libraries. Some of the kerberos libraries were not linked properly (missing dependencies), which causes 3rd party applications linking to fail when --as-needed ld flag is used. I also added the --no-undefined ld(1) flag to make sure that there're no missing dependencies. MFC after: 3 days Modified: head/Makefile.inc1 head/kerberos5/lib/libasn1/Makefile head/kerberos5/lib/libgssapi_krb5/Makefile head/kerberos5/lib/libgssapi_ntlm/Makefile head/kerberos5/lib/libgssapi_spnego/Makefile head/kerberos5/lib/libhdb/Makefile head/kerberos5/lib/libheimntlm/Makefile head/kerberos5/lib/libhx509/Makefile head/kerberos5/lib/libkadm5clnt/Makefile head/kerberos5/lib/libkadm5srv/Makefile head/kerberos5/lib/libkafs5/Makefile head/kerberos5/lib/libkrb5/Makefile head/kerberos5/lib/libroken/Makefile head/tools/make_libdeps.sh Modified: head/Makefile.inc1 ============================================================================== --- head/Makefile.inc1 Tue Sep 27 07:06:02 2011 (r225777) +++ head/Makefile.inc1 Tue Sep 27 07:14:12 2011 (r225778) @@ -1218,7 +1218,8 @@ _startup_libs+= lib/libc gnu/lib/libgcc__L: lib/libc__L -_prebuild_libs= ${_kerberos5_lib_libasn1} ${_kerberos5_lib_libheimntlm} \ +_prebuild_libs= ${_kerberos5_lib_libasn1} ${_kerberos5_lib_libhdb} \ + ${_kerberos5_lib_libheimntlm} \ ${_kerberos5_lib_libhx509} ${_kerberos5_lib_libkrb5} \ ${_kerberos5_lib_libroken} \ lib/libbz2 lib/libcom_err lib/libcrypt \ @@ -1268,6 +1269,19 @@ secure/lib/libssh__L: lib/libgssapi__L k _secure_lib= secure/lib .endif +.if ${MK_KERBEROS} != "no" +kerberos5/lib/libasn1__L: lib/libcom_err__L kerberos5/lib/libroken__L +kerberos5/lib/libhdb__L: kerberos5/lib/libasn1__L lib/libcom_err__L \ + kerberos5/lib/libkrb5__L kerberos5/lib/libroken__L +kerberos5/lib/libheimntlm__L: secure/lib/libcrypto__L kerberos5/lib/libkrb5__L +kerberos5/lib/libhx509__L: kerberos5/lib/libasn1__L lib/libcom_err__L \ + secure/lib/libcrypto__L kerberos5/lib/libroken__L +kerberos5/lib/libkrb5__L: kerberos5/lib/libasn1__L lib/libcom_err__L \ + lib/libcrypt__L secure/lib/libcrypto__L kerberos5/lib/libhx509__L \ + kerberos5/lib/libroken__L +kerberos5/lib/libroken__L: lib/libcrypt__L +.endif + .if ${MK_GSSAPI} != "no" _lib_libgssapi= lib/libgssapi .endif @@ -1279,6 +1293,7 @@ _lib_libipx= lib/libipx .if ${MK_KERBEROS} != "no" _kerberos5_lib= kerberos5/lib _kerberos5_lib_libasn1= kerberos5/lib/libasn1 +_kerberos5_lib_libhdb= kerberos5/lib/libhdb _kerberos5_lib_libkrb5= kerberos5/lib/libkrb5 _kerberos5_lib_libhx509= kerberos5/lib/libhx509 _kerberos5_lib_libroken= kerberos5/lib/libroken Modified: head/kerberos5/lib/libasn1/Makefile ============================================================================== --- head/kerberos5/lib/libasn1/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libasn1/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,7 +1,10 @@ # $FreeBSD$ LIB= asn1 +LDFLAGS= -Wl,--no-undefined INCS= asn1_err.h heim_asn1.h +LDADD= -lcom_err -lroken +DPADD= ${LIBCOM_ERR} ${LIBROKEN} SRCS= asn1_err.c \ asn1_err.h \ Modified: head/kerberos5/lib/libgssapi_krb5/Makefile ============================================================================== --- head/kerberos5/lib/libgssapi_krb5/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libgssapi_krb5/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,7 +1,7 @@ # $FreeBSD$ LIB= gssapi_krb5 -LDFLAGS= -Wl,-Bsymbolic +LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined LDADD= -lgssapi -lkrb5 -lhx509 -lcrypto -lroken -lasn1 -lcom_err -lcrypt DPADD= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBROKEN} ${LIBASN1} \ ${LIBCOM_ERR} ${LIBCRYPT} Modified: head/kerberos5/lib/libgssapi_ntlm/Makefile ============================================================================== --- head/kerberos5/lib/libgssapi_ntlm/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libgssapi_ntlm/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,9 +1,9 @@ # $FreeBSD$ LIB= gssapi_ntlm -LDFLAGS= -Wl,-Bsymbolic -LDADD= -lkrb5 -lhx509 -lheimntlm -lroken -DPADD= ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBROKEN} +LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined +LDADD= -lcrypto -lgssapi -lkrb5 -lhx509 -lheimntlm -lroken +DPADD= ${LIBCRYPTO} ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBROKEN} SRCS= accept_sec_context.c \ acquire_cred.c \ Modified: head/kerberos5/lib/libgssapi_spnego/Makefile ============================================================================== --- head/kerberos5/lib/libgssapi_spnego/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libgssapi_spnego/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,9 +1,9 @@ # $FreeBSD$ LIB= gssapi_spnego -LDFLAGS= -Wl,-Bsymbolic -LDADD= -lgssapi -lasn1 -DPADD= ${LIBGSSAPI} ${LIBASN1} +LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined +LDADD= -lgssapi -lasn1 -lroken +DPADD= ${LIBGSSAPI} ${LIBASN1} ${LIBROKEN} SRCS= accept_sec_context.c \ compat.c \ Modified: head/kerberos5/lib/libhdb/Makefile ============================================================================== --- head/kerberos5/lib/libhdb/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libhdb/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= hdb +LDFLAGS= -Wl,--no-undefined +LDADD= -lasn1 -lcom_err -lkrb5 -lroken +DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} INCS= hdb-private.h \ hdb-protos.h \ Modified: head/kerberos5/lib/libheimntlm/Makefile ============================================================================== --- head/kerberos5/lib/libheimntlm/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libheimntlm/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= heimntlm +LDFLAGS= -Wl,--no-undefined +LDADD= -lcrypto -lkrb5 +DPADD= ${LIBCRYPTO} ${LIBKRB5} SRCS= ntlm.c INCS= heimntlm.h heimntlm-protos.h CFLAGS+=-I${KRB5DIR}/lib/ntlm Modified: head/kerberos5/lib/libhx509/Makefile ============================================================================== --- head/kerberos5/lib/libhx509/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libhx509/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,7 +1,10 @@ # $FreeBSD$ LIB= hx509 +LDFLAGS= -Wl,--no-undefined VERSION_MAP= ${KRB5DIR}/lib/hx509/version-script.map +LDADD= -lasn1 -lcom_err -lcrypto -lroken +DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBCRYPTO} ${LIBROKEN} INCS= hx509-private.h \ hx509-protos.h \ Modified: head/kerberos5/lib/libkadm5clnt/Makefile ============================================================================== --- head/kerberos5/lib/libkadm5clnt/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libkadm5clnt/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= kadm5clnt +LDFLAGS= -Wl,--no-undefined +LDADD= -lcom_err -lkrb5 -lroken +DPADD= ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} INCS= admin.h \ kadm5-private.h \ Modified: head/kerberos5/lib/libkadm5srv/Makefile ============================================================================== --- head/kerberos5/lib/libkadm5srv/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libkadm5srv/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= kadm5srv +LDFLAGS= -Wl,--no-undefined +LDADD= -lcom_err -lhdb -lkrb5 -lroken +DPADD= ${LIBCOM_ERR} ${LIBHDB} ${LIBKRB5} ${LIBROKEN} VERSION_MAP= ${KRB5DIR}/lib/kadm5/version-script.map SRCS= acl.c \ Modified: head/kerberos5/lib/libkafs5/Makefile ============================================================================== --- head/kerberos5/lib/libkafs5/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libkafs5/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= kafs5 +LDFLAGS= -Wl,--no-undefined +LDADD= -lasn1 -lkrb5 -lroken +DPADD= ${LIBASN1} ${LIBKRB5} ${LIBROKEN} INCS= kafs.h MAN= kafs5.3 Modified: head/kerberos5/lib/libkrb5/Makefile ============================================================================== --- head/kerberos5/lib/libkrb5/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libkrb5/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,7 +1,10 @@ # $FreeBSD$ LIB= krb5 +LDFLAGS= -Wl,--no-undefined VERSION_MAP= ${KRB5DIR}/lib/krb5/version-script.map +LDADD= -lasn1 -lcom_err -lcrypt -lcrypto -lhx509 -lroken +DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBCRYPT} ${LIBCRYPTO} ${LIBHX509} ${LIBROKEN} INCS= heim_err.h \ heim_threads.h \ Modified: head/kerberos5/lib/libroken/Makefile ============================================================================== --- head/kerberos5/lib/libroken/Makefile Tue Sep 27 07:06:02 2011 (r225777) +++ head/kerberos5/lib/libroken/Makefile Tue Sep 27 07:14:12 2011 (r225778) @@ -1,6 +1,8 @@ # $FreeBSD$ LIB= roken +LDADD= -lcrypt +DPADD= ${LIBCRYPT} INCS= roken.h roken-common.h SRCS= base64.c \ Modified: head/tools/make_libdeps.sh ============================================================================== --- head/tools/make_libdeps.sh Tue Sep 27 07:06:02 2011 (r225777) +++ head/tools/make_libdeps.sh Tue Sep 27 07:14:12 2011 (r225778) @@ -52,7 +52,7 @@ sed -E -e's;-l(ncurses|termcap)!;lib/ncurses/ncurses;g' -e's;-l(gcc)!;gnu/lib/lib\1;g' -e's;-lssp_nonshared!;gnu/lib/libssp/libssp_nonshared;g' - -e's;-l(asn1|heimntlm|hx509|krb5|roken)!;kerberos5/lib/lib\1;g' + -e's;-l(asn1|hdb|heimntlm|hx509|krb5|roken)!;kerberos5/lib/lib\1;g' -e's;-l(crypto|ssh|ssl)!;secure/lib/lib\1;g' -e's;-l([^!]+)!;lib/lib\1;g' " From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:19:02 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D26E106566B; Tue, 27 Sep 2011 07:19:02 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4BE538FC14; Tue, 27 Sep 2011 07:19:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R7J2Uq010250; Tue, 27 Sep 2011 07:19:02 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R7J2eY010248; Tue, 27 Sep 2011 07:19:02 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201109270719.p8R7J2eY010248@svn.freebsd.org> From: Hans Petter Selasky Date: Tue, 27 Sep 2011 07:19:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225779 - stable/8/sys/dev/usb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:19:02 -0000 Author: hselasky Date: Tue Sep 27 07:19:01 2011 New Revision: 225779 URL: http://svn.freebsd.org/changeset/base/225779 Log: MFC r225695: Fix minor race in device side mode. Modified: stable/8/sys/dev/usb/usb_transfer.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/dev/usb/usb_transfer.c ============================================================================== --- stable/8/sys/dev/usb/usb_transfer.c Tue Sep 27 07:14:12 2011 (r225778) +++ stable/8/sys/dev/usb/usb_transfer.c Tue Sep 27 07:19:01 2011 (r225779) @@ -2417,8 +2417,9 @@ usbd_transfer_start_cb(void *arg) #if USB_HAVE_PF usbpf_xfertap(xfer, USBPF_XFERTAP_SUBMIT); #endif - /* start the transfer */ - (ep->methods->start) (xfer); + /* start USB transfer, if no error */ + if (xfer->error == 0) + (ep->methods->start) (xfer); xfer->flags_int.can_cancel_immed = 1; @@ -2597,8 +2598,9 @@ usbd_pipe_start(struct usb_xfer_queue *p #if USB_HAVE_PF usbpf_xfertap(xfer, USBPF_XFERTAP_SUBMIT); #endif - /* start USB transfer */ - (ep->methods->start) (xfer); + /* start USB transfer, if no error */ + if (xfer->error == 0) + (ep->methods->start) (xfer); xfer->flags_int.can_cancel_immed = 1; From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:33:04 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E5A41065677; Tue, 27 Sep 2011 07:33:04 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5D90C8FC12; Tue, 27 Sep 2011 07:33:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R7X4CK010766; Tue, 27 Sep 2011 07:33:04 GMT (envelope-from stas@svn.freebsd.org) Received: (from stas@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R7X4wD010764; Tue, 27 Sep 2011 07:33:04 GMT (envelope-from stas@svn.freebsd.org) Message-Id: <201109270733.p8R7X4wD010764@svn.freebsd.org> From: Stanislav Sedov Date: Tue, 27 Sep 2011 07:33:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225780 - stable/8/sys/dev/smc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:33:04 -0000 Author: stas Date: Tue Sep 27 07:33:04 2011 New Revision: 225780 URL: http://svn.freebsd.org/changeset/base/225780 Log: - MFC r225354: - Fix NULL pointer dereference when a packet of uneven size is being transmitted. Modified: stable/8/sys/dev/smc/if_smc.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/dev/smc/if_smc.c ============================================================================== --- stable/8/sys/dev/smc/if_smc.c Tue Sep 27 07:19:01 2011 (r225779) +++ stable/8/sys/dev/smc/if_smc.c Tue Sep 27 07:33:04 2011 (r225780) @@ -538,6 +538,7 @@ smc_task_tx(void *context, int pending) struct smc_softc *sc; struct mbuf *m, *m0; u_int packet, len; + int last_len; uint8_t *data; (void)pending; @@ -590,16 +591,18 @@ smc_task_tx(void *context, int pending) * Push the data out to the device. */ data = NULL; + last_len = 0; for (; m != NULL; m = m->m_next) { data = mtod(m, uint8_t *); smc_write_multi_2(sc, DATA0, (uint16_t *)data, m->m_len / 2); + last_len = m->m_len; } /* * Push out the control byte and and the odd byte if needed. */ if ((len & 1) != 0 && data != NULL) - smc_write_2(sc, DATA0, (CTRL_ODD << 8) | data[m->m_len - 1]); + smc_write_2(sc, DATA0, (CTRL_ODD << 8) | data[last_len - 1]); else smc_write_2(sc, DATA0, 0); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:52:40 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 619A5106566B; Tue, 27 Sep 2011 07:52:40 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 46DFC8FC17; Tue, 27 Sep 2011 07:52:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R7qexj011403; Tue, 27 Sep 2011 07:52:40 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R7qek7011399; Tue, 27 Sep 2011 07:52:40 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270752.p8R7qek7011399@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 07:52:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225781 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:52:40 -0000 Author: pjd Date: Tue Sep 27 07:52:39 2011 New Revision: 225781 URL: http://svn.freebsd.org/changeset/base/225781 Log: No need to use KEEP_ERRNO() macro around pjdlog functions, as they don't modify errno. MFC after: 3 days Modified: head/sbin/hastd/proto_tcp.c head/sbin/hastd/subr.c Modified: head/sbin/hastd/proto_tcp.c ============================================================================== --- head/sbin/hastd/proto_tcp.c Tue Sep 27 07:33:04 2011 (r225780) +++ head/sbin/hastd/proto_tcp.c Tue Sep 27 07:52:39 2011 (r225781) @@ -298,8 +298,7 @@ tcp_connect(void *ctx, int timeout) flags = fcntl(tctx->tc_fd, F_GETFL); if (flags == -1) { - KEEP_ERRNO(pjdlog_common(LOG_DEBUG, 1, errno, - "fcntl(F_GETFL) failed")); + pjdlog_common(LOG_DEBUG, 1, errno, "fcntl(F_GETFL) failed"); return (errno); } /* @@ -308,8 +307,8 @@ tcp_connect(void *ctx, int timeout) */ flags |= O_NONBLOCK; if (fcntl(tctx->tc_fd, F_SETFL, flags) == -1) { - KEEP_ERRNO(pjdlog_common(LOG_DEBUG, 1, errno, - "fcntl(F_SETFL, O_NONBLOCK) failed")); + pjdlog_common(LOG_DEBUG, 1, errno, + "fcntl(F_SETFL, O_NONBLOCK) failed"); return (errno); } Modified: head/sbin/hastd/subr.c ============================================================================== --- head/sbin/hastd/subr.c Tue Sep 27 07:33:04 2011 (r225780) +++ head/sbin/hastd/subr.c Tue Sep 27 07:52:39 2011 (r225781) @@ -87,14 +87,13 @@ provinfo(struct hast_resource *res, bool res->hr_localfd = open(res->hr_localpath, dowrite ? O_RDWR : O_RDONLY); if (res->hr_localfd < 0) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, "Unable to open %s", - res->hr_localpath)); + pjdlog_errno(LOG_ERR, "Unable to open %s", + res->hr_localpath); return (-1); } } if (fstat(res->hr_localfd, &sb) < 0) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, "Unable to stat %s", - res->hr_localpath)); + pjdlog_errno(LOG_ERR, "Unable to stat %s", res->hr_localpath); return (-1); } if (S_ISCHR(sb.st_mode)) { @@ -103,16 +102,16 @@ provinfo(struct hast_resource *res, bool */ if (ioctl(res->hr_localfd, DIOCGMEDIASIZE, &res->hr_local_mediasize) < 0) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, + pjdlog_errno(LOG_ERR, "Unable obtain provider %s mediasize", - res->hr_localpath)); + res->hr_localpath); return (-1); } if (ioctl(res->hr_localfd, DIOCGSECTORSIZE, &res->hr_local_sectorsize) < 0) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, + pjdlog_errno(LOG_ERR, "Unable obtain provider %s sectorsize", - res->hr_localpath)); + res->hr_localpath); return (-1); } } else if (S_ISREG(sb.st_mode)) { @@ -169,8 +168,8 @@ drop_privs(struct hast_resource *res) pw = getpwnam(HAST_USER); if (pw == NULL) { if (errno != 0) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, - "Unable to find info about '%s' user", HAST_USER)); + pjdlog_errno(LOG_ERR, + "Unable to find info about '%s' user", HAST_USER); return (-1); } else { pjdlog_error("'%s' user doesn't exist.", HAST_USER); @@ -201,28 +200,27 @@ drop_privs(struct hast_resource *res) pjdlog_errno(LOG_WARNING, "Unable to jail to directory to %s", pw->pw_dir); if (chroot(pw->pw_dir) == -1) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, + pjdlog_errno(LOG_ERR, "Unable to change root directory to %s", - pw->pw_dir)); + pw->pw_dir); return (-1); } } PJDLOG_VERIFY(chdir("/") == 0); gidset[0] = pw->pw_gid; if (setgroups(1, gidset) == -1) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, - "Unable to set groups to gid %u", - (unsigned int)pw->pw_gid)); + pjdlog_errno(LOG_ERR, "Unable to set groups to gid %u", + (unsigned int)pw->pw_gid); return (-1); } if (setgid(pw->pw_gid) == -1) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, "Unable to set gid to %u", - (unsigned int)pw->pw_gid)); + pjdlog_errno(LOG_ERR, "Unable to set gid to %u", + (unsigned int)pw->pw_gid); return (-1); } if (setuid(pw->pw_uid) == -1) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, "Unable to set uid to %u", - (unsigned int)pw->pw_uid)); + pjdlog_errno(LOG_ERR, "Unable to set uid to %u", + (unsigned int)pw->pw_uid); return (-1); } From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:57:15 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87B39106564A; Tue, 27 Sep 2011 07:57:15 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 773C88FC20; Tue, 27 Sep 2011 07:57:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R7vFmp011584; Tue, 27 Sep 2011 07:57:15 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R7vFfb011581; Tue, 27 Sep 2011 07:57:15 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270757.p8R7vFfb011581@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 07:57:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225782 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:57:15 -0000 Author: pjd Date: Tue Sep 27 07:57:15 2011 New Revision: 225782 URL: http://svn.freebsd.org/changeset/base/225782 Log: Prefer PJDLOG_ASSERT() and PJDLOG_ABORT() over assert() and abort(). pjdlog versions will log problem to syslog when application is running in background. MFC after: 3 days Modified: head/sbin/hastd/control.c head/sbin/hastd/parse.y head/sbin/hastd/secondary.c Modified: head/sbin/hastd/control.c ============================================================================== --- head/sbin/hastd/control.c Tue Sep 27 07:52:39 2011 (r225781) +++ head/sbin/hastd/control.c Tue Sep 27 07:57:15 2011 (r225782) @@ -33,7 +33,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include @@ -82,8 +81,8 @@ control_set_role_common(struct hastd_con nv_add_string(nvout, name, "resource%u", no); if (res == NULL) { - assert(cfg != NULL); - assert(name != NULL); + PJDLOG_ASSERT(cfg != NULL); + PJDLOG_ASSERT(name != NULL); TAILQ_FOREACH(res, &cfg->hc_resources, hr_next) { if (strcmp(res->hr_name, name) == 0) @@ -94,7 +93,7 @@ control_set_role_common(struct hastd_con return; } } - assert(res != NULL); + PJDLOG_ASSERT(res != NULL); /* Send previous role back. */ nv_add_string(nvout, role2str(res->hr_role), "role%u", no); @@ -222,9 +221,9 @@ control_status(struct hastd_config *cfg, struct hast_resource *res, const char *name, unsigned int no) { - assert(cfg != NULL); - assert(nvout != NULL); - assert(name != NULL); + PJDLOG_ASSERT(cfg != NULL); + PJDLOG_ASSERT(nvout != NULL); + PJDLOG_ASSERT(name != NULL); /* Name is always needed. */ nv_add_string(nvout, name, "resource%u", no); @@ -239,7 +238,7 @@ control_status(struct hastd_config *cfg, return; } } - assert(res != NULL); + PJDLOG_ASSERT(res != NULL); nv_add_string(nvout, res->hr_provname, "provname%u", no); nv_add_string(nvout, res->hr_localpath, "localpath%u", no); nv_add_string(nvout, res->hr_remoteaddr, "remoteaddr%u", no); @@ -267,7 +266,7 @@ control_status(struct hastd_config *cfg, switch (res->hr_role) { case HAST_ROLE_PRIMARY: - assert(res->hr_workerpid != 0); + PJDLOG_ASSERT(res->hr_workerpid != 0); /* FALLTHROUGH */ case HAST_ROLE_SECONDARY: if (res->hr_workerpid != 0) @@ -470,7 +469,7 @@ ctrl_thread(void *arg) * something related to us has changes, it sends reload * message to us. */ - assert(res->hr_role == HAST_ROLE_PRIMARY); + PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY); primary_config_reload(res, nvin); nv_add_int16(nvout, 0, "error"); break; Modified: head/sbin/hastd/parse.y ============================================================================== --- head/sbin/hastd/parse.y Tue Sep 27 07:52:39 2011 (r225781) +++ head/sbin/hastd/parse.y Tue Sep 27 07:57:15 2011 (r225782) @@ -38,7 +38,6 @@ #include -#include #include #include #include @@ -282,9 +281,9 @@ yy_config_parse(const char *config, bool } } TAILQ_FOREACH(curres, &lconfig->hc_resources, hr_next) { - assert(curres->hr_provname[0] != '\0'); - assert(curres->hr_localpath[0] != '\0'); - assert(curres->hr_remoteaddr[0] != '\0'); + PJDLOG_ASSERT(curres->hr_provname[0] != '\0'); + PJDLOG_ASSERT(curres->hr_localpath[0] != '\0'); + PJDLOG_ASSERT(curres->hr_remoteaddr[0] != '\0'); if (curres->hr_replication == -1) { /* @@ -426,7 +425,7 @@ control_statement: CONTROL STR } break; default: - assert(!"control at wrong depth level"); + PJDLOG_ABORT("control at wrong depth level"); } free($2); } @@ -460,7 +459,7 @@ listen_statement: LISTEN STR free(lst); break; default: - assert(!"listen at wrong depth level"); + PJDLOG_ABORT("listen at wrong depth level"); } free($2); } @@ -477,7 +476,7 @@ replication_statement: REPLICATION repli curres->hr_replication = $2; break; default: - assert(!"replication at wrong depth level"); + PJDLOG_ABORT("replication at wrong depth level"); } } ; @@ -501,7 +500,7 @@ checksum_statement: CHECKSUM checksum_ty curres->hr_checksum = $2; break; default: - assert(!"checksum at wrong depth level"); + PJDLOG_ABORT("checksum at wrong depth level"); } } ; @@ -525,7 +524,7 @@ compression_statement: COMPRESSION compr curres->hr_compression = $2; break; default: - assert(!"compression at wrong depth level"); + PJDLOG_ABORT("compression at wrong depth level"); } } ; @@ -553,7 +552,7 @@ timeout_statement: TIMEOUT NUM curres->hr_timeout = $2; break; default: - assert(!"timeout at wrong depth level"); + PJDLOG_ABORT("timeout at wrong depth level"); } } ; @@ -581,7 +580,7 @@ exec_statement: EXEC STR } break; default: - assert(!"exec at wrong depth level"); + PJDLOG_ABORT("exec at wrong depth level"); } free($2); } @@ -605,7 +604,7 @@ node_start: STR mynode = true; break; default: - assert(!"invalid isitme() return value"); + PJDLOG_ABORT("invalid isitme() return value"); } free($1); } @@ -785,7 +784,7 @@ name_statement: NAME STR case 2: if (!mynode) break; - assert(curres != NULL); + PJDLOG_ASSERT(curres != NULL); if (strlcpy(curres->hr_provname, $2, sizeof(curres->hr_provname)) >= sizeof(curres->hr_provname)) { @@ -795,7 +794,7 @@ name_statement: NAME STR } break; default: - assert(!"name at wrong depth level"); + PJDLOG_ABORT("name at wrong depth level"); } free($2); } @@ -816,7 +815,7 @@ local_statement: LOCAL STR case 2: if (!mynode) break; - assert(curres != NULL); + PJDLOG_ASSERT(curres != NULL); if (strlcpy(curres->hr_localpath, $2, sizeof(curres->hr_localpath)) >= sizeof(curres->hr_localpath)) { @@ -826,7 +825,7 @@ local_statement: LOCAL STR } break; default: - assert(!"local at wrong depth level"); + PJDLOG_ABORT("local at wrong depth level"); } free($2); } @@ -851,7 +850,7 @@ resource_node_start: STR mynode = hadmynode = true; break; default: - assert(!"invalid isitme() return value"); + PJDLOG_ABORT("invalid isitme() return value"); } } free($1); @@ -875,9 +874,9 @@ resource_node_entry: remote_statement: REMOTE remote_str { - assert(depth == 2); + PJDLOG_ASSERT(depth == 2); if (mynode) { - assert(curres != NULL); + PJDLOG_ASSERT(curres != NULL); if (strlcpy(curres->hr_remoteaddr, $2, sizeof(curres->hr_remoteaddr)) >= sizeof(curres->hr_remoteaddr)) { @@ -898,9 +897,9 @@ remote_str: source_statement: SOURCE STR { - assert(depth == 2); + PJDLOG_ASSERT(depth == 2); if (mynode) { - assert(curres != NULL); + PJDLOG_ASSERT(curres != NULL); if (strlcpy(curres->hr_sourceaddr, $2, sizeof(curres->hr_sourceaddr)) >= sizeof(curres->hr_sourceaddr)) { Modified: head/sbin/hastd/secondary.c ============================================================================== --- head/sbin/hastd/secondary.c Tue Sep 27 07:52:39 2011 (r225781) +++ head/sbin/hastd/secondary.c Tue Sep 27 07:57:15 2011 (r225782) @@ -791,8 +791,8 @@ send_thread(void *arg) length = 0; break; default: - abort(); - break; + PJDLOG_ABORT("Unexpected command (cmd=%hhu).", + hio->hio_cmd); } if (hio->hio_error != 0) nv_add_int16(nvout, hio->hio_error, "error"); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 07:59:11 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D898106564A; Tue, 27 Sep 2011 07:59:11 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4DB2D8FC12; Tue, 27 Sep 2011 07:59:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R7xBqK011676; Tue, 27 Sep 2011 07:59:11 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R7xBZU011674; Tue, 27 Sep 2011 07:59:11 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270759.p8R7xBZU011674@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 07:59:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225783 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 07:59:11 -0000 Author: pjd Date: Tue Sep 27 07:59:10 2011 New Revision: 225783 URL: http://svn.freebsd.org/changeset/base/225783 Log: Correct two mistakes when converting asserts to PJDLOG_ASSERT()/PJDLOG_ABORT(). MFC after: 3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Tue Sep 27 07:57:15 2011 (r225782) +++ head/sbin/hastd/primary.c Tue Sep 27 07:59:10 2011 (r225783) @@ -1421,8 +1421,7 @@ remote_send_thread(void *arg) length = 0; break; default: - PJDLOG_ASSERT(!"invalid condition"); - abort(); + PJDLOG_ABORT("invalid condition"); } nv = nv_alloc(); nv_add_uint8(nv, cmd, "cmd"); @@ -1621,8 +1620,7 @@ remote_recv_thread(void *arg) case BIO_FLUSH: break; default: - PJDLOG_ASSERT(!"invalid condition"); - abort(); + PJDLOG_ABORT("invalid condition"); } hio->hio_errors[ncomp] = 0; nv_free(nv); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 08:04:02 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55E05106564A; Tue, 27 Sep 2011 08:04:02 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2C6E78FC16; Tue, 27 Sep 2011 08:04:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R842Zp011883; Tue, 27 Sep 2011 08:04:02 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R842W1011881; Tue, 27 Sep 2011 08:04:02 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270804.p8R842W1011881@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 08:04:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225784 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 08:04:02 -0000 Author: pjd Date: Tue Sep 27 08:04:01 2011 New Revision: 225784 URL: http://svn.freebsd.org/changeset/base/225784 Log: - Convert some impossible conditions into assertions. - Add missing 'if' in comment. MFC after: 3 days Modified: head/sbin/hastd/parse.y Modified: head/sbin/hastd/parse.y ============================================================================== --- head/sbin/hastd/parse.y Tue Sep 27 07:59:10 2011 (r225783) +++ head/sbin/hastd/parse.y Tue Sep 27 08:04:01 2011 (r225784) @@ -472,8 +472,8 @@ replication_statement: REPLICATION repli depth0_replication = $2; break; case 1: - if (curres != NULL) - curres->hr_replication = $2; + PJDLOG_ASSERT(curres != NULL); + curres->hr_replication = $2; break; default: PJDLOG_ABORT("replication at wrong depth level"); @@ -496,8 +496,8 @@ checksum_statement: CHECKSUM checksum_ty depth0_checksum = $2; break; case 1: - if (curres != NULL) - curres->hr_checksum = $2; + PJDLOG_ASSERT(curres != NULL); + curres->hr_checksum = $2; break; default: PJDLOG_ABORT("checksum at wrong depth level"); @@ -520,8 +520,8 @@ compression_statement: COMPRESSION compr depth0_compression = $2; break; case 1: - if (curres != NULL) - curres->hr_compression = $2; + PJDLOG_ASSERT(curres != NULL); + curres->hr_compression = $2; break; default: PJDLOG_ABORT("compression at wrong depth level"); @@ -548,8 +548,8 @@ timeout_statement: TIMEOUT NUM depth0_timeout = $2; break; case 1: - if (curres != NULL) - curres->hr_timeout = $2; + PJDLOG_ASSERT(curres != NULL); + curres->hr_timeout = $2; break; default: PJDLOG_ABORT("timeout at wrong depth level"); @@ -569,8 +569,7 @@ exec_statement: EXEC STR } break; case 1: - if (curres == NULL) - break; + PJDLOG_ASSERT(curres != NULL); if (strlcpy(curres->hr_exec, $2, sizeof(curres->hr_exec)) >= sizeof(curres->hr_exec)) { @@ -639,7 +638,7 @@ resource_statement: RESOURCE resource_st } /* - * Let's see there are some resource-level settings + * Let's see if there are some resource-level settings * that we can use for node-level settings. */ if (curres->hr_provname[0] == '\0' && From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 08:21:01 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49860106566B; Tue, 27 Sep 2011 08:21:01 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 37DE08FC15; Tue, 27 Sep 2011 08:21:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R8L1E5012418; Tue, 27 Sep 2011 08:21:01 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R8L1Yd012416; Tue, 27 Sep 2011 08:21:01 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270821.p8R8L1Yd012416@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 08:21:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225785 - head/sbin/hastctl X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 08:21:01 -0000 Author: pjd Date: Tue Sep 27 08:21:00 2011 New Revision: 225785 URL: http://svn.freebsd.org/changeset/base/225785 Log: Prefer PJDLOG_ASSERT()/PJDLOG_ABORT() over assert(). MFC after: 3 days Modified: head/sbin/hastctl/hastctl.c Modified: head/sbin/hastctl/hastctl.c ============================================================================== --- head/sbin/hastctl/hastctl.c Tue Sep 27 08:04:01 2011 (r225784) +++ head/sbin/hastctl/hastctl.c Tue Sep 27 08:21:00 2011 (r225785) @@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include @@ -433,19 +432,19 @@ main(int argc, char *argv[]) pjdlog_debug_set(debug); cfg = yy_config_parse(cfgpath, true); - assert(cfg != NULL); + PJDLOG_ASSERT(cfg != NULL); switch (cmd) { case CMD_CREATE: control_create(argc, argv, mediasize, extentsize, keepdirty); /* NOTREACHED */ - assert(!"What are we doing here?!"); + PJDLOG_ABORT("What are we doing here?!"); break; case CMD_DUMP: /* Dump metadata from local component of the given resource. */ control_dump(argc, argv); /* NOTREACHED */ - assert(!"What are we doing here?!"); + PJDLOG_ABORT("What are we doing here?!"); break; case CMD_ROLE: /* Change role for the given resources. */ @@ -476,7 +475,7 @@ main(int argc, char *argv[]) } break; default: - assert(!"Impossible command!"); + PJDLOG_ABORT("Impossible command!"); } /* Setup control connection... */ @@ -523,7 +522,7 @@ main(int argc, char *argv[]) error = control_status(nv); break; default: - assert(!"Impossible command!"); + PJDLOG_ABORT("Impossible command!"); } exit(error); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 08:26:10 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54142106564A; Tue, 27 Sep 2011 08:26:10 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 444EE8FC0A; Tue, 27 Sep 2011 08:26:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R8QAfJ012616; Tue, 27 Sep 2011 08:26:10 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R8QAUG012614; Tue, 27 Sep 2011 08:26:10 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270826.p8R8QAUG012614@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 08:26:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225786 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 08:26:10 -0000 Author: pjd Date: Tue Sep 27 08:26:09 2011 New Revision: 225786 URL: http://svn.freebsd.org/changeset/base/225786 Log: No need to wrap pjdlog functions around with KEEP_ERRNO() macro. MFC after: 3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Tue Sep 27 08:21:00 2011 (r225785) +++ head/sbin/hastd/primary.c Tue Sep 27 08:26:09 2011 (r225786) @@ -293,8 +293,7 @@ hast_activemap_flush(struct hast_resourc PJDLOG_ASSERT((size % res->hr_local_sectorsize) == 0); if (pwrite(res->hr_localfd, buf, size, METADATA_SIZE) != (ssize_t)size) { - KEEP_ERRNO(pjdlog_errno(LOG_ERR, - "Unable to flush activemap to disk")); + pjdlog_errno(LOG_ERR, "Unable to flush activemap to disk"); return (-1); } return (0); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 08:50:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBC3C106566B; Tue, 27 Sep 2011 08:50:37 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AAF288FC17; Tue, 27 Sep 2011 08:50:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R8obfS013421; Tue, 27 Sep 2011 08:50:37 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R8obQB013411; Tue, 27 Sep 2011 08:50:37 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109270850.p8R8obQB013411@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 27 Sep 2011 08:50:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225787 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 08:50:37 -0000 Author: pjd Date: Tue Sep 27 08:50:37 2011 New Revision: 225787 URL: http://svn.freebsd.org/changeset/base/225787 Log: Use PJDLOG_ASSERT() and PJDLOG_ABORT() everywhere instead of assert(). MFC after: 3 days Modified: head/sbin/hastd/activemap.c head/sbin/hastd/ebuf.c head/sbin/hastd/event.c head/sbin/hastd/hast_proto.c head/sbin/hastd/hooks.c head/sbin/hastd/metadata.c head/sbin/hastd/nv.c head/sbin/hastd/rangelock.c head/sbin/hastd/synch.h Modified: head/sbin/hastd/activemap.c ============================================================================== --- head/sbin/hastd/activemap.c Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/activemap.c Tue Sep 27 08:50:37 2011 (r225787) @@ -33,7 +33,6 @@ __FBSDID("$FreeBSD$"); #include /* powerof2() */ #include -#include #include #include #include @@ -41,7 +40,14 @@ __FBSDID("$FreeBSD$"); #include #include -#include +#include + +#include "activemap.h" + +#ifndef PJDLOG_ASSERT +#include +#define PJDLOG_ASSERT(...) assert(__VA_ARGS__) +#endif #define ACTIVEMAP_MAGIC 0xac71e4 struct activemap { @@ -93,9 +99,9 @@ off2ext(const struct activemap *amp, off { int extent; - assert(offset >= 0 && offset < amp->am_mediasize); + PJDLOG_ASSERT(offset >= 0 && offset < amp->am_mediasize); extent = (offset >> amp->am_extentshift); - assert(extent >= 0 && extent < amp->am_nextents); + PJDLOG_ASSERT(extent >= 0 && extent < amp->am_nextents); return (extent); } @@ -104,9 +110,9 @@ ext2off(const struct activemap *amp, int { off_t offset; - assert(extent >= 0 && extent < amp->am_nextents); + PJDLOG_ASSERT(extent >= 0 && extent < amp->am_nextents); offset = ((off_t)extent << amp->am_extentshift); - assert(offset >= 0 && offset < amp->am_mediasize); + PJDLOG_ASSERT(offset >= 0 && offset < amp->am_mediasize); return (offset); } @@ -122,7 +128,7 @@ ext2reqs(const struct activemap *amp, in if (ext < amp->am_nextents - 1) return (((amp->am_extentsize - 1) / MAXPHYS) + 1); - assert(ext == amp->am_nextents - 1); + PJDLOG_ASSERT(ext == amp->am_nextents - 1); left = amp->am_mediasize % amp->am_extentsize; if (left == 0) left = amp->am_extentsize; @@ -139,13 +145,13 @@ activemap_init(struct activemap **ampp, { struct activemap *amp; - assert(ampp != NULL); - assert(mediasize > 0); - assert(extentsize > 0); - assert(powerof2(extentsize)); - assert(sectorsize > 0); - assert(powerof2(sectorsize)); - assert(keepdirty > 0); + PJDLOG_ASSERT(ampp != NULL); + PJDLOG_ASSERT(mediasize > 0); + PJDLOG_ASSERT(extentsize > 0); + PJDLOG_ASSERT(powerof2(extentsize)); + PJDLOG_ASSERT(sectorsize > 0); + PJDLOG_ASSERT(powerof2(sectorsize)); + PJDLOG_ASSERT(keepdirty > 0); amp = malloc(sizeof(*amp)); if (amp == NULL) @@ -225,10 +231,10 @@ keepdirty_add(struct activemap *amp, int */ if (amp->am_nkeepdirty >= amp->am_nkeepdirty_limit) { kd = TAILQ_LAST(&->am_keepdirty, skeepdirty); - assert(kd != NULL); + PJDLOG_ASSERT(kd != NULL); TAILQ_REMOVE(&->am_keepdirty, kd, kd_next); amp->am_nkeepdirty--; - assert(amp->am_nkeepdirty > 0); + PJDLOG_ASSERT(amp->am_nkeepdirty > 0); } if (kd == NULL) kd = malloc(sizeof(*kd)); @@ -261,7 +267,7 @@ keepdirty_free(struct activemap *amp) amp->am_nkeepdirty--; free(kd); } - assert(amp->am_nkeepdirty == 0); + PJDLOG_ASSERT(amp->am_nkeepdirty == 0); } /* @@ -271,7 +277,7 @@ void activemap_free(struct activemap *amp) { - assert(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); amp->am_magic = 0; @@ -293,8 +299,8 @@ activemap_write_start(struct activemap * off_t end; int ext; - assert(amp->am_magic == ACTIVEMAP_MAGIC); - assert(length > 0); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(length > 0); modified = false; end = offset + length - 1; @@ -307,7 +313,7 @@ activemap_write_start(struct activemap * * was modified and has to be flushed to disk. */ if (amp->am_memtab[ext]++ == 0) { - assert(!bit_test(amp->am_memmap, ext)); + PJDLOG_ASSERT(!bit_test(amp->am_memmap, ext)); bit_set(amp->am_memmap, ext); amp->am_ndirty++; } @@ -329,8 +335,8 @@ activemap_write_complete(struct activema off_t end; int ext; - assert(amp->am_magic == ACTIVEMAP_MAGIC); - assert(length > 0); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(length > 0); modified = false; end = offset + length - 1; @@ -342,8 +348,8 @@ activemap_write_complete(struct activema * By returning true we inform the caller that on-disk bitmap * was modified and has to be flushed to disk. */ - assert(amp->am_memtab[ext] > 0); - assert(bit_test(amp->am_memmap, ext)); + PJDLOG_ASSERT(amp->am_memtab[ext] > 0); + PJDLOG_ASSERT(bit_test(amp->am_memmap, ext)); if (--amp->am_memtab[ext] == 0) { bit_clear(amp->am_memmap, ext); amp->am_ndirty--; @@ -365,15 +371,15 @@ activemap_extent_complete(struct activem bool modified; int reqs; - assert(amp->am_magic == ACTIVEMAP_MAGIC); - assert(extent >= 0 && extent < amp->am_nextents); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(extent >= 0 && extent < amp->am_nextents); modified = false; reqs = ext2reqs(amp, extent); - assert(amp->am_memtab[extent] >= reqs); + PJDLOG_ASSERT(amp->am_memtab[extent] >= reqs); amp->am_memtab[extent] -= reqs; - assert(bit_test(amp->am_memmap, extent)); + PJDLOG_ASSERT(bit_test(amp->am_memmap, extent)); if (amp->am_memtab[extent] == 0) { bit_clear(amp->am_memmap, extent); amp->am_ndirty--; @@ -390,7 +396,7 @@ uint64_t activemap_ndirty(const struct activemap *amp) { - assert(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); return (amp->am_ndirty); } @@ -403,7 +409,7 @@ bool activemap_differ(const struct activemap *amp) { - assert(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); return (memcmp(amp->am_diskmap, amp->am_memmap, amp->am_mapsize) != 0); @@ -416,7 +422,7 @@ size_t activemap_size(const struct activemap *amp) { - assert(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); return (amp->am_mapsize); } @@ -429,7 +435,7 @@ size_t activemap_ondisk_size(const struct activemap *amp) { - assert(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); return (amp->am_diskmapsize); } @@ -442,8 +448,8 @@ activemap_copyin(struct activemap *amp, { int ext; - assert(amp->am_magic == ACTIVEMAP_MAGIC); - assert(size >= amp->am_mapsize); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(size >= amp->am_mapsize); memcpy(amp->am_diskmap, buf, amp->am_mapsize); memcpy(amp->am_memmap, buf, amp->am_mapsize); @@ -481,8 +487,8 @@ activemap_merge(struct activemap *amp, c bitstr_t *remmap = __DECONST(bitstr_t *, buf); int ext; - assert(amp->am_magic == ACTIVEMAP_MAGIC); - assert(size >= amp->am_mapsize); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(size >= amp->am_mapsize); bit_ffs(remmap, amp->am_nextents, &ext); if (ext == -1) { @@ -521,7 +527,7 @@ const unsigned char * activemap_bitmap(struct activemap *amp, size_t *sizep) { - assert(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); if (sizep != NULL) *sizep = amp->am_diskmapsize; @@ -539,11 +545,11 @@ activemap_calc_ondisk_size(uint64_t medi { uint64_t nextents, mapsize; - assert(mediasize > 0); - assert(extentsize > 0); - assert(powerof2(extentsize)); - assert(sectorsize > 0); - assert(powerof2(sectorsize)); + PJDLOG_ASSERT(mediasize > 0); + PJDLOG_ASSERT(extentsize > 0); + PJDLOG_ASSERT(powerof2(extentsize)); + PJDLOG_ASSERT(sectorsize > 0); + PJDLOG_ASSERT(powerof2(sectorsize)); nextents = ((mediasize - 1) / extentsize) + 1; mapsize = sizeof(bitstr_t) * bitstr_size(nextents); @@ -558,7 +564,7 @@ activemap_sync_rewind(struct activemap * { int ext; - assert(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); bit_ffs(amp->am_syncmap, amp->am_nextents, &ext); if (ext == -1) { @@ -581,9 +587,9 @@ activemap_sync_offset(struct activemap * off_t syncoff, left; int ext; - assert(amp->am_magic == ACTIVEMAP_MAGIC); - assert(lengthp != NULL); - assert(syncextp != NULL); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(lengthp != NULL); + PJDLOG_ASSERT(syncextp != NULL); *syncextp = -1; @@ -632,9 +638,10 @@ activemap_sync_offset(struct activemap * if (left > MAXPHYS) left = MAXPHYS; - assert(left >= 0 && left <= MAXPHYS); - assert(syncoff >= 0 && syncoff < amp->am_mediasize); - assert(syncoff + left >= 0 && syncoff + left <= amp->am_mediasize); + PJDLOG_ASSERT(left >= 0 && left <= MAXPHYS); + PJDLOG_ASSERT(syncoff >= 0 && syncoff < amp->am_mediasize); + PJDLOG_ASSERT(syncoff + left >= 0 && + syncoff + left <= amp->am_mediasize); *lengthp = left; return (syncoff); @@ -651,7 +658,7 @@ activemap_need_sync(struct activemap *am off_t end; int ext; - assert(amp->am_magic == ACTIVEMAP_MAGIC); + PJDLOG_ASSERT(amp->am_magic == ACTIVEMAP_MAGIC); modified = false; end = offset + length - 1; @@ -659,7 +666,7 @@ activemap_need_sync(struct activemap *am for (ext = off2ext(amp, offset); ext <= off2ext(amp, end); ext++) { if (bit_test(amp->am_syncmap, ext)) { /* Already marked for synchronization. */ - assert(bit_test(amp->am_memmap, ext)); + PJDLOG_ASSERT(bit_test(amp->am_memmap, ext)); continue; } bit_set(amp->am_syncmap, ext); Modified: head/sbin/hastd/ebuf.c ============================================================================== --- head/sbin/hastd/ebuf.c Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/ebuf.c Tue Sep 27 08:50:37 2011 (r225787) @@ -32,15 +32,21 @@ __FBSDID("$FreeBSD$"); #include -#include #include #include #include #include #include +#include + #include "ebuf.h" +#ifndef PJDLOG_ASSERT +#include +#define PJDLOG_ASSERT(...) assert(__VA_ARGS__) +#endif + #define EBUF_MAGIC 0xeb0f41c struct ebuf { /* Magic to assert the caller uses valid structure. */ @@ -91,7 +97,7 @@ void ebuf_free(struct ebuf *eb) { - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); eb->eb_magic = 0; @@ -103,7 +109,7 @@ int ebuf_add_head(struct ebuf *eb, const void *data, size_t size) { - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); if (size > (size_t)(eb->eb_used - eb->eb_start)) { /* @@ -113,7 +119,7 @@ ebuf_add_head(struct ebuf *eb, const voi if (ebuf_head_extend(eb, size) < 0) return (-1); } - assert(size <= (size_t)(eb->eb_used - eb->eb_start)); + PJDLOG_ASSERT(size <= (size_t)(eb->eb_used - eb->eb_start)); eb->eb_size += size; eb->eb_used -= size; @@ -130,7 +136,7 @@ int ebuf_add_tail(struct ebuf *eb, const void *data, size_t size) { - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); if (size > (size_t)(eb->eb_end - (eb->eb_used + eb->eb_size))) { /* @@ -140,7 +146,8 @@ ebuf_add_tail(struct ebuf *eb, const voi if (ebuf_tail_extend(eb, size) < 0) return (-1); } - assert(size <= (size_t)(eb->eb_end - (eb->eb_used + eb->eb_size))); + PJDLOG_ASSERT(size <= + (size_t)(eb->eb_end - (eb->eb_used + eb->eb_size))); /* * If data is NULL the caller just wants to reserve space. @@ -156,8 +163,8 @@ void ebuf_del_head(struct ebuf *eb, size_t size) { - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); - assert(size <= eb->eb_size); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(size <= eb->eb_size); eb->eb_used += size; eb->eb_size -= size; @@ -167,8 +174,8 @@ void ebuf_del_tail(struct ebuf *eb, size_t size) { - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); - assert(size <= eb->eb_size); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(size <= eb->eb_size); eb->eb_size -= size; } @@ -180,7 +187,7 @@ void * ebuf_data(struct ebuf *eb, size_t *sizep) { - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); if (sizep != NULL) *sizep = eb->eb_size; @@ -194,7 +201,7 @@ size_t ebuf_size(struct ebuf *eb) { - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); return (eb->eb_size); } @@ -208,7 +215,7 @@ ebuf_head_extend(struct ebuf *eb, size_t unsigned char *newstart, *newused; size_t newsize; - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); newsize = eb->eb_end - eb->eb_start + (PAGE_SIZE / 4) + size; @@ -236,7 +243,7 @@ ebuf_tail_extend(struct ebuf *eb, size_t unsigned char *newstart; size_t newsize; - assert(eb != NULL && eb->eb_magic == EBUF_MAGIC); + PJDLOG_ASSERT(eb != NULL && eb->eb_magic == EBUF_MAGIC); newsize = eb->eb_end - eb->eb_start + size + ((3 * PAGE_SIZE) / 4); Modified: head/sbin/hastd/event.c ============================================================================== --- head/sbin/hastd/event.c Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/event.c Tue Sep 27 08:50:37 2011 (r225787) @@ -27,7 +27,6 @@ #include __FBSDID("$FreeBSD$"); -#include #include #include "hast.h" @@ -46,8 +45,8 @@ event_send(const struct hast_resource *r struct nv *nvin, *nvout; int error; - assert(res != NULL); - assert(event >= EVENT_MIN && event <= EVENT_MAX); + PJDLOG_ASSERT(res != NULL); + PJDLOG_ASSERT(event >= EVENT_MIN && event <= EVENT_MAX); nvin = nvout = NULL; @@ -89,7 +88,7 @@ event_recv(const struct hast_resource *r uint8_t event; int error; - assert(res != NULL); + PJDLOG_ASSERT(res != NULL); nvin = nvout = NULL; Modified: head/sbin/hastd/hast_proto.c ============================================================================== --- head/sbin/hastd/hast_proto.c Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/hast_proto.c Tue Sep 27 08:50:37 2011 (r225787) @@ -33,7 +33,6 @@ __FBSDID("$FreeBSD$"); #include -#include #include #include @@ -158,7 +157,7 @@ hast_proto_recv_hdr(const struct proto_c if (ebuf_add_tail(eb, NULL, hdr.size) < 0) goto fail; hptr = ebuf_data(eb, NULL); - assert(hptr != NULL); + PJDLOG_ASSERT(hptr != NULL); if (proto_recv(conn, hptr, hdr.size) < 0) goto fail; nv = nv_ntoh(eb); @@ -183,8 +182,8 @@ hast_proto_recv_data(const struct hast_r void *dptr; int ret; - assert(data != NULL); - assert(size > 0); + PJDLOG_ASSERT(data != NULL); + PJDLOG_ASSERT(size > 0); ret = -1; freedata = false; Modified: head/sbin/hastd/hooks.c ============================================================================== --- head/sbin/hastd/hooks.c Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/hooks.c Tue Sep 27 08:50:37 2011 (r225787) @@ -35,7 +35,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include @@ -138,7 +137,7 @@ void hook_init(void) { - assert(!hooks_initialized); + PJDLOG_ASSERT(!hooks_initialized); mtx_init(&hookprocs_lock); TAILQ_INIT(&hookprocs); @@ -150,12 +149,12 @@ hook_fini(void) { struct hookproc *hp; - assert(hooks_initialized); + PJDLOG_ASSERT(hooks_initialized); mtx_lock(&hookprocs_lock); while ((hp = TAILQ_FIRST(&hookprocs)) != NULL) { - assert(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); - assert(hp->hp_pid > 0); + PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); + PJDLOG_ASSERT(hp->hp_pid > 0); hook_remove(hp); hook_free(hp); @@ -201,8 +200,8 @@ static void hook_add(struct hookproc *hp, pid_t pid) { - assert(hp->hp_magic == HOOKPROC_MAGIC_ALLOCATED); - assert(hp->hp_pid == 0); + PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ALLOCATED); + PJDLOG_ASSERT(hp->hp_pid == 0); hp->hp_pid = pid; mtx_lock(&hookprocs_lock); @@ -215,9 +214,9 @@ static void hook_remove(struct hookproc *hp) { - assert(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); - assert(hp->hp_pid > 0); - assert(mtx_owned(&hookprocs_lock)); + PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); + PJDLOG_ASSERT(hp->hp_pid > 0); + PJDLOG_ASSERT(mtx_owned(&hookprocs_lock)); TAILQ_REMOVE(&hookprocs, hp, hp_next); hp->hp_magic = HOOKPROC_MAGIC_ALLOCATED; @@ -227,8 +226,8 @@ static void hook_free(struct hookproc *hp) { - assert(hp->hp_magic == HOOKPROC_MAGIC_ALLOCATED); - assert(hp->hp_pid > 0); + PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ALLOCATED); + PJDLOG_ASSERT(hp->hp_pid > 0); hp->hp_magic = 0; free(hp); @@ -239,11 +238,11 @@ hook_find(pid_t pid) { struct hookproc *hp; - assert(mtx_owned(&hookprocs_lock)); + PJDLOG_ASSERT(mtx_owned(&hookprocs_lock)); TAILQ_FOREACH(hp, &hookprocs, hp_next) { - assert(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); - assert(hp->hp_pid > 0); + PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); + PJDLOG_ASSERT(hp->hp_pid > 0); if (hp->hp_pid == pid) break; @@ -286,7 +285,7 @@ hook_check(void) struct hookproc *hp, *hp2; time_t now; - assert(hooks_initialized); + PJDLOG_ASSERT(hooks_initialized); pjdlog_debug(2, "Checking hooks."); @@ -296,8 +295,8 @@ hook_check(void) now = time(NULL); mtx_lock(&hookprocs_lock); TAILQ_FOREACH_SAFE(hp, &hookprocs, hp_next, hp2) { - assert(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); - assert(hp->hp_pid > 0); + PJDLOG_ASSERT(hp->hp_magic == HOOKPROC_MAGIC_ONLIST); + PJDLOG_ASSERT(hp->hp_pid > 0); /* * If process doesn't exists we somehow missed it. @@ -347,7 +346,7 @@ hook_execv(const char *path, va_list ap) sigset_t mask; pid_t pid; - assert(hooks_initialized); + PJDLOG_ASSERT(hooks_initialized); if (path == NULL || path[0] == '\0') return; @@ -359,7 +358,7 @@ hook_execv(const char *path, va_list ap) if (args[ii] == NULL) break; } - assert(ii < sizeof(args) / sizeof(args[0])); + PJDLOG_ASSERT(ii < sizeof(args) / sizeof(args[0])); hp = hook_alloc(path, args); if (hp == NULL) Modified: head/sbin/hastd/metadata.c ============================================================================== --- head/sbin/hastd/metadata.c Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/metadata.c Tue Sep 27 08:50:37 2011 (r225787) @@ -30,7 +30,6 @@ #include __FBSDID("$FreeBSD$"); -#include #include #include #include @@ -100,7 +99,7 @@ metadata_read(struct hast_resource *res, goto fail; } buf = ebuf_data(eb, NULL); - assert(buf != NULL); + PJDLOG_ASSERT(buf != NULL); done = pread(res->hr_localfd, buf, METADATA_SIZE, 0); if (done < 0 || done != METADATA_SIZE) { rerrno = errno; @@ -197,7 +196,7 @@ metadata_write(struct hast_resource *res nv_add_uint64(nv, res->hr_primary_localcnt, "localcnt"); nv_add_uint64(nv, res->hr_primary_remotecnt, "remotecnt"); } else /* if (res->hr_role == HAST_ROLE_SECONDARY) */ { - assert(res->hr_role == HAST_ROLE_SECONDARY); + PJDLOG_ASSERT(res->hr_role == HAST_ROLE_SECONDARY); nv_add_uint64(nv, res->hr_secondary_localcnt, "localcnt"); nv_add_uint64(nv, res->hr_secondary_remotecnt, "remotecnt"); } @@ -208,10 +207,10 @@ metadata_write(struct hast_resource *res } res->hr_previous_role = res->hr_role; eb = nv_hton(nv); - assert(eb != NULL); + PJDLOG_ASSERT(eb != NULL); ptr = ebuf_data(eb, &size); - assert(ptr != NULL); - assert(size < METADATA_SIZE); + PJDLOG_ASSERT(ptr != NULL); + PJDLOG_ASSERT(size < METADATA_SIZE); bcopy(ptr, buf, size); done = pwrite(res->hr_localfd, buf, METADATA_SIZE, 0); if (done < 0 || done != METADATA_SIZE) { Modified: head/sbin/hastd/nv.c ============================================================================== --- head/sbin/hastd/nv.c Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/nv.c Tue Sep 27 08:50:37 2011 (r225787) @@ -33,7 +33,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include #include @@ -44,7 +43,17 @@ __FBSDID("$FreeBSD$"); #include #include -#include +#include + +#include "nv.h" + +#ifndef PJDLOG_ASSERT +#include +#define PJDLOG_ASSERT(...) assert(__VA_ARGS__) +#endif +#ifndef PJDLOG_ABORT +#define PJDLOG_ABORT(...) abort() +#endif #define NV_TYPE_NONE 0 @@ -98,8 +107,8 @@ struct nvhdr { #define NVH_SIZE(nvh) (NVH_HSIZE(nvh) + roundup2(NVH_DSIZE(nvh), 8)) #define NV_CHECK(nv) do { \ - assert((nv) != NULL); \ - assert((nv)->nv_magic == NV_MAGIC); \ + PJDLOG_ASSERT((nv) != NULL); \ + PJDLOG_ASSERT((nv)->nv_magic == NV_MAGIC); \ } while (0) static void nv_add(struct nv *nv, const unsigned char *value, size_t vsize, @@ -200,7 +209,7 @@ nv_validate(struct nv *nv, size_t *extra } NV_CHECK(nv); - assert(nv->nv_error == 0); + PJDLOG_ASSERT(nv->nv_error == 0); /* TODO: Check that names are unique? */ @@ -308,7 +317,7 @@ nv_validate(struct nv *nv, size_t *extra } break; default: - assert(!"invalid condition"); + PJDLOG_ABORT("invalid condition"); } if (error != 0) break; @@ -338,7 +347,7 @@ nv_hton(struct nv *nv) size_t size; NV_CHECK(nv); - assert(nv->nv_error == 0); + PJDLOG_ASSERT(nv->nv_error == 0); ptr = ebuf_data(nv->nv_ebuf, &size); while (size > 0) { @@ -346,9 +355,9 @@ nv_hton(struct nv *nv) * Minimum size at this point is size of nvhdr structure, * one character long name plus terminating '\0'. */ - assert(size >= sizeof(*nvh) + 2); + PJDLOG_ASSERT(size >= sizeof(*nvh) + 2); nvh = (struct nvhdr *)ptr; - assert(NVH_SIZE(nvh) <= size); + PJDLOG_ASSERT(NVH_SIZE(nvh) <= size); nv_swap(nvh, false); ptr += NVH_SIZE(nvh); size -= NVH_SIZE(nvh); @@ -367,7 +376,7 @@ nv_ntoh(struct ebuf *eb) size_t extra; int rerrno; - assert(eb != NULL); + PJDLOG_ASSERT(eb != NULL); nv = malloc(sizeof(*nv)); if (nv == NULL) @@ -494,8 +503,8 @@ nv_get_##type(struct nv *nv, const char va_end(nameap); \ if (nvh == NULL) \ return (0); \ - assert((nvh->nvh_type & NV_ORDER_MASK) == NV_ORDER_HOST); \ - assert(sizeof(value) == nvh->nvh_dsize); \ + PJDLOG_ASSERT((nvh->nvh_type & NV_ORDER_MASK) == NV_ORDER_HOST);\ + PJDLOG_ASSERT(sizeof(value) == nvh->nvh_dsize); \ bcopy(NVH_DATA(nvh), &value, sizeof(value)); \ \ return (value); \ @@ -525,8 +534,8 @@ nv_get_##type##_array(struct nv *nv, siz va_end(nameap); \ if (nvh == NULL) \ return (NULL); \ - assert((nvh->nvh_type & NV_ORDER_MASK) == NV_ORDER_HOST); \ - assert((nvh->nvh_dsize % sizeof(type##_t)) == 0); \ + PJDLOG_ASSERT((nvh->nvh_type & NV_ORDER_MASK) == NV_ORDER_HOST);\ + PJDLOG_ASSERT((nvh->nvh_dsize % sizeof(type##_t)) == 0); \ if (sizep != NULL) \ *sizep = nvh->nvh_dsize / sizeof(type##_t); \ return ((type##_t *)(void *)NVH_DATA(nvh)); \ @@ -555,11 +564,11 @@ nv_get_string(struct nv *nv, const char va_end(nameap); if (nvh == NULL) return (NULL); - assert((nvh->nvh_type & NV_ORDER_MASK) == NV_ORDER_HOST); - assert(nvh->nvh_dsize >= 1); + PJDLOG_ASSERT((nvh->nvh_type & NV_ORDER_MASK) == NV_ORDER_HOST); + PJDLOG_ASSERT(nvh->nvh_dsize >= 1); str = NVH_DATA(nvh); - assert(str[nvh->nvh_dsize - 1] == '\0'); - assert(strlen(str) == nvh->nvh_dsize - 1); + PJDLOG_ASSERT(str[nvh->nvh_dsize - 1] == '\0'); + PJDLOG_ASSERT(strlen(str) == nvh->nvh_dsize - 1); return (str); } @@ -602,7 +611,7 @@ nv_assert(struct nv *nv, const char *nam va_list nameap; va_start(nameap, namefmt); - assert(nv_vexists(nv, namefmt, nameap)); + PJDLOG_ASSERT(nv_vexists(nv, namefmt, nameap)); va_end(nameap); } @@ -624,13 +633,13 @@ nv_dump(struct nv *nv) } NV_CHECK(nv); - assert(nv->nv_error == 0); + PJDLOG_ASSERT(nv->nv_error == 0); ptr = ebuf_data(nv->nv_ebuf, &size); while (size > 0) { - assert(size >= sizeof(*nvh) + 2); + PJDLOG_ASSERT(size >= sizeof(*nvh) + 2); nvh = (struct nvhdr *)ptr; - assert(size >= NVH_SIZE(nvh)); + PJDLOG_ASSERT(size >= NVH_SIZE(nvh)); swap = ((nvh->nvh_type & NV_ORDER_MASK) == NV_ORDER_NETWORK); dsize = NVH_DSIZE(nvh); data = NVH_DATA(nvh); @@ -734,7 +743,7 @@ nv_dump(struct nv *nv) printf("(string): %s", (char *)data); break; default: - assert(!"invalid condition"); + PJDLOG_ABORT("invalid condition"); } printf("\n"); ptr += NVH_SIZE(nvh); @@ -776,7 +785,7 @@ nv_add(struct nv *nv, const unsigned cha /* Add header first. */ if (ebuf_add_tail(nv->nv_ebuf, nvh, NVH_HSIZE(nvh)) < 0) { - assert(errno != 0); + PJDLOG_ASSERT(errno != 0); if (nv->nv_error == 0) nv->nv_error = errno; free(nvh); @@ -785,7 +794,7 @@ nv_add(struct nv *nv, const unsigned cha free(nvh); /* Add the actual data. */ if (ebuf_add_tail(nv->nv_ebuf, value, vsize) < 0) { - assert(errno != 0); + PJDLOG_ASSERT(errno != 0); if (nv->nv_error == 0) nv->nv_error = errno; return; @@ -794,9 +803,9 @@ nv_add(struct nv *nv, const unsigned cha vsize = roundup2(vsize, 8) - vsize; if (vsize == 0) return; - assert(vsize > 0 && vsize <= sizeof(align)); + PJDLOG_ASSERT(vsize > 0 && vsize <= sizeof(align)); if (ebuf_add_tail(nv->nv_ebuf, align, vsize) < 0) { - assert(errno != 0); + PJDLOG_ASSERT(errno != 0); if (nv->nv_error == 0) nv->nv_error = errno; return; @@ -811,7 +820,7 @@ nv_addv(struct nv *nv, const unsigned ch size_t namesize; namesize = vsnprintf(name, sizeof(name), namefmt, nameap); - assert(namesize > 0 && namesize < sizeof(name)); + PJDLOG_ASSERT(namesize > 0 && namesize < sizeof(name)); nv_add(nv, value, vsize, type, name); } @@ -832,14 +841,14 @@ nv_find(struct nv *nv, int type, const c NV_CHECK(nv); namesize = vsnprintf(name, sizeof(name), namefmt, nameap); - assert(namesize > 0 && namesize < sizeof(name)); + PJDLOG_ASSERT(namesize > 0 && namesize < sizeof(name)); namesize++; ptr = ebuf_data(nv->nv_ebuf, &size); while (size > 0) { - assert(size >= sizeof(*nvh) + 2); + PJDLOG_ASSERT(size >= sizeof(*nvh) + 2); nvh = (struct nvhdr *)ptr; - assert(size >= NVH_SIZE(nvh)); + PJDLOG_ASSERT(size >= NVH_SIZE(nvh)); nv_swap(nvh, true); if (strcmp(nvh->nvh_name, name) == 0) { if (type != NV_TYPE_NONE && @@ -927,7 +936,7 @@ nv_swap(struct nvhdr *nvh, bool tohost) le64toh(*(uint64_t *)(void *)p); break; default: - assert(!"invalid condition"); + PJDLOG_ABORT("invalid condition"); } } else { switch (vsize) { @@ -944,7 +953,7 @@ nv_swap(struct nvhdr *nvh, bool tohost) htole64(*(uint64_t *)(void *)p); break; default: - assert(!"invalid condition"); + PJDLOG_ABORT("invalid condition"); } } } @@ -952,6 +961,6 @@ nv_swap(struct nvhdr *nvh, bool tohost) case NV_TYPE_STRING: break; default: - assert(!"unrecognized type"); + PJDLOG_ABORT("unrecognized type"); } } Modified: head/sbin/hastd/rangelock.c ============================================================================== --- head/sbin/hastd/rangelock.c Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/rangelock.c Tue Sep 27 08:50:37 2011 (r225787) @@ -32,13 +32,19 @@ __FBSDID("$FreeBSD$"); #include -#include #include #include #include +#include + #include "rangelock.h" +#ifndef PJDLOG_ASSERT +#include +#define PJDLOG_ASSERT(...) assert(__VA_ARGS__) +#endif + #define RANGELOCKS_MAGIC 0x94310c struct rangelocks { int rls_magic; /* Magic value. */ @@ -56,7 +62,7 @@ rangelock_init(struct rangelocks **rlsp) { struct rangelocks *rls; - assert(rlsp != NULL); + PJDLOG_ASSERT(rlsp != NULL); rls = malloc(sizeof(*rls)); if (rls == NULL) @@ -75,7 +81,7 @@ rangelock_free(struct rangelocks *rls) { struct rlock *rl; - assert(rls->rls_magic == RANGELOCKS_MAGIC); + PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); rls->rls_magic = 0; @@ -91,7 +97,7 @@ rangelock_add(struct rangelocks *rls, of { struct rlock *rl; - assert(rls->rls_magic == RANGELOCKS_MAGIC); + PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); rl = malloc(sizeof(*rl)); if (rl == NULL) @@ -107,13 +113,13 @@ rangelock_del(struct rangelocks *rls, of { struct rlock *rl; - assert(rls->rls_magic == RANGELOCKS_MAGIC); + PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); TAILQ_FOREACH(rl, &rls->rls_locks, rl_next) { if (rl->rl_start == offset && rl->rl_end == offset + length) break; } - assert(rl != NULL); + PJDLOG_ASSERT(rl != NULL); TAILQ_REMOVE(&rls->rls_locks, rl, rl_next); free(rl); } @@ -123,7 +129,7 @@ rangelock_islocked(struct rangelocks *rl { struct rlock *rl; - assert(rls->rls_magic == RANGELOCKS_MAGIC); + PJDLOG_ASSERT(rls->rls_magic == RANGELOCKS_MAGIC); TAILQ_FOREACH(rl, &rls->rls_locks, rl_next) { if (rl->rl_start >= offset && rl->rl_start < offset + length) Modified: head/sbin/hastd/synch.h ============================================================================== --- head/sbin/hastd/synch.h Tue Sep 27 08:26:09 2011 (r225786) +++ head/sbin/hastd/synch.h Tue Sep 27 08:50:37 2011 (r225787) @@ -32,20 +32,26 @@ #ifndef _SYNCH_H_ #define _SYNCH_H_ -#include #include #include #include #include #include +#include + +#ifndef PJDLOG_ASSERT *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 09:30:21 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10C69106566B; Tue, 27 Sep 2011 09:30:21 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 012018FC16; Tue, 27 Sep 2011 09:30:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R9UKKG014796; Tue, 27 Sep 2011 09:30:20 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R9UK8C014794; Tue, 27 Sep 2011 09:30:20 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109270930.p8R9UK8C014794@svn.freebsd.org> From: Alexander Motin Date: Tue, 27 Sep 2011 09:30:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225788 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 09:30:21 -0000 Author: mav Date: Tue Sep 27 09:30:20 2011 New Revision: 225788 URL: http://svn.freebsd.org/changeset/base/225788 Log: Fix interrupt counters dumping on SW_WATCHDOG fire. Modified: head/sys/kern/kern_clock.c Modified: head/sys/kern/kern_clock.c ============================================================================== --- head/sys/kern/kern_clock.c Tue Sep 27 08:50:37 2011 (r225787) +++ head/sys/kern/kern_clock.c Tue Sep 27 09:30:20 2011 (r225788) @@ -842,7 +842,7 @@ watchdog_fire(void) curintr = intrcnt; curname = intrnames; inttotal = 0; - nintr = sintrcnt; + nintr = sintrcnt / sizeof(u_long); printf("interrupt total\n"); while (--nintr >= 0) { From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 09:32:35 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D24D1065673; Tue, 27 Sep 2011 09:32:35 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0D8408FC24; Tue, 27 Sep 2011 09:32:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8R9WYm6014902; Tue, 27 Sep 2011 09:32:34 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8R9WYbe014900; Tue, 27 Sep 2011 09:32:34 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109270932.p8R9WYbe014900@svn.freebsd.org> From: Alexander Motin Date: Tue, 27 Sep 2011 09:32:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225789 - head/sys/dev/ahci X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 09:32:35 -0000 Author: mav Date: Tue Sep 27 09:32:34 2011 New Revision: 225789 URL: http://svn.freebsd.org/changeset/base/225789 Log: Add one more ID for the Marvell 88SE9128 6Gbps SATA controller. MFC after: 3 days Modified: head/sys/dev/ahci/ahci.c Modified: head/sys/dev/ahci/ahci.c ============================================================================== --- head/sys/dev/ahci/ahci.c Tue Sep 27 09:30:20 2011 (r225788) +++ head/sys/dev/ahci/ahci.c Tue Sep 27 09:32:34 2011 (r225789) @@ -197,6 +197,7 @@ static struct { {0x91231b4b, 0x11, "Marvell 88SE912x", AHCI_Q_NOBSYRES|AHCI_Q_ALTSIG}, {0x91231b4b, 0x00, "Marvell 88SE912x", AHCI_Q_EDGEIS|AHCI_Q_SATA2|AHCI_Q_NOBSYRES}, {0x91251b4b, 0x00, "Marvell 88SE9125", AHCI_Q_NOBSYRES}, + {0x91281b4b, 0x00, "Marvell 88SE9128", AHCI_Q_NOBSYRES|AHCI_Q_ALTSIG}, {0x91721b4b, 0x00, "Marvell 88SE9172", AHCI_Q_NOBSYRES}, {0x91821b4b, 0x00, "Marvell 88SE9182", AHCI_Q_NOBSYRES}, {0x06201103, 0x00, "HighPoint RocketRAID 620", AHCI_Q_NOBSYRES}, From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 12:14:44 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 309151065672; Tue, 27 Sep 2011 12:14:44 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 20F598FC15; Tue, 27 Sep 2011 12:14:44 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RCEim5022295; Tue, 27 Sep 2011 12:14:44 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RCEh48022292; Tue, 27 Sep 2011 12:14:44 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201109271214.p8RCEh48022292@svn.freebsd.org> From: Konstantin Belousov Date: Tue, 27 Sep 2011 12:14:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225790 - in head: etc/mtree include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 12:14:44 -0000 Author: kib Date: Tue Sep 27 12:14:43 2011 New Revision: 225790 URL: http://svn.freebsd.org/changeset/base/225790 Log: Install ciss(4) ioctl header (together with other .h files from sys/dev/ciss). PR: kern/109813 Discussued with: Alex Samorukov (smartmontools maintainer) MFC after: 1 week Modified: head/etc/mtree/BSD.include.dist head/include/Makefile Modified: head/etc/mtree/BSD.include.dist ============================================================================== --- head/etc/mtree/BSD.include.dist Tue Sep 27 09:32:34 2011 (r225789) +++ head/etc/mtree/BSD.include.dist Tue Sep 27 12:14:43 2011 (r225790) @@ -96,6 +96,8 @@ .. bktr .. + ciss + .. firewire .. hwpmc Modified: head/include/Makefile ============================================================================== --- head/include/Makefile Tue Sep 27 09:32:34 2011 (r225789) +++ head/include/Makefile Tue Sep 27 12:14:43 2011 (r225790) @@ -39,7 +39,7 @@ LDIRS= bsm cam geom net net80211 netatal sys vm LSUBDIRS= cam/ata cam/scsi \ - dev/acpica dev/an dev/bktr dev/firewire dev/hwpmc \ + dev/acpica dev/an dev/bktr dev/ciss dev/firewire dev/hwpmc \ dev/ic dev/iicbus ${_dev_ieee488} dev/io dev/lmc dev/mfi dev/ofw \ dev/pbio ${_dev_powermac_nvram} dev/ppbus dev/smbus \ dev/speaker dev/usb dev/utopia dev/vkbd dev/wi \ From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 13:17:03 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17DC4106566C; Tue, 27 Sep 2011 13:17:03 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E321C8FC0C; Tue, 27 Sep 2011 13:17:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RDH24c024251; Tue, 27 Sep 2011 13:17:02 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RDH2lY024248; Tue, 27 Sep 2011 13:17:02 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201109271317.p8RDH2lY024248@svn.freebsd.org> From: Konstantin Belousov Date: Tue, 27 Sep 2011 13:17:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225791 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 13:17:03 -0000 Author: kib Date: Tue Sep 27 13:17:02 2011 New Revision: 225791 URL: http://svn.freebsd.org/changeset/base/225791 Log: Do not deliver SIGTRAP on exec as the normal signal, use ptracestop() on syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal() do not want to deliver the signal, and debugger never get a notification of exec. Found and tested by: Anton Yuzhaninov Discussed with: jhb MFC after: 2 weeks Modified: head/sys/kern/kern_exec.c head/sys/kern/subr_syscall.c Modified: head/sys/kern/kern_exec.c ============================================================================== --- head/sys/kern/kern_exec.c Tue Sep 27 12:14:43 2011 (r225790) +++ head/sys/kern/kern_exec.c Tue Sep 27 13:17:02 2011 (r225791) @@ -777,16 +777,6 @@ interpret: KNOTE_LOCKED(&p->p_klist, NOTE_EXEC); p->p_flag &= ~P_INEXEC; - /* - * If tracing the process, trap to the debugger so that - * breakpoints can be set before the program executes. We - * have to use tdsignal() to deliver the signal to the current - * thread since any other threads in this process will exit if - * execve() succeeds. - */ - if (p->p_flag & P_TRACED) - tdsignal(td, SIGTRAP); - /* clear "fork but no exec" flag, as we _are_ execing */ p->p_acflag &= ~AFORK; Modified: head/sys/kern/subr_syscall.c ============================================================================== --- head/sys/kern/subr_syscall.c Tue Sep 27 12:14:43 2011 (r225790) +++ head/sys/kern/subr_syscall.c Tue Sep 27 13:17:02 2011 (r225791) @@ -204,9 +204,17 @@ syscallret(struct thread *td, int error, * is not the case, this code will need to be revisited. */ STOPEVENT(p, S_SCX, sa->code); - PTRACESTOP_SC(p, td, S_PT_SCX); if (traced || (td->td_dbgflags & (TDB_EXEC | TDB_FORK)) != 0) { PROC_LOCK(p); + /* + * If tracing the execed process, trap to the debugger + * so that breakpoints can be set before the program + * executes. If debugger requested tracing of syscall + * returns, do it now too. + */ + if (traced && ((td->td_dbgflags & TDB_EXEC) != 0 || + (p->p_stops & S_PT_SCX) != 0)) + ptracestop(td, SIGTRAP); td->td_dbgflags &= ~(TDB_SCX | TDB_EXEC | TDB_FORK); PROC_UNLOCK(p); } From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 13:27:17 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 938EB106564A; Tue, 27 Sep 2011 13:27:17 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6A7A48FC18; Tue, 27 Sep 2011 13:27:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RDRHSb024692; Tue, 27 Sep 2011 13:27:17 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RDRHs8024689; Tue, 27 Sep 2011 13:27:17 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109271327.p8RDRHs8024689@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Tue, 27 Sep 2011 13:27:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225793 - in head/sys: modules/ipfw netinet/ipfw X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 13:27:17 -0000 Author: bz Date: Tue Sep 27 13:27:17 2011 New Revision: 225793 URL: http://svn.freebsd.org/changeset/base/225793 Log: Unbreak no-ip and no-inet6 module builds with ipfw. For now continue to build the ip_fw_pfil.c hooks and ipfw even in case of no-ip under the assumption that the private L2 hook (which hopefully eventually will be a pfil hook as well) can still be useful. Allow building the module without inet as well. Glanced at by: jhb MFC after: 3 days Modified: head/sys/modules/ipfw/Makefile head/sys/netinet/ipfw/ip_fw_pfil.c Modified: head/sys/modules/ipfw/Makefile ============================================================================== --- head/sys/modules/ipfw/Makefile Tue Sep 27 13:20:41 2011 (r225792) +++ head/sys/modules/ipfw/Makefile Tue Sep 27 13:27:17 2011 (r225793) @@ -8,7 +8,7 @@ KMOD= ipfw SRCS= ip_fw2.c ip_fw_pfil.c SRCS+= ip_fw_dynamic.c ip_fw_log.c SRCS+= ip_fw_sockopt.c ip_fw_table.c -SRCS+= opt_inet6.h opt_ipfw.h opt_ipsec.h +SRCS+= opt_inet.h opt_inet6.h opt_ipfw.h opt_ipsec.h CFLAGS+= -DIPFIREWALL CFLAGS+= -I${.CURDIR}/../../contrib/pf @@ -22,6 +22,10 @@ CFLAGS+= -I${.CURDIR}/../../contrib/pf # .if !defined(KERNBUILDDIR) +.if ${MK_INET_SUPPORT} != "no" +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif .if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > ${.TARGET} Modified: head/sys/netinet/ipfw/ip_fw_pfil.c ============================================================================== --- head/sys/netinet/ipfw/ip_fw_pfil.c Tue Sep 27 13:20:41 2011 (r225792) +++ head/sys/netinet/ipfw/ip_fw_pfil.c Tue Sep 27 13:27:17 2011 (r225793) @@ -31,11 +31,11 @@ __FBSDID("$FreeBSD$"); #if !defined(KLD_MODULE) #include "opt_ipdn.h" #include "opt_inet.h" +#include "opt_inet6.h" #ifndef INET #error IPFIREWALL requires INET. #endif /* INET */ #endif /* KLD_MODULE */ -#include "opt_inet6.h" #include #include @@ -154,7 +154,7 @@ again: /* next_hop may be set by ipfw_chk */ if (args.next_hop == NULL && args.next_hop6 == NULL) break; /* pass */ -#ifndef IPFIREWALL_FORWARD +#if !defined(IPFIREWALL_FORWARD) || (!defined(INET6) && !defined(INET)) ret = EACCES; #else { @@ -205,7 +205,7 @@ again: #endif m_tag_prepend(*m0, fwd_tag); } -#endif +#endif /* IPFIREWALL_FORWARD */ break; case IP_FW_DENY: From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 13:34:00 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 217331065672; Tue, 27 Sep 2011 13:34:00 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3994C8FC1C; Tue, 27 Sep 2011 13:33:58 +0000 (UTC) Received: by eyg7 with SMTP id 7so6389764eyg.13 for ; Tue, 27 Sep 2011 06:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fvc0hVbC143Qi4Tkgio8oFUrEH4+Mnp8HS3Fu4UbWYc=; b=B6pgpgrM1hGdXfyRAGOmS29Jzo8+UtrqS7rkl7ladkRCe/mQP0xDL7VLO58l6c1kQv V49Z7jPO1nT/BlSXtmlWZy3sC+xpq+/e7dABuwzJdQCxXLrjoT1QUYb18U550GIzlyaH mR63msv3uA9TYz9xErwK+yKpTCv2yv7fKuQH8= MIME-Version: 1.0 Received: by 10.216.80.24 with SMTP id j24mr9104674wee.12.1317130437931; Tue, 27 Sep 2011 06:33:57 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.216.179.78 with HTTP; Tue, 27 Sep 2011 06:33:57 -0700 (PDT) In-Reply-To: <201109270930.p8R9UK8C014794@svn.freebsd.org> References: <201109270930.p8R9UK8C014794@svn.freebsd.org> Date: Tue, 27 Sep 2011 15:33:57 +0200 X-Google-Sender-Auth: zdh6iZB084n7yRAaxGx3_jhwG_4 Message-ID: From: Attilio Rao To: Alexander Motin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225788 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 13:34:00 -0000 2011/9/27 Alexander Motin : > Author: mav > Date: Tue Sep 27 09:30:20 2011 > New Revision: 225788 > URL: http://svn.freebsd.org/changeset/base/225788 > > Log: > =C2=A0Fix interrupt counters dumping on SW_WATCHDOG fire. Thanks, avg@ just submitted this patch to me too and I was going to commit it. Attilio --=20 Peace can only be achieved by understanding - A. Einstein From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 13:42:12 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22B69106564A; Tue, 27 Sep 2011 13:42:12 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 12FA08FC19; Tue, 27 Sep 2011 13:42:12 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RDgBdw025995; Tue, 27 Sep 2011 13:42:11 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RDgBIx025993; Tue, 27 Sep 2011 13:42:11 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201109271342.p8RDgBIx025993@svn.freebsd.org> From: Attilio Rao Date: Tue, 27 Sep 2011 13:42:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225794 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 13:42:12 -0000 Author: attilio Date: Tue Sep 27 13:42:11 2011 New Revision: 225794 URL: http://svn.freebsd.org/changeset/base/225794 Log: Revert r225372: wdog_kern_pat() acquires eventhandler mutex, thus it cannot work in kernel context (from where kdb_trap() runs). The right way to fix this is both offering the cpu-stop-on-panic-and-skip-locking logic and also a context for KDB to officially run. We can re-enable this (or a similar) improvement when these 2 patches hit the tree. Sponsored by: Sandvine Incorporated Discussed with: emaste, rstone MFC after: immediately Modified: head/sys/kern/subr_kdb.c Modified: head/sys/kern/subr_kdb.c ============================================================================== --- head/sys/kern/subr_kdb.c Tue Sep 27 13:27:17 2011 (r225793) +++ head/sys/kern/subr_kdb.c Tue Sep 27 13:42:11 2011 (r225794) @@ -29,7 +29,6 @@ __FBSDID("$FreeBSD$"); #include "opt_kdb.h" #include "opt_stack.h" -#include "opt_watchdog.h" #include #include @@ -42,9 +41,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifdef SW_WATCHDOG -#include -#endif #include #include @@ -591,9 +587,6 @@ kdb_trap(int type, int code, struct trap cpuset_t other_cpus; #endif struct kdb_dbbe *be; -#ifdef SW_WATCHDOG - u_int wdoglvt; -#endif register_t intr; int handled; @@ -607,10 +600,6 @@ kdb_trap(int type, int code, struct trap intr = intr_disable(); -#ifdef SW_WATCHDOG - wdoglvt = wdog_kern_last_timeout(); - wdog_kern_pat(WD_TO_NEVER); -#endif #ifdef SMP other_cpus = all_cpus; CPU_CLR(PCPU_GET(cpuid), &other_cpus); @@ -642,9 +631,6 @@ kdb_trap(int type, int code, struct trap #ifdef SMP restart_cpus(stopped_cpus); #endif -#ifdef SW_WATCHDOG - wdog_kern_pat(wdoglvt); -#endif intr_restore(intr); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 13:44:06 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0D78106564A; Tue, 27 Sep 2011 13:44:06 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3AA1F8FC0C; Tue, 27 Sep 2011 13:44:05 +0000 (UTC) Received: by wyj26 with SMTP id 26so5550221wyj.13 for ; Tue, 27 Sep 2011 06:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=v0PRbDPGE+RtcSCMJWtGgimLMMb8Cr0goiu7RjYPK4s=; b=roUb8UBurz3kMykQNhc2r4JamdwPjJYi0AFq+9Hr2NGRILsWDZyLuJ8GuJjCCf8+6C XpyccCulgyk7/BNKJgWCIG/viEswwIStI5tN9VCRxdGdg/Vs0nv4PnVd7IaUQWz+EzUF itOY91urYYTdHdWyirh+RuDPeNL9FqvFKK9bs= MIME-Version: 1.0 Received: by 10.227.5.193 with SMTP id 1mr7286242wbw.57.1317131045120; Tue, 27 Sep 2011 06:44:05 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.216.179.78 with HTTP; Tue, 27 Sep 2011 06:44:05 -0700 (PDT) In-Reply-To: <201109271342.p8RDgBIx025993@svn.freebsd.org> References: <201109271342.p8RDgBIx025993@svn.freebsd.org> Date: Tue, 27 Sep 2011 15:44:05 +0200 X-Google-Sender-Auth: _O-lPEeSLdeBW7k4HDy5EAox4II Message-ID: From: Attilio Rao To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: svn commit: r225794 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 13:44:07 -0000 2011/9/27 Attilio Rao : > Author: attilio > Date: Tue Sep 27 13:42:11 2011 > New Revision: 225794 > URL: http://svn.freebsd.org/changeset/base/225794 > > Log: > =C2=A0Revert r225372: > =C2=A0wdog_kern_pat() acquires eventhandler mutex, thus it cannot work in > =C2=A0kernel context (from where kdb_trap() runs). > > =C2=A0The right way to fix this is both offering the > =C2=A0cpu-stop-on-panic-and-skip-locking logic and also a context for KDB > =C2=A0to officially run. We can re-enable this (or a similar) improvement > =C2=A0when these 2 patches hit the tree. > > =C2=A0Sponsored by: Sandvine Incorporated > =C2=A0Discussed with: =C2=A0 =C2=A0 =C2=A0 emaste, rstone > =C2=A0MFC after: =C2=A0 =C2=A0immediately Forgot to mention: Reported by: pho Attilio --=20 Peace can only be achieved by understanding - A. Einstein From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 13:50:30 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A51FB106564A; Tue, 27 Sep 2011 13:50:30 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 94D9B8FC0C; Tue, 27 Sep 2011 13:50:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RDoUI5026353; Tue, 27 Sep 2011 13:50:30 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RDoUwi026351; Tue, 27 Sep 2011 13:50:30 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201109271350.p8RDoUwi026351@svn.freebsd.org> From: Attilio Rao Date: Tue, 27 Sep 2011 13:50:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225796 - stable/8/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 13:50:30 -0000 Author: attilio Date: Tue Sep 27 13:50:30 2011 New Revision: 225796 URL: http://svn.freebsd.org/changeset/base/225796 Log: MFC r225794: Backout r225372 MFC. Modified: stable/8/sys/kern/subr_kdb.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/kern/subr_kdb.c ============================================================================== --- stable/8/sys/kern/subr_kdb.c Tue Sep 27 13:47:23 2011 (r225795) +++ stable/8/sys/kern/subr_kdb.c Tue Sep 27 13:50:30 2011 (r225796) @@ -29,7 +29,6 @@ __FBSDID("$FreeBSD$"); #include "opt_kdb.h" #include "opt_stack.h" -#include "opt_watchdog.h" #include #include @@ -41,9 +40,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifdef SW_WATCHDOG -#include -#endif #include #include @@ -517,9 +513,6 @@ int kdb_trap(int type, int code, struct trapframe *tf) { struct kdb_dbbe *be; -#ifdef SW_WATCHDOG - u_int wdoglvt; -#endif register_t intr; #ifdef SMP int did_stop_cpus; @@ -536,10 +529,6 @@ kdb_trap(int type, int code, struct trap intr = intr_disable(); -#ifdef SW_WATCHDOG - wdoglvt = wdog_kern_last_timeout(); - wdog_kern_pat(WD_TO_NEVER); -#endif #ifdef SMP if ((did_stop_cpus = kdb_stop_cpus) != 0) stop_cpus_hard(PCPU_GET(other_cpus)); @@ -571,9 +560,6 @@ kdb_trap(int type, int code, struct trap if (did_stop_cpus) restart_cpus(stopped_cpus); #endif -#ifdef SW_WATCHDOG - wdog_kern_pat(wdoglvt); -#endif intr_restore(intr); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 14:00:33 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 365A9106566C; Tue, 27 Sep 2011 14:00:33 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0C67A8FC15; Tue, 27 Sep 2011 14:00:33 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RE0WFG026733; Tue, 27 Sep 2011 14:00:32 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RE0WqE026731; Tue, 27 Sep 2011 14:00:32 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201109271400.p8RE0WqE026731@svn.freebsd.org> From: Attilio Rao Date: Tue, 27 Sep 2011 14:00:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225797 - stable/9/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 14:00:33 -0000 Author: attilio Date: Tue Sep 27 14:00:32 2011 New Revision: 225797 URL: http://svn.freebsd.org/changeset/base/225797 Log: Backout r225372. Eventhandler mutex cannot be acquired in kernel context. Sponsored by: Sandvine Incorporated Approved by: re (kib) Modified: stable/9/sys/kern/subr_kdb.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/amd64/include/xen/ (props changed) stable/9/sys/boot/ (props changed) stable/9/sys/boot/i386/efi/ (props changed) stable/9/sys/boot/ia64/efi/ (props changed) stable/9/sys/boot/ia64/ski/ (props changed) stable/9/sys/boot/powerpc/boot1.chrp/ (props changed) stable/9/sys/boot/powerpc/ofw/ (props changed) stable/9/sys/cddl/contrib/opensolaris/ (props changed) stable/9/sys/conf/ (props changed) stable/9/sys/contrib/dev/acpica/ (props changed) stable/9/sys/contrib/octeon-sdk/ (props changed) stable/9/sys/contrib/pf/ (props changed) stable/9/sys/contrib/x86emu/ (props changed) Modified: stable/9/sys/kern/subr_kdb.c ============================================================================== --- stable/9/sys/kern/subr_kdb.c Tue Sep 27 13:50:30 2011 (r225796) +++ stable/9/sys/kern/subr_kdb.c Tue Sep 27 14:00:32 2011 (r225797) @@ -29,7 +29,6 @@ __FBSDID("$FreeBSD$"); #include "opt_kdb.h" #include "opt_stack.h" -#include "opt_watchdog.h" #include #include @@ -42,9 +41,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#ifdef SW_WATCHDOG -#include -#endif #include #include @@ -591,9 +587,6 @@ kdb_trap(int type, int code, struct trap cpuset_t other_cpus; #endif struct kdb_dbbe *be; -#ifdef SW_WATCHDOG - u_int wdoglvt; -#endif register_t intr; int handled; @@ -607,10 +600,6 @@ kdb_trap(int type, int code, struct trap intr = intr_disable(); -#ifdef SW_WATCHDOG - wdoglvt = wdog_kern_last_timeout(); - wdog_kern_pat(WD_TO_NEVER); -#endif #ifdef SMP other_cpus = all_cpus; CPU_CLR(PCPU_GET(cpuid), &other_cpus); @@ -642,9 +631,6 @@ kdb_trap(int type, int code, struct trap #ifdef SMP restart_cpus(stopped_cpus); #endif -#ifdef SW_WATCHDOG - wdog_kern_pat(wdoglvt); -#endif intr_restore(intr); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 14:28:08 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49723106567B; Tue, 27 Sep 2011 14:28:08 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3024F8FC21; Tue, 27 Sep 2011 14:28:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RES8i4027633; Tue, 27 Sep 2011 14:28:08 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RES840027631; Tue, 27 Sep 2011 14:28:08 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <201109271428.p8RES840027631@svn.freebsd.org> From: Ed Maste Date: Tue, 27 Sep 2011 14:28:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225798 - head/usr.sbin/mfiutil X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 14:28:08 -0000 Author: emaste Date: Tue Sep 27 14:28:07 2011 New Revision: 225798 URL: http://svn.freebsd.org/changeset/base/225798 Log: Improve battery capacity reporting When a status pointer is passed in mfi_dcmd_command does not return an errno (if the ioctl is successful), so move the test for NO_HW_PRESENT outside of the error case. This should fix incorrect reporting for systems with a dead or no battery. Additionally, handle error codes other than NO_HW_PRESENT by omitting the battery capacity display. LSI's supercap-based parts (CV series) report their data using the same interface as battery-based parts, except that they do not include the capacity stats (state of charge, cumulative charge cycles, etc.) Reviewd by: jhb, bz Tested by: pluknet@, Garrett Cooper PR: bin/160581 MFC after: 1 week Modified: head/usr.sbin/mfiutil/mfi_show.c Modified: head/usr.sbin/mfiutil/mfi_show.c ============================================================================== --- head/usr.sbin/mfiutil/mfi_show.c Tue Sep 27 14:00:32 2011 (r225797) +++ head/usr.sbin/mfiutil/mfi_show.c Tue Sep 27 14:28:07 2011 (r225798) @@ -141,7 +141,7 @@ show_battery(int ac, char **av) struct mfi_bbu_design_info design; struct mfi_bbu_status stat; uint8_t status; - int comma, error, fd; + int comma, error, fd, show_capacity; if (ac != 1) { warnx("show battery: extra arguments"); @@ -157,16 +157,17 @@ show_battery(int ac, char **av) if (mfi_dcmd_command(fd, MFI_DCMD_BBU_GET_CAPACITY_INFO, &cap, sizeof(cap), NULL, 0, &status) < 0) { - if (status == MFI_STAT_NO_HW_PRESENT) { - printf("mfi%d: No battery present\n", mfi_unit); - close(fd); - return (0); - } error = errno; warn("Failed to get capacity info"); close(fd); return (error); } + if (status == MFI_STAT_NO_HW_PRESENT) { + printf("mfi%d: No battery present\n", mfi_unit); + close(fd); + return (0); + } + show_capacity = (status == MFI_STAT_OK); if (mfi_dcmd_command(fd, MFI_DCMD_BBU_GET_DESIGN_INFO, &design, sizeof(design), NULL, 0, NULL) < 0) { @@ -192,10 +193,14 @@ show_battery(int ac, char **av) printf(" Model: %s\n", design.device_name); printf(" Chemistry: %s\n", design.device_chemistry); printf(" Design Capacity: %d mAh\n", design.design_capacity); - printf(" Full Charge Capacity: %d mAh\n", cap.full_charge_capacity); - printf(" Current Capacity: %d mAh\n", cap.remaining_capacity); - printf(" Charge Cycles: %d\n", cap.cycle_count); - printf(" Current Charge: %d%%\n", cap.relative_charge); + if (show_capacity) { + printf(" Full Charge Capacity: %d mAh\n", + cap.full_charge_capacity); + printf(" Current Capacity: %d mAh\n", + cap.remaining_capacity); + printf(" Charge Cycles: %d\n", cap.cycle_count); + printf(" Current Charge: %d%%\n", cap.relative_charge); + } printf(" Design Voltage: %d mV\n", design.design_voltage); printf(" Current Voltage: %d mV\n", stat.voltage); printf(" Temperature: %d C\n", stat.temperature); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 15:08:59 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8924F1065673; Tue, 27 Sep 2011 15:08:59 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 78C348FC0A; Tue, 27 Sep 2011 15:08:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RF8xZD028973; Tue, 27 Sep 2011 15:08:59 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RF8xdt028971; Tue, 27 Sep 2011 15:08:59 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109271508.p8RF8xdt028971@svn.freebsd.org> From: Alexander Motin Date: Tue, 27 Sep 2011 15:08:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225799 - stable/9/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 15:08:59 -0000 Author: mav Date: Tue Sep 27 15:08:59 2011 New Revision: 225799 URL: http://svn.freebsd.org/changeset/base/225799 Log: MFC r225788: Fix interrupt counters dumping on SW_WATCHDOG fire. Approved by: re (kib) Modified: stable/9/sys/kern/kern_clock.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/amd64/include/xen/ (props changed) stable/9/sys/boot/ (props changed) stable/9/sys/boot/i386/efi/ (props changed) stable/9/sys/boot/ia64/efi/ (props changed) stable/9/sys/boot/ia64/ski/ (props changed) stable/9/sys/boot/powerpc/boot1.chrp/ (props changed) stable/9/sys/boot/powerpc/ofw/ (props changed) stable/9/sys/cddl/contrib/opensolaris/ (props changed) stable/9/sys/conf/ (props changed) stable/9/sys/contrib/dev/acpica/ (props changed) stable/9/sys/contrib/octeon-sdk/ (props changed) stable/9/sys/contrib/pf/ (props changed) stable/9/sys/contrib/x86emu/ (props changed) Modified: stable/9/sys/kern/kern_clock.c ============================================================================== --- stable/9/sys/kern/kern_clock.c Tue Sep 27 14:28:07 2011 (r225798) +++ stable/9/sys/kern/kern_clock.c Tue Sep 27 15:08:59 2011 (r225799) @@ -842,7 +842,7 @@ watchdog_fire(void) curintr = intrcnt; curname = intrnames; inttotal = 0; - nintr = sintrcnt; + nintr = sintrcnt / sizeof(u_long); printf("interrupt total\n"); while (--nintr >= 0) { From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 15:57:13 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2F291065673; Tue, 27 Sep 2011 15:57:13 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A31FB8FC16; Tue, 27 Sep 2011 15:57:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RFvDDF030467; Tue, 27 Sep 2011 15:57:13 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RFvDZB030465; Tue, 27 Sep 2011 15:57:13 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271557.p8RFvDZB030465@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 15:57:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225800 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 15:57:13 -0000 Author: des Date: Tue Sep 27 15:57:13 2011 New Revision: 225800 URL: http://svn.freebsd.org/changeset/base/225800 Log: Followup to r225599: the fseek() was a no-op since the file was opened in append mode. Open it in read-write mode instead. Also move the fseek up one level to cover the (unlikely but not impossible) case where the server accepts ranges but does not send a Content-Size header. PR: bin/117277 MFC after: 3 weeks Modified: head/usr.bin/fetch/fetch.c Modified: head/usr.bin/fetch/fetch.c ============================================================================== --- head/usr.bin/fetch/fetch.c Tue Sep 27 15:08:59 2011 (r225799) +++ head/usr.bin/fetch/fetch.c Tue Sep 27 15:57:13 2011 (r225800) @@ -540,7 +540,7 @@ fetch(char *URL, const char *path) goto failure; } /* we got it, open local file */ - if ((of = fopen(path, "a")) == NULL) { + if ((of = fopen(path, "r+")) == NULL) { warn("%s: fopen()", path); goto failure; } @@ -559,13 +559,13 @@ fetch(char *URL, const char *path) sb = nsb; /* picked up again later */ } - /* seek to where we left off */ - if (of != NULL && fseek(of, url->offset, SEEK_SET) != 0) { - warn("%s: fseek()", path); - fclose(of); - of = NULL; - /* picked up again later */ - } + } + /* seek to where we left off */ + if (of != NULL && fseek(of, url->offset, SEEK_SET) != 0) { + warn("%s: fseek()", path); + fclose(of); + of = NULL; + /* picked up again later */ } } else if (m_flag && sb.st_size != -1) { /* mirror mode, local file exists */ From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 16:33:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A4C4106566B; Tue, 27 Sep 2011 16:33:18 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3A8458FC08; Tue, 27 Sep 2011 16:33:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RGXIXK031610; Tue, 27 Sep 2011 16:33:18 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RGXIFr031608; Tue, 27 Sep 2011 16:33:18 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201109271633.p8RGXIFr031608@svn.freebsd.org> From: Jung-uk Kim Date: Tue, 27 Sep 2011 16:33:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225801 - head/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 16:33:18 -0000 Author: jkim Date: Tue Sep 27 16:33:17 2011 New Revision: 225801 URL: http://svn.freebsd.org/changeset/base/225801 Log: Avoid accidental conflicts with C++ operator keywords. MFC after: 1 week Modified: head/include/iso646.h Modified: head/include/iso646.h ============================================================================== --- head/include/iso646.h Tue Sep 27 15:57:13 2011 (r225800) +++ head/include/iso646.h Tue Sep 27 16:33:17 2011 (r225801) @@ -29,6 +29,8 @@ #ifndef _ISO646_H_ #define _ISO646_H_ +#ifndef __cplusplus + #define and && #define and_eq &= #define bitand & @@ -41,4 +43,6 @@ #define xor ^ #define xor_eq ^= +#endif /* !__cplusplus */ + #endif /* !_ISO646_H_ */ From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 16:52:20 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BD6C106564A; Tue, 27 Sep 2011 16:52:20 +0000 (UTC) (envelope-from ache@vniz.net) Received: from vniz.net (vniz.net [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id C5DA98FC14; Tue, 27 Sep 2011 16:52:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vniz.net (8.14.5/8.14.5) with ESMTP id p8RGa7Gp001523; Tue, 27 Sep 2011 20:36:07 +0400 (MSK) (envelope-from ache@vniz.net) Received: (from ache@localhost) by localhost (8.14.5/8.14.5/Submit) id p8RGa6Pr001522; Tue, 27 Sep 2011 20:36:06 +0400 (MSK) (envelope-from ache) Date: Tue, 27 Sep 2011 20:36:06 +0400 From: Andrey Chernov To: Dag-Erling Smorgrav Message-ID: <20110927163606.GA1427@vniz.net> Mail-Followup-To: Andrey Chernov , Dag-Erling Smorgrav , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG References: <201109271557.p8RFvDZB030465@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201109271557.p8RFvDZB030465@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG Subject: Re: svn commit: r225800 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 16:52:20 -0000 On Tue, Sep 27, 2011 at 03:57:13PM +0000, Dag-Erling Smorgrav wrote: > Author: des > Date: Tue Sep 27 15:57:13 2011 > New Revision: 225800 > URL: http://svn.freebsd.org/changeset/base/225800 > > Log: > Followup to r225599: the fseek() was a no-op since the file was opened > in append mode. Open it in read-write mode instead. Also move the fseek() is obsoleted. Consider using fseeko() instead. -- http://ache.vniz.net/ From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 17:04:13 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EF69106566B; Tue, 27 Sep 2011 17:04:13 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6DA708FC0C; Tue, 27 Sep 2011 17:04:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RH4Dwi032670; Tue, 27 Sep 2011 17:04:13 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RH4D5c032668; Tue, 27 Sep 2011 17:04:13 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271704.p8RH4D5c032668@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 17:04:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225803 - stable/9/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:04:13 -0000 Author: des Date: Tue Sep 27 17:04:13 2011 New Revision: 225803 URL: http://svn.freebsd.org/changeset/base/225803 Log: MFH r225800: finally fix resume mode with non-cooperating server. Approved by: re (kib) Modified: stable/9/usr.bin/fetch/fetch.c Directory Properties: stable/9/usr.bin/fetch/ (props changed) Modified: stable/9/usr.bin/fetch/fetch.c ============================================================================== --- stable/9/usr.bin/fetch/fetch.c Tue Sep 27 16:57:14 2011 (r225802) +++ stable/9/usr.bin/fetch/fetch.c Tue Sep 27 17:04:13 2011 (r225803) @@ -540,7 +540,7 @@ fetch(char *URL, const char *path) goto failure; } /* we got it, open local file */ - if ((of = fopen(path, "a")) == NULL) { + if ((of = fopen(path, "r+")) == NULL) { warn("%s: fopen()", path); goto failure; } @@ -559,13 +559,13 @@ fetch(char *URL, const char *path) sb = nsb; /* picked up again later */ } - /* seek to where we left off */ - if (of != NULL && fseek(of, url->offset, SEEK_SET) != 0) { - warn("%s: fseek()", path); - fclose(of); - of = NULL; - /* picked up again later */ - } + } + /* seek to where we left off */ + if (of != NULL && fseek(of, url->offset, SEEK_SET) != 0) { + warn("%s: fseek()", path); + fclose(of); + of = NULL; + /* picked up again later */ } } else if (m_flag && sb.st_size != -1) { /* mirror mode, local file exists */ From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 17:08:28 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E887E1065673; Tue, 27 Sep 2011 17:08:28 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id A656E8FC14; Tue, 27 Sep 2011 17:08:28 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id A7C911FFC35; Tue, 27 Sep 2011 17:08:27 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 8A56F84576; Tue, 27 Sep 2011 19:08:27 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Andrey Chernov References: <201109271557.p8RFvDZB030465@svn.freebsd.org> <20110927163606.GA1427@vniz.net> Date: Tue, 27 Sep 2011 19:08:27 +0200 In-Reply-To: <20110927163606.GA1427@vniz.net> (Andrey Chernov's message of "Tue, 27 Sep 2011 20:36:06 +0400") Message-ID: <86ipodc3qs.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG Subject: Re: svn commit: r225800 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:08:29 -0000 Andrey Chernov writes: > fseek() is obsoleted. Consider using fseeko() instead. Ooh, right, that means fetch(1) can't resume large files if the transfer was interrupted past the 2 GB mark... thanks for the reminder. It's old code... DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 17:11:10 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CFD310656B6; Tue, 27 Sep 2011 17:11:10 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E670E8FC17; Tue, 27 Sep 2011 17:11:09 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RHB9Fp032932; Tue, 27 Sep 2011 17:11:09 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RHB9Nu032930; Tue, 27 Sep 2011 17:11:09 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <201109271711.p8RHB9Nu032930@svn.freebsd.org> From: Ed Maste Date: Tue, 27 Sep 2011 17:11:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225804 - stable/9/usr.sbin/mfiutil X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:11:10 -0000 Author: emaste Date: Tue Sep 27 17:11:09 2011 New Revision: 225804 URL: http://svn.freebsd.org/changeset/base/225804 Log: MFC r225798: Improve battery capacity reporting When a status pointer is passed in mfi_dcmd_command does not return an errno (if the ioctl is successful), so move the test for NO_HW_PRESENT outside of the error case. This should fix incorrect reporting for systems with a dead or no battery. Additionally, handle error codes other than NO_HW_PRESENT by omitting the battery capacity display. LSI's supercap-based parts (CV series) report their data using the same interface as battery-based parts, except that they do not include the capacity stats (state of charge, cumulative charge cycles, etc.) PR: bin/160581 Approved by: re Modified: stable/9/usr.sbin/mfiutil/mfi_show.c Directory Properties: stable/9/usr.sbin/mfiutil/ (props changed) Modified: stable/9/usr.sbin/mfiutil/mfi_show.c ============================================================================== --- stable/9/usr.sbin/mfiutil/mfi_show.c Tue Sep 27 17:04:13 2011 (r225803) +++ stable/9/usr.sbin/mfiutil/mfi_show.c Tue Sep 27 17:11:09 2011 (r225804) @@ -141,7 +141,7 @@ show_battery(int ac, char **av) struct mfi_bbu_design_info design; struct mfi_bbu_status stat; uint8_t status; - int comma, error, fd; + int comma, error, fd, show_capacity; if (ac != 1) { warnx("show battery: extra arguments"); @@ -157,16 +157,17 @@ show_battery(int ac, char **av) if (mfi_dcmd_command(fd, MFI_DCMD_BBU_GET_CAPACITY_INFO, &cap, sizeof(cap), NULL, 0, &status) < 0) { - if (status == MFI_STAT_NO_HW_PRESENT) { - printf("mfi%d: No battery present\n", mfi_unit); - close(fd); - return (0); - } error = errno; warn("Failed to get capacity info"); close(fd); return (error); } + if (status == MFI_STAT_NO_HW_PRESENT) { + printf("mfi%d: No battery present\n", mfi_unit); + close(fd); + return (0); + } + show_capacity = (status == MFI_STAT_OK); if (mfi_dcmd_command(fd, MFI_DCMD_BBU_GET_DESIGN_INFO, &design, sizeof(design), NULL, 0, NULL) < 0) { @@ -192,10 +193,14 @@ show_battery(int ac, char **av) printf(" Model: %s\n", design.device_name); printf(" Chemistry: %s\n", design.device_chemistry); printf(" Design Capacity: %d mAh\n", design.design_capacity); - printf(" Full Charge Capacity: %d mAh\n", cap.full_charge_capacity); - printf(" Current Capacity: %d mAh\n", cap.remaining_capacity); - printf(" Charge Cycles: %d\n", cap.cycle_count); - printf(" Current Charge: %d%%\n", cap.relative_charge); + if (show_capacity) { + printf(" Full Charge Capacity: %d mAh\n", + cap.full_charge_capacity); + printf(" Current Capacity: %d mAh\n", + cap.remaining_capacity); + printf(" Charge Cycles: %d\n", cap.cycle_count); + printf(" Current Charge: %d%%\n", cap.relative_charge); + } printf(" Design Voltage: %d mV\n", design.design_voltage); printf(" Current Voltage: %d mV\n", stat.voltage); printf(" Temperature: %d C\n", stat.temperature); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 17:11:31 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1809106566C; Tue, 27 Sep 2011 17:11:31 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A15548FC1B; Tue, 27 Sep 2011 17:11:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RHBVqx032977; Tue, 27 Sep 2011 17:11:31 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RHBVII032975; Tue, 27 Sep 2011 17:11:31 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271711.p8RHBVII032975@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 17:11:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225805 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:11:31 -0000 Author: des Date: Tue Sep 27 17:11:31 2011 New Revision: 225805 URL: http://svn.freebsd.org/changeset/base/225805 Log: Use fseeko() instead of fseek(). The rest of the code is off_t-aware, but the use of fseek() means fetch(1) can't correctly resume a transfer that was interrupted past the 2 GB mark. Pointed out by: ache@ MFC after: 3 weeks Modified: head/usr.bin/fetch/fetch.c Modified: head/usr.bin/fetch/fetch.c ============================================================================== --- head/usr.bin/fetch/fetch.c Tue Sep 27 17:11:09 2011 (r225804) +++ head/usr.bin/fetch/fetch.c Tue Sep 27 17:11:31 2011 (r225805) @@ -561,8 +561,8 @@ fetch(char *URL, const char *path) } } /* seek to where we left off */ - if (of != NULL && fseek(of, url->offset, SEEK_SET) != 0) { - warn("%s: fseek()", path); + if (of != NULL && fseeko(of, url->offset, SEEK_SET) != 0) { + warn("%s: fseeko()", path); fclose(of); of = NULL; /* picked up again later */ From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 17:34:02 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B383106566C; Tue, 27 Sep 2011 17:34:02 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6A9588FC14; Tue, 27 Sep 2011 17:34:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RHY2po033733; Tue, 27 Sep 2011 17:34:02 GMT (envelope-from mckusick@svn.freebsd.org) Received: (from mckusick@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RHY2TP033731; Tue, 27 Sep 2011 17:34:02 GMT (envelope-from mckusick@svn.freebsd.org) Message-Id: <201109271734.p8RHY2TP033731@svn.freebsd.org> From: Kirk McKusick Date: Tue, 27 Sep 2011 17:34:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225806 - head/sys/ufs/ffs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:34:02 -0000 Author: mckusick Date: Tue Sep 27 17:34:02 2011 New Revision: 225806 URL: http://svn.freebsd.org/changeset/base/225806 Log: This update eliminates the system hang reported in kern/160662 when taking a snapshot on a filesystem running with journaled soft updates. Reported by: Hans Ottevanger Fix verified by: Hans Ottevanger PR: kern/160662 Modified: head/sys/ufs/ffs/ffs_snapshot.c Modified: head/sys/ufs/ffs/ffs_snapshot.c ============================================================================== --- head/sys/ufs/ffs/ffs_snapshot.c Tue Sep 27 17:11:31 2011 (r225805) +++ head/sys/ufs/ffs/ffs_snapshot.c Tue Sep 27 17:34:02 2011 (r225806) @@ -203,7 +203,7 @@ ffs_snapshot(mp, snapfile) ufs2_daddr_t numblks, blkno, *blkp, *snapblklist; int error, cg, snaploc; int i, size, len, loc; - int flag; + uint64_t flag; struct timespec starttime = {0, 0}, endtime; char saved_nice = 0; long redo = 0, snaplistsize = 0; From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 17:41:49 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E459D1065686; Tue, 27 Sep 2011 17:41:48 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C9BF78FC14; Tue, 27 Sep 2011 17:41:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RHfmiB034022; Tue, 27 Sep 2011 17:41:48 GMT (envelope-from mckusick@svn.freebsd.org) Received: (from mckusick@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RHfmwh034020; Tue, 27 Sep 2011 17:41:48 GMT (envelope-from mckusick@svn.freebsd.org) Message-Id: <201109271741.p8RHfmwh034020@svn.freebsd.org> From: Kirk McKusick Date: Tue, 27 Sep 2011 17:41:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225807 - head/sys/ufs/ffs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:41:49 -0000 Author: mckusick Date: Tue Sep 27 17:41:48 2011 New Revision: 225807 URL: http://svn.freebsd.org/changeset/base/225807 Log: This update eliminates a lock-order reversal warning discovered whle tracking down the system hang reported in kern/160662 and corrected in revision 225806. The LOR is not the cause of the system hang and indeed cannot cause an actual deadlock. However, it can be easily eliminated by defering the acquisition of a buflock until after all the vnode locks have been acquired. Reported by: Hans Ottevanger PR: kern/160662 Modified: head/sys/ufs/ffs/ffs_snapshot.c Modified: head/sys/ufs/ffs/ffs_snapshot.c ============================================================================== --- head/sys/ufs/ffs/ffs_snapshot.c Tue Sep 27 17:34:02 2011 (r225806) +++ head/sys/ufs/ffs/ffs_snapshot.c Tue Sep 27 17:41:48 2011 (r225807) @@ -212,7 +212,7 @@ ffs_snapshot(mp, snapfile) struct fs *copy_fs = NULL, *fs; struct thread *td = curthread; struct inode *ip, *xp; - struct buf *bp, *nbp, *ibp, *sbp = NULL; + struct buf *bp, *nbp, *ibp; struct nameidata nd; struct mount *wrtmp; struct vattr vat; @@ -460,21 +460,14 @@ restart: * Grab a copy of the superblock and its summary information. * We delay writing it until the suspension is released below. */ - error = bread(vp, lblkno(fs, fs->fs_sblockloc), fs->fs_bsize, - KERNCRED, &sbp); - if (error) { - brelse(sbp); - sbp = NULL; - goto out1; - } - loc = blkoff(fs, fs->fs_sblockloc); - copy_fs = (struct fs *)(sbp->b_data + loc); + copy_fs = malloc((u_long)fs->fs_bsize, M_UFSMNT, M_WAITOK); bcopy(fs, copy_fs, fs->fs_sbsize); if ((fs->fs_flags & (FS_UNCLEAN | FS_NEEDSFSCK)) == 0) copy_fs->fs_clean = 1; size = fs->fs_bsize < SBLOCKSIZE ? fs->fs_bsize : SBLOCKSIZE; if (fs->fs_sbsize < size) - bzero(&sbp->b_data[loc + fs->fs_sbsize], size - fs->fs_sbsize); + bzero(&((char *)copy_fs)[fs->fs_sbsize], + size - fs->fs_sbsize); size = blkroundup(fs, fs->fs_cssize); if (fs->fs_contigsumsize > 0) size += fs->fs_ncg * sizeof(int32_t); @@ -490,8 +483,8 @@ restart: len, KERNCRED, &bp)) != 0) { brelse(bp); free(copy_fs->fs_csp, M_UFSMNT); - bawrite(sbp); - sbp = NULL; + free(copy_fs, M_UFSMNT); + copy_fs = NULL; goto out1; } bcopy(bp->b_data, space, (u_int)len); @@ -606,8 +599,8 @@ loop: vdrop(xvp); if (error) { free(copy_fs->fs_csp, M_UFSMNT); - bawrite(sbp); - sbp = NULL; + free(copy_fs, M_UFSMNT); + copy_fs = NULL; MNT_VNODE_FOREACH_ABORT(mp, mvp); goto out1; } @@ -621,8 +614,8 @@ loop: error = softdep_journal_lookup(mp, &xvp); if (error) { free(copy_fs->fs_csp, M_UFSMNT); - bawrite(sbp); - sbp = NULL; + free(copy_fs, M_UFSMNT); + copy_fs = NULL; goto out1; } xp = VTOI(xvp); @@ -688,8 +681,8 @@ loop: VI_UNLOCK(devvp); ASSERT_VOP_LOCKED(vp, "ffs_snapshot vp"); out1: - KASSERT((sn != NULL && sbp != NULL && error == 0) || - (sn == NULL && sbp == NULL && error != 0), + KASSERT((sn != NULL && copy_fs != NULL && error == 0) || + (sn == NULL && copy_fs == NULL && error != 0), ("email phk@ and mckusick@")); /* * Resume operation on filesystem. @@ -703,7 +696,7 @@ out1: vp->v_mount->mnt_stat.f_mntonname, (long)endtime.tv_sec, endtime.tv_nsec / 1000000, redo, fs->fs_ncg); } - if (sbp == NULL) + if (copy_fs == NULL) goto out; /* * Copy allocation information from all the snapshots in @@ -793,6 +786,15 @@ out1: space = (char *)space + fs->fs_bsize; bawrite(nbp); } + error = bread(vp, lblkno(fs, fs->fs_sblockloc), fs->fs_bsize, + KERNCRED, &nbp); + if (error) { + brelse(nbp); + } else { + loc = blkoff(fs, fs->fs_sblockloc); + bcopy((char *)copy_fs, &nbp->b_data[loc], fs->fs_bsize); + bawrite(nbp); + } /* * As this is the newest list, it is the most inclusive, so * should replace the previous list. @@ -822,7 +824,8 @@ out1: vrele(vp); /* Drop extra reference */ done: free(copy_fs->fs_csp, M_UFSMNT); - bawrite(sbp); + free(copy_fs, M_UFSMNT); + copy_fs = NULL; out: NDFREE(&nd, NDF_ONLY_PNBUF); if (saved_nice > 0) { From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 17:54:10 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1B60106567E; Tue, 27 Sep 2011 17:54:10 +0000 (UTC) (envelope-from schweikh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C0F9F8FC12; Tue, 27 Sep 2011 17:54:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RHsA2b034447; Tue, 27 Sep 2011 17:54:10 GMT (envelope-from schweikh@svn.freebsd.org) Received: (from schweikh@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RHsA5l034445; Tue, 27 Sep 2011 17:54:10 GMT (envelope-from schweikh@svn.freebsd.org) Message-Id: <201109271754.p8RHsA5l034445@svn.freebsd.org> From: Jens Schweikhardt Date: Tue, 27 Sep 2011 17:54:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225808 - head/lib/libc/locale X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 17:54:10 -0000 Author: schweikh Date: Tue Sep 27 17:54:10 2011 New Revision: 225808 URL: http://svn.freebsd.org/changeset/base/225808 Log: Fix grammar. PR: 140457 Submitted by: jeremyhu AT apple.com MFC after: 2 weeks Modified: head/lib/libc/locale/isspace.3 Modified: head/lib/libc/locale/isspace.3 ============================================================================== --- head/lib/libc/locale/isspace.3 Tue Sep 27 17:41:48 2011 (r225807) +++ head/lib/libc/locale/isspace.3 Tue Sep 27 17:54:10 2011 (r225808) @@ -47,16 +47,16 @@ .Sh DESCRIPTION The .Fn isspace -function tests for the white-space characters. +function tests for white-space characters. For any locale, this includes the following standard characters: .Pp .Bl -column \&`\et''___ \&``\et''___ \&``\et''___ \&``\et''___ \&``\et''___ \&``\et''___ .It "\&``\et''\t``\en''\t``\ev''\t``\ef''\t``\er''\t`` ''" .El .Pp -In the "C" locale +In the "C" locale, .Fn isspace -successful test is limited to this characters only. +returns non-zero for these characters only. The value of the argument must be representable as an .Vt "unsigned char" or the value of From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 18:14:05 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 056A1106564A; Tue, 27 Sep 2011 18:14:05 +0000 (UTC) (envelope-from trociny@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DEFCF8FC08; Tue, 27 Sep 2011 18:14:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RIE48Y035244; Tue, 27 Sep 2011 18:14:04 GMT (envelope-from trociny@svn.freebsd.org) Received: (from trociny@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RIE4qF035241; Tue, 27 Sep 2011 18:14:04 GMT (envelope-from trociny@svn.freebsd.org) Message-Id: <201109271814.p8RIE4qF035241@svn.freebsd.org> From: Mikolaj Golub Date: Tue, 27 Sep 2011 18:14:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225809 - head/usr.bin/script X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 18:14:05 -0000 Author: trociny Date: Tue Sep 27 18:14:04 2011 New Revision: 225809 URL: http://svn.freebsd.org/changeset/base/225809 Log: When script(1) reads EOF from input it starts spinning on zero-byte reads eating 100% CPU. Fix this by skipping select on STDIN after reading EOF -- permanently if STDIN is not terminal and for one second if it is. Also after reading EOF from STDIN we have to pass it to the program being scripted. The previous approach was to write zero bytes into the pseudo-terminal. This does not work because zero-byte write does not have any effect on read. Fix this by sending VEOF instead. Submitted by: Ronald Klop Discussed with: kib, Chris Torek Approved by: kib MFC after: 1 week Modified: head/usr.bin/script/script.1 head/usr.bin/script/script.c Modified: head/usr.bin/script/script.1 ============================================================================== --- head/usr.bin/script/script.1 Tue Sep 27 17:54:10 2011 (r225808) +++ head/usr.bin/script/script.1 Tue Sep 27 18:14:04 2011 (r225809) @@ -166,3 +166,12 @@ The slave terminal mode is checked for ECHO mode to check when to avoid manual echo logging. This does not work when in a raw mode where the program being run is doing manual echo. +.Pp +If the +.Nm +reads zero bytes from the terminal it switches to a mode when it probes read +only once a second until it gets some data. +This prevents the +.Nm +spinning on zero-byte reads, but might cause a 1-second delay in +processing of the user input. Modified: head/usr.bin/script/script.c ============================================================================== --- head/usr.bin/script/script.c Tue Sep 27 17:54:10 2011 (r225808) +++ head/usr.bin/script/script.c Tue Sep 27 18:14:04 2011 (r225809) @@ -86,6 +86,7 @@ main(int argc, char *argv[]) char ibuf[BUFSIZ]; fd_set rfd; int flushtime = 30; + int readstdin; aflg = kflg = 0; while ((ch = getopt(argc, argv, "aqkt:")) != -1) @@ -155,19 +156,21 @@ main(int argc, char *argv[]) doshell(argv); close(slave); - if (flushtime > 0) - tvp = &tv; - else - tvp = NULL; - - start = time(0); - FD_ZERO(&rfd); + start = tvec = time(0); + readstdin = 1; for (;;) { + FD_ZERO(&rfd); FD_SET(master, &rfd); - FD_SET(STDIN_FILENO, &rfd); - if (flushtime > 0) { - tv.tv_sec = flushtime; + if (readstdin) + FD_SET(STDIN_FILENO, &rfd); + if ((!readstdin && ttyflg) || flushtime > 0) { + tv.tv_sec = !readstdin && ttyflg ? 1 : + flushtime - (tvec - start); tv.tv_usec = 0; + tvp = &tv; + readstdin = 1; + } else { + tvp = NULL; } n = select(master + 1, &rfd, 0, 0, tvp); if (n < 0 && errno != EINTR) @@ -176,8 +179,13 @@ main(int argc, char *argv[]) cc = read(STDIN_FILENO, ibuf, BUFSIZ); if (cc < 0) break; - if (cc == 0) - (void)write(master, ibuf, 0); + if (cc == 0) { + if (tcgetattr(master, &stt) == 0 && + (stt.c_lflag & ICANON) != 0) { + (void)write(master, &stt.c_cc[VEOF], 1); + } + readstdin = 0; + } if (cc > 0) { (void)write(master, ibuf, cc); if (kflg && tcgetattr(master, &stt) >= 0 && From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 18:23:59 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00E9D1065673; Tue, 27 Sep 2011 18:23:59 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E45318FC0C; Tue, 27 Sep 2011 18:23:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RINwuV035627; Tue, 27 Sep 2011 18:23:58 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RINwQ3035625; Tue, 27 Sep 2011 18:23:58 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271823.p8RINwQ3035625@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 18:23:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225810 - head/lib/libfetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 18:23:59 -0000 Author: des Date: Tue Sep 27 18:23:58 2011 New Revision: 225810 URL: http://svn.freebsd.org/changeset/base/225810 Log: Long overdue: make passive mode the default for ftp. Modified: head/lib/libfetch/ftp.c Modified: head/lib/libfetch/ftp.c ============================================================================== --- head/lib/libfetch/ftp.c Tue Sep 27 18:14:04 2011 (r225809) +++ head/lib/libfetch/ftp.c Tue Sep 27 18:23:58 2011 (r225810) @@ -638,8 +638,8 @@ ftp_transfer(conn_t *conn, const char *o /* passive mode */ if (!pasv) - pasv = ((s = getenv("FTP_PASSIVE_MODE")) != NULL && - strncasecmp(s, "no", 2) != 0); + pasv = ((s = getenv("FTP_PASSIVE_MODE")) == NULL || + strncasecmp(s, "no", 2) == 0); /* isolate filename */ filename = ftp_filename(file, &filenamelen, &type); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 18:40:14 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11E28106564A; Tue, 27 Sep 2011 18:40:14 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EB3388FC0C; Tue, 27 Sep 2011 18:40:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RIeDmF036151; Tue, 27 Sep 2011 18:40:13 GMT (envelope-from stas@svn.freebsd.org) Received: (from stas@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RIeDMF036136; Tue, 27 Sep 2011 18:40:13 GMT (envelope-from stas@svn.freebsd.org) Message-Id: <201109271840.p8RIeDMF036136@svn.freebsd.org> From: Stanislav Sedov Date: Tue, 27 Sep 2011 18:40:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225811 - in stable/9: . kerberos5/lib/libasn1 kerberos5/lib/libgssapi_krb5 kerberos5/lib/libgssapi_ntlm kerberos5/lib/libgssapi_spnego kerberos5/lib/libhdb kerberos5/lib/libheimntlm ke... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 18:40:14 -0000 Author: stas Date: Tue Sep 27 18:40:13 2011 New Revision: 225811 URL: http://svn.freebsd.org/changeset/base/225811 Log: - MFC r225778: - Add missing interdependencies to kerberos libraries. Some of the kerberos libraries were not linked properly (missing dependencies), which causes 3rd party applications linking to fail when --as-needed ld flag is used. I also added the --no-undefined ld(1) flag to make sure that there're no missing dependencies. Approved by: re (kib) Modified: stable/9/Makefile.inc1 (contents, props changed) stable/9/kerberos5/lib/libasn1/Makefile stable/9/kerberos5/lib/libgssapi_krb5/Makefile stable/9/kerberos5/lib/libgssapi_ntlm/Makefile stable/9/kerberos5/lib/libgssapi_spnego/Makefile stable/9/kerberos5/lib/libhdb/Makefile stable/9/kerberos5/lib/libheimntlm/Makefile stable/9/kerberos5/lib/libhx509/Makefile stable/9/kerberos5/lib/libkadm5clnt/Makefile stable/9/kerberos5/lib/libkadm5srv/Makefile stable/9/kerberos5/lib/libkafs5/Makefile stable/9/kerberos5/lib/libkrb5/Makefile stable/9/kerberos5/lib/libroken/Makefile stable/9/tools/make_libdeps.sh Directory Properties: stable/9/kerberos5/ (props changed) stable/9/tools/ (props changed) Modified: stable/9/Makefile.inc1 ============================================================================== --- stable/9/Makefile.inc1 Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/Makefile.inc1 Tue Sep 27 18:40:13 2011 (r225811) @@ -1218,7 +1218,8 @@ _startup_libs+= lib/libc gnu/lib/libgcc__L: lib/libc__L -_prebuild_libs= ${_kerberos5_lib_libasn1} ${_kerberos5_lib_libheimntlm} \ +_prebuild_libs= ${_kerberos5_lib_libasn1} ${_kerberos5_lib_libhdb} \ + ${_kerberos5_lib_libheimntlm} \ ${_kerberos5_lib_libhx509} ${_kerberos5_lib_libkrb5} \ ${_kerberos5_lib_libroken} \ lib/libbz2 lib/libcom_err lib/libcrypt \ @@ -1268,6 +1269,19 @@ secure/lib/libssh__L: lib/libgssapi__L k _secure_lib= secure/lib .endif +.if ${MK_KERBEROS} != "no" +kerberos5/lib/libasn1__L: lib/libcom_err__L kerberos5/lib/libroken__L +kerberos5/lib/libhdb__L: kerberos5/lib/libasn1__L lib/libcom_err__L \ + kerberos5/lib/libkrb5__L kerberos5/lib/libroken__L +kerberos5/lib/libheimntlm__L: secure/lib/libcrypto__L kerberos5/lib/libkrb5__L +kerberos5/lib/libhx509__L: kerberos5/lib/libasn1__L lib/libcom_err__L \ + secure/lib/libcrypto__L kerberos5/lib/libroken__L +kerberos5/lib/libkrb5__L: kerberos5/lib/libasn1__L lib/libcom_err__L \ + lib/libcrypt__L secure/lib/libcrypto__L kerberos5/lib/libhx509__L \ + kerberos5/lib/libroken__L +kerberos5/lib/libroken__L: lib/libcrypt__L +.endif + .if ${MK_GSSAPI} != "no" _lib_libgssapi= lib/libgssapi .endif @@ -1279,6 +1293,7 @@ _lib_libipx= lib/libipx .if ${MK_KERBEROS} != "no" _kerberos5_lib= kerberos5/lib _kerberos5_lib_libasn1= kerberos5/lib/libasn1 +_kerberos5_lib_libhdb= kerberos5/lib/libhdb _kerberos5_lib_libkrb5= kerberos5/lib/libkrb5 _kerberos5_lib_libhx509= kerberos5/lib/libhx509 _kerberos5_lib_libroken= kerberos5/lib/libroken Modified: stable/9/kerberos5/lib/libasn1/Makefile ============================================================================== --- stable/9/kerberos5/lib/libasn1/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libasn1/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,7 +1,10 @@ # $FreeBSD$ LIB= asn1 +LDFLAGS= -Wl,--no-undefined INCS= asn1_err.h heim_asn1.h +LDADD= -lcom_err -lroken +DPADD= ${LIBCOM_ERR} ${LIBROKEN} SRCS= asn1_err.c \ asn1_err.h \ Modified: stable/9/kerberos5/lib/libgssapi_krb5/Makefile ============================================================================== --- stable/9/kerberos5/lib/libgssapi_krb5/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libgssapi_krb5/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,7 +1,7 @@ # $FreeBSD$ LIB= gssapi_krb5 -LDFLAGS= -Wl,-Bsymbolic +LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined LDADD= -lgssapi -lkrb5 -lhx509 -lcrypto -lroken -lasn1 -lcom_err -lcrypt DPADD= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBROKEN} ${LIBASN1} \ ${LIBCOM_ERR} ${LIBCRYPT} Modified: stable/9/kerberos5/lib/libgssapi_ntlm/Makefile ============================================================================== --- stable/9/kerberos5/lib/libgssapi_ntlm/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libgssapi_ntlm/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,9 +1,9 @@ # $FreeBSD$ LIB= gssapi_ntlm -LDFLAGS= -Wl,-Bsymbolic -LDADD= -lkrb5 -lhx509 -lheimntlm -lroken -DPADD= ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBROKEN} +LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined +LDADD= -lcrypto -lgssapi -lkrb5 -lhx509 -lheimntlm -lroken +DPADD= ${LIBCRYPTO} ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBROKEN} SRCS= accept_sec_context.c \ acquire_cred.c \ Modified: stable/9/kerberos5/lib/libgssapi_spnego/Makefile ============================================================================== --- stable/9/kerberos5/lib/libgssapi_spnego/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libgssapi_spnego/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,9 +1,9 @@ # $FreeBSD$ LIB= gssapi_spnego -LDFLAGS= -Wl,-Bsymbolic -LDADD= -lgssapi -lasn1 -DPADD= ${LIBGSSAPI} ${LIBASN1} +LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined +LDADD= -lgssapi -lasn1 -lroken +DPADD= ${LIBGSSAPI} ${LIBASN1} ${LIBROKEN} SRCS= accept_sec_context.c \ compat.c \ Modified: stable/9/kerberos5/lib/libhdb/Makefile ============================================================================== --- stable/9/kerberos5/lib/libhdb/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libhdb/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= hdb +LDFLAGS= -Wl,--no-undefined +LDADD= -lasn1 -lcom_err -lkrb5 -lroken +DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} INCS= hdb-private.h \ hdb-protos.h \ Modified: stable/9/kerberos5/lib/libheimntlm/Makefile ============================================================================== --- stable/9/kerberos5/lib/libheimntlm/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libheimntlm/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= heimntlm +LDFLAGS= -Wl,--no-undefined +LDADD= -lcrypto -lkrb5 +DPADD= ${LIBCRYPTO} ${LIBKRB5} SRCS= ntlm.c INCS= heimntlm.h heimntlm-protos.h CFLAGS+=-I${KRB5DIR}/lib/ntlm Modified: stable/9/kerberos5/lib/libhx509/Makefile ============================================================================== --- stable/9/kerberos5/lib/libhx509/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libhx509/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,7 +1,10 @@ # $FreeBSD$ LIB= hx509 +LDFLAGS= -Wl,--no-undefined VERSION_MAP= ${KRB5DIR}/lib/hx509/version-script.map +LDADD= -lasn1 -lcom_err -lcrypto -lroken +DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBCRYPTO} ${LIBROKEN} INCS= hx509-private.h \ hx509-protos.h \ Modified: stable/9/kerberos5/lib/libkadm5clnt/Makefile ============================================================================== --- stable/9/kerberos5/lib/libkadm5clnt/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libkadm5clnt/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= kadm5clnt +LDFLAGS= -Wl,--no-undefined +LDADD= -lcom_err -lkrb5 -lroken +DPADD= ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} INCS= admin.h \ kadm5-private.h \ Modified: stable/9/kerberos5/lib/libkadm5srv/Makefile ============================================================================== --- stable/9/kerberos5/lib/libkadm5srv/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libkadm5srv/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= kadm5srv +LDFLAGS= -Wl,--no-undefined +LDADD= -lcom_err -lhdb -lkrb5 -lroken +DPADD= ${LIBCOM_ERR} ${LIBHDB} ${LIBKRB5} ${LIBROKEN} VERSION_MAP= ${KRB5DIR}/lib/kadm5/version-script.map SRCS= acl.c \ Modified: stable/9/kerberos5/lib/libkafs5/Makefile ============================================================================== --- stable/9/kerberos5/lib/libkafs5/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libkafs5/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,6 +1,9 @@ # $FreeBSD$ LIB= kafs5 +LDFLAGS= -Wl,--no-undefined +LDADD= -lasn1 -lkrb5 -lroken +DPADD= ${LIBASN1} ${LIBKRB5} ${LIBROKEN} INCS= kafs.h MAN= kafs5.3 Modified: stable/9/kerberos5/lib/libkrb5/Makefile ============================================================================== --- stable/9/kerberos5/lib/libkrb5/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libkrb5/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,7 +1,10 @@ # $FreeBSD$ LIB= krb5 +LDFLAGS= -Wl,--no-undefined VERSION_MAP= ${KRB5DIR}/lib/krb5/version-script.map +LDADD= -lasn1 -lcom_err -lcrypt -lcrypto -lhx509 -lroken +DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBCRYPT} ${LIBCRYPTO} ${LIBHX509} ${LIBROKEN} INCS= heim_err.h \ heim_threads.h \ Modified: stable/9/kerberos5/lib/libroken/Makefile ============================================================================== --- stable/9/kerberos5/lib/libroken/Makefile Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/kerberos5/lib/libroken/Makefile Tue Sep 27 18:40:13 2011 (r225811) @@ -1,6 +1,8 @@ # $FreeBSD$ LIB= roken +LDADD= -lcrypt +DPADD= ${LIBCRYPT} INCS= roken.h roken-common.h SRCS= base64.c \ Modified: stable/9/tools/make_libdeps.sh ============================================================================== --- stable/9/tools/make_libdeps.sh Tue Sep 27 18:23:58 2011 (r225810) +++ stable/9/tools/make_libdeps.sh Tue Sep 27 18:40:13 2011 (r225811) @@ -52,7 +52,7 @@ sed -E -e's;-l(ncurses|termcap)!;lib/ncurses/ncurses;g' -e's;-l(gcc)!;gnu/lib/lib\1;g' -e's;-lssp_nonshared!;gnu/lib/libssp/libssp_nonshared;g' - -e's;-l(asn1|heimntlm|hx509|krb5|roken)!;kerberos5/lib/lib\1;g' + -e's;-l(asn1|hdb|heimntlm|hx509|krb5|roken)!;kerberos5/lib/lib\1;g' -e's;-l(crypto|ssh|ssl)!;secure/lib/lib\1;g' -e's;-l([^!]+)!;lib/lib\1;g' " From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 18:42:09 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9413B106566B; Tue, 27 Sep 2011 18:42:09 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 691888FC1C; Tue, 27 Sep 2011 18:42:09 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RIg9vP036245; Tue, 27 Sep 2011 18:42:09 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RIg9uL036242; Tue, 27 Sep 2011 18:42:09 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271842.p8RIg9uL036242@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 18:42:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225812 - head/lib/libfetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 18:42:09 -0000 Author: des Date: Tue Sep 27 18:42:09 2011 New Revision: 225812 URL: http://svn.freebsd.org/changeset/base/225812 Log: Think first, commit second. 1. Allow the caller to select active mode. 2. Fix the envar logic so it *always* overrides the caller's flags. 3. Document the change from active to passive. Modified: head/lib/libfetch/fetch.3 head/lib/libfetch/ftp.c Modified: head/lib/libfetch/fetch.3 ============================================================================== --- head/lib/libfetch/fetch.3 Tue Sep 27 18:40:13 2011 (r225811) +++ head/lib/libfetch/fetch.3 Tue Sep 27 18:42:09 2011 (r225812) @@ -318,9 +318,19 @@ and implement the FTP protocol as described in RFC959. .Pp If the +.Ql P +(not passive) flag is specified, an active (rather than passive) +connection will be attempted. +.Pp +The .Ql p -(passive) flag is specified, a passive (rather than active) connection -will be attempted. +flag is supported for compatibility with earlier versions where active +connections were the default. +It has precedence over the +.Ql P +flag, so if both are specified, +.Nm +will use a passive connection. .Pp If the .Ql l @@ -475,9 +485,11 @@ connections will be bound. .It Ev FTP_LOGIN Default FTP login if none was provided in the URL. .It Ev FTP_PASSIVE_MODE -If set to anything but +If set to .Ql no , -forces the FTP code to use passive mode. +forces the FTP code to use active mode. +If set to any other value, forces passive mode even if the application +requested active mode. .It Ev FTP_PASSWORD Default FTP password if the remote server requests one and none was provided in the URL. Modified: head/lib/libfetch/ftp.c ============================================================================== --- head/lib/libfetch/ftp.c Tue Sep 27 18:40:13 2011 (r225811) +++ head/lib/libfetch/ftp.c Tue Sep 27 18:42:09 2011 (r225812) @@ -633,13 +633,12 @@ ftp_transfer(conn_t *conn, const char *o /* check flags */ low = CHECK_FLAG('l'); - pasv = CHECK_FLAG('p'); + pasv = CHECK_FLAG('p') || !CHECK_FLAG('P'); verbose = CHECK_FLAG('v'); /* passive mode */ - if (!pasv) - pasv = ((s = getenv("FTP_PASSIVE_MODE")) == NULL || - strncasecmp(s, "no", 2) == 0); + if ((s = getenv("FTP_PASSIVE_MODE")) != NULL) + pasv = (strncasecmp(s, "no", 2) != 0); /* isolate filename */ filename = ftp_filename(file, &filenamelen, &type); From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 18:53:36 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EEA81065679; Tue, 27 Sep 2011 18:53:36 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EA1F58FC1A; Tue, 27 Sep 2011 18:53:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RIrZYh036625; Tue, 27 Sep 2011 18:53:35 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RIrZm3036623; Tue, 27 Sep 2011 18:53:35 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271853.p8RIrZm3036623@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 18:53:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225813 - head/lib/libfetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 18:53:36 -0000 Author: des Date: Tue Sep 27 18:53:35 2011 New Revision: 225813 URL: http://svn.freebsd.org/changeset/base/225813 Log: Bump date. Modified: head/lib/libfetch/fetch.3 Modified: head/lib/libfetch/fetch.3 ============================================================================== --- head/lib/libfetch/fetch.3 Tue Sep 27 18:42:09 2011 (r225812) +++ head/lib/libfetch/fetch.3 Tue Sep 27 18:53:35 2011 (r225813) @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 26, 2010 +.Dd September 27, 2011 .Dt FETCH 3 .Os .Sh NAME From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 18:57:27 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2B301065672; Tue, 27 Sep 2011 18:57:26 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D82F78FC13; Tue, 27 Sep 2011 18:57:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RIvQ9w036812; Tue, 27 Sep 2011 18:57:26 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RIvQDV036803; Tue, 27 Sep 2011 18:57:26 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271857.p8RIvQDV036803@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 18:57:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225814 - head/lib/libfetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 18:57:27 -0000 Author: des Date: Tue Sep 27 18:57:26 2011 New Revision: 225814 URL: http://svn.freebsd.org/changeset/base/225814 Log: Update copyright dates and strip my middle name. Modified: head/lib/libfetch/common.c head/lib/libfetch/common.h head/lib/libfetch/fetch.3 head/lib/libfetch/fetch.c head/lib/libfetch/fetch.h head/lib/libfetch/file.c head/lib/libfetch/ftp.c head/lib/libfetch/http.c Modified: head/lib/libfetch/common.c ============================================================================== --- head/lib/libfetch/common.c Tue Sep 27 18:53:35 2011 (r225813) +++ head/lib/libfetch/common.c Tue Sep 27 18:57:26 2011 (r225814) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 1998-2011 Dag-Erling Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/lib/libfetch/common.h ============================================================================== --- head/lib/libfetch/common.h Tue Sep 27 18:53:35 2011 (r225813) +++ head/lib/libfetch/common.h Tue Sep 27 18:57:26 2011 (r225814) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 1998-2011 Dag-Erling Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/lib/libfetch/fetch.3 ============================================================================== --- head/lib/libfetch/fetch.3 Tue Sep 27 18:53:35 2011 (r225813) +++ head/lib/libfetch/fetch.3 Tue Sep 27 18:57:26 2011 (r225814) @@ -1,5 +1,5 @@ .\"- -.\" Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav +.\" Copyright (c) 1998-2011 Dag-Erling Smørgrav .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without Modified: head/lib/libfetch/fetch.c ============================================================================== --- head/lib/libfetch/fetch.c Tue Sep 27 18:53:35 2011 (r225813) +++ head/lib/libfetch/fetch.c Tue Sep 27 18:57:26 2011 (r225814) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 1998-2004 Dag-Erling Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/lib/libfetch/fetch.h ============================================================================== --- head/lib/libfetch/fetch.h Tue Sep 27 18:53:35 2011 (r225813) +++ head/lib/libfetch/fetch.h Tue Sep 27 18:57:26 2011 (r225814) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 1998-2004 Dag-Erling Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/lib/libfetch/file.c ============================================================================== --- head/lib/libfetch/file.c Tue Sep 27 18:53:35 2011 (r225813) +++ head/lib/libfetch/file.c Tue Sep 27 18:57:26 2011 (r225814) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 1998-2011 Dag-Erling Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/lib/libfetch/ftp.c ============================================================================== --- head/lib/libfetch/ftp.c Tue Sep 27 18:53:35 2011 (r225813) +++ head/lib/libfetch/ftp.c Tue Sep 27 18:57:26 2011 (r225814) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 1998-2011 Dag-Erling Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/lib/libfetch/http.c ============================================================================== --- head/lib/libfetch/http.c Tue Sep 27 18:53:35 2011 (r225813) +++ head/lib/libfetch/http.c Tue Sep 27 18:57:26 2011 (r225814) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 2000-2011 Dag-Erling Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 19:02:45 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20688106564A; Tue, 27 Sep 2011 19:02:45 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9B28FC16; Tue, 27 Sep 2011 19:02:45 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RJ2iBV037037; Tue, 27 Sep 2011 19:02:44 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RJ2isK037034; Tue, 27 Sep 2011 19:02:44 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271902.p8RJ2isK037034@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 19:02:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225815 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 19:02:45 -0000 Author: des Date: Tue Sep 27 19:02:44 2011 New Revision: 225815 URL: http://svn.freebsd.org/changeset/base/225815 Log: Document the fact that passive mode is now the default. Update copyright dates and strip my middle name. Modified: head/usr.bin/fetch/fetch.1 head/usr.bin/fetch/fetch.c Modified: head/usr.bin/fetch/fetch.1 ============================================================================== --- head/usr.bin/fetch/fetch.1 Tue Sep 27 18:57:26 2011 (r225814) +++ head/usr.bin/fetch/fetch.1 Tue Sep 27 19:02:44 2011 (r225815) @@ -1,5 +1,5 @@ .\"- -.\" Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav +.\" Copyright (c) 2000-2011 Dag-Erling Smørgrav .\" All rights reserved. .\" Portions Copyright (c) 1999 Massachusetts Institute of Technology; used .\" by permission. @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 14, 2008 +.Dd September 27, 2011 .Dt FETCH 1 .Os .Sh NAME @@ -165,11 +165,13 @@ directory, with name(s) selected as in t .It Fl P .It Fl p Use passive FTP. -This is useful if you are behind a firewall which blocks incoming -connections. -Try this flag if -.Nm -seems to hang when retrieving FTP URLs. +These flags have no effect, since passive FTP is the default, but are +provided for compatibility with earlier versions where active FTP was +the default. +To force active mode, set the +.Ev FTP_PASSIVE_MODE +environment variable to +.Ql NO . .It Fl q Quiet mode. .It Fl R Modified: head/usr.bin/fetch/fetch.c ============================================================================== --- head/usr.bin/fetch/fetch.c Tue Sep 27 18:57:26 2011 (r225814) +++ head/usr.bin/fetch/fetch.c Tue Sep 27 19:02:44 2011 (r225815) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav + * Copyright (c) 2000-2011 Dag-Erling Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 19:08:28 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F9BC1065675; Tue, 27 Sep 2011 19:08:28 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3DF588FC15; Tue, 27 Sep 2011 19:08:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RJ8S1t037251; Tue, 27 Sep 2011 19:08:28 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RJ8SK8037249; Tue, 27 Sep 2011 19:08:28 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271908.p8RJ8SK8037249@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 19:08:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225816 - stable/9/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 19:08:28 -0000 Author: des Date: Tue Sep 27 19:08:27 2011 New Revision: 225816 URL: http://svn.freebsd.org/changeset/base/225816 Log: MFH r225805: use fseeko(2) instead of fseek(2). Approved by: re (kib) Modified: stable/9/usr.bin/fetch/fetch.c Directory Properties: stable/9/usr.bin/fetch/ (props changed) Modified: stable/9/usr.bin/fetch/fetch.c ============================================================================== --- stable/9/usr.bin/fetch/fetch.c Tue Sep 27 19:02:44 2011 (r225815) +++ stable/9/usr.bin/fetch/fetch.c Tue Sep 27 19:08:27 2011 (r225816) @@ -561,8 +561,8 @@ fetch(char *URL, const char *path) } } /* seek to where we left off */ - if (of != NULL && fseek(of, url->offset, SEEK_SET) != 0) { - warn("%s: fseek()", path); + if (of != NULL && fseeko(of, url->offset, SEEK_SET) != 0) { + warn("%s: fseeko()", path); fclose(of); of = NULL; /* picked up again later */ From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 19:54:58 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90E18106564A; Tue, 27 Sep 2011 19:54:58 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8080D8FC0C; Tue, 27 Sep 2011 19:54:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8RJswpR038743; Tue, 27 Sep 2011 19:54:58 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8RJsw3i038741; Tue, 27 Sep 2011 19:54:58 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109271954.p8RJsw3i038741@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Sep 2011 19:54:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225817 - head/release X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 19:54:58 -0000 Author: des Date: Tue Sep 27 19:54:58 2011 New Revision: 225817 URL: http://svn.freebsd.org/changeset/base/225817 Log: Don't force active mode FTP. Modified: head/release/Makefile.sysinstall Modified: head/release/Makefile.sysinstall ============================================================================== --- head/release/Makefile.sysinstall Tue Sep 27 19:08:27 2011 (r225816) +++ head/release/Makefile.sysinstall Tue Sep 27 19:54:58 2011 (r225817) @@ -588,7 +588,7 @@ release rerelease: echo " for i in ${MAKEINDEXPORTS}" >> ${_MK} echo " do" >> ${_MK} echo " cd /usr/ports/\$${i}" >> ${_MK} - echo " env -i HTTP_PROXY=$${HTTP_PROXY} FTP_PROXY=$${FTP_PROXY} FTP_PASSIVE_MODE=$${FTP_PASSIVE_MODE:-no} PATH=$${PATH} \\" >> ${_MK} + echo " env -i HTTP_PROXY=$${HTTP_PROXY} FTP_PROXY=$${FTP_PROXY} FTP_PASSIVE_MODE=$${FTP_PASSIVE_MODE:-yes} PATH=$${PATH} \\" >> ${_MK} echo " make all install clean BATCH=yes FORCE_PKG_REGISTER=yes" >> ${_MK} echo " done" >> ${_MK} echo " cd /usr/ports" >> ${_MK} From owner-svn-src-all@FreeBSD.ORG Tue Sep 27 23:11:04 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 3A106106566B; Tue, 27 Sep 2011 23:11:04 +0000 (UTC) Date: Tue, 27 Sep 2011 23:11:04 +0000 From: Alexander Best To: Dag-Erling Smorgrav Message-ID: <20110927231104.GA13143@freebsd.org> References: <201109271902.p8RJ2isK037034@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201109271902.p8RJ2isK037034@svn.freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225815 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2011 23:11:04 -0000 On Tue Sep 27 11, Dag-Erling Smorgrav wrote: > Author: des > Date: Tue Sep 27 19:02:44 2011 > New Revision: 225815 > URL: http://svn.freebsd.org/changeset/base/225815 > > Log: > Document the fact that passive mode is now the default. > Update copyright dates and strip my middle name. > > Modified: > head/usr.bin/fetch/fetch.1 > head/usr.bin/fetch/fetch.c > > Modified: head/usr.bin/fetch/fetch.1 > ============================================================================== > --- head/usr.bin/fetch/fetch.1 Tue Sep 27 18:57:26 2011 (r225814) > +++ head/usr.bin/fetch/fetch.1 Tue Sep 27 19:02:44 2011 (r225815) > @@ -1,5 +1,5 @@ > .\"- > -.\" Copyright (c) 2000-2004 Dag-Erling Co?dan Sm?rgrav > +.\" Copyright (c) 2000-2011 Dag-Erling Sm?rgrav your name isn't being displayed correctly here. > .\" All rights reserved. > .\" Portions Copyright (c) 1999 Massachusetts Institute of Technology; used > .\" by permission. > @@ -29,7 +29,7 @@ > .\" > .\" $FreeBSD$ > .\" > -.Dd December 14, 2008 > +.Dd September 27, 2011 > .Dt FETCH 1 > .Os > .Sh NAME > @@ -165,11 +165,13 @@ directory, with name(s) selected as in t > .It Fl P > .It Fl p > Use passive FTP. > -This is useful if you are behind a firewall which blocks incoming > -connections. > -Try this flag if > -.Nm > -seems to hang when retrieving FTP URLs. > +These flags have no effect, since passive FTP is the default, but are > +provided for compatibility with earlier versions where active FTP was > +the default. > +To force active mode, set the > +.Ev FTP_PASSIVE_MODE > +environment variable to > +.Ql NO . > .It Fl q > Quiet mode. > .It Fl R > > Modified: head/usr.bin/fetch/fetch.c > ============================================================================== > --- head/usr.bin/fetch/fetch.c Tue Sep 27 18:57:26 2011 (r225814) > +++ head/usr.bin/fetch/fetch.c Tue Sep 27 19:02:44 2011 (r225815) > @@ -1,5 +1,5 @@ > /*- > - * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav > + * Copyright (c) 2000-2011 Dag-Erling Smørgrav here your name gets displayed correctly. > * All rights reserved. > * > * Redistribution and use in source and binary forms, with or without the output of `locale` on my local machine is: LANG=en_GB.ISO8859-15 LC_CTYPE=de_DE.ISO8859-15 LC_COLLATE="en_GB.ISO8859-15" LC_TIME=de_DE.ISO8859-15 LC_NUMERIC=de_DE.ISO8859-15 LC_MONETARY=de_DE.ISO8859-15 LC_MESSAGES="en_GB.ISO8859-15" LC_ALL= cheers. alex From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 01:26:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7801106566B; Wed, 28 Sep 2011 01:26:18 +0000 (UTC) (envelope-from poyopoyo@puripuri.plala.or.jp) Received: from msa04b.plala.or.jp (msa04.plala.or.jp [IPv6:2400:7800:0:5010::4]) by mx1.freebsd.org (Postfix) with ESMTP id 0430A8FC08; Wed, 28 Sep 2011 01:26:17 +0000 (UTC) Received: from i220-109-122-8.s02.a026.ap.plala.or.jp ([220.109.122.8]) by msa04b.plala.or.jp with ESMTP id <20110928012616.CZVZ10746.msa04b.plala.or.jp@i220-109-122-8.s02.a026.ap.plala.or.jp>; Wed, 28 Sep 2011 10:26:16 +0900 Date: Wed, 28 Sep 2011 10:26:16 +0900 Message-ID: <86bou5sbif.wl%poyopoyo@puripuri.plala.or.jp> From: poyopoyo@puripuri.plala.or.jp To: Ken Smith In-Reply-To: <201109230051.p8N0pbV2045995@svn.freebsd.org> References: <201109230051.p8N0pbV2045995@svn.freebsd.org> Mail-Followup-To: Ken Smith , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org, poyopoyo@puripuri.plala.or.jp User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.3 (amd64-portbld-freebsd9.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-VirusScan: Outbound; msa04b; Wed, 28 Sep 2011 10:26:16 +0900 X-Mailman-Approved-At: Wed, 28 Sep 2011 02:10:48 +0000 Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-other@freebsd.org Subject: Re: svn commit: r225736 - stable/9 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 01:26:19 -0000 > X-SVN-Group: stable-other Perhaps time has come to modify sysadmin/conf/mailer.conf to create stable-9 group for stable/9? -- kuro From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 02:54:42 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4117106566B; Wed, 28 Sep 2011 02:54:42 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A421F8FC0A; Wed, 28 Sep 2011 02:54:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S2sgVl051919; Wed, 28 Sep 2011 02:54:42 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S2sg6c051917; Wed, 28 Sep 2011 02:54:42 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109280254.p8S2sg6c051917@svn.freebsd.org> From: Adrian Chadd Date: Wed, 28 Sep 2011 02:54:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225818 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 02:54:42 -0000 Author: adrian Date: Wed Sep 28 02:54:42 2011 New Revision: 225818 URL: http://svn.freebsd.org/changeset/base/225818 Log: Update the default AIFS value for hostap mode. Obtained from: Linux ath9k, Atheros reference Modified: head/sys/dev/ath/if_athvar.h Modified: head/sys/dev/ath/if_athvar.h ============================================================================== --- head/sys/dev/ath/if_athvar.h Tue Sep 27 19:54:58 2011 (r225817) +++ head/sys/dev/ath/if_athvar.h Wed Sep 28 02:54:42 2011 (r225818) @@ -64,7 +64,7 @@ #define ATH_TXMGTTRY 4 /* xmit attempts for mgt/ctl frames */ #define ATH_TXINTR_PERIOD 5 /* max number of batched tx descriptors */ -#define ATH_BEACON_AIFS_DEFAULT 0 /* default aifs for ap beacon q */ +#define ATH_BEACON_AIFS_DEFAULT 1 /* default aifs for ap beacon q */ #define ATH_BEACON_CWMIN_DEFAULT 0 /* default cwmin for ap beacon q */ #define ATH_BEACON_CWMAX_DEFAULT 0 /* default cwmax for ap beacon q */ From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 03:03:23 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC4F11065673; Wed, 28 Sep 2011 03:03:23 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 81DB08FC19; Wed, 28 Sep 2011 03:03:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S33NZr052388; Wed, 28 Sep 2011 03:03:23 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S33NHS052385; Wed, 28 Sep 2011 03:03:23 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109280303.p8S33NHS052385@svn.freebsd.org> From: Adrian Chadd Date: Wed, 28 Sep 2011 03:03:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225819 - in head/sys/dev/ath/ath_hal: ar5212 ar5416 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 03:03:23 -0000 Author: adrian Date: Wed Sep 28 03:03:23 2011 New Revision: 225819 URL: http://svn.freebsd.org/changeset/base/225819 Log: The AR5212 setup path (also used by the AR5416 code) configures a local variable with a beacon interval of 100 TU. This never gets modified if the beacon interval configuration changes. This may have been correct in earlier times, but with the advent of staggered beacons (which default to 1 / ATH_BCBUF beacon interval, so 25 TU here) this value is incorrect. It is used to configure the default CABQ readytime. So here, the cabq was being configured to be much greater than the target beacon timer (TBTT.) The driver should be configuring a cabq readytime value rather then leaving it to the HAL to choose sensible defaults. This should be done in the future - I'm simply trying to ensure sensible defaults are chosen. Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c head/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c Wed Sep 28 02:54:42 2011 (r225818) +++ head/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c Wed Sep 28 03:03:23 2011 (r225819) @@ -44,6 +44,7 @@ ar5212GetNextTBTT(struct ath_hal *ah) void ar5212SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) { + struct ath_hal_5212 *ahp = AH5212(ah); OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt); OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba); @@ -65,6 +66,7 @@ ar5212SetBeaconTimers(struct ath_hal *ah OS_REG_WRITE(ah, AR_BEACON, AR_BEACON_RESET_TSF); } OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval); + ahp->ah_beaconInterval = (bt->bt_intval & HAL_BEACON_PERIOD); } /* Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c Wed Sep 28 02:54:42 2011 (r225818) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c Wed Sep 28 03:03:23 2011 (r225819) @@ -46,6 +46,7 @@ void ar5416SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) { uint32_t bperiod; + struct ath_hal_5212 *ahp = AH5212(ah); OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bt->bt_nexttbtt)); OS_REG_WRITE(ah, AR_NEXT_DBA, ONE_EIGHTH_TU_TO_USEC(bt->bt_nextdba)); @@ -53,6 +54,7 @@ ar5416SetBeaconTimers(struct ath_hal *ah OS_REG_WRITE(ah, AR_NEXT_NDP, TU_TO_USEC(bt->bt_nextatim)); bperiod = TU_TO_USEC(bt->bt_intval & HAL_BEACON_PERIOD); + ahp->ah_beaconInterval = bt->bt_intval & HAL_BEACON_PERIOD; OS_REG_WRITE(ah, AR5416_BEACON_PERIOD, bperiod); OS_REG_WRITE(ah, AR_DBA_PERIOD, bperiod); OS_REG_WRITE(ah, AR_SWBA_PERIOD, bperiod); From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 03:05:05 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 235D7106566B; Wed, 28 Sep 2011 03:05:05 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 125CD8FC12; Wed, 28 Sep 2011 03:05:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S354fo052481; Wed, 28 Sep 2011 03:05:04 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S354YT052478; Wed, 28 Sep 2011 03:05:04 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109280305.p8S354YT052478@svn.freebsd.org> From: Adrian Chadd Date: Wed, 28 Sep 2011 03:05:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225820 - in head/sys/dev/ath/ath_hal: ar5212 ar5416 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 03:05:05 -0000 Author: adrian Date: Wed Sep 28 03:05:04 2011 New Revision: 225820 URL: http://svn.freebsd.org/changeset/base/225820 Log: Change the default CABQ time to be 70% of the beacon interval, rather than the whole beacon interval. The reference driver and Linux ath9k both choose 80% of the beacon interval and they do it in the driver rather than the HAL (Ath reference) or ath9k_hw (ath9k.) This quietens stuck beacon conditions on my AR9220/AR9280 based NICs when a lot of burst broadcast/multicast traffic is going on. It doesn't seem to annoy the earlier MACs as much as the AR9280 and later one. Obtained from: Linux ath9k, Atheros Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c Wed Sep 28 03:03:23 2011 (r225819) +++ head/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c Wed Sep 28 03:05:04 2011 (r225820) @@ -263,6 +263,7 @@ ar5212ReleaseTxQueue(struct ath_hal *ah, * Assumes: * phwChannel has been set to point to the current channel */ +#define TU_TO_USEC(_tu) ((_tu) << 10) HAL_BOOL ar5212ResetTxQueue(struct ath_hal *ah, u_int q) { @@ -270,7 +271,7 @@ ar5212ResetTxQueue(struct ath_hal *ah, u HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps; const struct ieee80211_channel *chan = AH_PRIVATE(ah)->ah_curchan; HAL_TX_QUEUE_INFO *qi; - uint32_t cwMin, chanCwMin, value, qmisc, dmisc; + uint32_t cwMin, chanCwMin, qmisc, dmisc; if (q >= pCap->halTotalQueues) { HALDEBUG(ah, HAL_DEBUG_ANY, "%s: invalid queue num %u\n", @@ -409,17 +410,40 @@ ar5212ResetTxQueue(struct ath_hal *ah, u | AR_Q_MISC_CBR_INCR_DIS1 | AR_Q_MISC_CBR_INCR_DIS0; - if (!qi->tqi_readyTime) { + if (qi->tqi_readyTime) { + HALDEBUG(ah, HAL_DEBUG_TXQUEUE, + "%s: using tqi_readyTime\n", __func__); + OS_REG_WRITE(ah, AR_QRDYTIMECFG(q), + SM(qi->tqi_readyTime, AR_Q_RDYTIMECFG_INT) | + AR_Q_RDYTIMECFG_ENA); + } else { + int value; /* * NB: don't set default ready time if driver * has explicitly specified something. This is * here solely for backwards compatibility. */ - value = (ahp->ah_beaconInterval + /* + * XXX for now, hard-code a CAB interval of 70% + * XXX of the total beacon interval. + */ + + value = (ahp->ah_beaconInterval * 70 / 100) - (ah->ah_config.ah_sw_beacon_response_time - - ah->ah_config.ah_dma_beacon_response_time) - - ah->ah_config.ah_additional_swba_backoff) * 1024; - OS_REG_WRITE(ah, AR_QRDYTIMECFG(q), value | AR_Q_RDYTIMECFG_ENA); + + ah->ah_config.ah_dma_beacon_response_time) + - ah->ah_config.ah_additional_swba_backoff; + /* + * XXX Ensure it isn't too low - nothing lower + * XXX than 10 TU + */ + if (value < 10) + value = 10; + HALDEBUG(ah, HAL_DEBUG_TXQUEUE, + "%s: defaulting to rdytime = %d uS\n", + __func__, value); + OS_REG_WRITE(ah, AR_QRDYTIMECFG(q), + SM(TU_TO_USEC(value), AR_Q_RDYTIMECFG_INT) | + AR_Q_RDYTIMECFG_ENA); } dmisc |= SM(AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL, AR_D_MISC_ARB_LOCKOUT_CNTRL); @@ -481,6 +505,7 @@ ar5212ResetTxQueue(struct ath_hal *ah, u return AH_TRUE; } +#undef TU_TO_USEC /* * Get the TXDP for the specified queue Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Wed Sep 28 03:03:23 2011 (r225819) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Wed Sep 28 03:05:04 2011 (r225820) @@ -879,6 +879,7 @@ setTxQInterrupts(struct ath_hal *ah, HAL * Assumes: * phwChannel has been set to point to the current channel */ +#define TU_TO_USEC(_tu) ((_tu) << 10) HAL_BOOL ar5416ResetTxQueue(struct ath_hal *ah, u_int q) { @@ -886,7 +887,7 @@ ar5416ResetTxQueue(struct ath_hal *ah, u HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps; const struct ieee80211_channel *chan = AH_PRIVATE(ah)->ah_curchan; HAL_TX_QUEUE_INFO *qi; - uint32_t cwMin, chanCwMin, value, qmisc, dmisc; + uint32_t cwMin, chanCwMin, qmisc, dmisc; if (q >= pCap->halTotalQueues) { HALDEBUG(ah, HAL_DEBUG_ANY, "%s: invalid queue num %u\n", @@ -956,7 +957,8 @@ ar5416ResetTxQueue(struct ath_hal *ah, u if (qi->tqi_cbrOverflowLimit) qmisc |= AR_Q_MISC_CBR_EXP_CNTR_LIMIT; } - if (qi->tqi_readyTime) { + + if (qi->tqi_readyTime && (qi->tqi_type != HAL_TX_QUEUE_CAB)) { OS_REG_WRITE(ah, AR_QRDYTIMECFG(q), SM(qi->tqi_readyTime, AR_Q_RDYTIMECFG_INT) | AR_Q_RDYTIMECFG_ENA); @@ -1027,18 +1029,46 @@ ar5416ResetTxQueue(struct ath_hal *ah, u qmisc |= AR_Q_MISC_FSP_DBA_GATED | AR_Q_MISC_CBR_INCR_DIS1 | AR_Q_MISC_CBR_INCR_DIS0; - - if (!qi->tqi_readyTime) { + HALDEBUG(ah, HAL_DEBUG_TXQUEUE, "%s: CAB: tqi_readyTime = %d\n", + __func__, qi->tqi_readyTime); + if (qi->tqi_readyTime) { + HALDEBUG(ah, HAL_DEBUG_TXQUEUE, + "%s: using tqi_readyTime\n", __func__); + OS_REG_WRITE(ah, AR_QRDYTIMECFG(q), + SM(qi->tqi_readyTime, AR_Q_RDYTIMECFG_INT) | + AR_Q_RDYTIMECFG_ENA); + } else { + int value; /* * NB: don't set default ready time if driver * has explicitly specified something. This is * here solely for backwards compatibility. */ - value = (ahp->ah_beaconInterval - - (ah->ah_config.ah_sw_beacon_response_time - - ah->ah_config.ah_dma_beacon_response_time) - - ah->ah_config.ah_additional_swba_backoff) * 1024; - OS_REG_WRITE(ah, AR_QRDYTIMECFG(q), value | AR_Q_RDYTIMECFG_ENA); + /* + * XXX for now, hard-code a CAB interval of 70% + * XXX of the total beacon interval. + * + * XXX This keeps Merlin and later based MACs + * XXX quite a bit happier (stops stuck beacons, + * XXX which I gather is because of such a long + * XXX cabq time.) + */ + value = (ahp->ah_beaconInterval * 70 / 100) + - (ah->ah_config.ah_sw_beacon_response_time + + ah->ah_config.ah_dma_beacon_response_time) + - ah->ah_config.ah_additional_swba_backoff; + /* + * XXX Ensure it isn't too low - nothing lower + * XXX than 10 TU + */ + if (value < 10) + value = 10; + HALDEBUG(ah, HAL_DEBUG_TXQUEUE, + "%s: defaulting to rdytime = %d uS\n", + __func__, value); + OS_REG_WRITE(ah, AR_QRDYTIMECFG(q), + SM(TU_TO_USEC(value), AR_Q_RDYTIMECFG_INT) | + AR_Q_RDYTIMECFG_ENA); } dmisc |= SM(AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL, AR_D_MISC_ARB_LOCKOUT_CNTRL); @@ -1106,3 +1136,4 @@ ar5416ResetTxQueue(struct ath_hal *ah, u return AH_TRUE; } +#undef TU_TO_USEC From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 03:07:52 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70C66106564A; Wed, 28 Sep 2011 03:07:52 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 610868FC13; Wed, 28 Sep 2011 03:07:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S37q5j052605; Wed, 28 Sep 2011 03:07:52 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S37qKB052603; Wed, 28 Sep 2011 03:07:52 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109280307.p8S37qKB052603@svn.freebsd.org> From: Adrian Chadd Date: Wed, 28 Sep 2011 03:07:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225821 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 03:07:52 -0000 Author: adrian Date: Wed Sep 28 03:07:51 2011 New Revision: 225821 URL: http://svn.freebsd.org/changeset/base/225821 Log: Fix lock order to be correcter. Nothing else locks these two queues (cabq, avp mcastq), but it should be consistent and correct. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Wed Sep 28 03:05:04 2011 (r225820) +++ head/sys/dev/ath/if_ath.c Wed Sep 28 03:07:51 2011 (r225821) @@ -2620,8 +2620,8 @@ ath_beacon_generate(struct ath_softc *sc } /* NB: gated by beacon so safe to start here */ ath_hal_txstart(ah, cabq->axq_qnum); - ATH_TXQ_UNLOCK(cabq); ATH_TXQ_UNLOCK(&avp->av_mcastq); + ATH_TXQ_UNLOCK(cabq); } return bf; } From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 03:11:52 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 544881065673; Wed, 28 Sep 2011 03:11:52 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 445618FC19; Wed, 28 Sep 2011 03:11:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S3BqYM052929; Wed, 28 Sep 2011 03:11:52 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S3BqPY052927; Wed, 28 Sep 2011 03:11:52 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109280311.p8S3BqPY052927@svn.freebsd.org> From: Adrian Chadd Date: Wed, 28 Sep 2011 03:11:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225822 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 03:11:52 -0000 Author: adrian Date: Wed Sep 28 03:11:51 2011 New Revision: 225822 URL: http://svn.freebsd.org/changeset/base/225822 Log: Don't bother triggering the cabq queue if it's empty. Obtained from: Atheros Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Wed Sep 28 03:07:51 2011 (r225821) +++ head/sys/dev/ath/if_ath.c Wed Sep 28 03:11:51 2011 (r225822) @@ -2619,7 +2619,8 @@ ath_beacon_generate(struct ath_softc *sc sc->sc_stats.ast_cabq_xmit += nmcastq; } /* NB: gated by beacon so safe to start here */ - ath_hal_txstart(ah, cabq->axq_qnum); + if (! STAILQ_EMPTY(&(cabq->axq_q))) + ath_hal_txstart(ah, cabq->axq_qnum); ATH_TXQ_UNLOCK(&avp->av_mcastq); ATH_TXQ_UNLOCK(cabq); } From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 07:46:29 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12194106564A; Wed, 28 Sep 2011 07:46:29 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 017E38FC17; Wed, 28 Sep 2011 07:46:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S7kS6L061539; Wed, 28 Sep 2011 07:46:28 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S7kSm6061537; Wed, 28 Sep 2011 07:46:28 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109280746.p8S7kSm6061537@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 28 Sep 2011 07:46:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225823 - in vendor-crypto/openssh/dist: . openbsd-compat regress X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 07:46:29 -0000 Author: des Date: Wed Sep 28 07:46:28 2011 New Revision: 225823 URL: http://svn.freebsd.org/changeset/base/225823 Log: Revert autoprops damage. Modified: vendor-crypto/openssh/dist/audit-linux.c (contents, props changed) Directory Properties: vendor-crypto/openssh/dist/bufec.c (props changed) vendor-crypto/openssh/dist/kexecdh.c (props changed) vendor-crypto/openssh/dist/kexecdhc.c (props changed) vendor-crypto/openssh/dist/kexecdhs.c (props changed) vendor-crypto/openssh/dist/openbsd-compat/charclass.h (props changed) vendor-crypto/openssh/dist/openbsd-compat/strptime.c (props changed) vendor-crypto/openssh/dist/openbsd-compat/timingsafe_bcmp.c (props changed) vendor-crypto/openssh/dist/regress/host-expand.sh (props changed) vendor-crypto/openssh/dist/regress/kextype.sh (props changed) vendor-crypto/openssh/dist/regress/keytype.sh (props changed) vendor-crypto/openssh/dist/ssh-ecdsa.c (props changed) Modified: vendor-crypto/openssh/dist/audit-linux.c ============================================================================== --- vendor-crypto/openssh/dist/audit-linux.c Wed Sep 28 03:11:51 2011 (r225822) +++ vendor-crypto/openssh/dist/audit-linux.c Wed Sep 28 07:46:28 2011 (r225823) @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: audit-linux.c,v 1.1 2011/01/17 10:15:30 dtucker Exp $ */ /* * Copyright 2010 Red Hat, Inc. All rights reserved. From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:13:01 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1A631065678; Wed, 28 Sep 2011 08:13:01 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9856E8FC08; Wed, 28 Sep 2011 08:13:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S8D1Nh062476; Wed, 28 Sep 2011 08:13:01 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S8D1hA062475; Wed, 28 Sep 2011 08:13:01 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109280813.p8S8D1hA062475@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 28 Sep 2011 08:13:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225824 - vendor-crypto/openssh/dist/openbsd-compat X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:13:01 -0000 Author: des Date: Wed Sep 28 08:13:01 2011 New Revision: 225824 URL: http://svn.freebsd.org/changeset/base/225824 Log: More autoprops damage, compounded by the fact that some source files, for some reason, had the x bit set in the tarball. Modified: Directory Properties: vendor-crypto/openssh/dist/openbsd-compat/sha2.c (props changed) vendor-crypto/openssh/dist/openbsd-compat/sha2.h (props changed) From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:14:42 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D5C2106564A; Wed, 28 Sep 2011 08:14:42 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 69B178FC15; Wed, 28 Sep 2011 08:14:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S8EgqR062570; Wed, 28 Sep 2011 08:14:42 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S8EgMm062559; Wed, 28 Sep 2011 08:14:42 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109280814.p8S8EgMm062559@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 28 Sep 2011 08:14:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225825 - in vendor-crypto/openssh/dist: . contrib contrib/aix contrib/caldera contrib/redhat contrib/suse openbsd-compat openbsd-compat/regress regress X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:14:42 -0000 Author: des Date: Wed Sep 28 08:14:41 2011 New Revision: 225825 URL: http://svn.freebsd.org/changeset/base/225825 Log: Vendor import of OpenSSH 5.9p1 Added: vendor-crypto/openssh/dist/sandbox-darwin.c (contents, props changed) vendor-crypto/openssh/dist/sandbox-null.c (contents, props changed) vendor-crypto/openssh/dist/sandbox-rlimit.c (contents, props changed) vendor-crypto/openssh/dist/sandbox-systrace.c (contents, props changed) vendor-crypto/openssh/dist/ssh-sandbox.h (contents, props changed) Modified: vendor-crypto/openssh/dist/ChangeLog vendor-crypto/openssh/dist/INSTALL vendor-crypto/openssh/dist/Makefile.in vendor-crypto/openssh/dist/PROTOCOL.mux vendor-crypto/openssh/dist/README vendor-crypto/openssh/dist/aclocal.m4 vendor-crypto/openssh/dist/auth-rsa.c vendor-crypto/openssh/dist/auth-skey.c vendor-crypto/openssh/dist/auth.c vendor-crypto/openssh/dist/auth.h vendor-crypto/openssh/dist/auth2-gss.c vendor-crypto/openssh/dist/auth2-pubkey.c vendor-crypto/openssh/dist/auth2.c vendor-crypto/openssh/dist/authfd.c vendor-crypto/openssh/dist/authfile.c vendor-crypto/openssh/dist/authfile.h vendor-crypto/openssh/dist/buildpkg.sh.in vendor-crypto/openssh/dist/channels.c vendor-crypto/openssh/dist/channels.h vendor-crypto/openssh/dist/clientloop.c vendor-crypto/openssh/dist/clientloop.h vendor-crypto/openssh/dist/config.guess vendor-crypto/openssh/dist/config.h.in vendor-crypto/openssh/dist/config.sub vendor-crypto/openssh/dist/configure vendor-crypto/openssh/dist/configure.ac vendor-crypto/openssh/dist/contrib/aix/buildbff.sh vendor-crypto/openssh/dist/contrib/caldera/openssh.spec vendor-crypto/openssh/dist/contrib/redhat/openssh.spec vendor-crypto/openssh/dist/contrib/redhat/sshd.init vendor-crypto/openssh/dist/contrib/ssh-copy-id vendor-crypto/openssh/dist/contrib/suse/openssh.spec vendor-crypto/openssh/dist/contrib/suse/rc.sshd vendor-crypto/openssh/dist/defines.h vendor-crypto/openssh/dist/entropy.c vendor-crypto/openssh/dist/gss-serv.c vendor-crypto/openssh/dist/key.c vendor-crypto/openssh/dist/log.c vendor-crypto/openssh/dist/log.h vendor-crypto/openssh/dist/mac.c vendor-crypto/openssh/dist/misc.c vendor-crypto/openssh/dist/misc.h vendor-crypto/openssh/dist/moduli.0 vendor-crypto/openssh/dist/moduli.5 vendor-crypto/openssh/dist/monitor.c vendor-crypto/openssh/dist/monitor.h vendor-crypto/openssh/dist/monitor_wrap.c vendor-crypto/openssh/dist/monitor_wrap.h vendor-crypto/openssh/dist/mux.c vendor-crypto/openssh/dist/myproposal.h vendor-crypto/openssh/dist/openbsd-compat/bsd-cygwin_util.c vendor-crypto/openssh/dist/openbsd-compat/bsd-cygwin_util.h vendor-crypto/openssh/dist/openbsd-compat/openssl-compat.c vendor-crypto/openssh/dist/openbsd-compat/openssl-compat.h vendor-crypto/openssh/dist/openbsd-compat/port-linux.c vendor-crypto/openssh/dist/openbsd-compat/port-linux.h vendor-crypto/openssh/dist/openbsd-compat/regress/closefromtest.c vendor-crypto/openssh/dist/packet.c vendor-crypto/openssh/dist/packet.h vendor-crypto/openssh/dist/pathnames.h vendor-crypto/openssh/dist/readconf.c vendor-crypto/openssh/dist/readconf.h vendor-crypto/openssh/dist/regress/README.regress vendor-crypto/openssh/dist/regress/cert-hostkey.sh vendor-crypto/openssh/dist/regress/cert-userkey.sh vendor-crypto/openssh/dist/regress/cfgmatch.sh vendor-crypto/openssh/dist/regress/cipher-speed.sh vendor-crypto/openssh/dist/regress/connect-privsep.sh vendor-crypto/openssh/dist/regress/dynamic-forward.sh vendor-crypto/openssh/dist/regress/test-exec.sh vendor-crypto/openssh/dist/regress/try-ciphers.sh vendor-crypto/openssh/dist/scp.0 vendor-crypto/openssh/dist/servconf.c vendor-crypto/openssh/dist/servconf.h vendor-crypto/openssh/dist/serverloop.c vendor-crypto/openssh/dist/session.c vendor-crypto/openssh/dist/sftp-server.0 vendor-crypto/openssh/dist/sftp-server.c vendor-crypto/openssh/dist/sftp.0 vendor-crypto/openssh/dist/sftp.1 vendor-crypto/openssh/dist/ssh-add.0 vendor-crypto/openssh/dist/ssh-add.c vendor-crypto/openssh/dist/ssh-agent.0 vendor-crypto/openssh/dist/ssh-agent.c vendor-crypto/openssh/dist/ssh-keygen.0 vendor-crypto/openssh/dist/ssh-keygen.1 vendor-crypto/openssh/dist/ssh-keygen.c vendor-crypto/openssh/dist/ssh-keyscan.0 vendor-crypto/openssh/dist/ssh-keyscan.c vendor-crypto/openssh/dist/ssh-keysign.0 vendor-crypto/openssh/dist/ssh-keysign.c vendor-crypto/openssh/dist/ssh-pkcs11-helper.0 vendor-crypto/openssh/dist/ssh-pkcs11-helper.c vendor-crypto/openssh/dist/ssh-pkcs11.c vendor-crypto/openssh/dist/ssh.0 vendor-crypto/openssh/dist/ssh.1 vendor-crypto/openssh/dist/ssh.c vendor-crypto/openssh/dist/ssh_config.0 vendor-crypto/openssh/dist/ssh_config.5 vendor-crypto/openssh/dist/sshconnect.c vendor-crypto/openssh/dist/sshconnect2.c vendor-crypto/openssh/dist/sshd.0 vendor-crypto/openssh/dist/sshd.8 vendor-crypto/openssh/dist/sshd.c vendor-crypto/openssh/dist/sshd_config vendor-crypto/openssh/dist/sshd_config.0 vendor-crypto/openssh/dist/sshd_config.5 vendor-crypto/openssh/dist/version.h Modified: vendor-crypto/openssh/dist/ChangeLog ============================================================================== --- vendor-crypto/openssh/dist/ChangeLog Wed Sep 28 08:13:01 2011 (r225824) +++ vendor-crypto/openssh/dist/ChangeLog Wed Sep 28 08:14:41 2011 (r225825) @@ -1,13 +1,463 @@ -20110403 +20110906 + - (djm) [README version.h] Correct version + - (djm) [contrib/redhat/openssh.spec] Correct restorcon => restorecon + - (djm) Respin OpenSSH-5.9p1 release + +20110905 - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec] - [contrib/suse/openssh.spec] Prepare for 5.8p2 release. - - (djm) [version.h] crank version - - Release 5.8p2 - -20110329 - - (djm) [entropy.c] closefrom() before running ssh-rand-helper; leftover fds - noticed by tmraz AT redhat.com - + [contrib/suse/openssh.spec] Update version numbers. + +20110904 + - (djm) [regress/connect-privsep.sh regress/test-exec.sh] demote fatal + regress errors for the sandbox to warnings. ok tim dtucker + - (dtucker) [ssh-keygen.c ssh-pkcs11.c] Bug #1929: add null implementations + ofsh-pkcs11.cpkcs_init and pkcs_terminate for building without dlopen + support. + +20110829 + - (djm) [openbsd-compat/port-linux.c] Suppress logging when attempting + to switch SELinux context away from unconfined_t, based on patch from + Jan Chadima; bz#1919 ok dtucker@ + +20110827 + - (dtucker) [auth-skey.c] Add log.h to fix build --with-skey. + +20110818 + - (tim) [configure.ac] Typo in error message spotted by Andy Tsouladze + +20110817 + - (tim) [mac.c myproposal.h] Wrap SHA256 and SHA512 in ifdefs for + OpenSSL 0.9.7. ok djm + - (djm) [ openbsd-compat/bsd-cygwin_util.c openbsd-compat/bsd-cygwin_util.h] + binary_pipe is no longer required on Cygwin; patch from Corinna Vinschen + - (djm) [configure.ac] error out if the host lacks the necessary bits for + an explicitly requested sandbox type + - (djm) [contrib/ssh-copy-id] Missing backlslash; spotted by + bisson AT archlinux.org + - (djm) OpenBSD CVS Sync + - dtucker@cvs.openbsd.org 2011/06/03 05:35:10 + [regress/cfgmatch.sh] + use OBJ to find test configs, patch from Tim Rice + - markus@cvs.openbsd.org 2011/06/30 22:44:43 + [regress/connect-privsep.sh] + test with sandbox enabled; ok djm@ + - djm@cvs.openbsd.org 2011/08/02 01:23:41 + [regress/cipher-speed.sh regress/try-ciphers.sh] + add SHA256/SHA512 based HMAC modes + - (djm) [regress/cipher-speed.sh regress/try-ciphers.sh] disable HMAC-SHA2 + MAC tests for platforms that hack EVP_SHA2 support + +20110812 + - (dtucker) [openbsd-compat/port-linux.c] Bug 1924: Improve selinux context + change error by reporting old and new context names Patch from + jchadima at redhat. + - (djm) [contrib/redhat/openssh.spec contrib/redhat/sshd.init] + [contrib/suse/openssh.spec contrib/suse/rc.sshd] Updated RHEL and SLES + init scrips from imorgan AT nas.nasa.gov; bz#1920 + - (djm) [contrib/ssh-copy-id] Fix failure for cases where the path to the + identify file contained whitespace. bz#1828 patch from gwenael.lambrouin + AT gmail.com; ok dtucker@ + +20110807 + - (dtucker) OpenBSD CVS Sync + - jmc@cvs.openbsd.org 2008/06/26 06:59:39 + [moduli.5] + tweak previous; + - sobrado@cvs.openbsd.org 2009/10/28 08:56:54 + [moduli.5] + "Diffie-Hellman" is the usual spelling for the cryptographic protocol + first published by Whitfield Diffie and Martin Hellman in 1976. + ok jmc@ + - jmc@cvs.openbsd.org 2010/10/14 20:41:28 + [moduli.5] + probabalistic -> probabilistic; from naddy + - dtucker@cvs.openbsd.org 2011/08/07 12:55:30 + [sftp.1] + typo, fix from Laurent Gautrot + +20110805 + - OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/06/23 23:35:42 + [monitor.c] + ignore EINTR errors from poll() + - tedu@cvs.openbsd.org 2011/07/06 18:09:21 + [authfd.c] + bzero the agent address. the kernel was for a while very cranky about + these things. evne though that's fixed, always good to initialize + memory. ok deraadt djm + - djm@cvs.openbsd.org 2011/07/29 14:42:45 + [sandbox-systrace.c] + fail open(2) with EPERM rather than SIGKILLing the whole process. libc + will call open() to do strerror() when NLS is enabled; + feedback and ok markus@ + - markus@cvs.openbsd.org 2011/08/01 19:18:15 + [gss-serv.c] + prevent post-auth resource exhaustion (int overflow leading to 4GB malloc); + report Adam Zabrock; ok djm@, deraadt@ + - djm@cvs.openbsd.org 2011/08/02 01:22:11 + [mac.c myproposal.h ssh.1 ssh_config.5 sshd.8 sshd_config.5] + Add new SHA256 and SHA512 based HMAC modes from + http://www.ietf.org/id/draft-dbider-sha2-mac-for-ssh-02.txt + Patch from mdb AT juniper.net; feedback and ok markus@ + - djm@cvs.openbsd.org 2011/08/02 23:13:01 + [version.h] + crank now, release later + - djm@cvs.openbsd.org 2011/08/02 23:15:03 + [ssh.c] + typo in comment + +20110624 + - (djm) [configure.ac Makefile.in sandbox-darwin.c] Add a sandbox for + Darwin/OS X using sandbox_init() + setrlimit(); feedback and testing + markus@ + +20110623 + - OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/06/22 21:47:28 + [servconf.c] + reuse the multistate option arrays to pretty-print options for "sshd -T" + - djm@cvs.openbsd.org 2011/06/22 21:57:01 + [servconf.c servconf.h sshd.c sshd_config.5] + [configure.ac Makefile.in] + introduce sandboxing of the pre-auth privsep child using systrace(4). + + This introduces a new "UsePrivilegeSeparation=sandbox" option for + sshd_config that applies mandatory restrictions on the syscalls the + privsep child can perform. This prevents a compromised privsep child + from being used to attack other hosts (by opening sockets and proxying) + or probing local kernel attack surface. + + The sandbox is implemented using systrace(4) in unsupervised "fast-path" + mode, where a list of permitted syscalls is supplied. Any syscall not + on the list results in SIGKILL being sent to the privsep child. Note + that this requires a kernel with the new SYSTR_POLICY_KILL option. + + UsePrivilegeSeparation=sandbox will become the default in the future + so please start testing it now. + + feedback dtucker@; ok markus@ + - djm@cvs.openbsd.org 2011/06/22 22:08:42 + [channels.c channels.h clientloop.c clientloop.h mux.c ssh.c] + hook up a channel confirm callback to warn the user then requested X11 + forwarding was refused by the server; ok markus@ + - djm@cvs.openbsd.org 2011/06/23 09:34:13 + [sshd.c ssh-sandbox.h sandbox.h sandbox-rlimit.c sandbox-systrace.c] + [sandbox-null.c] + rename sandbox.h => ssh-sandbox.h to make things easier for portable + - (djm) [sandbox-null.c] Dummy sandbox for platforms that don't support + setrlimit(2) + +20110620 + - OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/06/04 00:10:26 + [ssh_config.5] + explain IdentifyFile's semantics a little better, prompted by bz#1898 + ok dtucker jmc + - markus@cvs.openbsd.org 2011/06/14 22:49:18 + [authfile.c] + make sure key_parse_public/private_rsa1() no longer consumes its input + buffer. fixes ssh-add for passphrase-protected ssh1-keys; + noted by naddy@; ok djm@ + - djm@cvs.openbsd.org 2011/06/17 21:44:31 + [log.c log.h monitor.c monitor.h monitor_wrap.c monitor_wrap.h sshd.c] + make the pre-auth privsep slave log via a socketpair shared with the + monitor rather than /var/empty/dev/log; ok dtucker@ deraadt@ markus@ + - djm@cvs.openbsd.org 2011/06/17 21:46:16 + [sftp-server.c] + the protocol version should be unsigned; bz#1913 reported by mb AT + smartftp.com + - djm@cvs.openbsd.org 2011/06/17 21:47:35 + [servconf.c] + factor out multi-choice option parsing into a parse_multistate label + and some support structures; ok dtucker@ + - djm@cvs.openbsd.org 2011/06/17 21:57:25 + [clientloop.c] + setproctitle for a mux master that has been gracefully stopped; + bz#1911 from Bert.Wesarg AT googlemail.com + +20110603 + - (dtucker) [README version.h contrib/caldera/openssh.spec + contrib/redhat/openssh.spec contrib/suse/openssh.spec] Pull the version + bumps from the 5.8p2 branch into HEAD. ok djm. + - (tim) [configure.ac defines.h] Run test program to detect system mail + directory. Add --with-maildir option to override. Fixed OpenServer 6 + getting it wrong. Fixed many systems having MAIL=/var/mail//username + ok dtucker + - (dtucker) [monitor.c] Remove the !HAVE_SOCKETPAIR case. We use socketpair + unconditionally in other places and the survey data we have does not show + any systems that use it. "nuke it" djm@ + - (djm) [configure.ac] enable setproctitle emulation for OS X + - (djm) OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/06/03 00:54:38 + [ssh.c] + bz#1883 - setproctitle() to identify mux master; patch from Bert.Wesarg + AT googlemail.com; ok dtucker@ + NB. includes additional portability code to enable setproctitle emulation + on platforms that don't support it. + - dtucker@cvs.openbsd.org 2011/06/03 01:37:40 + [ssh-agent.c] + Check current parent process ID against saved one to determine if the parent + has exited, rather than attempting to send a zero signal, since the latter + won't work if the parent has changed privs. bz#1905, patch from Daniel Kahn + Gillmor, ok djm@ + - dtucker@cvs.openbsd.org 2011/05/31 02:01:58 + [regress/dynamic-forward.sh] + back out revs 1.6 and 1.5 since it's not reliable + - dtucker@cvs.openbsd.org 2011/05/31 02:03:34 + [regress/dynamic-forward.sh] + work around startup and teardown races; caught by deraadt + - dtucker@cvs.openbsd.org 2011/06/03 00:29:52 + [regress/dynamic-forward.sh] + Retry establishing the port forwarding after a small delay, should make + the tests less flaky when the previous test is slow to shut down and free + up the port. + - (tim) [regress/cfgmatch.sh] Build/test out of tree fix. + +20110529 + - (djm) OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/05/23 03:30:07 + [auth-rsa.c auth.c auth.h auth2-pubkey.c monitor.c monitor_wrap.c] + [pathnames.h servconf.c servconf.h sshd.8 sshd_config sshd_config.5] + allow AuthorizedKeysFile to specify multiple files, separated by spaces. + Bring back authorized_keys2 as a default search path (to avoid breaking + existing users of this file), but override this in sshd_config so it will + be no longer used on fresh installs. Maybe in 2015 we can remove it + entierly :) + + feedback and ok markus@ dtucker@ + - djm@cvs.openbsd.org 2011/05/23 03:33:38 + [auth.c] + make secure_filename() spam debug logs less + - djm@cvs.openbsd.org 2011/05/23 03:52:55 + [sshconnect.c] + remove extra newline + - jmc@cvs.openbsd.org 2011/05/23 07:10:21 + [sshd.8 sshd_config.5] + tweak previous; ok djm + - djm@cvs.openbsd.org 2011/05/23 07:24:57 + [authfile.c] + read in key comments for v.2 keys (though note that these are not + passed over the agent protocol); bz#439, based on patch from binder + AT arago.de; ok markus@ + - djm@cvs.openbsd.org 2011/05/24 07:15:47 + [readconf.c readconf.h ssh.c ssh_config.5 sshconnect.c sshconnect2.c] + Remove undocumented legacy options UserKnownHostsFile2 and + GlobalKnownHostsFile2 by making UserKnownHostsFile/GlobalKnownHostsFile + accept multiple paths per line and making their defaults include + known_hosts2; ok markus + - djm@cvs.openbsd.org 2011/05/23 03:31:31 + [regress/cfgmatch.sh] + include testing of multiple/overridden AuthorizedKeysFiles + refactor to simply daemon start/stop and get rid of racy constructs + +20110520 + - (djm) [session.c] call setexeccon() before executing passwd for pw + changes; bz#1891 reported by jchadima AT redhat.com; ok dtucker@ + - (djm) [aclocal.m4 configure.ac] since gcc-4.x ignores all -Wno-options + options, we should corresponding -W-option when trying to determine + whether it is accepted. Also includes a warning fix on the program + fragment uses (bad main() return type). + bz#1900 and bz#1901 reported by g.esp AT free.fr; ok dtucker@ + - (djm) [servconf.c] remove leftover droppings of AuthorizedKeysFile2 + - OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/05/15 08:09:01 + [authfd.c monitor.c serverloop.c] + use FD_CLOEXEC consistently; patch from zion AT x96.org + - djm@cvs.openbsd.org 2011/05/17 07:13:31 + [key.c] + fatal() if asked to generate a legacy ECDSA cert (these don't exist) + and fix the regress test that was trying to generate them :) + - djm@cvs.openbsd.org 2011/05/20 00:55:02 + [servconf.c] + the options TrustedUserCAKeys, RevokedKeysFile, AuthorizedKeysFile + and AuthorizedPrincipalsFile were not being correctly applied in + Match blocks, despite being overridable there; ok dtucker@ + - dtucker@cvs.openbsd.org 2011/05/20 02:00:19 + [servconf.c] + Add comment documenting what should be after the preauth check. ok djm + - djm@cvs.openbsd.org 2011/05/20 03:25:45 + [monitor.c monitor_wrap.c servconf.c servconf.h] + use a macro to define which string options to copy between configs + for Match. This avoids problems caused by forgetting to keep three + code locations in perfect sync and ordering + + "this is at once beautiful and horrible" + ok dtucker@ + - djm@cvs.openbsd.org 2011/05/17 07:13:31 + [regress/cert-userkey.sh] + fatal() if asked to generate a legacy ECDSA cert (these don't exist) + and fix the regress test that was trying to generate them :) + - djm@cvs.openbsd.org 2011/05/20 02:43:36 + [cert-hostkey.sh] + another attempt to generate a v00 ECDSA key that broke the test + ID sync only - portable already had this somehow + - dtucker@cvs.openbsd.org 2011/05/20 05:19:50 + [dynamic-forward.sh] + Prevent races in dynamic forwarding test; ok djm + - dtucker@cvs.openbsd.org 2011/05/20 06:32:30 + [dynamic-forward.sh] + fix dumb error in dynamic-forward test + +20110515 + - (djm) OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/05/05 05:12:08 + [mux.c] + gracefully fall back when ControlPath is too large for a + sockaddr_un. ok markus@ as part of a larger diff + - dtucker@cvs.openbsd.org 2011/05/06 01:03:35 + [sshd_config] + clarify language about overriding defaults. bz#1892, from Petr Cerny + - djm@cvs.openbsd.org 2011/05/06 01:09:53 + [sftp.1] + mention that IPv6 addresses must be enclosed in square brackets; + bz#1845 + - djm@cvs.openbsd.org 2011/05/06 02:05:41 + [sshconnect2.c] + fix memory leak; bz#1849 ok dtucker@ + - djm@cvs.openbsd.org 2011/05/06 21:14:05 + [packet.c packet.h] + set traffic class for IPv6 traffic as we do for IPv4 TOS; + patch from lionel AT mamane.lu via Colin Watson in bz#1855; + ok markus@ + - djm@cvs.openbsd.org 2011/05/06 21:18:02 + [ssh.c ssh_config.5] + add a %L expansion (short-form of the local host name) for ControlPath; + sync some more expansions with LocalCommand; ok markus@ + - djm@cvs.openbsd.org 2011/05/06 21:31:38 + [readconf.c ssh_config.5] + support negated Host matching, e.g. + + Host *.example.org !c.example.org + User mekmitasdigoat + + Will match "a.example.org", "b.example.org", but not "c.example.org" + ok markus@ + - djm@cvs.openbsd.org 2011/05/06 21:34:32 + [clientloop.c mux.c readconf.c readconf.h ssh.c ssh_config.5] + Add a RequestTTY ssh_config option to allow configuration-based + control over tty allocation (like -t/-T); ok markus@ + - djm@cvs.openbsd.org 2011/05/06 21:38:58 + [ssh.c] + fix dropping from previous diff + - djm@cvs.openbsd.org 2011/05/06 22:20:10 + [PROTOCOL.mux] + fix numbering; from bert.wesarg AT googlemail.com + - jmc@cvs.openbsd.org 2011/05/07 23:19:39 + [ssh_config.5] + - tweak previous + - come consistency fixes + ok djm + - jmc@cvs.openbsd.org 2011/05/07 23:20:25 + [ssh.1] + +.It RequestTTY + - djm@cvs.openbsd.org 2011/05/08 12:52:01 + [PROTOCOL.mux clientloop.c clientloop.h mux.c] + improve our behaviour when TTY allocation fails: if we are in + RequestTTY=auto mode (the default), then do not treat at TTY + allocation error as fatal but rather just restore the local TTY + to cooked mode and continue. This is more graceful on devices that + never allocate TTYs. + + If RequestTTY is set to "yes" or "force", then failure to allocate + a TTY is fatal. + + ok markus@ + - djm@cvs.openbsd.org 2011/05/10 05:46:46 + [authfile.c] + despam debug() logs by detecting that we are trying to load a private key + in key_try_load_public() and returning early; ok markus@ + - djm@cvs.openbsd.org 2011/05/11 04:47:06 + [auth.c auth.h auth2-pubkey.c pathnames.h servconf.c servconf.h] + remove support for authorized_keys2; it is a relic from the early days + of protocol v.2 support and has been undocumented for many years; + ok markus@ + - djm@cvs.openbsd.org 2011/05/13 00:05:36 + [authfile.c] + warn on unexpected key type in key_parse_private_type() + - (djm) [packet.c] unbreak portability #endif + +20110510 + - (dtucker) [openbsd-compat/openssl-compat.{c,h}] Bug #1882: fix + --with-ssl-engine which was broken with the change from deprecated + SSLeay_add_all_algorithms(). ok djm + +20110506 + - (dtucker) [openbsd-compat/regress/closefromtest.c] Bug #1875: add prototype + for closefrom() in test code. Report from Dan Wallis via Gentoo. + +20110505 + - (djm) [defines.h] Move up include of netinet/ip.h for IPTOS + definitions. From des AT des.no + - (djm) [Makefile.in WARNING.RNG aclocal.m4 buildpkg.sh.in configure.ac] + [entropy.c ssh-add.c ssh-agent.c ssh-keygen.c ssh-keyscan.c] + [ssh-keysign.c ssh-pkcs11-helper.c ssh-rand-helper.8 ssh-rand-helper.c] + [ssh.c ssh_prng_cmds.in sshd.c contrib/aix/buildbff.sh] + [regress/README.regress] Remove ssh-rand-helper and all its + tentacles. PRNGd seeding has been rolled into entropy.c directly. + Thanks to tim@ for testing on affected platforms. + - OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/03/10 02:52:57 + [auth2-gss.c auth2.c auth.h] + allow GSSAPI authentication to detect when a server-side failure causes + authentication failure and don't count such failures against MaxAuthTries; + bz#1244 from simon AT sxw.org.uk; ok markus@ before lock + - okan@cvs.openbsd.org 2011/03/15 10:36:02 + [ssh-keyscan.c] + use timerclear macro + ok djm@ + - stevesk@cvs.openbsd.org 2011/03/23 15:16:22 + [ssh-keygen.1 ssh-keygen.c] + Add -A option. For each of the key types (rsa1, rsa, dsa and ecdsa) + for which host keys do not exist, generate the host keys with the + default key file path, an empty passphrase, default bits for the key + type, and default comment. This will be used by /etc/rc to generate + new host keys. Idea from deraadt. + ok deraadt + - stevesk@cvs.openbsd.org 2011/03/23 16:24:56 + [ssh-keygen.1] + -q not used in /etc/rc now so remove statement. + - stevesk@cvs.openbsd.org 2011/03/23 16:50:04 + [ssh-keygen.c] + remove -d, documentation removed >10 years ago; ok markus + - jmc@cvs.openbsd.org 2011/03/24 15:29:30 + [ssh-keygen.1] + zap trailing whitespace; + - stevesk@cvs.openbsd.org 2011/03/24 22:14:54 + [ssh-keygen.c] + use strcasecmp() for "clear" cert permission option also; ok djm + - stevesk@cvs.openbsd.org 2011/03/29 18:54:17 + [misc.c misc.h servconf.c] + print ipqos friendly string for sshd -T; ok markus + # sshd -Tf sshd_config|grep ipqos + ipqos lowdelay throughput + - djm@cvs.openbsd.org 2011/04/12 04:23:50 + [ssh-keygen.c] + fix -Wshadow + - djm@cvs.openbsd.org 2011/04/12 05:32:49 + [sshd.c] + exit with 0 status on SIGTERM; bz#1879 + - djm@cvs.openbsd.org 2011/04/13 04:02:48 + [ssh-keygen.1] + improve wording; bz#1861 + - djm@cvs.openbsd.org 2011/04/13 04:09:37 + [ssh-keygen.1] + mention valid -b sizes for ECDSA keys; bz#1862 + - djm@cvs.openbsd.org 2011/04/17 22:42:42 + [PROTOCOL.mux clientloop.c clientloop.h mux.c ssh.1 ssh.c] + allow graceful shutdown of multiplexing: request that a mux server + removes its listener socket and refuse future multiplexing requests; + ok markus@ + - djm@cvs.openbsd.org 2011/04/18 00:46:05 + [ssh-keygen.c] + certificate options are supposed to be packed in lexical order of + option name (though we don't actually enforce this at present). + Move one up that was out of sequence + - djm@cvs.openbsd.org 2011/05/04 21:15:29 + [authfile.c authfile.h ssh-add.c] + allow "ssh-add - < key"; feedback and ok markus@ + - (tim) [configure.ac] Add AC_LANG_SOURCE to OPENSSH_CHECK_CFLAG_COMPILE + so autoreconf 2.68 is happy. + - (tim) [defines.h] Deal with platforms that do not have S_IFSOCK ok djm@ + 20110221 - (dtucker) [contrib/cygwin/ssh-host-config] From Corinna: revamp of the Cygwin-specific service installer script ssh-host-config. The actual @@ -19,6 +469,13 @@ The new script also is more thorough to inform the user why the script failed. Patch from vinschen at redhat com. +20110218 + - OpenBSD CVS Sync + - djm@cvs.openbsd.org 2011/02/16 00:31:14 + [ssh-keysign.c] + make hostbased auth with ECDSA keys work correctly. Based on patch + by harvey.eneman AT oracle.com in bz#1858; ok markus@ (pre-lock) + 20110206 - (dtucker) [openbsd-compat/port-linux.c] Bug #1851: fix syntax error in selinux code. Patch from Leonardo Chiquitto @@ -46,6 +503,14 @@ succeeded before using its result. Patch from cjwatson AT debian.org; bz#1851 +20110127 + - (tim) [config.guess config.sub] Sync with upstream. + - (tim) [configure.ac] Consistent M4 quoting throughout, updated obsolete + AC_TRY_COMPILE with AC_COMPILE_IFELSE, updated obsolete AC_TRY_LINK with + AC_LINK_IFELSE, updated obsolete AC_TRY_RUN with AC_RUN_IFELSE, misc white + space changes for consistency/readability. Makes autoconf 2.68 happy. + "Nice work" djm + 20110125 - (djm) [configure.ac Makefile.in ssh.c openbsd-compat/port-linux.c openbsd-compat/port-linux.h] Move SELinux-specific code from ssh.c to @@ -1256,4 +1721,3 @@ (use "ssh-keygen -t v00 -s ca_key ..." to generate a v00 certificate) ok markus@ - Modified: vendor-crypto/openssh/dist/INSTALL ============================================================================== --- vendor-crypto/openssh/dist/INSTALL Wed Sep 28 08:13:01 2011 (r225824) +++ vendor-crypto/openssh/dist/INSTALL Wed Sep 28 08:14:41 2011 (r225825) @@ -16,9 +16,7 @@ The remaining items are optional. NB. If you operating system supports /dev/random, you should configure OpenSSL to use it. OpenSSH relies on OpenSSL's direct support of -/dev/random, or failing that, either prngd or egd. If you don't have -any of these you will have to rely on ssh-rand-helper, which is inferior -to a good kernel-based solution or prngd. +/dev/random, or failing that, either prngd or egd PRNGD: @@ -262,4 +260,4 @@ Please refer to the "reporting bugs" sec http://www.openssh.com/ -$Id: INSTALL,v 1.85 2010/02/11 22:34:22 djm Exp $ +$Id: INSTALL,v 1.86 2011/05/05 03:48:37 djm Exp $ Modified: vendor-crypto/openssh/dist/Makefile.in ============================================================================== --- vendor-crypto/openssh/dist/Makefile.in Wed Sep 28 08:13:01 2011 (r225824) +++ vendor-crypto/openssh/dist/Makefile.in Wed Sep 28 08:14:41 2011 (r225825) @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.320.4.1 2011/02/04 00:42:13 djm Exp $ +# $Id: Makefile.in,v 1.325 2011/08/05 20:15:18 djm Exp $ # uncomment if you run a non bourne compatable shell. Ie. csh #SHELL = @SH@ @@ -26,7 +26,6 @@ ASKPASS_PROGRAM=$(libexecdir)/ssh-askpas SFTP_SERVER=$(libexecdir)/sftp-server SSH_KEYSIGN=$(libexecdir)/ssh-keysign SSH_PKCS11_HELPER=$(libexecdir)/ssh-pkcs11-helper -RAND_HELPER=$(libexecdir)/ssh-rand-helper PRIVSEP_PATH=@PRIVSEP_PATH@ SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ STRIP_OPT=@STRIP_OPT@ @@ -39,7 +38,6 @@ PATHS= -DSSHDIR=\"$(sysconfdir)\" \ -D_PATH_SSH_PKCS11_HELPER=\"$(SSH_PKCS11_HELPER)\" \ -D_PATH_SSH_PIDDIR=\"$(piddir)\" \ -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\" \ - -DSSH_RAND_HELPER=\"$(RAND_HELPER)\" CC=@CC@ LD=@LD@ @@ -61,10 +59,7 @@ LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ EXEEXT=@EXEEXT@ MANFMT=@MANFMT@ -INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@ -INSTALL_SSH_RAND_HELPER=@INSTALL_SSH_RAND_HELPER@ - -TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) ssh-rand-helper${EXEEXT} sftp-server$(EXEEXT) sftp$(EXEEXT) +TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT) LIBSSH_OBJS=acss.o authfd.o authfile.o bufaux.o bufbn.o buffer.o \ canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \ @@ -94,17 +89,17 @@ SSHDOBJS=sshd.o auth-rhosts.o auth-passw auth2-gss.o gss-serv.o gss-serv-krb5.o \ loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \ sftp-server.o sftp-common.o \ - roaming_common.o roaming_serv.o + roaming_common.o roaming_serv.o \ + sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o -MANPAGES = moduli.5.out scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out ssh-rand-helper.8.out ssh-keysign.8.out ssh-pkcs11-helper.8.out sshd_config.5.out ssh_config.5.out -MANPAGES_IN = moduli.5 scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-rand-helper.8 ssh-keysign.8 ssh-pkcs11-helper.8 sshd_config.5 ssh_config.5 +MANPAGES = moduli.5.out scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out ssh-keysign.8.out ssh-pkcs11-helper.8.out sshd_config.5.out ssh_config.5.out +MANPAGES_IN = moduli.5 scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-keysign.8 ssh-pkcs11-helper.8 sshd_config.5 ssh_config.5 MANTYPE = @MANTYPE@ CONFIGFILES=sshd_config.out ssh_config.out moduli.out CONFIGFILES_IN=sshd_config ssh_config moduli PATHSUBS = \ - -e 's|/etc/ssh/ssh_prng_cmds|$(sysconfdir)/ssh_prng_cmds|g' \ -e 's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \ -e 's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \ -e 's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \ @@ -124,7 +119,7 @@ PATHSUBS = \ FIXPATHSCMD = $(SED) $(PATHSUBS) -all: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) +all: $(CONFIGFILES) $(MANPAGES) $(TARGETS) $(LIBSSH_OBJS): Makefile.in config.h $(SSHOBJS): Makefile.in config.h @@ -175,9 +170,6 @@ sftp-server$(EXEEXT): $(LIBCOMPAT) libss sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o $(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT) -ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o - $(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) - # test driver for the loginrec code - not built by default logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) @@ -198,11 +190,6 @@ $(CONFIGFILES): $(CONFIGFILES_IN) conffile=`echo $@ | sed 's/.out$$//'`; \ $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@ -ssh_prng_cmds.out: ssh_prng_cmds - if test ! -z "$(INSTALL_SSH_PRNG_CMDS)"; then \ - $(PERL) $(srcdir)/fixprogs ssh_prng_cmds $(ENT); \ - fi - # fake rule to stop make trying to compile moduli.o into a binary "moduli.o" moduli: echo @@ -215,7 +202,7 @@ clean: regressclean distclean: regressclean rm -f *.o *.a $(TARGETS) logintest config.cache config.log rm -f *.out core opensshd.init openssh.xml - rm -f Makefile buildpkg.sh config.h config.status ssh_prng_cmds + rm -f Makefile buildpkg.sh config.h config.status rm -f survey.sh openbsd-compat/regress/Makefile *~ rm -rf autom4te.cache (cd openbsd-compat && $(MAKE) distclean) @@ -226,6 +213,8 @@ distclean: regressclean veryclean: distclean rm -f configure config.h.in *.0 +cleandir: veryclean + mrproper: veryclean realclean: veryclean @@ -242,9 +231,9 @@ distprep: catman-do $(AUTORECONF) -rm -rf autom4te.cache -install: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config -install-nokeys: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf -install-nosysconf: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files +install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config +install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf +install-nosysconf: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files check-config: -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config @@ -265,9 +254,6 @@ install-files: $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keygen$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keyscan$(EXEEXT) $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) $(INSTALL) -m 0755 $(STRIP_OPT) sshd$(EXEEXT) $(DESTDIR)$(sbindir)/sshd$(EXEEXT) - if test ! -z "$(INSTALL_SSH_RAND_HELPER)" ; then \ - $(INSTALL) -m 0755 $(STRIP_OPT) ssh-rand-helper$(EXEEXT) $(DESTDIR)$(libexecdir)/ssh-rand-helper$(EXEEXT) ; \ - fi $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign$(EXEEXT) $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) $(INSTALL) -m 0755 $(STRIP_OPT) ssh-pkcs11-helper$(EXEEXT) $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) $(INSTALL) -m 0755 $(STRIP_OPT) sftp$(EXEEXT) $(DESTDIR)$(bindir)/sftp$(EXEEXT) @@ -282,9 +268,6 @@ install-files: $(INSTALL) -m 644 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5 $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5 $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 - if [ ! -z "$(INSTALL_SSH_RAND_HELPER)" ]; then \ - $(INSTALL) -m 644 ssh-rand-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 ; \ - fi $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 @@ -308,13 +291,6 @@ install-sysconf: else \ echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \ fi - @if [ -f ssh_prng_cmds ] && [ ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \ - if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds ] ; then \ - $(INSTALL) -m 644 ssh_prng_cmds.out $(DESTDIR)$(sysconfdir)/ssh_prng_cmds; \ - else \ - echo "$(DESTDIR)$(sysconfdir)/ssh_prng_cmds already exists, install will not overwrite"; \ - fi ; \ - fi @if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \ if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \ echo "moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \ @@ -361,7 +337,6 @@ host-key-force: ssh-keygen$(EXEEXT) uninstallall: uninstall -rm -f $(DESTDIR)$(sysconfdir)/ssh_config -rm -f $(DESTDIR)$(sysconfdir)/sshd_config - -rm -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds -rmdir $(DESTDIR)$(sysconfdir) -rmdir $(DESTDIR)$(bindir) -rmdir $(DESTDIR)$(sbindir) @@ -383,7 +358,6 @@ uninstall: -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) -rm -f $(DESTDIR)$(SSH_PKCS11_HELPER)$(EXEEXT) - -rm -f $(DESTDIR)$(RAND_HELPER)$(EXEEXT) -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 @@ -392,7 +366,6 @@ uninstall: -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 - -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 @@ -462,7 +435,7 @@ survey: survey.sh ssh send-survey: survey mail portable-survey@mindrot.org client error/warning notifications -XXX port0 rfwd (need custom response message) XXX send signals via mux -$OpenBSD: PROTOCOL.mux,v 1.4 2011/01/31 21:42:15 djm Exp $ +$OpenBSD: PROTOCOL.mux,v 1.7 2011/05/08 12:52:01 djm Exp $ Modified: vendor-crypto/openssh/dist/README ============================================================================== --- vendor-crypto/openssh/dist/README Wed Sep 28 08:13:01 2011 (r225824) +++ vendor-crypto/openssh/dist/README Wed Sep 28 08:14:41 2011 (r225825) @@ -1,4 +1,4 @@ -See http://www.openssh.com/txt/release-5.8p2 for the release notes. +See http://www.openssh.com/txt/release-5.9 for the release notes. - A Japanese translation of this document and of the OpenSSH FAQ is - available at http://www.unixuser.org/~haruyama/security/openssh/index.html @@ -62,4 +62,4 @@ References - [6] http://www.openbsd.org/cgi-bin/man.cgi?query=style&sektion=9 [7] http://www.openssh.com/faq.html -$Id: README,v 1.75.4.2 2011/05/03 00:04:21 djm Exp $ +$Id: README,v 1.77.2.2 2011/09/06 23:11:20 djm Exp $ Modified: vendor-crypto/openssh/dist/aclocal.m4 ============================================================================== --- vendor-crypto/openssh/dist/aclocal.m4 Wed Sep 28 08:13:01 2011 (r225824) +++ vendor-crypto/openssh/dist/aclocal.m4 Wed Sep 28 08:14:41 2011 (r225825) @@ -1,8 +1,26 @@ -dnl $Id: aclocal.m4,v 1.6 2005/09/19 16:33:39 tim Exp $ +dnl $Id: aclocal.m4,v 1.8 2011/05/20 01:45:25 djm Exp $ dnl dnl OpenSSH-specific autoconf macros dnl +dnl OSSH_CHECK_CFLAG_COMPILE(check_flag[, define_flag]) +dnl Check that $CC accepts a flag 'check_flag'. If it is supported append +dnl 'define_flag' to $CFLAGS. If 'define_flag' is not specified, then append +dnl 'check_flag'. +AC_DEFUN([OSSH_CHECK_CFLAG_COMPILE], [{ + AC_MSG_CHECKING([if $CC supports $1]) + saved_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $1" + _define_flag="$2" + test "x$_define_flag" = "x" && _define_flag="$1" + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int main(void) { return 0; }]])], + [ AC_MSG_RESULT([yes]) + CFLAGS="$saved_CFLAGS $_define_flag"], + [ AC_MSG_RESULT([no]) + CFLAGS="$saved_CFLAGS" ] + ) +}]) + dnl OSSH_CHECK_HEADER_FOR_FIELD(field, header, symbol) dnl Does AC_EGREP_HEADER on 'header' for the string 'field' @@ -33,16 +51,6 @@ AC_DEFUN(OSSH_CHECK_HEADER_FOR_FIELD, [ fi ]) -dnl OSSH_PATH_ENTROPY_PROG(variablename, command): -dnl Tidiness function, sets 'undef' if not found, and does the AC_SUBST -AC_DEFUN(OSSH_PATH_ENTROPY_PROG, [ - AC_PATH_PROG($1, $2) - if test -z "[$]$1" ; then - $1="undef" - fi - AC_SUBST($1) -]) - dnl Check for socklen_t: historically on BSD it is an int, and in dnl POSIX 1g it is a type of its own, but some platforms use different dnl types for the argument to getsockopt, getpeername, etc. So we Modified: vendor-crypto/openssh/dist/auth-rsa.c ============================================================================== --- vendor-crypto/openssh/dist/auth-rsa.c Wed Sep 28 08:13:01 2011 (r225824) +++ vendor-crypto/openssh/dist/auth-rsa.c Wed Sep 28 08:14:41 2011 (r225825) @@ -1,4 +1,4 @@ -/* $OpenBSD: auth-rsa.c,v 1.79 2010/12/03 23:55:27 djm Exp $ */ +/* $OpenBSD: auth-rsa.c,v 1.80 2011/05/23 03:30:07 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -160,44 +160,27 @@ auth_rsa_challenge_dialog(Key *key) return (success); } -/* - * check if there's user key matching client_n, - * return key if login is allowed, NULL otherwise - */ - -int -auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey) +static int +rsa_key_allowed_in_file(struct passwd *pw, char *file, + const BIGNUM *client_n, Key **rkey) { - char line[SSH_MAX_PUBKEY_BYTES], *file; + char line[SSH_MAX_PUBKEY_BYTES]; int allowed = 0; u_int bits; FILE *f; u_long linenum = 0; Key *key; - /* Temporarily use the user's uid. */ - temporarily_use_uid(pw); - - /* The authorized keys. */ - file = authorized_keys_file(pw); debug("trying public RSA key file %s", file); - f = auth_openkeyfile(file, pw, options.strict_modes); - if (!f) { - xfree(file); - restore_uid(); - return (0); - } - - /* Flag indicating whether the key is allowed. */ - allowed = 0; - - key = key_new(KEY_RSA1); + if ((f = auth_openkeyfile(file, pw, options.strict_modes)) == NULL) + return 0; /* * Go though the accepted keys, looking for the current key. If * found, perform a challenge-response dialog to verify that the * user really has the corresponding private key. */ + key = key_new(KEY_RSA1); while (read_keyfile_line(f, file, line, sizeof(line), &linenum) != -1) { char *cp; char *key_options; @@ -235,7 +218,10 @@ auth_rsa_key_allowed(struct passwd *pw, } /* cp now points to the comment part. */ - /* Check if the we have found the desired key (identified by its modulus). */ + /* + * Check if the we have found the desired key (identified + * by its modulus). + */ if (BN_cmp(key->rsa->n, client_n) != 0) continue; @@ -264,11 +250,7 @@ auth_rsa_key_allowed(struct passwd *pw, break; } - /* Restore the privileged uid. */ - restore_uid(); - /* Close the file. */ - xfree(file); fclose(f); /* return key if allowed */ @@ -276,7 +258,33 @@ auth_rsa_key_allowed(struct passwd *pw, *rkey = key; else key_free(key); - return (allowed); + + return allowed; +} + +/* + * check if there's user key matching client_n, + * return key if login is allowed, NULL otherwise + */ + +int +auth_rsa_key_allowed(struct passwd *pw, BIGNUM *client_n, Key **rkey) +{ + char *file; + u_int i, allowed = 0; + + temporarily_use_uid(pw); + + for (i = 0; !allowed && i < options.num_authkeys_files; i++) { + file = expand_authorized_keys( + options.authorized_keys_files[i], pw); + allowed = rsa_key_allowed_in_file(pw, file, client_n, rkey); + xfree(file); + } + + restore_uid(); + + return allowed; } /* Modified: vendor-crypto/openssh/dist/auth-skey.c ============================================================================== --- vendor-crypto/openssh/dist/auth-skey.c Wed Sep 28 08:13:01 2011 (r225824) +++ vendor-crypto/openssh/dist/auth-skey.c Wed Sep 28 08:14:41 2011 (r225825) @@ -39,6 +39,7 @@ #include "hostfile.h" #include "auth.h" #include "ssh-gss.h" +#include "log.h" #include "monitor_wrap.h" static void * Modified: vendor-crypto/openssh/dist/auth.c ============================================================================== --- vendor-crypto/openssh/dist/auth.c Wed Sep 28 08:13:01 2011 (r225824) +++ vendor-crypto/openssh/dist/auth.c Wed Sep 28 08:14:41 2011 (r225825) @@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.91 2010/11/29 23:45:51 djm Exp $ */ +/* $OpenBSD: auth.c,v 1.94 2011/05/23 03:33:38 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -331,7 +331,7 @@ auth_root_allowed(char *method) * * This returns a buffer allocated by xmalloc. */ -static char * +char * expand_authorized_keys(const char *filename, struct passwd *pw) { *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:19:45 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88715106566B; Wed, 28 Sep 2011 08:19:45 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5F5AA8FC15; Wed, 28 Sep 2011 08:19:45 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S8JjLb062771; Wed, 28 Sep 2011 08:19:45 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S8JjmL062770; Wed, 28 Sep 2011 08:19:45 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109280819.p8S8JjmL062770@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 28 Sep 2011 08:19:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225826 - vendor-crypto/openssh/5.9p1 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:19:45 -0000 Author: des Date: Wed Sep 28 08:19:45 2011 New Revision: 225826 URL: http://svn.freebsd.org/changeset/base/225826 Log: Tag OpenSSH 5.9p1 Added: vendor-crypto/openssh/5.9p1/ - copied from r225825, vendor-crypto/openssh/dist/ From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:47:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B4241065673; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 675668FC20; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S8lI7l063637; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S8lIRf063633; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109280847.p8S8lIRf063633@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 28 Sep 2011 08:47:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:47:18 -0000 Author: bz Date: Wed Sep 28 08:47:17 2011 New Revision: 225827 URL: http://svn.freebsd.org/changeset/base/225827 Log: Fix handling of corrupt compress(1)ed data. [11:04] Add missing length checks on unix socket addresses. [11:05] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-11:04.compress Security: CVE-2011-2895 [11:04] Security: FreeBSD-SA-11:05.unix Modified: stable/7/sys/kern/uipc_usrreq.c stable/7/usr.bin/compress/zopen.c stable/7/usr.bin/gzip/zuncompress.c Changes in other areas also in this revision: Modified: head/sys/kern/uipc_usrreq.c head/usr.bin/compress/zopen.c head/usr.bin/gzip/zuncompress.c releng/7.3/UPDATING releng/7.3/sys/conf/newvers.sh releng/7.3/sys/kern/uipc_usrreq.c releng/7.3/usr.bin/compress/zopen.c releng/7.3/usr.bin/gzip/zuncompress.c releng/7.4/UPDATING releng/7.4/sys/conf/newvers.sh releng/7.4/sys/kern/uipc_usrreq.c releng/7.4/usr.bin/compress/zopen.c releng/7.4/usr.bin/gzip/zuncompress.c releng/8.1/UPDATING releng/8.1/sys/conf/newvers.sh releng/8.1/sys/kern/uipc_usrreq.c releng/8.1/usr.bin/compress/zopen.c releng/8.1/usr.bin/gzip/zuncompress.c releng/8.2/UPDATING releng/8.2/sys/conf/newvers.sh releng/8.2/sys/kern/uipc_usrreq.c releng/8.2/usr.bin/compress/zopen.c releng/8.2/usr.bin/gzip/zuncompress.c stable/8/sys/kern/uipc_usrreq.c stable/8/usr.bin/compress/zopen.c stable/8/usr.bin/gzip/zuncompress.c stable/9/sys/kern/uipc_usrreq.c stable/9/usr.bin/compress/zopen.c stable/9/usr.bin/gzip/zuncompress.c Modified: stable/7/sys/kern/uipc_usrreq.c ============================================================================== --- stable/7/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/7/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) @@ -395,6 +395,8 @@ uipc_bind(struct socket *so, struct sock unp = sotounpcb(so); KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); + if (soun->sun_len > sizeof(struct sockaddr_un)) + return (EINVAL); namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); if (namelen <= 0) return (EINVAL); @@ -1142,6 +1144,8 @@ unp_connect(struct socket *so, struct so unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); + if (nam->sa_len > sizeof(struct sockaddr_un)) + return (EINVAL); len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); if (len <= 0) return (EINVAL); Modified: stable/7/usr.bin/compress/zopen.c ============================================================================== --- stable/7/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/7/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) @@ -490,7 +490,7 @@ zread(void *cookie, char *rbp, int num) block_compress = maxbits & BLOCK_MASK; maxbits &= BIT_MASK; maxmaxcode = 1L << maxbits; - if (maxbits > BITS) { + if (maxbits > BITS || maxbits < 12) { errno = EFTYPE; return (-1); } @@ -517,17 +517,28 @@ zread(void *cookie, char *rbp, int num) for (code = 255; code >= 0; code--) tab_prefixof(code) = 0; clear_flg = 1; - free_ent = FIRST - 1; - if ((code = getcode(zs)) == -1) /* O, untimely death! */ - break; + free_ent = FIRST; + oldcode = -1; + continue; } incode = code; - /* Special case for KwKwK string. */ + /* Special case for kWkWk string. */ if (code >= free_ent) { + if (code > free_ent || oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *stackp++ = finchar; code = oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (code >= 256) { @@ -544,7 +555,7 @@ middle: do { } while (stackp > de_stack); /* Generate the new entry. */ - if ((code = free_ent) < maxmaxcode) { + if ((code = free_ent) < maxmaxcode && oldcode != -1) { tab_prefixof(code) = (u_short) oldcode; tab_suffixof(code) = finchar; free_ent = code + 1; Modified: stable/7/usr.bin/gzip/zuncompress.c ============================================================================== --- stable/7/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/7/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; zs->zs_maxbits &= BIT_MASK; zs->zs_maxmaxcode = 1L << zs->zs_maxbits; - if (zs->zs_maxbits > BITS) { + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { errno = EFTYPE; return (-1); } @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) } zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ - return (0); /* Get out of here */ - - /* First code must be 8 bits = char. */ - *bp++ = (u_char)zs->u.r.zs_finchar; - count--; + zs->u.r.zs_oldcode = -1; zs->u.r.zs_stackp = de_stack; while ((zs->u.r.zs_code = getcode(zs)) > -1) { @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) zs->u.r.zs_code--) tab_prefixof(zs->u.r.zs_code) = 0; zs->zs_clear_flg = 1; - zs->zs_free_ent = FIRST - 1; - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ - break; + zs->zs_free_ent = FIRST; + zs->u.r.zs_oldcode = -1; + continue; } zs->u.r.zs_incode = zs->u.r.zs_code; /* Special case for KwKwK string. */ if (zs->u.r.zs_code >= zs->zs_free_ent) { + if (zs->u.r.zs_code > zs->zs_free_ent || + zs->u.r.zs_oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; zs->u.r.zs_code = zs->u.r.zs_oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (zs->u.r.zs_code >= 256) { @@ -302,7 +308,8 @@ middle: do { } while (zs->u.r.zs_stackp > de_stack); /* Generate the new entry. */ - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && + zs->u.r.zs_oldcode != -1) { tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; zs->zs_free_ent = zs->u.r.zs_code + 1; From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:47:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F3B81065677; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7B1348FC21; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S8lIRe063645; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S8lIm6063641; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109280847.p8S8lIm6063641@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 28 Sep 2011 08:47:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:47:18 -0000 Author: bz Date: Wed Sep 28 08:47:17 2011 New Revision: 225827 URL: http://svn.freebsd.org/changeset/base/225827 Log: Fix handling of corrupt compress(1)ed data. [11:04] Add missing length checks on unix socket addresses. [11:05] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-11:04.compress Security: CVE-2011-2895 [11:04] Security: FreeBSD-SA-11:05.unix Modified: stable/8/sys/kern/uipc_usrreq.c stable/8/usr.bin/compress/zopen.c stable/8/usr.bin/gzip/zuncompress.c Changes in other areas also in this revision: Modified: head/sys/kern/uipc_usrreq.c head/usr.bin/compress/zopen.c head/usr.bin/gzip/zuncompress.c releng/7.3/UPDATING releng/7.3/sys/conf/newvers.sh releng/7.3/sys/kern/uipc_usrreq.c releng/7.3/usr.bin/compress/zopen.c releng/7.3/usr.bin/gzip/zuncompress.c releng/7.4/UPDATING releng/7.4/sys/conf/newvers.sh releng/7.4/sys/kern/uipc_usrreq.c releng/7.4/usr.bin/compress/zopen.c releng/7.4/usr.bin/gzip/zuncompress.c releng/8.1/UPDATING releng/8.1/sys/conf/newvers.sh releng/8.1/sys/kern/uipc_usrreq.c releng/8.1/usr.bin/compress/zopen.c releng/8.1/usr.bin/gzip/zuncompress.c releng/8.2/UPDATING releng/8.2/sys/conf/newvers.sh releng/8.2/sys/kern/uipc_usrreq.c releng/8.2/usr.bin/compress/zopen.c releng/8.2/usr.bin/gzip/zuncompress.c stable/7/sys/kern/uipc_usrreq.c stable/7/usr.bin/compress/zopen.c stable/7/usr.bin/gzip/zuncompress.c stable/9/sys/kern/uipc_usrreq.c stable/9/usr.bin/compress/zopen.c stable/9/usr.bin/gzip/zuncompress.c Modified: stable/8/sys/kern/uipc_usrreq.c ============================================================================== --- stable/8/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/8/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) @@ -419,6 +419,8 @@ uipc_bind(struct socket *so, struct sock unp = sotounpcb(so); KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); + if (soun->sun_len > sizeof(struct sockaddr_un)) + return (EINVAL); namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); if (namelen <= 0) return (EINVAL); @@ -1168,6 +1170,8 @@ unp_connect(struct socket *so, struct so unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); + if (nam->sa_len > sizeof(struct sockaddr_un)) + return (EINVAL); len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); if (len <= 0) return (EINVAL); Modified: stable/8/usr.bin/compress/zopen.c ============================================================================== --- stable/8/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/8/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) @@ -490,7 +490,7 @@ zread(void *cookie, char *rbp, int num) block_compress = maxbits & BLOCK_MASK; maxbits &= BIT_MASK; maxmaxcode = 1L << maxbits; - if (maxbits > BITS) { + if (maxbits > BITS || maxbits < 12) { errno = EFTYPE; return (-1); } @@ -517,17 +517,28 @@ zread(void *cookie, char *rbp, int num) for (code = 255; code >= 0; code--) tab_prefixof(code) = 0; clear_flg = 1; - free_ent = FIRST - 1; - if ((code = getcode(zs)) == -1) /* O, untimely death! */ - break; + free_ent = FIRST; + oldcode = -1; + continue; } incode = code; - /* Special case for KwKwK string. */ + /* Special case for kWkWk string. */ if (code >= free_ent) { + if (code > free_ent || oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *stackp++ = finchar; code = oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (code >= 256) { @@ -544,7 +555,7 @@ middle: do { } while (stackp > de_stack); /* Generate the new entry. */ - if ((code = free_ent) < maxmaxcode) { + if ((code = free_ent) < maxmaxcode && oldcode != -1) { tab_prefixof(code) = (u_short) oldcode; tab_suffixof(code) = finchar; free_ent = code + 1; Modified: stable/8/usr.bin/gzip/zuncompress.c ============================================================================== --- stable/8/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/8/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; zs->zs_maxbits &= BIT_MASK; zs->zs_maxmaxcode = 1L << zs->zs_maxbits; - if (zs->zs_maxbits > BITS) { + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { errno = EFTYPE; return (-1); } @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) } zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ - return (0); /* Get out of here */ - - /* First code must be 8 bits = char. */ - *bp++ = (u_char)zs->u.r.zs_finchar; - count--; + zs->u.r.zs_oldcode = -1; zs->u.r.zs_stackp = de_stack; while ((zs->u.r.zs_code = getcode(zs)) > -1) { @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) zs->u.r.zs_code--) tab_prefixof(zs->u.r.zs_code) = 0; zs->zs_clear_flg = 1; - zs->zs_free_ent = FIRST - 1; - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ - break; + zs->zs_free_ent = FIRST; + zs->u.r.zs_oldcode = -1; + continue; } zs->u.r.zs_incode = zs->u.r.zs_code; /* Special case for KwKwK string. */ if (zs->u.r.zs_code >= zs->zs_free_ent) { + if (zs->u.r.zs_code > zs->zs_free_ent || + zs->u.r.zs_oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; zs->u.r.zs_code = zs->u.r.zs_oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (zs->u.r.zs_code >= 256) { @@ -302,7 +308,8 @@ middle: do { } while (zs->u.r.zs_stackp > de_stack); /* Generate the new entry. */ - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && + zs->u.r.zs_oldcode != -1) { tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; zs->zs_free_ent = zs->u.r.zs_code + 1; From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:47:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A358C1065678; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8EFF88FC14; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S8lIKi063653; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S8lIP0063649; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109280847.p8S8lIP0063649@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 28 Sep 2011 08:47:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:47:18 -0000 Author: bz Date: Wed Sep 28 08:47:17 2011 New Revision: 225827 URL: http://svn.freebsd.org/changeset/base/225827 Log: Fix handling of corrupt compress(1)ed data. [11:04] Add missing length checks on unix socket addresses. [11:05] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-11:04.compress Security: CVE-2011-2895 [11:04] Security: FreeBSD-SA-11:05.unix Modified: stable/9/sys/kern/uipc_usrreq.c stable/9/usr.bin/compress/zopen.c stable/9/usr.bin/gzip/zuncompress.c Changes in other areas also in this revision: Modified: head/sys/kern/uipc_usrreq.c head/usr.bin/compress/zopen.c head/usr.bin/gzip/zuncompress.c releng/7.3/UPDATING releng/7.3/sys/conf/newvers.sh releng/7.3/sys/kern/uipc_usrreq.c releng/7.3/usr.bin/compress/zopen.c releng/7.3/usr.bin/gzip/zuncompress.c releng/7.4/UPDATING releng/7.4/sys/conf/newvers.sh releng/7.4/sys/kern/uipc_usrreq.c releng/7.4/usr.bin/compress/zopen.c releng/7.4/usr.bin/gzip/zuncompress.c releng/8.1/UPDATING releng/8.1/sys/conf/newvers.sh releng/8.1/sys/kern/uipc_usrreq.c releng/8.1/usr.bin/compress/zopen.c releng/8.1/usr.bin/gzip/zuncompress.c releng/8.2/UPDATING releng/8.2/sys/conf/newvers.sh releng/8.2/sys/kern/uipc_usrreq.c releng/8.2/usr.bin/compress/zopen.c releng/8.2/usr.bin/gzip/zuncompress.c stable/7/sys/kern/uipc_usrreq.c stable/7/usr.bin/compress/zopen.c stable/7/usr.bin/gzip/zuncompress.c stable/8/sys/kern/uipc_usrreq.c stable/8/usr.bin/compress/zopen.c stable/8/usr.bin/gzip/zuncompress.c Modified: stable/9/sys/kern/uipc_usrreq.c ============================================================================== --- stable/9/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/9/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) @@ -462,6 +462,8 @@ uipc_bind(struct socket *so, struct sock unp = sotounpcb(so); KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); + if (soun->sun_len > sizeof(struct sockaddr_un)) + return (EINVAL); namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); if (namelen <= 0) return (EINVAL); @@ -1252,6 +1254,8 @@ unp_connect(struct socket *so, struct so unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); + if (nam->sa_len > sizeof(struct sockaddr_un)) + return (EINVAL); len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); if (len <= 0) return (EINVAL); Modified: stable/9/usr.bin/compress/zopen.c ============================================================================== --- stable/9/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/9/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) @@ -486,7 +486,7 @@ zread(void *cookie, char *rbp, int num) block_compress = maxbits & BLOCK_MASK; maxbits &= BIT_MASK; maxmaxcode = 1L << maxbits; - if (maxbits > BITS) { + if (maxbits > BITS || maxbits < 12) { errno = EFTYPE; return (-1); } @@ -513,17 +513,28 @@ zread(void *cookie, char *rbp, int num) for (code = 255; code >= 0; code--) tab_prefixof(code) = 0; clear_flg = 1; - free_ent = FIRST - 1; - if ((code = getcode(zs)) == -1) /* O, untimely death! */ - break; + free_ent = FIRST; + oldcode = -1; + continue; } incode = code; - /* Special case for KwKwK string. */ + /* Special case for kWkWk string. */ if (code >= free_ent) { + if (code > free_ent || oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *stackp++ = finchar; code = oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (code >= 256) { @@ -540,7 +551,7 @@ middle: do { } while (stackp > de_stack); /* Generate the new entry. */ - if ((code = free_ent) < maxmaxcode) { + if ((code = free_ent) < maxmaxcode && oldcode != -1) { tab_prefixof(code) = (u_short) oldcode; tab_suffixof(code) = finchar; free_ent = code + 1; Modified: stable/9/usr.bin/gzip/zuncompress.c ============================================================================== --- stable/9/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) +++ stable/9/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; zs->zs_maxbits &= BIT_MASK; zs->zs_maxmaxcode = 1L << zs->zs_maxbits; - if (zs->zs_maxbits > BITS) { + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { errno = EFTYPE; return (-1); } @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) } zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ - return (0); /* Get out of here */ - - /* First code must be 8 bits = char. */ - *bp++ = (u_char)zs->u.r.zs_finchar; - count--; + zs->u.r.zs_oldcode = -1; zs->u.r.zs_stackp = de_stack; while ((zs->u.r.zs_code = getcode(zs)) > -1) { @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) zs->u.r.zs_code--) tab_prefixof(zs->u.r.zs_code) = 0; zs->zs_clear_flg = 1; - zs->zs_free_ent = FIRST - 1; - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ - break; + zs->zs_free_ent = FIRST; + zs->u.r.zs_oldcode = -1; + continue; } zs->u.r.zs_incode = zs->u.r.zs_code; /* Special case for KwKwK string. */ if (zs->u.r.zs_code >= zs->zs_free_ent) { + if (zs->u.r.zs_code > zs->zs_free_ent || + zs->u.r.zs_oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; zs->u.r.zs_code = zs->u.r.zs_oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (zs->u.r.zs_code >= 256) { @@ -302,7 +308,8 @@ middle: do { } while (zs->u.r.zs_stackp > de_stack); /* Generate the new entry. */ - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && + zs->u.r.zs_oldcode != -1) { tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; zs->zs_free_ent = zs->u.r.zs_code + 1; From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:47:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9F531065679; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C62458FC15; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S8lIQx063678; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S8lIDC063657; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109280847.p8S8lIDC063657@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 28 Sep 2011 08:47:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org X-SVN-Group: releng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:47:19 -0000 Author: bz Date: Wed Sep 28 08:47:17 2011 New Revision: 225827 URL: http://svn.freebsd.org/changeset/base/225827 Log: Fix handling of corrupt compress(1)ed data. [11:04] Add missing length checks on unix socket addresses. [11:05] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-11:04.compress Security: CVE-2011-2895 [11:04] Security: FreeBSD-SA-11:05.unix Modified: releng/7.3/UPDATING releng/7.3/sys/conf/newvers.sh releng/7.3/sys/kern/uipc_usrreq.c releng/7.3/usr.bin/compress/zopen.c releng/7.3/usr.bin/gzip/zuncompress.c releng/7.4/UPDATING releng/7.4/sys/conf/newvers.sh releng/7.4/sys/kern/uipc_usrreq.c releng/7.4/usr.bin/compress/zopen.c releng/7.4/usr.bin/gzip/zuncompress.c releng/8.1/UPDATING releng/8.1/sys/conf/newvers.sh releng/8.1/sys/kern/uipc_usrreq.c releng/8.1/usr.bin/compress/zopen.c releng/8.1/usr.bin/gzip/zuncompress.c releng/8.2/UPDATING releng/8.2/sys/conf/newvers.sh releng/8.2/sys/kern/uipc_usrreq.c releng/8.2/usr.bin/compress/zopen.c releng/8.2/usr.bin/gzip/zuncompress.c Changes in other areas also in this revision: Modified: head/sys/kern/uipc_usrreq.c head/usr.bin/compress/zopen.c head/usr.bin/gzip/zuncompress.c stable/7/sys/kern/uipc_usrreq.c stable/7/usr.bin/compress/zopen.c stable/7/usr.bin/gzip/zuncompress.c stable/8/sys/kern/uipc_usrreq.c stable/8/usr.bin/compress/zopen.c stable/8/usr.bin/gzip/zuncompress.c stable/9/sys/kern/uipc_usrreq.c stable/9/usr.bin/compress/zopen.c stable/9/usr.bin/gzip/zuncompress.c Modified: releng/7.3/UPDATING ============================================================================== --- releng/7.3/UPDATING Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.3/UPDATING Wed Sep 28 08:47:17 2011 (r225827) @@ -8,6 +8,11 @@ Items affecting the ports and packages s /usr/ports/UPDATING. Please read that file before running portupgrade. +20110928: p7 FreeBSD-SA-11:04.compress, FreeBSD-SA-11:05.unix + Fix handling of corrupt compress(1)ed data. [11:04] + + Add missing length checks on unix socket addresses. [11:05] + 20110528: p6 FreeBSD-SA-11:02.bind Fix BIND remote DoS with large RRSIG RRsets and negative caching. Modified: releng/7.3/sys/conf/newvers.sh ============================================================================== --- releng/7.3/sys/conf/newvers.sh Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.3/sys/conf/newvers.sh Wed Sep 28 08:47:17 2011 (r225827) @@ -32,7 +32,7 @@ TYPE="FreeBSD" REVISION="7.3" -BRANCH="RELEASE-p6" +BRANCH="RELEASE-p7" if [ "X${BRANCH_OVERRIDE}" != "X" ]; then BRANCH=${BRANCH_OVERRIDE} fi Modified: releng/7.3/sys/kern/uipc_usrreq.c ============================================================================== --- releng/7.3/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.3/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) @@ -395,6 +395,8 @@ uipc_bind(struct socket *so, struct sock unp = sotounpcb(so); KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); + if (soun->sun_len > sizeof(struct sockaddr_un)) + return (EINVAL); namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); if (namelen <= 0) return (EINVAL); @@ -1141,6 +1143,8 @@ unp_connect(struct socket *so, struct so unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); + if (nam->sa_len > sizeof(struct sockaddr_un)) + return (EINVAL); len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); if (len <= 0) return (EINVAL); Modified: releng/7.3/usr.bin/compress/zopen.c ============================================================================== --- releng/7.3/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.3/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) @@ -490,7 +490,7 @@ zread(void *cookie, char *rbp, int num) block_compress = maxbits & BLOCK_MASK; maxbits &= BIT_MASK; maxmaxcode = 1L << maxbits; - if (maxbits > BITS) { + if (maxbits > BITS || maxbits < 12) { errno = EFTYPE; return (-1); } @@ -517,17 +517,28 @@ zread(void *cookie, char *rbp, int num) for (code = 255; code >= 0; code--) tab_prefixof(code) = 0; clear_flg = 1; - free_ent = FIRST - 1; - if ((code = getcode(zs)) == -1) /* O, untimely death! */ - break; + free_ent = FIRST; + oldcode = -1; + continue; } incode = code; - /* Special case for KwKwK string. */ + /* Special case for kWkWk string. */ if (code >= free_ent) { + if (code > free_ent || oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *stackp++ = finchar; code = oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (code >= 256) { @@ -544,7 +555,7 @@ middle: do { } while (stackp > de_stack); /* Generate the new entry. */ - if ((code = free_ent) < maxmaxcode) { + if ((code = free_ent) < maxmaxcode && oldcode != -1) { tab_prefixof(code) = (u_short) oldcode; tab_suffixof(code) = finchar; free_ent = code + 1; Modified: releng/7.3/usr.bin/gzip/zuncompress.c ============================================================================== --- releng/7.3/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.3/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; zs->zs_maxbits &= BIT_MASK; zs->zs_maxmaxcode = 1L << zs->zs_maxbits; - if (zs->zs_maxbits > BITS) { + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { errno = EFTYPE; return (-1); } @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) } zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ - return (0); /* Get out of here */ - - /* First code must be 8 bits = char. */ - *bp++ = (u_char)zs->u.r.zs_finchar; - count--; + zs->u.r.zs_oldcode = -1; zs->u.r.zs_stackp = de_stack; while ((zs->u.r.zs_code = getcode(zs)) > -1) { @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) zs->u.r.zs_code--) tab_prefixof(zs->u.r.zs_code) = 0; zs->zs_clear_flg = 1; - zs->zs_free_ent = FIRST - 1; - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ - break; + zs->zs_free_ent = FIRST; + zs->u.r.zs_oldcode = -1; + continue; } zs->u.r.zs_incode = zs->u.r.zs_code; /* Special case for KwKwK string. */ if (zs->u.r.zs_code >= zs->zs_free_ent) { + if (zs->u.r.zs_code > zs->zs_free_ent || + zs->u.r.zs_oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; zs->u.r.zs_code = zs->u.r.zs_oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (zs->u.r.zs_code >= 256) { @@ -302,7 +308,8 @@ middle: do { } while (zs->u.r.zs_stackp > de_stack); /* Generate the new entry. */ - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && + zs->u.r.zs_oldcode != -1) { tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; zs->zs_free_ent = zs->u.r.zs_code + 1; Modified: releng/7.4/UPDATING ============================================================================== --- releng/7.4/UPDATING Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.4/UPDATING Wed Sep 28 08:47:17 2011 (r225827) @@ -8,6 +8,11 @@ Items affecting the ports and packages s /usr/ports/UPDATING. Please read that file before running portupgrade. +20110928: p3 FreeBSD-SA-11:04.compress, FreeBSD-SA-11:05.unix + Fix handling of corrupt compress(1)ed data. [11:04] + + Add missing length checks on unix socket addresses. [11:05] + 20110528: p2 FreeBSD-SA-11:02.bind Fix BIND remote DoS with large RRSIG RRsets and negative caching. Modified: releng/7.4/sys/conf/newvers.sh ============================================================================== --- releng/7.4/sys/conf/newvers.sh Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.4/sys/conf/newvers.sh Wed Sep 28 08:47:17 2011 (r225827) @@ -32,7 +32,7 @@ TYPE="FreeBSD" REVISION="7.4" -BRANCH="RELEASE-p2" +BRANCH="RELEASE-p3" if [ "X${BRANCH_OVERRIDE}" != "X" ]; then BRANCH=${BRANCH_OVERRIDE} fi Modified: releng/7.4/sys/kern/uipc_usrreq.c ============================================================================== --- releng/7.4/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.4/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) @@ -395,6 +395,8 @@ uipc_bind(struct socket *so, struct sock unp = sotounpcb(so); KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); + if (soun->sun_len > sizeof(struct sockaddr_un)) + return (EINVAL); namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); if (namelen <= 0) return (EINVAL); @@ -1141,6 +1143,8 @@ unp_connect(struct socket *so, struct so unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); + if (nam->sa_len > sizeof(struct sockaddr_un)) + return (EINVAL); len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); if (len <= 0) return (EINVAL); Modified: releng/7.4/usr.bin/compress/zopen.c ============================================================================== --- releng/7.4/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.4/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) @@ -490,7 +490,7 @@ zread(void *cookie, char *rbp, int num) block_compress = maxbits & BLOCK_MASK; maxbits &= BIT_MASK; maxmaxcode = 1L << maxbits; - if (maxbits > BITS) { + if (maxbits > BITS || maxbits < 12) { errno = EFTYPE; return (-1); } @@ -517,17 +517,28 @@ zread(void *cookie, char *rbp, int num) for (code = 255; code >= 0; code--) tab_prefixof(code) = 0; clear_flg = 1; - free_ent = FIRST - 1; - if ((code = getcode(zs)) == -1) /* O, untimely death! */ - break; + free_ent = FIRST; + oldcode = -1; + continue; } incode = code; - /* Special case for KwKwK string. */ + /* Special case for kWkWk string. */ if (code >= free_ent) { + if (code > free_ent || oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *stackp++ = finchar; code = oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (code >= 256) { @@ -544,7 +555,7 @@ middle: do { } while (stackp > de_stack); /* Generate the new entry. */ - if ((code = free_ent) < maxmaxcode) { + if ((code = free_ent) < maxmaxcode && oldcode != -1) { tab_prefixof(code) = (u_short) oldcode; tab_suffixof(code) = finchar; free_ent = code + 1; Modified: releng/7.4/usr.bin/gzip/zuncompress.c ============================================================================== --- releng/7.4/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/7.4/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; zs->zs_maxbits &= BIT_MASK; zs->zs_maxmaxcode = 1L << zs->zs_maxbits; - if (zs->zs_maxbits > BITS) { + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { errno = EFTYPE; return (-1); } @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) } zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ - return (0); /* Get out of here */ - - /* First code must be 8 bits = char. */ - *bp++ = (u_char)zs->u.r.zs_finchar; - count--; + zs->u.r.zs_oldcode = -1; zs->u.r.zs_stackp = de_stack; while ((zs->u.r.zs_code = getcode(zs)) > -1) { @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) zs->u.r.zs_code--) tab_prefixof(zs->u.r.zs_code) = 0; zs->zs_clear_flg = 1; - zs->zs_free_ent = FIRST - 1; - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ - break; + zs->zs_free_ent = FIRST; + zs->u.r.zs_oldcode = -1; + continue; } zs->u.r.zs_incode = zs->u.r.zs_code; /* Special case for KwKwK string. */ if (zs->u.r.zs_code >= zs->zs_free_ent) { + if (zs->u.r.zs_code > zs->zs_free_ent || + zs->u.r.zs_oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; zs->u.r.zs_code = zs->u.r.zs_oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (zs->u.r.zs_code >= 256) { @@ -302,7 +308,8 @@ middle: do { } while (zs->u.r.zs_stackp > de_stack); /* Generate the new entry. */ - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && + zs->u.r.zs_oldcode != -1) { tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; zs->zs_free_ent = zs->u.r.zs_code + 1; Modified: releng/8.1/UPDATING ============================================================================== --- releng/8.1/UPDATING Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.1/UPDATING Wed Sep 28 08:47:17 2011 (r225827) @@ -15,6 +15,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 8. debugging tools present in HEAD were left in place because sun4v support still needs work to become production ready. +20110928: p5 FreeBSD-SA-11:04.compress, FreeBSD-SA-11:05.unix + Fix handling of corrupt compress(1)ed data. [11:04] + + Add missing length checks on unix socket addresses. [11:05] + 20110528: p4 FreeBSD-SA-11:02.bind Fix BIND remote DoS with large RRSIG RRsets and negative caching. Modified: releng/8.1/sys/conf/newvers.sh ============================================================================== --- releng/8.1/sys/conf/newvers.sh Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.1/sys/conf/newvers.sh Wed Sep 28 08:47:17 2011 (r225827) @@ -32,7 +32,7 @@ TYPE="FreeBSD" REVISION="8.1" -BRANCH="RELEASE-p4" +BRANCH="RELEASE-p5" if [ "X${BRANCH_OVERRIDE}" != "X" ]; then BRANCH=${BRANCH_OVERRIDE} fi Modified: releng/8.1/sys/kern/uipc_usrreq.c ============================================================================== --- releng/8.1/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.1/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) @@ -394,6 +394,8 @@ uipc_bind(struct socket *so, struct sock unp = sotounpcb(so); KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); + if (soun->sun_len > sizeof(struct sockaddr_un)) + return (EINVAL); namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); if (namelen <= 0) return (EINVAL); @@ -1140,6 +1142,8 @@ unp_connect(struct socket *so, struct so unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); + if (nam->sa_len > sizeof(struct sockaddr_un)) + return (EINVAL); len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); if (len <= 0) return (EINVAL); Modified: releng/8.1/usr.bin/compress/zopen.c ============================================================================== --- releng/8.1/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.1/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) @@ -490,7 +490,7 @@ zread(void *cookie, char *rbp, int num) block_compress = maxbits & BLOCK_MASK; maxbits &= BIT_MASK; maxmaxcode = 1L << maxbits; - if (maxbits > BITS) { + if (maxbits > BITS || maxbits < 12) { errno = EFTYPE; return (-1); } @@ -517,17 +517,28 @@ zread(void *cookie, char *rbp, int num) for (code = 255; code >= 0; code--) tab_prefixof(code) = 0; clear_flg = 1; - free_ent = FIRST - 1; - if ((code = getcode(zs)) == -1) /* O, untimely death! */ - break; + free_ent = FIRST; + oldcode = -1; + continue; } incode = code; - /* Special case for KwKwK string. */ + /* Special case for kWkWk string. */ if (code >= free_ent) { + if (code > free_ent || oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *stackp++ = finchar; code = oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (code >= 256) { @@ -544,7 +555,7 @@ middle: do { } while (stackp > de_stack); /* Generate the new entry. */ - if ((code = free_ent) < maxmaxcode) { + if ((code = free_ent) < maxmaxcode && oldcode != -1) { tab_prefixof(code) = (u_short) oldcode; tab_suffixof(code) = finchar; free_ent = code + 1; Modified: releng/8.1/usr.bin/gzip/zuncompress.c ============================================================================== --- releng/8.1/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.1/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; zs->zs_maxbits &= BIT_MASK; zs->zs_maxmaxcode = 1L << zs->zs_maxbits; - if (zs->zs_maxbits > BITS) { + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { errno = EFTYPE; return (-1); } @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) } zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ - return (0); /* Get out of here */ - - /* First code must be 8 bits = char. */ - *bp++ = (u_char)zs->u.r.zs_finchar; - count--; + zs->u.r.zs_oldcode = -1; zs->u.r.zs_stackp = de_stack; while ((zs->u.r.zs_code = getcode(zs)) > -1) { @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) zs->u.r.zs_code--) tab_prefixof(zs->u.r.zs_code) = 0; zs->zs_clear_flg = 1; - zs->zs_free_ent = FIRST - 1; - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ - break; + zs->zs_free_ent = FIRST; + zs->u.r.zs_oldcode = -1; + continue; } zs->u.r.zs_incode = zs->u.r.zs_code; /* Special case for KwKwK string. */ if (zs->u.r.zs_code >= zs->zs_free_ent) { + if (zs->u.r.zs_code > zs->zs_free_ent || + zs->u.r.zs_oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; zs->u.r.zs_code = zs->u.r.zs_oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (zs->u.r.zs_code >= 256) { @@ -302,7 +308,8 @@ middle: do { } while (zs->u.r.zs_stackp > de_stack); /* Generate the new entry. */ - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && + zs->u.r.zs_oldcode != -1) { tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; zs->zs_free_ent = zs->u.r.zs_code + 1; Modified: releng/8.2/UPDATING ============================================================================== --- releng/8.2/UPDATING Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.2/UPDATING Wed Sep 28 08:47:17 2011 (r225827) @@ -15,6 +15,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 8. debugging tools present in HEAD were left in place because sun4v support still needs work to become production ready. +20110928: p3 FreeBSD-SA-11:04.compress, FreeBSD-SA-11:05.unix + Fix handling of corrupt compress(1)ed data. [11:04] + + Add missing length checks on unix socket addresses. [11:05] + 20110528: p2 FreeBSD-SA-11:02.bind Fix BIND remote DoS with large RRSIG RRsets and negative caching. Modified: releng/8.2/sys/conf/newvers.sh ============================================================================== --- releng/8.2/sys/conf/newvers.sh Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.2/sys/conf/newvers.sh Wed Sep 28 08:47:17 2011 (r225827) @@ -32,7 +32,7 @@ TYPE="FreeBSD" REVISION="8.2" -BRANCH="RELEASE-p2" +BRANCH="RELEASE-p3" if [ "X${BRANCH_OVERRIDE}" != "X" ]; then BRANCH=${BRANCH_OVERRIDE} fi Modified: releng/8.2/sys/kern/uipc_usrreq.c ============================================================================== --- releng/8.2/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.2/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) @@ -419,6 +419,8 @@ uipc_bind(struct socket *so, struct sock unp = sotounpcb(so); KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); + if (soun->sun_len > sizeof(struct sockaddr_un)) + return (EINVAL); namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); if (namelen <= 0) return (EINVAL); @@ -1165,6 +1167,8 @@ unp_connect(struct socket *so, struct so unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); + if (nam->sa_len > sizeof(struct sockaddr_un)) + return (EINVAL); len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); if (len <= 0) return (EINVAL); Modified: releng/8.2/usr.bin/compress/zopen.c ============================================================================== --- releng/8.2/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.2/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) @@ -490,7 +490,7 @@ zread(void *cookie, char *rbp, int num) block_compress = maxbits & BLOCK_MASK; maxbits &= BIT_MASK; maxmaxcode = 1L << maxbits; - if (maxbits > BITS) { + if (maxbits > BITS || maxbits < 12) { errno = EFTYPE; return (-1); } @@ -517,17 +517,28 @@ zread(void *cookie, char *rbp, int num) for (code = 255; code >= 0; code--) tab_prefixof(code) = 0; clear_flg = 1; - free_ent = FIRST - 1; - if ((code = getcode(zs)) == -1) /* O, untimely death! */ - break; + free_ent = FIRST; + oldcode = -1; + continue; } incode = code; - /* Special case for KwKwK string. */ + /* Special case for kWkWk string. */ if (code >= free_ent) { + if (code > free_ent || oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *stackp++ = finchar; code = oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (code >= 256) { @@ -544,7 +555,7 @@ middle: do { } while (stackp > de_stack); /* Generate the new entry. */ - if ((code = free_ent) < maxmaxcode) { + if ((code = free_ent) < maxmaxcode && oldcode != -1) { tab_prefixof(code) = (u_short) oldcode; tab_suffixof(code) = finchar; free_ent = code + 1; Modified: releng/8.2/usr.bin/gzip/zuncompress.c ============================================================================== --- releng/8.2/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) +++ releng/8.2/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; zs->zs_maxbits &= BIT_MASK; zs->zs_maxmaxcode = 1L << zs->zs_maxbits; - if (zs->zs_maxbits > BITS) { + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { errno = EFTYPE; return (-1); } @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) } zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ - return (0); /* Get out of here */ - - /* First code must be 8 bits = char. */ - *bp++ = (u_char)zs->u.r.zs_finchar; - count--; + zs->u.r.zs_oldcode = -1; zs->u.r.zs_stackp = de_stack; while ((zs->u.r.zs_code = getcode(zs)) > -1) { @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) zs->u.r.zs_code--) tab_prefixof(zs->u.r.zs_code) = 0; zs->zs_clear_flg = 1; - zs->zs_free_ent = FIRST - 1; - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ - break; + zs->zs_free_ent = FIRST; + zs->u.r.zs_oldcode = -1; + continue; } zs->u.r.zs_incode = zs->u.r.zs_code; /* Special case for KwKwK string. */ if (zs->u.r.zs_code >= zs->zs_free_ent) { + if (zs->u.r.zs_code > zs->zs_free_ent || + zs->u.r.zs_oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; zs->u.r.zs_code = zs->u.r.zs_oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (zs->u.r.zs_code >= 256) { @@ -302,7 +308,8 @@ middle: do { } while (zs->u.r.zs_stackp > de_stack); /* Generate the new entry. */ - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && + zs->u.r.zs_oldcode != -1) { tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; zs->zs_free_ent = zs->u.r.zs_code + 1; From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:47:19 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C00E106567A; Wed, 28 Sep 2011 08:47:19 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ED0F28FC16; Wed, 28 Sep 2011 08:47:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8S8lI4m063686; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8S8lIHV063682; Wed, 28 Sep 2011 08:47:18 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109280847.p8S8lIHV063682@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 28 Sep 2011 08:47:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:47:19 -0000 Author: bz Date: Wed Sep 28 08:47:17 2011 New Revision: 225827 URL: http://svn.freebsd.org/changeset/base/225827 Log: Fix handling of corrupt compress(1)ed data. [11:04] Add missing length checks on unix socket addresses. [11:05] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-11:04.compress Security: CVE-2011-2895 [11:04] Security: FreeBSD-SA-11:05.unix Modified: head/sys/kern/uipc_usrreq.c head/usr.bin/compress/zopen.c head/usr.bin/gzip/zuncompress.c Changes in other areas also in this revision: Modified: releng/7.3/UPDATING releng/7.3/sys/conf/newvers.sh releng/7.3/sys/kern/uipc_usrreq.c releng/7.3/usr.bin/compress/zopen.c releng/7.3/usr.bin/gzip/zuncompress.c releng/7.4/UPDATING releng/7.4/sys/conf/newvers.sh releng/7.4/sys/kern/uipc_usrreq.c releng/7.4/usr.bin/compress/zopen.c releng/7.4/usr.bin/gzip/zuncompress.c releng/8.1/UPDATING releng/8.1/sys/conf/newvers.sh releng/8.1/sys/kern/uipc_usrreq.c releng/8.1/usr.bin/compress/zopen.c releng/8.1/usr.bin/gzip/zuncompress.c releng/8.2/UPDATING releng/8.2/sys/conf/newvers.sh releng/8.2/sys/kern/uipc_usrreq.c releng/8.2/usr.bin/compress/zopen.c releng/8.2/usr.bin/gzip/zuncompress.c stable/7/sys/kern/uipc_usrreq.c stable/7/usr.bin/compress/zopen.c stable/7/usr.bin/gzip/zuncompress.c stable/8/sys/kern/uipc_usrreq.c stable/8/usr.bin/compress/zopen.c stable/8/usr.bin/gzip/zuncompress.c stable/9/sys/kern/uipc_usrreq.c stable/9/usr.bin/compress/zopen.c stable/9/usr.bin/gzip/zuncompress.c Modified: head/sys/kern/uipc_usrreq.c ============================================================================== --- head/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) +++ head/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) @@ -462,6 +462,8 @@ uipc_bind(struct socket *so, struct sock unp = sotounpcb(so); KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); + if (soun->sun_len > sizeof(struct sockaddr_un)) + return (EINVAL); namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); if (namelen <= 0) return (EINVAL); @@ -1252,6 +1254,8 @@ unp_connect(struct socket *so, struct so unp = sotounpcb(so); KASSERT(unp != NULL, ("unp_connect: unp == NULL")); + if (nam->sa_len > sizeof(struct sockaddr_un)) + return (EINVAL); len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); if (len <= 0) return (EINVAL); Modified: head/usr.bin/compress/zopen.c ============================================================================== --- head/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) +++ head/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) @@ -486,7 +486,7 @@ zread(void *cookie, char *rbp, int num) block_compress = maxbits & BLOCK_MASK; maxbits &= BIT_MASK; maxmaxcode = 1L << maxbits; - if (maxbits > BITS) { + if (maxbits > BITS || maxbits < 12) { errno = EFTYPE; return (-1); } @@ -513,17 +513,28 @@ zread(void *cookie, char *rbp, int num) for (code = 255; code >= 0; code--) tab_prefixof(code) = 0; clear_flg = 1; - free_ent = FIRST - 1; - if ((code = getcode(zs)) == -1) /* O, untimely death! */ - break; + free_ent = FIRST; + oldcode = -1; + continue; } incode = code; - /* Special case for KwKwK string. */ + /* Special case for kWkWk string. */ if (code >= free_ent) { + if (code > free_ent || oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *stackp++ = finchar; code = oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (code >= 256) { @@ -540,7 +551,7 @@ middle: do { } while (stackp > de_stack); /* Generate the new entry. */ - if ((code = free_ent) < maxmaxcode) { + if ((code = free_ent) < maxmaxcode && oldcode != -1) { tab_prefixof(code) = (u_short) oldcode; tab_suffixof(code) = finchar; free_ent = code + 1; Modified: head/usr.bin/gzip/zuncompress.c ============================================================================== --- head/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) +++ head/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; zs->zs_maxbits &= BIT_MASK; zs->zs_maxmaxcode = 1L << zs->zs_maxbits; - if (zs->zs_maxbits > BITS) { + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { errno = EFTYPE; return (-1); } @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) } zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ - return (0); /* Get out of here */ - - /* First code must be 8 bits = char. */ - *bp++ = (u_char)zs->u.r.zs_finchar; - count--; + zs->u.r.zs_oldcode = -1; zs->u.r.zs_stackp = de_stack; while ((zs->u.r.zs_code = getcode(zs)) > -1) { @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) zs->u.r.zs_code--) tab_prefixof(zs->u.r.zs_code) = 0; zs->zs_clear_flg = 1; - zs->zs_free_ent = FIRST - 1; - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ - break; + zs->zs_free_ent = FIRST; + zs->u.r.zs_oldcode = -1; + continue; } zs->u.r.zs_incode = zs->u.r.zs_code; /* Special case for KwKwK string. */ if (zs->u.r.zs_code >= zs->zs_free_ent) { + if (zs->u.r.zs_code > zs->zs_free_ent || + zs->u.r.zs_oldcode == -1) { + /* Bad stream. */ + errno = EINVAL; + return (-1); + } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; zs->u.r.zs_code = zs->u.r.zs_oldcode; } + /* + * The above condition ensures that code < free_ent. + * The construction of tab_prefixof in turn guarantees that + * each iteration decreases code and therefore stack usage is + * bound by 1 << BITS - 256. + */ /* Generate output characters in reverse order. */ while (zs->u.r.zs_code >= 256) { @@ -302,7 +308,8 @@ middle: do { } while (zs->u.r.zs_stackp > de_stack); /* Generate the new entry. */ - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && + zs->u.r.zs_oldcode != -1) { tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; zs->zs_free_ent = zs->u.r.zs_code + 1; From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 08:51:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07ABE106566B; Wed, 28 Sep 2011 08:51:37 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 8B8398FC18; Wed, 28 Sep 2011 08:51:36 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id C486B25D3860; Wed, 28 Sep 2011 08:51:34 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id D2C73BD3D28; Wed, 28 Sep 2011 08:51:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id IplEqJpYVB90; Wed, 28 Sep 2011 08:51:33 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id C0C92BD3C22; Wed, 28 Sep 2011 08:51:32 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <86bou5sbif.wl%poyopoyo@puripuri.plala.or.jp> Date: Wed, 28 Sep 2011 08:51:31 +0000 Content-Transfer-Encoding: 7bit Message-Id: <51E92007-864E-4A61-A333-CD1B8865D20C@FreeBSD.org> References: <201109230051.p8N0pbV2045995@svn.freebsd.org> <86bou5sbif.wl%poyopoyo@puripuri.plala.or.jp> To: poyopoyo@puripuri.plala.or.jp X-Mailer: Apple Mail (2.1084) Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-other@freebsd.org, Ken Smith Subject: Re: svn commit: r225736 - stable/9 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 08:51:37 -0000 On Sep 28, 2011, at 1:26 AM, poyopoyo@puripuri.plala.or.jp wrote: >> X-SVN-Group: stable-other > > Perhaps time has come to modify sysadmin/conf/mailer.conf to create > stable-9 group for stable/9? I have emailed postmaster to create the list yesterday and I have an approved diff for mailer.conf already waiting on the list creation to happen. /bz -- Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family. From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 10:31:50 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A492D106564A; Wed, 28 Sep 2011 10:31:50 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 2152A8FC20; Wed, 28 Sep 2011 10:31:49 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p8SAVjc0011025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Sep 2011 13:31:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p8SAVjtW047243; Wed, 28 Sep 2011 13:31:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p8SAVja3047242; Wed, 28 Sep 2011 13:31:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 28 Sep 2011 13:31:45 +0300 From: Kostik Belousov To: Adrian Chadd Message-ID: <20110928103145.GU1511@deviant.kiev.zoral.com.ua> References: <201109280307.p8S37qKB052603@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hze9XmyoPo8YE0yg" Content-Disposition: inline In-Reply-To: <201109280307.p8S37qKB052603@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225821 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 10:31:50 -0000 --hze9XmyoPo8YE0yg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 28, 2011 at 03:07:52AM +0000, Adrian Chadd wrote: > Author: adrian > Date: Wed Sep 28 03:07:51 2011 > New Revision: 225821 > URL: http://svn.freebsd.org/changeset/base/225821 >=20 > Log: > Fix lock order to be correcter. > =20 > Nothing else locks these two queues (cabq, avp mcastq), but it should > be consistent and correct. >=20 > Modified: > head/sys/dev/ath/if_ath.c >=20 > Modified: head/sys/dev/ath/if_ath.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/dev/ath/if_ath.c Wed Sep 28 03:05:04 2011 (r225820) > +++ head/sys/dev/ath/if_ath.c Wed Sep 28 03:07:51 2011 (r225821) > @@ -2620,8 +2620,8 @@ ath_beacon_generate(struct ath_softc *sc > } > /* NB: gated by beacon so safe to start here */ > ath_hal_txstart(ah, cabq->axq_qnum); > - ATH_TXQ_UNLOCK(cabq); > ATH_TXQ_UNLOCK(&avp->av_mcastq); > + ATH_TXQ_UNLOCK(cabq); > } > return bf; > } Does the unlock order matter ? Unlock cannot block. I do not object against the change, rather, I am nit-picking against the commit message. --hze9XmyoPo8YE0yg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6C95EACgkQC3+MBN1Mb4gEXQCg9sTuILdWjTClNXiFH+70Pdk/ 3ToAnR/cHzUQtWvaY89CKJ9DftwVnJCZ =XjQa -----END PGP SIGNATURE----- --hze9XmyoPo8YE0yg-- From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 11:53:10 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 586D2106566B; Wed, 28 Sep 2011 11:53:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id E43E88FC16; Wed, 28 Sep 2011 11:53:09 +0000 (UTC) Received: by yia13 with SMTP id 13so7923645yia.13 for ; Wed, 28 Sep 2011 04:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Ujaz/Pom78GrMnzCFu8tPhb7XNWZ8mJU9XbJJz1RqOs=; b=vNbHjokUysvR9EyaYwzTLigATDGqkpaEkH03xkbF4RmO9ECYmJFdLTPn5EHcwE+wh3 VlE9FTEQlATT1Ch/tudVDFUUd62O3C/IP+XAYTozpbIrdaifIRg+cHltTsqyknSNezAq gPwfQhpPSXfKAlZACLnr8IODzxl+Dtm4ahOzA= MIME-Version: 1.0 Received: by 10.236.79.72 with SMTP id h48mr56309654yhe.4.1317209031951; Wed, 28 Sep 2011 04:23:51 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Wed, 28 Sep 2011 04:23:51 -0700 (PDT) In-Reply-To: <20110928103145.GU1511@deviant.kiev.zoral.com.ua> References: <201109280307.p8S37qKB052603@svn.freebsd.org> <20110928103145.GU1511@deviant.kiev.zoral.com.ua> Date: Wed, 28 Sep 2011 19:23:51 +0800 X-Google-Sender-Auth: ri9phJI9sEVlEaWuVChLHtwcl5c Message-ID: From: Adrian Chadd To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225821 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 11:53:10 -0000 On 28 September 2011 18:31, Kostik Belousov wrote: > Does the unlock order matter ? Unlock cannot block. > > I do not object against the change, rather, I am nit-picking against the > commit message. Nope it doesn't. It's just a cosmetic change. Adrian From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 11:57:10 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85567106564A; Wed, 28 Sep 2011 11:57:10 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 752978FC14; Wed, 28 Sep 2011 11:57:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SBvASh071984; Wed, 28 Sep 2011 11:57:10 GMT (envelope-from mm@svn.freebsd.org) Received: (from mm@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SBvAdx071982; Wed, 28 Sep 2011 11:57:10 GMT (envelope-from mm@svn.freebsd.org) Message-Id: <201109281157.p8SBvAdx071982@svn.freebsd.org> From: Martin Matuska Date: Wed, 28 Sep 2011 11:57:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225828 - head/cddl/contrib/opensolaris/lib/libzfs/common X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 11:57:10 -0000 Author: mm Date: Wed Sep 28 11:57:10 2011 New Revision: 225828 URL: http://svn.freebsd.org/changeset/base/225828 Log: Remove assertion that prevents zfs rename of datasets with mountpoint=none or mountpoint=legacy that have children datasets. This also fixes dataset rename when receiving incremental snapshots as reported on freebsd-fs@ This assertion was made triggerable by opensolaris change #10196. PR: bin/160400 Reviewed by: pjd MFC after: 1 week Modified: head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_changelist.c Modified: head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_changelist.c ============================================================================== --- head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_changelist.c Wed Sep 28 08:47:17 2011 (r225827) +++ head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_changelist.c Wed Sep 28 11:57:10 2011 (r225828) @@ -467,7 +467,6 @@ change_one(zfs_handle_t *zhp, void *data * This is necessary when the original mountpoint * is legacy or none. */ - ASSERT(!clp->cl_alldependents); verify(uu_list_insert_before(clp->cl_list, uu_list_first(clp->cl_list), cn) == 0); } From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 12:04:04 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 271AA1065670; Wed, 28 Sep 2011 12:04:04 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id DB02A8FC18; Wed, 28 Sep 2011 12:04:03 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:290b:85d7:b1ec:6922] (unknown [IPv6:2001:7b8:3a7:0:290b:85d7:b1ec:6922]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 86EF15C59; Wed, 28 Sep 2011 14:04:00 +0200 (CEST) Message-ID: <4E830D31.10207@FreeBSD.org> Date: Wed, 28 Sep 2011 14:04:01 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20110922 Thunderbird/7.0 MIME-Version: 1.0 To: Alexander Best References: <201109271902.p8RJ2isK037034@svn.freebsd.org> <20110927231104.GA13143@freebsd.org> In-Reply-To: <20110927231104.GA13143@freebsd.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Dag-Erling Smorgrav Subject: Re: svn commit: r225815 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 12:04:04 -0000 On 2011-09-28 01:11, Alexander Best wrote: > On Tue Sep 27 11, Dag-Erling Smorgrav wrote: >> Author: des >> Date: Tue Sep 27 19:02:44 2011 >> New Revision: 225815 >> URL: http://svn.freebsd.org/changeset/base/225815 =2E.. >> --- head/usr.bin/fetch/fetch.1 Tue Sep 27 18:57:26 2011 (r225814) >> +++ head/usr.bin/fetch/fetch.1 Tue Sep 27 19:02:44 2011 (r225815) >> @@ -1,5 +1,5 @@ >> .\"- >> -.\" Copyright (c) 2000-2004 Dag-Erling Co?dan Sm?rgrav >> +.\" Copyright (c) 2000-2011 Dag-Erling Sm?rgrav > > your name isn't being displayed correctly here. =2E.. >> Modified: head/usr.bin/fetch/fetch.c >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >> --- head/usr.bin/fetch/fetch.c Tue Sep 27 18:57:26 2011 (r225814) >> +++ head/usr.bin/fetch/fetch.c Tue Sep 27 19:02:44 2011 (r225815) >> @@ -1,5 +1,5 @@ >> /*- >> - * Copyright (c) 2000-2004 Dag-Erling Co=EFdan Sm=F8rgrav >> + * Copyright (c) 2000-2011 Dag-Erling Sm=F8rgrav > > here your name gets displayed correctly. The first file is plain ASCII, and has character 0xf8 for the letter =F8.= The second file is UTF-8 without BOM, and uses 0xc3 0xb8 to represent the same letter. Maybe it would be nice if both files were UTF-8, but I'm not sure if manpages support that. From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 12:47:25 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3FD1106566B; Wed, 28 Sep 2011 12:47:24 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 794AE8FC0C; Wed, 28 Sep 2011 12:47:24 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 0575B1FFC35; Wed, 28 Sep 2011 12:47:23 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id B4AFF8455D; Wed, 28 Sep 2011 14:47:22 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Dimitry Andric References: <201109271902.p8RJ2isK037034@svn.freebsd.org> <20110927231104.GA13143@freebsd.org> <4E830D31.10207@FreeBSD.org> Date: Wed, 28 Sep 2011 14:47:22 +0200 In-Reply-To: <4E830D31.10207@FreeBSD.org> (Dimitry Andric's message of "Wed, 28 Sep 2011 14:04:01 +0200") Message-ID: <86y5x896lh.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, Alexander Best , svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225815 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 12:47:25 -0000 Dimitry Andric writes: > The first file is plain ASCII, and has character 0xf8 for the letter =C3= =B8. Not plain ASCII, but ISO-8859-1. > The second file is UTF-8 without BOM, and uses 0xc3 0xb8 to represent > the same letter. > > Maybe it would be nice if both files were UTF-8, but I'm not sure if > manpages support that. They do. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 12:54:03 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E00E1065673 for ; Wed, 28 Sep 2011 12:54:03 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo-p00-ob6.rzone.de (mo-p00-ob6.rzone.de [IPv6:2a01:238:20a:202:53f0::1]) by mx1.freebsd.org (Postfix) with ESMTP id EC6148FC17 for ; Wed, 28 Sep 2011 12:54:02 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/avgusCdvwXOZ/NA7x/bvTm77bHZLGPBRSvKJ5HAJyjk80tUFDQ== X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de ([2001:6f8:13f0:31f:5e26:aff:fe1e:99a9]) by smtp.strato.de (cohen mo32) (RZmta 26.7) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id V05653n8SBtjQB for ; Wed, 28 Sep 2011 14:53:56 +0200 (MEST) Received: by britannica.bec.de (sSMTP sendmail emulation); Wed, 28 Sep 2011 14:53:54 +0200 Date: Wed, 28 Sep 2011 14:53:54 +0200 From: Joerg Sonnenberger To: svn-src-all@freebsd.org Message-ID: <20110928125354.GA3802@britannica.bec.de> References: <201109271902.p8RJ2isK037034@svn.freebsd.org> <20110927231104.GA13143@freebsd.org> <4E830D31.10207@FreeBSD.org> <86y5x896lh.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86y5x896lh.fsf@ds4.des.no> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: svn commit: r225815 - head/usr.bin/fetch X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 12:54:03 -0000 On Wed, Sep 28, 2011 at 02:47:22PM +0200, Dag-Erling Smørgrav wrote: > > Maybe it would be nice if both files were UTF-8, but I'm not sure if > > manpages support that. > > They do. Not really. If it seems to work, it is by accident, not by design. Joerg From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 13:08:52 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B358106566B; Wed, 28 Sep 2011 13:08:52 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4A18B8FC19; Wed, 28 Sep 2011 13:08:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SD8qvB074291; Wed, 28 Sep 2011 13:08:52 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SD8qGk074284; Wed, 28 Sep 2011 13:08:52 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109281308.p8SD8qGk074284@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 28 Sep 2011 13:08:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225830 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 13:08:52 -0000 Author: pjd Date: Wed Sep 28 13:08:51 2011 New Revision: 225830 URL: http://svn.freebsd.org/changeset/base/225830 Log: After every activemap change flush disk's write cache, so that write reordering won't make the actual write to be committed before marking the coresponding extent as dirty. It can be disabled in configuration file. If BIO_FLUSH is not supported by the underlying file system we log a warning and never send BIO_FLUSH again to that GEOM provider. MFC after: 3 days Modified: head/sbin/hastd/hast.conf.5 head/sbin/hastd/hast.h head/sbin/hastd/hastd.c head/sbin/hastd/parse.y head/sbin/hastd/primary.c head/sbin/hastd/token.l Modified: head/sbin/hastd/hast.conf.5 ============================================================================== --- head/sbin/hastd/hast.conf.5 Wed Sep 28 12:13:15 2011 (r225829) +++ head/sbin/hastd/hast.conf.5 Wed Sep 28 13:08:51 2011 (r225830) @@ -63,6 +63,7 @@ checksum compression timeout exec +metaflush "on" | "off" on { # Node section @@ -85,12 +86,14 @@ resource { local timeout exec + metaflush "on" | "off" on { # Resource-node section name # Required local + metaflush "on" | "off" # Required remote source @@ -100,6 +103,7 @@ resource { name # Required local + metaflush "on" | "off" # Required remote source @@ -318,6 +322,25 @@ It can be one of: .Ar secondary , .Ar primary . .Pp +.It Ic metaflush on | off +.Pp +When set to +.Va on , +flush write cache of the local provider after every metadata (activemap) update. +Flushing write cache ensures that provider will not reorder writes and that +metadata will be properly updated before real data is stored. +If the local provider does not support flushing write cache (it returns +.Er EOPNOTSUPP +on the +.Cm BIO_FLUSH +request), +.Nm hastd +will disable +.Ic metaflush +automatically. +The default value is +.Va on . +.Pp .It Ic name Aq name .Pp GEOM provider name that will appear as Modified: head/sbin/hastd/hast.h ============================================================================== --- head/sbin/hastd/hast.h Wed Sep 28 12:13:15 2011 (r225829) +++ head/sbin/hastd/hast.h Wed Sep 28 13:08:51 2011 (r225830) @@ -167,6 +167,8 @@ struct hast_resource { off_t hr_local_mediasize; /* Sector size of local provider. */ unsigned int hr_local_sectorsize; + /* Flush write cache on metadata updates? */ + int hr_metaflush; /* Descriptor for /dev/ggctl communication. */ int hr_ggatefd; Modified: head/sbin/hastd/hastd.c ============================================================================== --- head/sbin/hastd/hastd.c Wed Sep 28 12:13:15 2011 (r225829) +++ head/sbin/hastd/hastd.c Wed Sep 28 13:08:51 2011 (r225830) @@ -386,6 +386,12 @@ resource_needs_restart(const struct hast return (true); if (strcmp(res0->hr_exec, res1->hr_exec) != 0) return (true); + /* + * When metaflush has changed we don't really need restart, + * but it is just easier this way. + */ + if (res0->hr_metaflush != res1->hr_metaflush) + return (true); } return (false); } @@ -416,6 +422,8 @@ resource_needs_reload(const struct hast_ return (true); if (strcmp(res0->hr_exec, res1->hr_exec) != 0) return (true); + if (res0->hr_metaflush != res1->hr_metaflush) + return (true); return (false); } @@ -436,6 +444,7 @@ resource_reload(const struct hast_resour nv_add_int32(nvout, (int32_t)res->hr_compression, "compression"); nv_add_int32(nvout, (int32_t)res->hr_timeout, "timeout"); nv_add_string(nvout, res->hr_exec, "exec"); + nv_add_int32(nvout, (int32_t)res->hr_metaflush, "metaflush"); if (nv_error(nvout) != 0) { nv_free(nvout); pjdlog_error("Unable to allocate header for reload message."); @@ -591,12 +600,13 @@ hastd_reload(void) * recreating it. * * We do just reload (send SIGHUP to worker process) if we act as - * PRIMARY, but only if remote address, replication mode, timeout or - * execution path has changed. For those, there is no need to restart - * worker process. + * PRIMARY, but only if remote address, source address, replication + * mode, timeout, execution path or metaflush has changed. + * For those, there is no need to restart worker process. * If PRIMARY receives SIGHUP, it will reconnect if remote address or - * replication mode has changed or simply set new timeout if only - * timeout has changed. + * source address has changed or it will set new timeout if only timeout + * has changed or it will update metaflush if only metaflush has + * changed. */ TAILQ_FOREACH_SAFE(nres, &newcfg->hc_resources, hr_next, tres) { TAILQ_FOREACH(cres, &cfg->hc_resources, hr_next) { @@ -627,6 +637,7 @@ hastd_reload(void) cres->hr_timeout = nres->hr_timeout; strlcpy(cres->hr_exec, nres->hr_exec, sizeof(cres->hr_exec)); + cres->hr_metaflush = nres->hr_metaflush; if (cres->hr_workerpid != 0) resource_reload(cres); } Modified: head/sbin/hastd/parse.y ============================================================================== --- head/sbin/hastd/parse.y Wed Sep 28 12:13:15 2011 (r225829) +++ head/sbin/hastd/parse.y Wed Sep 28 13:08:51 2011 (r225830) @@ -68,9 +68,11 @@ static int depth0_checksum; static int depth0_compression; static int depth0_timeout; static char depth0_exec[PATH_MAX]; +static int depth0_metaflush; static char depth1_provname[PATH_MAX]; static char depth1_localpath[PATH_MAX]; +static int depth1_metaflush; extern void yyrestart(FILE *); @@ -197,6 +199,7 @@ yy_config_parse(const char *config, bool strlcpy(depth0_listen_tcp6, HASTD_LISTEN_TCP6, sizeof(depth0_listen_tcp6)); depth0_exec[0] = '\0'; + depth0_metaflush = 1; lconfig = calloc(1, sizeof(*lconfig)); if (lconfig == NULL) { @@ -328,6 +331,13 @@ yy_config_parse(const char *config, bool strlcpy(curres->hr_exec, depth0_exec, sizeof(curres->hr_exec)); } + if (curres->hr_metaflush == -1) { + /* + * Metaflush is not set at resource-level. + * Use global or default setting. + */ + curres->hr_metaflush = depth0_metaflush; + } } return (lconfig); @@ -355,8 +365,8 @@ yy_config_free(struct hastd_config *conf } %} -%token CONTROL LISTEN PORT REPLICATION CHECKSUM COMPRESSION -%token TIMEOUT EXEC EXTENTSIZE RESOURCE NAME LOCAL REMOTE SOURCE ON +%token CONTROL LISTEN PORT REPLICATION CHECKSUM COMPRESSION METAFLUSH +%token TIMEOUT EXEC EXTENTSIZE RESOURCE NAME LOCAL REMOTE SOURCE ON OFF %token FULLSYNC MEMSYNC ASYNC NONE CRC32 SHA256 HOLE LZF %token NUM STR OB CB @@ -364,6 +374,7 @@ yy_config_free(struct hastd_config *conf %type replication_type %type checksum_type %type compression_type +%type boolean %union { @@ -396,6 +407,8 @@ statement: | exec_statement | + metaflush_statement + | node_statement | resource_statement @@ -585,6 +598,34 @@ exec_statement: EXEC STR } ; +metaflush_statement: METAFLUSH boolean + { + switch (depth) { + case 0: + depth0_metaflush = $2; + break; + case 1: + PJDLOG_ASSERT(curres != NULL); + depth1_metaflush = $2; + break; + case 2: + if (!mynode) + break; + PJDLOG_ASSERT(curres != NULL); + curres->hr_metaflush = $2; + break; + default: + PJDLOG_ABORT("metaflush at wrong depth level"); + } + } + ; + +boolean: + ON { $$ = 1; } + | + OFF { $$ = 0; } + ; + node_statement: ON node_start OB node_entries CB { mynode = false; @@ -660,6 +701,13 @@ resource_statement: RESOURCE resource_st strlcpy(curres->hr_localpath, depth1_localpath, sizeof(curres->hr_localpath)); } + if (curres->hr_metaflush == -1 && depth1_metaflush != -1) { + /* + * Metaflush is not set at node-level, + * but is set at resource-level, use it. + */ + curres->hr_metaflush = depth1_metaflush; + } /* * If provider name is not given, use resource name @@ -713,6 +761,7 @@ resource_start: STR */ depth1_provname[0] = '\0'; depth1_localpath[0] = '\0'; + depth1_metaflush = -1; hadmynode = false; curres = calloc(1, sizeof(*curres)); @@ -739,6 +788,7 @@ resource_start: STR curres->hr_provname[0] = '\0'; curres->hr_localpath[0] = '\0'; curres->hr_localfd = -1; + curres->hr_metaflush = -1; curres->hr_remoteaddr[0] = '\0'; curres->hr_sourceaddr[0] = '\0'; curres->hr_ggateunit = -1; @@ -761,6 +811,8 @@ resource_entry: | exec_statement | + metaflush_statement + | name_statement | local_statement @@ -869,6 +921,8 @@ resource_node_entry: remote_statement | source_statement + | + metaflush_statement ; remote_statement: REMOTE remote_str Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Wed Sep 28 12:13:15 2011 (r225829) +++ head/sbin/hastd/primary.c Wed Sep 28 13:08:51 2011 (r225830) @@ -296,6 +296,17 @@ hast_activemap_flush(struct hast_resourc pjdlog_errno(LOG_ERR, "Unable to flush activemap to disk"); return (-1); } + if (res->hr_metaflush == 1 && g_flush(res->hr_localfd) == -1) { + if (errno == EOPNOTSUPP) { + pjdlog_warning("The %s provider doesn't support flushing write cache. Disabling it.", + res->hr_localpath); + res->hr_metaflush = 0; + } else { + pjdlog_errno(LOG_ERR, + "Unable to flush disk cache on activemap update"); + return (-1); + } + } return (0); } @@ -1999,6 +2010,7 @@ primary_config_reload(struct hast_resour nv_assert(nv, "compression"); nv_assert(nv, "timeout"); nv_assert(nv, "exec"); + nv_assert(nv, "metaflush"); ncomps = HAST_NCOMPONENTS; @@ -2009,6 +2021,7 @@ primary_config_reload(struct hast_resour #define MODIFIED_COMPRESSION 0x10 #define MODIFIED_TIMEOUT 0x20 #define MODIFIED_EXEC 0x40 +#define MODIFIED_METAFLUSH 0x80 modified = 0; vstr = nv_get_string(nv, "remoteaddr"); @@ -2050,6 +2063,11 @@ primary_config_reload(struct hast_resour strlcpy(gres->hr_exec, vstr, sizeof(gres->hr_exec)); modified |= MODIFIED_EXEC; } + vint = nv_get_int32(nv, "metaflush"); + if (gres->hr_metaflush != vint) { + gres->hr_metaflush = vint; + modified |= MODIFIED_METAFLUSH; + } /* * Change timeout for connected sockets. @@ -2099,6 +2117,7 @@ primary_config_reload(struct hast_resour #undef MODIFIED_COMPRESSION #undef MODIFIED_TIMEOUT #undef MODIFIED_EXEC +#undef MODIFIED_METAFLUSH pjdlog_info("Configuration reloaded successfully."); } Modified: head/sbin/hastd/token.l ============================================================================== --- head/sbin/hastd/token.l Wed Sep 28 12:13:15 2011 (r225829) +++ head/sbin/hastd/token.l Wed Sep 28 13:08:51 2011 (r225830) @@ -53,12 +53,14 @@ checksum { DP; return CHECKSUM; } compression { DP; return COMPRESSION; } timeout { DP; return TIMEOUT; } exec { DP; return EXEC; } +metaflush { DP; return METAFLUSH; } resource { DP; return RESOURCE; } name { DP; return NAME; } local { DP; return LOCAL; } remote { DP; return REMOTE; } source { DP; return SOURCE; } on { DP; return ON; } +off { DP; return OFF; } fullsync { DP; return FULLSYNC; } memsync { DP; return MEMSYNC; } async { DP; return ASYNC; } From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 13:13:43 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5653106564A; Wed, 28 Sep 2011 13:13:43 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C542C8FC0A; Wed, 28 Sep 2011 13:13:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SDDhCs074482; Wed, 28 Sep 2011 13:13:43 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SDDh1I074480; Wed, 28 Sep 2011 13:13:43 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109281313.p8SDDh1I074480@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 28 Sep 2011 13:13:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225831 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 13:13:43 -0000 Author: pjd Date: Wed Sep 28 13:13:43 2011 New Revision: 225831 URL: http://svn.freebsd.org/changeset/base/225831 Log: Break a bit earlier. MFC after: 3 days Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c ============================================================================== --- head/sbin/hastd/secondary.c Wed Sep 28 13:08:51 2011 (r225830) +++ head/sbin/hastd/secondary.c Wed Sep 28 13:13:43 2011 (r225831) @@ -699,6 +699,7 @@ disk_thread(void *arg) free(map); clear_activemap = false; pjdlog_debug(1, "Local activemap cleared."); + break; } reqlog(LOG_DEBUG, 2, -1, hio, "disk: (%p) Got request: ", hio); /* Handle the actual request. */ From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 13:19:47 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D35B8106566B; Wed, 28 Sep 2011 13:19:47 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B886C8FC0C; Wed, 28 Sep 2011 13:19:47 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SDJlkG074718; Wed, 28 Sep 2011 13:19:47 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SDJlv7074713; Wed, 28 Sep 2011 13:19:47 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109281319.p8SDJlv7074713@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 28 Sep 2011 13:19:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225832 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 13:19:48 -0000 Author: pjd Date: Wed Sep 28 13:19:47 2011 New Revision: 225832 URL: http://svn.freebsd.org/changeset/base/225832 Log: If the underlying provider doesn't support BIO_FLUSH, log it only once and don't bother trying in the future. MFC after: 3 days Modified: head/sbin/hastd/hast.h head/sbin/hastd/parse.y head/sbin/hastd/primary.c head/sbin/hastd/secondary.c Modified: head/sbin/hastd/hast.h ============================================================================== --- head/sbin/hastd/hast.h Wed Sep 28 13:13:43 2011 (r225831) +++ head/sbin/hastd/hast.h Wed Sep 28 13:19:47 2011 (r225832) @@ -167,6 +167,8 @@ struct hast_resource { off_t hr_local_mediasize; /* Sector size of local provider. */ unsigned int hr_local_sectorsize; + /* Is flushing write cache supported by the local provider? */ + bool hr_localflush; /* Flush write cache on metadata updates? */ int hr_metaflush; Modified: head/sbin/hastd/parse.y ============================================================================== --- head/sbin/hastd/parse.y Wed Sep 28 13:13:43 2011 (r225831) +++ head/sbin/hastd/parse.y Wed Sep 28 13:19:47 2011 (r225832) @@ -788,6 +788,7 @@ resource_start: STR curres->hr_provname[0] = '\0'; curres->hr_localpath[0] = '\0'; curres->hr_localfd = -1; + curres->hr_localflush = true; curres->hr_metaflush = -1; curres->hr_remoteaddr[0] = '\0'; curres->hr_sourceaddr[0] = '\0'; Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Wed Sep 28 13:13:43 2011 (r225831) +++ head/sbin/hastd/primary.c Wed Sep 28 13:19:47 2011 (r225832) @@ -1304,8 +1304,15 @@ local_send_thread(void *arg) } break; case BIO_FLUSH: + if (!res->hr_localflush) { + ret = -1; + errno = EOPNOTSUPP; + break; + } ret = g_flush(res->hr_localfd); if (ret < 0) { + if (errno == EOPNOTSUPP) + res->hr_localflush = false; hio->hio_errors[ncomp] = errno; reqlog(LOG_WARNING, 0, ggio, "Local request failed (%s): ", Modified: head/sbin/hastd/secondary.c ============================================================================== --- head/sbin/hastd/secondary.c Wed Sep 28 13:13:43 2011 (r225831) +++ head/sbin/hastd/secondary.c Wed Sep 28 13:19:47 2011 (r225832) @@ -664,7 +664,7 @@ disk_thread(void *arg) struct hast_resource *res = arg; struct hio *hio; ssize_t ret; - bool clear_activemap; + bool clear_activemap, logerror; clear_activemap = true; @@ -702,6 +702,7 @@ disk_thread(void *arg) break; } reqlog(LOG_DEBUG, 2, -1, hio, "disk: (%p) Got request: ", hio); + logerror = true; /* Handle the actual request. */ switch (hio->hio_cmd) { case HIO_READ: @@ -736,14 +737,23 @@ disk_thread(void *arg) hio->hio_error = 0; break; case HIO_FLUSH: + if (!res->hr_localflush) { + ret = -1; + hio->hio_error = EOPNOTSUPP; + logerror = false; + break; + } ret = g_flush(res->hr_localfd); - if (ret < 0) + if (ret < 0) { + if (errno == EOPNOTSUPP) + res->hr_localflush = false; hio->hio_error = errno; - else + } else { hio->hio_error = 0; + } break; } - if (hio->hio_error != 0) { + if (logerror && hio->hio_error != 0) { reqlog(LOG_ERR, 0, hio->hio_error, hio, "Request failed: "); } From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 13:21:13 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CE2F106564A; Wed, 28 Sep 2011 13:21:13 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 130CB8FC1C; Wed, 28 Sep 2011 13:21:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SDLCpb074804; Wed, 28 Sep 2011 13:21:12 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SDLClY074803; Wed, 28 Sep 2011 13:21:12 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109281321.p8SDLClY074803@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 28 Sep 2011 13:21:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225833 - vendor-crypto/openssh/dist X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 13:21:13 -0000 Author: des Date: Wed Sep 28 13:21:12 2011 New Revision: 225833 URL: http://svn.freebsd.org/changeset/base/225833 Log: Forgot to remove dead files. Deleted: vendor-crypto/openssh/dist/WARNING.RNG vendor-crypto/openssh/dist/ssh-rand-helper.0 vendor-crypto/openssh/dist/ssh-rand-helper.8 vendor-crypto/openssh/dist/ssh-rand-helper.c vendor-crypto/openssh/dist/ssh_prng_cmds.in From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 13:21:53 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81D05106566B; Wed, 28 Sep 2011 13:21:53 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5839F8FC15; Wed, 28 Sep 2011 13:21:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SDLrtH074857; Wed, 28 Sep 2011 13:21:53 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SDLrbj074856; Wed, 28 Sep 2011 13:21:53 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109281321.p8SDLrbj074856@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 28 Sep 2011 13:21:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225834 - vendor-crypto/openssh/5.9p1 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 13:21:53 -0000 Author: des Date: Wed Sep 28 13:21:53 2011 New Revision: 225834 URL: http://svn.freebsd.org/changeset/base/225834 Log: Forgot to remove dead files. Deleted: vendor-crypto/openssh/5.9p1/WARNING.RNG vendor-crypto/openssh/5.9p1/ssh-rand-helper.0 vendor-crypto/openssh/5.9p1/ssh-rand-helper.8 vendor-crypto/openssh/5.9p1/ssh-rand-helper.c vendor-crypto/openssh/5.9p1/ssh_prng_cmds.in From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 11:49:05 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F19F3106566C; Wed, 28 Sep 2011 11:49:04 +0000 (UTC) (envelope-from poyopoyo@puripuri.plala.or.jp) Received: from msa02b.plala.or.jp (msa02.plala.or.jp [IPv6:2400:7800:0:5010::2]) by mx1.freebsd.org (Postfix) with ESMTP id D3A978FC15; Wed, 28 Sep 2011 11:49:03 +0000 (UTC) Received: from i220-109-122-8.s02.a026.ap.plala.or.jp ([220.109.122.8]) by msa02b.plala.or.jp with ESMTP id <20110928114902.GQQD16800.msa02b.plala.or.jp@i220-109-122-8.s02.a026.ap.plala.or.jp>; Wed, 28 Sep 2011 20:49:02 +0900 Date: Wed, 28 Sep 2011 20:49:02 +0900 Message-ID: <868vp8sx8x.wl%poyopoyo@puripuri.plala.or.jp> From: poyopoyo@puripuri.plala.or.jp To: "Bjoern A. Zeeb" In-Reply-To: <51E92007-864E-4A61-A333-CD1B8865D20C@FreeBSD.org> References: <201109230051.p8N0pbV2045995@svn.freebsd.org> <86bou5sbif.wl%poyopoyo@puripuri.plala.or.jp> <51E92007-864E-4A61-A333-CD1B8865D20C@FreeBSD.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.3 (amd64-portbld-freebsd9.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-VirusScan: Outbound; msa02b; Wed, 28 Sep 2011 20:49:02 +0900 X-Mailman-Approved-At: Wed, 28 Sep 2011 13:22:14 +0000 Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-other@freebsd.org, Ken Smith Subject: Re: svn commit: r225736 - stable/9 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 11:49:05 -0000 At Wed, 28 Sep 2011 08:51:31 +0000, Bjoern A. Zeeb wrote: > I have emailed postmaster to create the list yesterday and I have an > approved diff for mailer.conf already waiting on the list creation > to happen. That's nice! Thank you. -- kuro From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 13:25:28 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04574106566C; Wed, 28 Sep 2011 13:25:28 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E87028FC17; Wed, 28 Sep 2011 13:25:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SDPRYV075040; Wed, 28 Sep 2011 13:25:27 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SDPRx0075038; Wed, 28 Sep 2011 13:25:27 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201109281325.p8SDPRx0075038@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 28 Sep 2011 13:25:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225835 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 13:25:28 -0000 Author: pjd Date: Wed Sep 28 13:25:27 2011 New Revision: 225835 URL: http://svn.freebsd.org/changeset/base/225835 Log: Correct typo. MFC after: 3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Wed Sep 28 13:21:53 2011 (r225834) +++ head/sbin/hastd/primary.c Wed Sep 28 13:25:27 2011 (r225835) @@ -1213,7 +1213,7 @@ ggate_recv_thread(void *arg) break; } pjdlog_debug(2, - "ggate_recv: (%p) Moving request to the send queues.", + "ggate_recv: (%p) Moving request to the send queue.", hio); refcount_init(&hio->hio_countdown, ncomps); for (ii = 0; ii < ncomps; ii++) From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 13:48:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2198E106566B; Wed, 28 Sep 2011 13:48:37 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 100628FC13; Wed, 28 Sep 2011 13:48:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SDmaFq075954; Wed, 28 Sep 2011 13:48:36 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SDmaC5075948; Wed, 28 Sep 2011 13:48:36 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109281348.p8SDmaC5075948@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 28 Sep 2011 13:48:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225837 - head/sys/net X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 13:48:37 -0000 Author: bz Date: Wed Sep 28 13:48:36 2011 New Revision: 225837 URL: http://svn.freebsd.org/changeset/base/225837 Log: Pass the fibnum where we need filtering of the message on the rtsock allowing routing daemons to filter routing updates on an rtsock per FIB. Adjust raw_input() and split it into wrapper and a new function taking an optional callback argument even though we only have one consumer [1] to keep the hackish flags local to rtsock.c. PR: kern/134931 Submitted by: multiple (see PR) Suggested by: rwatson [1] Reviewed by: rwatson MFC after: 3 days Modified: head/sys/net/raw_cb.h head/sys/net/raw_usrreq.c head/sys/net/route.c head/sys/net/route.h head/sys/net/rtsock.c Modified: head/sys/net/raw_cb.h ============================================================================== --- head/sys/net/raw_cb.h Wed Sep 28 13:27:31 2011 (r225836) +++ head/sys/net/raw_cb.h Wed Sep 28 13:48:36 2011 (r225837) @@ -70,9 +70,14 @@ pr_init_t raw_init; * Library routines for raw socket usrreq functions; will always be wrapped * so that protocol-specific functions can be handled. */ +typedef int (*raw_input_cb_fn)(struct mbuf *, struct sockproto *, + struct sockaddr *, struct rawcb *); + int raw_attach(struct socket *, int); void raw_detach(struct rawcb *); void raw_input(struct mbuf *, struct sockproto *, struct sockaddr *); +void raw_input_ext(struct mbuf *, struct sockproto *, struct sockaddr *, + raw_input_cb_fn); /* * Generic pr_usrreqs entries for raw socket protocols, usually wrapped so Modified: head/sys/net/raw_usrreq.c ============================================================================== --- head/sys/net/raw_usrreq.c Wed Sep 28 13:27:31 2011 (r225836) +++ head/sys/net/raw_usrreq.c Wed Sep 28 13:48:36 2011 (r225837) @@ -71,6 +71,14 @@ raw_init(void) void raw_input(struct mbuf *m0, struct sockproto *proto, struct sockaddr *src) { + + return (raw_input_ext(m0, proto, src, NULL)); +} + +void +raw_input_ext(struct mbuf *m0, struct sockproto *proto, struct sockaddr *src, + raw_input_cb_fn cb) +{ struct rawcb *rp; struct mbuf *m = m0; struct socket *last; @@ -83,6 +91,8 @@ raw_input(struct mbuf *m0, struct sockpr if (rp->rcb_proto.sp_protocol && rp->rcb_proto.sp_protocol != proto->sp_protocol) continue; + if (cb != NULL && (*cb)(m, proto, src, rp) != 0) + continue; if (last) { struct mbuf *n; n = m_copy(m, 0, (int)M_COPYALL); Modified: head/sys/net/route.c ============================================================================== --- head/sys/net/route.c Wed Sep 28 13:27:31 2011 (r225836) +++ head/sys/net/route.c Wed Sep 28 13:48:36 2011 (r225837) @@ -384,7 +384,7 @@ miss: */ bzero(&info, sizeof(info)); info.rti_info[RTAX_DST] = dst; - rt_missmsg(msgtype, &info, 0, err); + rt_missmsg_fib(msgtype, &info, 0, err, fibnum); } done: if (newrt) @@ -609,7 +609,7 @@ out: info.rti_info[RTAX_GATEWAY] = gateway; info.rti_info[RTAX_NETMASK] = netmask; info.rti_info[RTAX_AUTHOR] = src; - rt_missmsg(RTM_REDIRECT, &info, flags, error); + rt_missmsg_fib(RTM_REDIRECT, &info, flags, error, fibnum); if (ifa != NULL) ifa_free(ifa); } @@ -1522,7 +1522,7 @@ rtinit1(struct ifaddr *ifa, int cmd, int } RT_ADDREF(rt); RT_UNLOCK(rt); - rt_newaddrmsg(cmd, ifa, error, rt); + rt_newaddrmsg_fib(cmd, ifa, error, rt, fibnum); RT_LOCK(rt); RT_REMREF(rt); if (cmd == RTM_DELETE) { Modified: head/sys/net/route.h ============================================================================== --- head/sys/net/route.h Wed Sep 28 13:27:31 2011 (r225836) +++ head/sys/net/route.h Wed Sep 28 13:48:36 2011 (r225837) @@ -369,7 +369,9 @@ void rt_ieee80211msg(struct ifnet *, in void rt_ifannouncemsg(struct ifnet *, int); void rt_ifmsg(struct ifnet *); void rt_missmsg(int, struct rt_addrinfo *, int, int); +void rt_missmsg_fib(int, struct rt_addrinfo *, int, int, int); void rt_newaddrmsg(int, struct ifaddr *, int, struct rtentry *); +void rt_newaddrmsg_fib(int, struct ifaddr *, int, struct rtentry *, int); void rt_newmaddrmsg(int, struct ifmultiaddr *); int rt_setgate(struct rtentry *, struct sockaddr *, struct sockaddr *); void rt_maskedcopy(struct sockaddr *, struct sockaddr *, struct sockaddr *); Modified: head/sys/net/rtsock.c ============================================================================== --- head/sys/net/rtsock.c Wed Sep 28 13:27:31 2011 (r225836) +++ head/sys/net/rtsock.c Wed Sep 28 13:48:36 2011 (r225837) @@ -122,6 +122,13 @@ MALLOC_DEFINE(M_RTABLE, "routetbl", "rou static struct sockaddr route_src = { 2, PF_ROUTE, }; static struct sockaddr sa_zero = { sizeof(sa_zero), AF_INET, }; +/* + * Used by rtsock/raw_input callback code to decide whether to filter the update + * notification to a socket bound to a particular FIB. + */ +#define RTS_FILTER_FIB M_PROTO8 +#define RTS_ALLFIBS -1 + static struct { int ip_count; /* attached w/ AF_INET */ int ip6_count; /* attached w/ AF_INET6 */ @@ -196,6 +203,31 @@ rts_init(void) } SYSINIT(rtsock, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, rts_init, 0); +static int +raw_input_rts_cb(struct mbuf *m, struct sockproto *proto, struct sockaddr *src, + struct rawcb *rp) +{ + int fibnum; + + KASSERT(m != NULL, ("%s: m is NULL", __func__)); + KASSERT(proto != NULL, ("%s: proto is NULL", __func__)); + KASSERT(rp != NULL, ("%s: rp is NULL", __func__)); + + /* No filtering requested. */ + if ((m->m_flags & RTS_FILTER_FIB) == 0) + return (0); + + /* Check if it is a rts and the fib matches the one of the socket. */ + fibnum = M_GETFIB(m); + if (proto->sp_family != PF_ROUTE || + rp->rcb_socket == NULL || + rp->rcb_socket->so_fibnum == fibnum) + return (0); + + /* Filtering requested and no match, the socket shall be skipped. */ + return (1); +} + static void rts_input(struct mbuf *m) { @@ -212,7 +244,7 @@ rts_input(struct mbuf *m) } else route_proto.sp_protocol = 0; - raw_input(m, &route_proto, &route_src); + raw_input_ext(m, &route_proto, &route_src, raw_input_rts_cb); } /* @@ -885,6 +917,8 @@ flush: m_adj(m, rtm->rtm_msglen - m->m_pkthdr.len); } if (m) { + M_SETFIB(m, so->so_fibnum); + m->m_flags |= RTS_FILTER_FIB; if (rp) { /* * XXX insure we don't get a copy by @@ -1127,7 +1161,8 @@ again: * destination. */ void -rt_missmsg(int type, struct rt_addrinfo *rtinfo, int flags, int error) +rt_missmsg_fib(int type, struct rt_addrinfo *rtinfo, int flags, int error, + int fibnum) { struct rt_msghdr *rtm; struct mbuf *m; @@ -1138,6 +1173,14 @@ rt_missmsg(int type, struct rt_addrinfo m = rt_msg1(type, rtinfo); if (m == NULL) return; + + if (fibnum != RTS_ALLFIBS) { + KASSERT(fibnum >= 0 && fibnum < rt_numfibs, ("%s: fibnum out " + "of range 0 <= %d < %d", __func__, fibnum, rt_numfibs)); + M_SETFIB(m, fibnum); + m->m_flags |= RTS_FILTER_FIB; + } + rtm = mtod(m, struct rt_msghdr *); rtm->rtm_flags = RTF_DONE | flags; rtm->rtm_errno = error; @@ -1145,6 +1188,13 @@ rt_missmsg(int type, struct rt_addrinfo rt_dispatch(m, sa); } +void +rt_missmsg(int type, struct rt_addrinfo *rtinfo, int flags, int error) +{ + + rt_missmsg_fib(type, rtinfo, flags, error, RTS_ALLFIBS); +} + /* * This routine is called to generate a message from the routing * socket indicating that the status of a network interface has changed. @@ -1179,7 +1229,8 @@ rt_ifmsg(struct ifnet *ifp) * copies of it. */ void -rt_newaddrmsg(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt) +rt_newaddrmsg_fib(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt, + int fibnum) { struct rt_addrinfo info; struct sockaddr *sa = NULL; @@ -1237,10 +1288,24 @@ rt_newaddrmsg(int cmd, struct ifaddr *if rtm->rtm_errno = error; rtm->rtm_addrs = info.rti_addrs; } + if (fibnum != RTS_ALLFIBS) { + KASSERT(fibnum >= 0 && fibnum < rt_numfibs, ("%s: " + "fibnum out of range 0 <= %d < %d", __func__, + fibnum, rt_numfibs)); + M_SETFIB(m, fibnum); + m->m_flags |= RTS_FILTER_FIB; + } rt_dispatch(m, sa); } } +void +rt_newaddrmsg(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt) +{ + + rt_newaddrmsg_fib(cmd, ifa, error, rt, RTS_ALLFIBS); +} + /* * This is the analogue to the rt_newaddrmsg which performs the same * function but for multicast group memberhips. This is easier since From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 14:51:29 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B9B2106566C; Wed, 28 Sep 2011 14:51:29 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2ABF38FC14; Wed, 28 Sep 2011 14:51:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SEpTiU077887; Wed, 28 Sep 2011 14:51:29 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SEpTgN077885; Wed, 28 Sep 2011 14:51:29 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201109281451.p8SEpTgN077885@svn.freebsd.org> From: Konstantin Belousov Date: Wed, 28 Sep 2011 14:51:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225838 - head/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 14:51:29 -0000 Author: kib Date: Wed Sep 28 14:51:28 2011 New Revision: 225838 URL: http://svn.freebsd.org/changeset/base/225838 Log: Use the explicitly-sized types for the dirty and valid masks. Requested by: attilio Reviewed by: alc MFC after: 2 weeks Modified: head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.h ============================================================================== --- head/sys/vm/vm_page.h Wed Sep 28 13:48:36 2011 (r225837) +++ head/sys/vm/vm_page.h Wed Sep 28 14:51:28 2011 (r225838) @@ -139,17 +139,17 @@ struct vm_page { /* so, on normal X86 kernels, they must be at least 8 bits wide */ /* In reality, support for 32KB pages is not fully implemented. */ #if PAGE_SIZE == 4096 - u_char valid; /* map of valid DEV_BSIZE chunks (O) */ - u_char dirty; /* map of dirty DEV_BSIZE chunks (M) */ + uint8_t valid; /* map of valid DEV_BSIZE chunks (O) */ + uint8_t dirty; /* map of dirty DEV_BSIZE chunks (M) */ #elif PAGE_SIZE == 8192 - u_short valid; /* map of valid DEV_BSIZE chunks (O) */ - u_short dirty; /* map of dirty DEV_BSIZE chunks (M) */ + uint16_t valid; /* map of valid DEV_BSIZE chunks (O) */ + uint16_t dirty; /* map of dirty DEV_BSIZE chunks (M) */ #elif PAGE_SIZE == 16384 - u_int valid; /* map of valid DEV_BSIZE chunks (O) */ - u_int dirty; /* map of dirty DEV_BSIZE chunks (M) */ + uint32_t valid; /* map of valid DEV_BSIZE chunks (O) */ + uint32_t dirty; /* map of dirty DEV_BSIZE chunks (M) */ #elif PAGE_SIZE == 32768 - u_long valid; /* map of valid DEV_BSIZE chunks (O) */ - u_long dirty; /* map of dirty DEV_BSIZE chunks (M) */ + uint64_t valid; /* map of valid DEV_BSIZE chunks (O) */ + uint64_t dirty; /* map of dirty DEV_BSIZE chunks (M) */ #endif }; From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 14:52:26 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15003106566C; Wed, 28 Sep 2011 14:52:26 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 01A848FC15; Wed, 28 Sep 2011 14:52:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SEqPWI077964; Wed, 28 Sep 2011 14:52:25 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SEqPGm077954; Wed, 28 Sep 2011 14:52:25 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109281452.p8SEqPGm077954@svn.freebsd.org> From: Alexander Motin Date: Wed, 28 Sep 2011 14:52:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225839 - in head: lib/libusbhid sys/dev/usb/input usr.bin/usbhidaction usr.bin/usbhidctl X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 14:52:26 -0000 Author: mav Date: Wed Sep 28 14:52:25 2011 New Revision: 225839 URL: http://svn.freebsd.org/changeset/base/225839 Log: MFprojects/hid: Import the rest of HID improvements from the branch: - improve report descriptor parser in libusbhid to handle several kinds of reports same time; - add to the libusbhid API two functions wrapping respective kernel IOCTLs for reading and writing reports; - tune uhid IOCTL interface to allow reading and writing arbitrary report, when multiple supported by the device; - teach usbhidctl to set output and feature reports; - make usbhidaction support all the same item names as bhidctl. Sponsored by: iXsystems, inc. Modified: head/lib/libusbhid/data.c head/lib/libusbhid/parse.c head/lib/libusbhid/usbhid.3 head/lib/libusbhid/usbhid.h head/sys/dev/usb/input/uhid.c head/usr.bin/usbhidaction/usbhidaction.1 head/usr.bin/usbhidaction/usbhidaction.c head/usr.bin/usbhidctl/usbhid.c head/usr.bin/usbhidctl/usbhidctl.1 Modified: head/lib/libusbhid/data.c ============================================================================== --- head/lib/libusbhid/data.c Wed Sep 28 14:51:28 2011 (r225838) +++ head/lib/libusbhid/data.c Wed Sep 28 14:52:25 2011 (r225839) @@ -32,7 +32,10 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include +#include #include "usbhid.h" +#include "usbvar.h" int32_t hid_get_data(const void *p, const hid_item_t *h) @@ -114,3 +117,27 @@ hid_set_data(void *p, const hid_item_t * buf[offs + i] = (buf[offs + i] & (mask >> (i*8))) | ((data >> (i*8)) & 0xff); } + +int +hid_get_report(int fd, enum hid_kind k, unsigned char *data, unsigned int size) +{ + struct usb_gen_descriptor ugd; + + memset(&ugd, 0, sizeof(ugd)); + ugd.ugd_data = hid_pass_ptr(data); + ugd.ugd_maxlen = size; + ugd.ugd_report_type = k + 1; + return (ioctl(fd, USB_GET_REPORT, &ugd)); +} + +int +hid_set_report(int fd, enum hid_kind k, unsigned char *data, unsigned int size) +{ + struct usb_gen_descriptor ugd; + + memset(&ugd, 0, sizeof(ugd)); + ugd.ugd_data = hid_pass_ptr(data); + ugd.ugd_maxlen = size; + ugd.ugd_report_type = k + 1; + return (ioctl(fd, USB_SET_REPORT, &ugd)); +} Modified: head/lib/libusbhid/parse.c ============================================================================== --- head/lib/libusbhid/parse.c Wed Sep 28 14:51:28 2011 (r225838) +++ head/lib/libusbhid/parse.c Wed Sep 28 14:52:25 2011 (r225839) @@ -43,10 +43,11 @@ __FBSDID("$FreeBSD$"); #define MAXUSAGE 100 #define MAXPUSH 4 #define MAXID 64 +#define ITEMTYPES 3 struct hid_pos_data { int32_t rid; - uint32_t pos; + uint32_t pos[ITEMTYPES]; }; struct hid_data { @@ -55,6 +56,7 @@ struct hid_data { const uint8_t *p; struct hid_item cur[MAXPUSH]; struct hid_pos_data last_pos[MAXID]; + uint32_t pos[ITEMTYPES]; int32_t usages_min[MAXUSAGE]; int32_t usages_max[MAXUSAGE]; int32_t usage_last; /* last seen usage */ @@ -92,7 +94,7 @@ hid_clear_local(hid_item_t *c) static void hid_switch_rid(struct hid_data *s, struct hid_item *c, int32_t next_rID) { - uint8_t i; + uint8_t i, j; /* check for same report ID - optimise */ @@ -113,7 +115,8 @@ hid_switch_rid(struct hid_data *s, struc } if (i != MAXID) { s->last_pos[i].rid = c->report_ID; - s->last_pos[i].pos = c->pos; + for (j = 0; j < ITEMTYPES; j++) + s->last_pos[i].pos[j] = s->pos[j]; } /* store next report ID */ @@ -134,9 +137,12 @@ hid_switch_rid(struct hid_data *s, struc } if (i != MAXID) { s->last_pos[i].rid = next_rID; - c->pos = s->last_pos[i].pos; - } else - c->pos = 0; /* Out of RID entries. */ + for (j = 0; j < ITEMTYPES; j++) + s->pos[j] = s->last_pos[i].pos[j]; + } else { + for (j = 0; j < ITEMTYPES; j++) + s->pos[j] = 0; /* Out of RID entries. */ + } } /*------------------------------------------------------------------------* @@ -206,7 +212,6 @@ hid_get_item(hid_data_t s, hid_item_t *h { hid_item_t *c; unsigned int bTag, bType, bSize; - uint32_t oldpos; int32_t mask; int32_t dval; @@ -240,7 +245,8 @@ hid_get_item(hid_data_t s, hid_item_t *h */ if (s->kindset & (1 << c->kind)) { *h = *c; - c->pos += c->report_size * c->report_count; + h->pos = s->pos[c->kind]; + s->pos[c->kind] += c->report_size * c->report_count; return (1); } } @@ -406,14 +412,10 @@ hid_get_item(hid_data_t s, hid_item_t *h case 11: /* Pop */ s->pushlevel --; if (s->pushlevel < MAXPUSH) { - /* preserve position */ - oldpos = c->pos; c = &s->cur[s->pushlevel]; /* restore size and count */ s->loc_size = c->report_size; s->loc_count = c->report_count; - /* set default item location */ - c->pos = oldpos; c->report_size = 0; c->report_count = 0; } Modified: head/lib/libusbhid/usbhid.3 ============================================================================== --- head/lib/libusbhid/usbhid.3 Wed Sep 28 14:51:28 2011 (r225838) +++ head/lib/libusbhid/usbhid.3 Wed Sep 28 14:52:25 2011 (r225839) @@ -44,7 +44,9 @@ .Nm hid_usage_in_page , .Nm hid_init , .Nm hid_get_data , -.Nm hid_set_data +.Nm hid_set_data , +.Nm hid_get_report , +.Nm hid_set_report .Nd USB HID access routines .Sh LIBRARY .Lb libusbhid @@ -84,6 +86,10 @@ .Fn hid_get_data "const void *data" "const hid_item_t *h" .Ft void .Fn hid_set_data "void *buf" "const hid_item_t *h" "int data" +.Ft int +.Fn hid_get_report "int fd" "enum hid_kind k" "unsigned char *data" "unsigned int size" +.Ft int +.Fn hid_set_report "int fd" "enum hid_kind k" "unsigned char *data" "unsigned int size" .Sh DESCRIPTION The .Nm @@ -105,6 +111,14 @@ Synchronous HID operation can be enabled If the second argument is zero synchronous HID operation is disabled. Else synchronous HID operation is enabled. The function returns a negative value on failure. +.Pp +.Fn hid_get_report +and +.Fn hid_set_report +functions allow to synchronously get and set specific report if device +supports it. +For devices with multiple report IDs, wanted ID should be provided in the +first byte of the buffer for both get and set. .Ss Descriptor Functions The report descriptor ID can be obtained by calling .Fn hid_get_report_id . Modified: head/lib/libusbhid/usbhid.h ============================================================================== --- head/lib/libusbhid/usbhid.h Wed Sep 28 14:51:28 2011 (r225838) +++ head/lib/libusbhid/usbhid.h Wed Sep 28 14:52:25 2011 (r225839) @@ -76,6 +76,7 @@ typedef struct hid_item { #define HID_PAGE(u) (((u) >> 16) & 0xffff) #define HID_USAGE(u) ((u) & 0xffff) +#define HID_HAS_GET_SET_REPORT 1 __BEGIN_DECLS @@ -104,5 +105,9 @@ int hid_parse_usage_page(const char *nam /* Extracting/insertion of data, data.c: */ int32_t hid_get_data(const void *p, const hid_item_t *h); void hid_set_data(void *p, const hid_item_t *h, int32_t data); +int hid_get_report(int fd, enum hid_kind k, + unsigned char *data, unsigned int size); +int hid_set_report(int fd, enum hid_kind k, + unsigned char *data, unsigned int size); __END_DECLS Modified: head/sys/dev/usb/input/uhid.c ============================================================================== --- head/sys/dev/usb/input/uhid.c Wed Sep 28 14:51:28 2011 (r225838) +++ head/sys/dev/usb/input/uhid.c Wed Sep 28 14:52:25 2011 (r225839) @@ -566,8 +566,10 @@ uhid_ioctl(struct usb_fifo *fifo, u_long default: return (EINVAL); } + if (id != 0) + copyin(ugd->ugd_data, &id, 1); error = uhid_get_report(sc, ugd->ugd_report_type, id, - NULL, ugd->ugd_data, size); + NULL, ugd->ugd_data, imin(ugd->ugd_maxlen, size)); break; case USB_SET_REPORT: @@ -592,8 +594,10 @@ uhid_ioctl(struct usb_fifo *fifo, u_long default: return (EINVAL); } + if (id != 0) + copyin(ugd->ugd_data, &id, 1); error = uhid_set_report(sc, ugd->ugd_report_type, id, - NULL, ugd->ugd_data, size); + NULL, ugd->ugd_data, imin(ugd->ugd_maxlen, size)); break; case USB_GET_REPORT_ID: Modified: head/usr.bin/usbhidaction/usbhidaction.1 ============================================================================== --- head/usr.bin/usbhidaction/usbhidaction.1 Wed Sep 28 14:51:28 2011 (r225838) +++ head/usr.bin/usbhidaction/usbhidaction.1 Wed Sep 28 14:52:25 2011 (r225839) @@ -99,8 +99,7 @@ a debounce value, and an action. There must be whitespace between the parts. .Pp The item names are similar to those used by -.Xr usbhidctl 1 , -but each part must be prefixed by its page name. +.Xr usbhidctl 1 . .Pp The value is simply a numeric value. When the item reports this value, Modified: head/usr.bin/usbhidaction/usbhidaction.c ============================================================================== --- head/usr.bin/usbhidaction/usbhidaction.c Wed Sep 28 14:51:28 2011 (r225838) +++ head/usr.bin/usbhidaction/usbhidaction.c Wed Sep 28 14:52:25 2011 (r225839) @@ -280,12 +280,11 @@ parse_conf(const char *conf, report_desc char *p; int line; char buf[SIZE], name[SIZE], value[SIZE], debounce[SIZE], action[SIZE]; - char usbuf[SIZE], coll[SIZE]; + char usbuf[SIZE], coll[SIZE], *tmp; struct command *cmd, *cmds; struct hid_data *d; struct hid_item h; - int u, lo, hi, range; - + int inst, cinst, u, lo, hi, range, t; f = fopen(conf, "r"); if (f == NULL) @@ -317,6 +316,12 @@ parse_conf(const char *conf, report_desc ", syntax error: %s", conf, line, buf); } } + tmp = strchr(name, '#'); + if (tmp != NULL) { + *tmp = 0; + inst = atoi(tmp + 1); + } else + inst = 0; cmd = malloc(sizeof *cmd); if (cmd == NULL) @@ -361,6 +366,7 @@ parse_conf(const char *conf, report_desc } coll[0] = 0; + cinst = 0; for (d = hid_start_parse(repd, 1 << hid_input, reportid); hid_get_item(d, &h); ) { if (verbose > 2) @@ -380,24 +386,29 @@ parse_conf(const char *conf, report_desc range = 0; } for (u = lo; u <= hi; u++) { - snprintf(usbuf, sizeof usbuf, "%s:%s", - hid_usage_page(HID_PAGE(u)), - hid_usage_in_page(u)); - if (verbose > 2) - printf("usage %s\n", usbuf); - if (!strcasecmp(usbuf, name)) - goto foundhid; if (coll[0]) { snprintf(usbuf, sizeof usbuf, "%s.%s:%s", coll+1, - hid_usage_page(HID_PAGE(u)), + hid_usage_page(HID_PAGE(u)), + hid_usage_in_page(u)); + } else { + snprintf(usbuf, sizeof usbuf, + "%s:%s", + hid_usage_page(HID_PAGE(u)), hid_usage_in_page(u)); - if (verbose > 2) - printf("usage %s\n", - usbuf); - if (!strcasecmp(usbuf, name)) - goto foundhid; } + if (verbose > 2) + printf("usage %s\n", usbuf); + t = strlen(usbuf) - strlen(name); + if (t > 0) { + if (strcmp(usbuf + t, name)) + continue; + if (usbuf[t - 1] != '.') + continue; + } else if (strcmp(usbuf, name)) + continue; + if (inst == cinst++) + goto foundhid; } break; case hid_collection: Modified: head/usr.bin/usbhidctl/usbhid.c ============================================================================== --- head/usr.bin/usbhidctl/usbhid.c Wed Sep 28 14:51:28 2011 (r225838) +++ head/usr.bin/usbhidctl/usbhid.c Wed Sep 28 14:52:25 2011 (r225839) @@ -42,45 +42,141 @@ #include #include +struct variable { + char *name; + int instance; + int val; + struct hid_item h; + struct variable *next; +} *vars; + int verbose = 0; -int all = 0; int noname = 0; int hexdump = 0; +int wflag = 0; +int zflag = 0; -char **names; -int nnames; - -void prbits(int bits, char **strs, int n); -void usage(void); -void dumpitem(const char *label, struct hid_item *h); -void dumpitems(report_desc_t r); -void rev(struct hid_item **p); -void prdata(u_char *buf, struct hid_item *h); -void dumpdata(int f, report_desc_t r, int loop); -int gotname(char *n); +static void usage(void); +static void dumpitem(const char *label, struct hid_item *h); +static void dumpitems(report_desc_t r); +static void prdata(u_char *buf, struct hid_item *h); +static void dumpdata(int f, report_desc_t r, int loop); +static void writedata(int f, report_desc_t r); -int -gotname(char *n) +static void +parceargs(report_desc_t r, int all, int nnames, char **names) { - int i; - - for (i = 0; i < nnames; i++) - if (strcmp(names[i], n) == 0) - return 1; - return 0; -} - -void -prbits(int bits, char **strs, int n) -{ - int i; - - for(i = 0; i < n; i++, bits >>= 1) - if (strs[i*2]) - printf("%s%s", i == 0 ? "" : ", ", strs[i*2 + (bits&1)]); + struct hid_data *d; + struct hid_item h; + char colls[1000]; + char hname[1000], *tmp1, *tmp2; + struct variable *var, **pnext; + int i, instance, cp, t; + + pnext = &vars; + if (all) { + if (wflag) + errx(1, "Must not specify -w to read variables"); + cp = 0; + for (d = hid_start_parse(r, + 1<name, "%s%s%s:%s", + colls, colls[0] != 0 ? "." : "", + hid_usage_page(HID_PAGE(h.usage)), + hid_usage_in_page(h.usage)); + var->h = h; + *pnext = var; + pnext = &var->next; + } + hid_end_parse(d); + return; + } + for (i = 0; i < nnames; i++) { + var = malloc(sizeof(*var)); + memset(var, 0, sizeof(*var)); + tmp1 = tmp2 = strdup(names[i]); + strsep(&tmp2, "="); + var->name = strsep(&tmp1, "#"); + if (tmp1 != NULL) + var->instance = atoi(tmp1); + if (tmp2 != NULL) { + if (!wflag) + errx(1, "Must specify -w to write variables"); + var->val = atoi(tmp2); + } else + if (wflag) + errx(1, "Must not specify -w to read variables"); + *pnext = var; + pnext = &var->next; + + instance = 0; + cp = 0; + for (d = hid_start_parse(r, + 1<name); + if (t > 0) { + if (strcmp(hname + t, var->name) != 0) + continue; + if (hname[t - 1] != '.') + continue; + } else if (strcmp(hname, var->name) != 0) + continue; + if (var->instance != instance++) + continue; + var->h = h; + break; + } + hid_end_parse(d); + if (var->h.usage == 0) + errx(1, "Unknown item '%s'", var->name); + } } -void +static void usage(void) { @@ -92,10 +188,14 @@ usage(void) " %s -f device " "[-l] [-n] [-r] [-t tablefile] [-v] [-x] -a\n", getprogname()); + fprintf(stderr, + " %s -f device " + "[-t tablefile] [-v] [-z] -w name=value\n", + getprogname()); exit(1); } -void +static void dumpitem(const char *label, struct hid_item *h) { if ((h->flags & HIO_CONST) && !verbose) @@ -134,7 +234,7 @@ hid_collection_type(int32_t type) return (num); } -void +static void dumpitems(report_desc_t r) { struct hid_data *d; @@ -174,23 +274,7 @@ dumpitems(report_desc_t r) printf("Total feature size %d bytes\n", size); } -void -rev(struct hid_item **p) -{ - struct hid_item *cur, *prev, *next; - - prev = 0; - cur = *p; - while(cur != 0) { - next = cur->next; - cur->next = prev; - prev = cur; - cur = next; - } - *p = prev; -} - -void +static void prdata(u_char *buf, struct hid_item *h) { u_int data; @@ -212,82 +296,162 @@ prdata(u_char *buf, struct hid_item *h) h->pos = pos; } -void +static void dumpdata(int f, report_desc_t rd, int loop) { - struct hid_data *d; - struct hid_item h, *hids, *n; - int r, dlen; + struct variable *var; + int dlen, havedata, i, match, r, rid, use_rid; u_char *dbuf; - u_int32_t colls[100]; - int sp = 0; - char namebuf[10000], *namep; - - hids = 0; - for (d = hid_start_parse(rd, 1<= 256) { + rid = 0; + kind++; + } + if (kind >= 3) + rid = -1; + for (var = vars; var; var = var->next) { + if (rid == var->h.report_ID && + kind == var->h.kind) + break; + } + if (var == NULL) + continue; + } + dlen = hid_report_size(rd, kind < 3 ? kind : hid_input, rid); + if (dlen <= 0) continue; - h.next = hids; - h.collection = colls[sp]; - hids = malloc(sizeof *hids); - *hids = h; - } - hid_end_parse(d); - rev(&hids); - dlen = hid_report_size(rd, hid_input, -1); - dbuf = malloc(dlen); - if (!loop) - if (hid_set_immed(f, 1) < 0) { - if (errno == EOPNOTSUPP) - warnx("device does not support immediate mode, only changes reported."); - else - err(1, "USB_SET_IMMED"); + dbuf = malloc(dlen); + memset(dbuf, 0, dlen); + if (kind < 3) { + dbuf[0] = rid; + r = hid_get_report(f, kind, dbuf, dlen); + if (r < 0) + warn("hid_get_report(rid %d)", rid); + havedata = !r && (rid == 0 || dbuf[0] == rid); + if (rid != 0) + dbuf[0] = rid; + } else { + r = read(f, dbuf, dlen); + if (r < 1) + err(1, "read error"); + havedata = 1; } - do { - r = read(f, dbuf, dlen); - if (r < 1) { - err(1, "read error"); + if (verbose) { + printf("Got %s report %d (%d bytes):", + kind == hid_output ? "output" : + kind == hid_feature ? "feature" : "input", + use_rid ? dbuf[0] : 0, dlen); + if (havedata) { + for (i = 0; i < dlen; i++) + printf(" %02x", dbuf[i]); + } + printf("\n"); } - for (n = hids; n; n = n->next) { - if (n->report_ID != 0 && dbuf[0] != n->report_ID) + match = 0; + for (var = vars; var; var = var->next) { + if ((kind < 3 ? kind : hid_input) != var->h.kind) continue; - namep = namebuf; - namep += sprintf(namep, "%s:%s.", - hid_usage_page(HID_PAGE(n->collection)), - hid_usage_in_page(n->collection)); - namep += sprintf(namep, "%s:%s", - hid_usage_page(HID_PAGE(n->usage)), - hid_usage_in_page(n->usage)); - if (all || gotname(namebuf)) { - if (!noname) - printf("%s=", namebuf); - prdata(dbuf, n); + if (var->h.report_ID != 0 && + dbuf[0] != var->h.report_ID) + continue; + match = 1; + if (!noname) + printf("%s=", var->name); + if (havedata) + prdata(dbuf, &var->h); + printf("\n"); + } + if (match) + printf("\n"); + free(dbuf); + } while (loop || kind < 3); +} + +static void +writedata(int f, report_desc_t rd) +{ + struct variable *var; + int dlen, i, r, rid; + u_char *dbuf; + enum hid_kind kind; + + kind = 0; + rid = 0; + for (kind = 0; kind < 3; kind ++) { + for (rid = 0; rid < 256; rid ++) { + for (var = vars; var; var = var->next) { + if (rid == var->h.report_ID && kind == var->h.kind) + break; + } + if (var == NULL) + continue; + dlen = hid_report_size(rd, kind, rid); + if (dlen <= 0) + continue; + dbuf = malloc(dlen); + memset(dbuf, 0, dlen); + dbuf[0] = rid; + if (!zflag && hid_get_report(f, kind, dbuf, dlen) == 0) { + if (verbose) { + printf("Got %s report %d (%d bytes):", + kind == hid_input ? "input" : + kind == hid_output ? "output" : "feature", + rid, dlen); + for (i = 0; i < dlen; i++) + printf(" %02x", dbuf[i]); printf("\n"); } + } else if (!zflag) { + warn("hid_get_report(rid %d)", rid); + if (verbose) { + printf("Can't get %s report %d (%d bytes). " + "Will be initialized with zeros.\n", + kind == hid_input ? "input" : + kind == hid_output ? "output" : "feature", + rid, dlen); + } } - if (loop) + for (var = vars; var; var = var->next) { + if (rid != var->h.report_ID || kind != var->h.kind) + continue; + hid_set_data(dbuf, &var->h, var->val); + } + if (verbose) { + printf("Setting %s report %d (%d bytes):", + kind == hid_output ? "output" : + kind == hid_feature ? "feature" : "input", + rid, dlen); + for (i = 0; i < dlen; i++) + printf(" %02x", dbuf[i]); printf("\n"); - } while (loop); - free(dbuf); + } + r = hid_set_report(f, kind, dbuf, dlen); + if (r != 0) + warn("hid_set_report(rid %d)", rid); + free(dbuf); + } + } } int main(int argc, char **argv) { - int f; report_desc_t r; - char devnam[100], *dev = 0; + char *table = 0; + char devnam[100], *dev = NULL; + int f; + int all = 0; int ch; int repdump = 0; int loop = 0; - char *table = 0; - while ((ch = getopt(argc, argv, "af:lnrt:vx")) != -1) { + while ((ch = getopt(argc, argv, "af:lnrt:vwxz")) != -1) { switch(ch) { case 'a': all++; @@ -310,9 +474,15 @@ main(int argc, char **argv) case 'v': verbose++; break; + case 'w': + wflag = 1; + break; case 'x': hexdump = 1; break; + case 'z': + zflag = 1; + break; case '?': default: usage(); @@ -320,12 +490,10 @@ main(int argc, char **argv) } argc -= optind; argv += optind; - if (dev == 0) + if (dev == NULL) usage(); - names = argv; - nnames = argc; - if (nnames == 0 && !all && !repdump) + if (argc == 0 && !all && !repdump) usage(); if (dev[0] != '/') { @@ -350,8 +518,13 @@ main(int argc, char **argv) printf("Report descriptor:\n"); dumpitems(r); } - if (nnames != 0 || all) - dumpdata(f, r, loop); + if (argc != 0 || all) { + parceargs(r, all, argc, argv); + if (wflag) + writedata(f, r); + else + dumpdata(f, r, loop); + } hid_dispose_report_desc(r); exit(0); Modified: head/usr.bin/usbhidctl/usbhidctl.1 ============================================================================== --- head/usr.bin/usbhidctl/usbhidctl.1 Wed Sep 28 14:51:28 2011 (r225838) +++ head/usr.bin/usbhidctl/usbhidctl.1 Wed Sep 28 14:52:25 2011 (r225839) @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd November 23, 2006 +.Dd August 01, 2011 .Dt USBHIDCTL 1 .Os .Sh NAME @@ -36,27 +36,51 @@ .Nd manipulate USB HID devices .Sh SYNOPSIS .Nm -.Op Fl a .Fl f Ar device +.Op Fl t Ar table +.Op Fl v +.Op Fl x +.Fl r +.Nm +.Fl f Ar device +.Op Fl t Ar table .Op Fl l -.Op Fl n -.Op Fl r +.Op Fl v +.Op Fl x +.Fl a +.Nm +.Fl f Ar device .Op Fl t Ar table +.Op Fl l +.Op Fl n .Op Fl v .Op Fl x -.Op Ar item ... +.Ar item ... +.Nm +.Fl f Ar device +.Op Fl t Ar table +.Op Fl v +.Op Fl z +.Fl w +.Ar item=value ... .Sh DESCRIPTION The .Nm -utility can be used to dump the state of a USB HID (Human Interface Device). +utility can be used to dump and modify the state of a USB HID (Human +Interface Device). Each named .Ar item is printed. +If the +.Fl w +flag is specified +.Nm +attempts to set the specified items to the given values. .Pp The options are as follows: .Bl -tag -width Ds .It Fl a -Show all items. +Show all items and their current values if device returns. .It Fl f Ar device Specify a path name for the device to operate on. .It Fl l @@ -69,9 +93,47 @@ Dump the report descriptor. Specify a path name for the HID usage table file. .It Fl v Be verbose. +.It Fl w +Change item values. +Only 'output' and 'feature' kinds can be set with this option. .It Fl x Dump data in hexadecimal as well as decimal. +.It Fl z +Reset reports to zero before processing +.Fl w +arguments. If not specified, current values will be requested from device. .El +.Sh SYNTAX +.Nm +compares the names of items specified on the command line against the human +interface items reported by the USB device. +Each human interface item is mapped from its native form to a human readable +name, using the HID usage table file. +Command line items are compared with the generated item names, +and the USB HID device is operated on when a match is found. +.Pp +Each human interface item is named by the +.Qq page +it appears in, the +.Qq usage +within that page, and the list of +.Qq collections +containing the item. +Each collection in turn is also identified by page, and +the usage within that page. +.Pp +On the +.Nm +command line the page name is separated from the usage name with the character +.Sq Cm \&: . +The collections are separated by the character +.Sq Cm \&. . +.Pp +Some devices give the same name to more than one item. +.Nm +supports isolating each item by appending a +.Sq Cm \&# . +character and a decimal item instance number, starting at zero. .Sh FILES .Pa /usr/share/misc/usb_hid_usages The default HID usage table. @@ -84,7 +146,3 @@ The .Nm command appeared in .Nx 1.4 . -.Sh BUGS -The -.Nm -utility cannot show nor set output and feature items. From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 14:57:51 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2364F106566C; Wed, 28 Sep 2011 14:57:51 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 11DF78FC14; Wed, 28 Sep 2011 14:57:51 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SEvoHl078167; Wed, 28 Sep 2011 14:57:50 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SEvomI078163; Wed, 28 Sep 2011 14:57:50 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201109281457.p8SEvomI078163@svn.freebsd.org> From: Konstantin Belousov Date: Wed, 28 Sep 2011 14:57:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225840 - head/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 14:57:51 -0000 Author: kib Date: Wed Sep 28 14:57:50 2011 New Revision: 225840 URL: http://svn.freebsd.org/changeset/base/225840 Log: Use the trick of performing the atomic operation on the contained aligned word to handle the dirty mask updates in vm_page_clear_dirty_mask(). Remove the vm page queue lock around vm_page_dirty() call in vm_fault_hold() the sole purpose of which was to protect dirty on architectures which does not provide short or byte-wide atomics. Reviewed by: alc, attilio Tested by: flo (sparc64) MFC after: 2 weeks Modified: head/sys/vm/vm_fault.c head/sys/vm/vm_page.c head/sys/vm/vm_page.h Modified: head/sys/vm/vm_fault.c ============================================================================== --- head/sys/vm/vm_fault.c Wed Sep 28 14:52:25 2011 (r225839) +++ head/sys/vm/vm_fault.c Wed Sep 28 14:57:50 2011 (r225840) @@ -1090,18 +1090,10 @@ vm_fault_quick_hold_pages(vm_map_t map, * performed through an unmanaged mapping or by a DMA * operation. * - * The object lock is not held here. Therefore, like - * a pmap operation, the page queues lock may be - * required in order to call vm_page_dirty(). See - * vm_page_clear_dirty_mask(). + * The object lock is not held here. + * See vm_page_clear_dirty_mask(). */ -#if defined(__amd64__) || defined(__i386__) || defined(__ia64__) vm_page_dirty(*mp); -#else - vm_page_lock_queues(); - vm_page_dirty(*mp); - vm_page_unlock_queues(); -#endif } } if (pmap_failed) { Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Wed Sep 28 14:52:25 2011 (r225839) +++ head/sys/vm/vm_page.c Wed Sep 28 14:57:50 2011 (r225840) @@ -745,9 +745,9 @@ vm_page_sleep(vm_page_t m, const char *m * * Set all bits in the page's dirty field. * - * The object containing the specified page must be locked if the call is - * made from the machine-independent layer. If, however, the call is - * made from the pmap layer, then the page queues lock may be required. + * The object containing the specified page must be locked if the + * call is made from the machine-independent layer. + * * See vm_page_clear_dirty_mask(). */ void @@ -2339,44 +2339,53 @@ vm_page_set_valid(vm_page_t m, int base, static __inline void vm_page_clear_dirty_mask(vm_page_t m, int pagebits) { + uintptr_t addr; +#if PAGE_SIZE < 16384 + int shift; +#endif /* * If the object is locked and the page is neither VPO_BUSY nor * PGA_WRITEABLE, then the page's dirty field cannot possibly be - * set by a concurrent pmap operation. + * set by a concurrent pmap operation. + * */ VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED); if ((m->oflags & VPO_BUSY) == 0 && (m->aflags & PGA_WRITEABLE) == 0) m->dirty &= ~pagebits; else { -#if defined(__amd64__) || defined(__i386__) || defined(__ia64__) /* - * On the aforementioned architectures, the page queues lock - * is not required by the following read-modify-write - * operation. The combination of the object's lock and an - * atomic operation suffice. Moreover, the pmap layer on - * these architectures can call vm_page_dirty() without - * holding the page queues lock. + * The pmap layer can call vm_page_dirty() without + * holding a distinguished lock. The combination of + * the object's lock and an atomic operation suffice + * to guarantee consistency of the page dirty field. + * + * For PAGE_SIZE == 32768 case, compiler already + * properly aligns the dirty field, so no forcible + * alignment is needed. Only require existence of + * atomic_clear_64 when page size if 32768. */ -#if PAGE_SIZE == 4096 - atomic_clear_char(&m->dirty, pagebits); -#elif PAGE_SIZE == 8192 - atomic_clear_short(&m->dirty, pagebits); + addr = (uintptr_t)&m->dirty; +#if PAGE_SIZE == 32768 +#error pagebits too short + atomic_clear_64((uint64_t *)addr, pagebits); #elif PAGE_SIZE == 16384 - atomic_clear_int(&m->dirty, pagebits); -#else -#error "PAGE_SIZE is not supported." -#endif -#else + atomic_clear_32((uint32_t *)addr, pagebits); +#else /* PAGE_SIZE <= 8192 */ /* - * Otherwise, the page queues lock is required to ensure that - * a concurrent pmap operation does not set the page's dirty - * field during the following read-modify-write operation. + * Use a trick to perform an 32bit atomic on the + * contained aligned word, to not depend on existence + * of the atomic_clear_{8, 16}. */ - vm_page_lock_queues(); - m->dirty &= ~pagebits; - vm_page_unlock_queues(); + shift = addr & (sizeof(uint32_t) - 1); +#if BYTE_ORDER == BIG_ENDIAN + shift = (sizeof(uint32_t) - sizeof(m->dirty) - shift) * NBBY; +#else + shift *= NBBY; #endif + addr &= ~(sizeof(uint32_t) - 1); + atomic_clear_32((uint32_t *)addr, pagebits << shift); +#endif /* PAGE_SIZE */ } } Modified: head/sys/vm/vm_page.h ============================================================================== --- head/sys/vm/vm_page.h Wed Sep 28 14:52:25 2011 (r225839) +++ head/sys/vm/vm_page.h Wed Sep 28 14:57:50 2011 (r225840) @@ -94,21 +94,21 @@ * object that the page belongs to (O), the pool lock for the page (P), * or the lock for either the free or paging queues (Q). If a field is * annotated below with two of these locks, then holding either lock is - * sufficient for read access, but both locks are required for write + * sufficient for read access, but both locks are required for write * access. * - * In contrast, the synchronization of accesses to the page's dirty field - * is machine dependent (M). In the machine-independent layer, the lock - * on the object that the page belongs to must be held in order to - * operate on the field. However, the pmap layer is permitted to set - * all bits within the field without holding that lock. Therefore, if - * the underlying architecture does not support atomic read-modify-write - * operations on the field's type, then the machine-independent layer - * must also hold the page queues lock when performing read-modify-write - * operations and the pmap layer must hold the page queues lock when - * setting the field. In the machine-independent layer, the - * implementation of read-modify-write operations on the field is - * encapsulated in vm_page_clear_dirty_mask(). + * In contrast, the synchronization of accesses to the page's + * dirty field is machine dependent (M). In the + * machine-independent layer, the lock on the object that the + * page belongs to must be held in order to operate on the field. + * However, the pmap layer is permitted to set all bits within + * the field without holding that lock. If the underlying + * architecture does not support atomic read-modify-write + * operations on the field's type, then the machine-independent + * layer uses 32bit atomic on the aligned 32bit word that + * contains the dirty field. In the machine-independent layer, + * the implementation of read-modify-write operations on the + * field is encapsulated in vm_page_clear_dirty_mask(). */ TAILQ_HEAD(pglist, vm_page); From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 15:01:21 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56FCD1065679; Wed, 28 Sep 2011 15:01:21 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2C40C8FC19; Wed, 28 Sep 2011 15:01:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SF1LZv078335; Wed, 28 Sep 2011 15:01:21 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SF1LEL078331; Wed, 28 Sep 2011 15:01:21 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201109281501.p8SF1LEL078331@svn.freebsd.org> From: Konstantin Belousov Date: Wed, 28 Sep 2011 15:01:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225841 - in head/sys: ia64/ia64 powerpc/booke sparc64/sparc64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 15:01:21 -0000 Author: kib Date: Wed Sep 28 15:01:20 2011 New Revision: 225841 URL: http://svn.freebsd.org/changeset/base/225841 Log: Remove locking of the vm page queues from several pmaps, which only protected the dirty mask updates. The dirty mask updates are handled by atomics after the r225840. Submitted by: alc Tested by: flo (sparc64) MFC after: 2 weeks Modified: head/sys/ia64/ia64/pmap.c head/sys/powerpc/booke/pmap.c head/sys/sparc64/sparc64/pmap.c Modified: head/sys/ia64/ia64/pmap.c ============================================================================== --- head/sys/ia64/ia64/pmap.c Wed Sep 28 14:57:50 2011 (r225840) +++ head/sys/ia64/ia64/pmap.c Wed Sep 28 15:01:20 2011 (r225841) @@ -1486,7 +1486,6 @@ pmap_protect(pmap_t pmap, vm_offset_t sv if ((sva & PAGE_MASK) || (eva & PAGE_MASK)) panic("pmap_protect: unaligned addresses"); - vm_page_lock_queues(); PMAP_LOCK(pmap); oldpmap = pmap_switch(pmap); for ( ; sva < eva; sva += PAGE_SIZE) { @@ -1514,7 +1513,6 @@ pmap_protect(pmap_t pmap, vm_offset_t sv pmap_pte_prot(pmap, pte, prot); pmap_invalidate_page(sva); } - vm_page_unlock_queues(); pmap_switch(oldpmap); PMAP_UNLOCK(pmap); } Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Wed Sep 28 14:57:50 2011 (r225840) +++ head/sys/powerpc/booke/pmap.c Wed Sep 28 15:01:20 2011 (r225841) @@ -1918,7 +1918,6 @@ mmu_booke_protect(mmu_t mmu, pmap_t pmap if (prot & VM_PROT_WRITE) return; - vm_page_lock_queues(); PMAP_LOCK(pmap); for (va = sva; va < eva; va += PAGE_SIZE) { if ((pte = pte_find(mmu, pmap, va)) != NULL) { @@ -1941,7 +1940,6 @@ mmu_booke_protect(mmu_t mmu, pmap_t pmap } } PMAP_UNLOCK(pmap); - vm_page_unlock_queues(); } /* Modified: head/sys/sparc64/sparc64/pmap.c ============================================================================== --- head/sys/sparc64/sparc64/pmap.c Wed Sep 28 14:57:50 2011 (r225840) +++ head/sys/sparc64/sparc64/pmap.c Wed Sep 28 15:01:20 2011 (r225841) @@ -1423,6 +1423,7 @@ pmap_protect_tte(struct pmap *pm, struct u_long data; vm_page_t m; + PMAP_LOCK_ASSERT(pm, MA_OWNED); data = atomic_clear_long(&tp->tte_data, TD_SW | TD_W); if ((data & (TD_PV | TD_W)) == (TD_PV | TD_W)) { m = PHYS_TO_VM_PAGE(TD_PA(data)); @@ -1451,7 +1452,6 @@ pmap_protect(pmap_t pm, vm_offset_t sva, if (prot & VM_PROT_WRITE) return; - vm_page_lock_queues(); PMAP_LOCK(pm); if (eva - sva > PMAP_TSB_THRESH) { tsb_foreach(pm, NULL, sva, eva, pmap_protect_tte); @@ -1463,7 +1463,6 @@ pmap_protect(pmap_t pm, vm_offset_t sva, tlb_range_demap(pm, sva, eva - 1); } PMAP_UNLOCK(pm); - vm_page_unlock_queues(); } /* From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 16:12:15 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A462D106564A; Wed, 28 Sep 2011 16:12:15 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 79E958FC0C; Wed, 28 Sep 2011 16:12:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SGCFre080551; Wed, 28 Sep 2011 16:12:15 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SGCF1f080548; Wed, 28 Sep 2011 16:12:15 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201109281612.p8SGCF1f080548@svn.freebsd.org> From: Konstantin Belousov Date: Wed, 28 Sep 2011 16:12:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225843 - head/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 16:12:15 -0000 Author: kib Date: Wed Sep 28 16:12:15 2011 New Revision: 225843 URL: http://svn.freebsd.org/changeset/base/225843 Log: Fix grammar. Submitted by: bf MFC after: 2 weeks Modified: head/sys/vm/vm_page.c head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Wed Sep 28 15:36:08 2011 (r225842) +++ head/sys/vm/vm_page.c Wed Sep 28 16:12:15 2011 (r225843) @@ -2363,7 +2363,7 @@ vm_page_clear_dirty_mask(vm_page_t m, in * For PAGE_SIZE == 32768 case, compiler already * properly aligns the dirty field, so no forcible * alignment is needed. Only require existence of - * atomic_clear_64 when page size if 32768. + * atomic_clear_64 when page size is 32768. */ addr = (uintptr_t)&m->dirty; #if PAGE_SIZE == 32768 @@ -2373,9 +2373,9 @@ vm_page_clear_dirty_mask(vm_page_t m, in atomic_clear_32((uint32_t *)addr, pagebits); #else /* PAGE_SIZE <= 8192 */ /* - * Use a trick to perform an 32bit atomic on the - * contained aligned word, to not depend on existence - * of the atomic_clear_{8, 16}. + * Use a trick to perform a 32-bit atomic on the + * containing aligned word, to not depend on the existence + * of atomic_clear_{8, 16}. */ shift = addr & (sizeof(uint32_t) - 1); #if BYTE_ORDER == BIG_ENDIAN Modified: head/sys/vm/vm_page.h ============================================================================== --- head/sys/vm/vm_page.h Wed Sep 28 15:36:08 2011 (r225842) +++ head/sys/vm/vm_page.h Wed Sep 28 16:12:15 2011 (r225843) @@ -105,7 +105,7 @@ * the field without holding that lock. If the underlying * architecture does not support atomic read-modify-write * operations on the field's type, then the machine-independent - * layer uses 32bit atomic on the aligned 32bit word that + * layer uses a 32-bit atomic on the aligned 32-bit word that * contains the dirty field. In the machine-independent layer, * the implementation of read-modify-write operations on the * field is encapsulated in vm_page_clear_dirty_mask(). From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 17:03:49 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC0F410656F0; Wed, 28 Sep 2011 17:03:49 +0000 (UTC) (envelope-from crees@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CFADC8FC14; Wed, 28 Sep 2011 17:03:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SH3n3d082166; Wed, 28 Sep 2011 17:03:49 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SH3n8r082164; Wed, 28 Sep 2011 17:03:49 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201109281703.p8SH3n8r082164@svn.freebsd.org> From: Chris Rees Date: Wed, 28 Sep 2011 17:03:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225844 - head/usr.bin/csup X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 17:03:50 -0000 Author: crees (ports committer) Date: Wed Sep 28 17:03:49 2011 New Revision: 225844 URL: http://svn.freebsd.org/changeset/base/225844 Log: Include limits.h instead of sys/limits.h to improve portability. PR: bin/150772 Submitted by: Derrick Brashear Reviewed by: Garrett Cooper Approved by: cognet Modified: head/usr.bin/csup/diff.c Modified: head/usr.bin/csup/diff.c ============================================================================== --- head/usr.bin/csup/diff.c Wed Sep 28 16:12:15 2011 (r225843) +++ head/usr.bin/csup/diff.c Wed Sep 28 17:03:49 2011 (r225844) @@ -26,11 +26,10 @@ * $FreeBSD$ */ -#include - #include #include #include +#include #include #include #include From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 18:03:53 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D81641065673; Wed, 28 Sep 2011 18:03:53 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C79618FC0C; Wed, 28 Sep 2011 18:03:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SI3rtg084004; Wed, 28 Sep 2011 18:03:53 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SI3rIe084002; Wed, 28 Sep 2011 18:03:53 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201109281803.p8SI3rIe084002@svn.freebsd.org> From: Xin LI Date: Wed, 28 Sep 2011 18:03:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225845 - head/usr.bin/gzip X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 18:03:53 -0000 Author: delphij Date: Wed Sep 28 18:03:53 2011 New Revision: 225845 URL: http://svn.freebsd.org/changeset/base/225845 Log: Sync RCS id with NetBSD, this was intentionally omitted from the advisory in order to reduce patchset size. MFC after: 3 days Modified: head/usr.bin/gzip/zuncompress.c Modified: head/usr.bin/gzip/zuncompress.c ============================================================================== --- head/usr.bin/gzip/zuncompress.c Wed Sep 28 17:03:49 2011 (r225844) +++ head/usr.bin/gzip/zuncompress.c Wed Sep 28 18:03:53 2011 (r225845) @@ -1,4 +1,4 @@ -/* $NetBSD: zuncompress.c,v 1.8 2010/11/06 21:42:32 mrg Exp $ */ +/* $NetBSD: zuncompress.c,v 1.11 2011/08/16 13:55:02 joerg Exp $ */ /*- * Copyright (c) 1985, 1986, 1992, 1993 From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 18:49:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F6E4106564A; Wed, 28 Sep 2011 18:49:37 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6EF298FC22; Wed, 28 Sep 2011 18:49:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SInbK3085368; Wed, 28 Sep 2011 18:49:37 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SInbrJ085366; Wed, 28 Sep 2011 18:49:37 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201109281849.p8SInbrJ085366@svn.freebsd.org> From: Eitan Adler Date: Wed, 28 Sep 2011 18:49:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225846 - head/usr.bin/calendar/calendars X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 18:49:37 -0000 Author: eadler (ports committer) Date: Wed Sep 28 18:49:37 2011 New Revision: 225846 URL: http://svn.freebsd.org/changeset/base/225846 Log: - add myself to calendar Approved by: sahil (mentor) Modified: head/usr.bin/calendar/calendars/calendar.freebsd Modified: head/usr.bin/calendar/calendars/calendar.freebsd ============================================================================== --- head/usr.bin/calendar/calendars/calendar.freebsd Wed Sep 28 18:03:53 2011 (r225845) +++ head/usr.bin/calendar/calendars/calendar.freebsd Wed Sep 28 18:49:37 2011 (r225846) @@ -47,6 +47,7 @@ 02/02 Michael W Lucas born in Detroit, Michigan, United States, 1967 02/02 Dmitry Chagin born in Stalingrad, USSR, 1976 02/02 Yoichi Nakayama born in Tsu, Mie, Japan, 1976 +02/04 Eitan Adler born in West Hempstead, New York, United States, 1991 02/05 Frank Laszlo born in Howell, Michigan, United States, 1983 02/10 David Greenman born in Portland, Oregon, United States, 1968 02/10 Paul Richards born in Ammanford, Carmarthenshire, United Kingdom, 1968 From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 18:53:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 530FF106566C; Wed, 28 Sep 2011 18:53:37 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 406168FC1E; Wed, 28 Sep 2011 18:53:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SIrb8j085540; Wed, 28 Sep 2011 18:53:37 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SIrave085527; Wed, 28 Sep 2011 18:53:36 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201109281853.p8SIrave085527@svn.freebsd.org> From: Ed Schouten Date: Wed, 28 Sep 2011 18:53:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225847 - in head: bin/ls bin/ps lib/libc/gen sbin/fsdb usr.bin/find usr.bin/fstat usr.sbin/pstat X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 18:53:37 -0000 Author: ed Date: Wed Sep 28 18:53:36 2011 New Revision: 225847 URL: http://svn.freebsd.org/changeset/base/225847 Log: Get rid of major/minor number distinction. As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino. Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)): "If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question." This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer. Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1). Modified: head/bin/ls/ls.1 head/bin/ls/ls.c head/bin/ls/ls.h head/bin/ls/print.c head/bin/ps/print.c head/lib/libc/gen/devname.c head/sbin/fsdb/fsdbutil.c head/usr.bin/find/find.1 head/usr.bin/find/ls.c head/usr.bin/fstat/fstat.1 head/usr.bin/fstat/fstat.c head/usr.sbin/pstat/pstat.c Modified: head/bin/ls/ls.1 ============================================================================== --- head/bin/ls/ls.1 Wed Sep 28 18:49:37 2011 (r225846) +++ head/bin/ls/ls.1 Wed Sep 28 18:53:36 2011 (r225847) @@ -32,7 +32,7 @@ .\" @(#)ls.1 8.7 (Berkeley) 7/29/94 .\" $FreeBSD$ .\" -.Dd April 4, 2008 +.Dd September 28, 2011 .Dt LS 1 .Os .Sh NAME @@ -357,8 +357,7 @@ option is given, the numeric ID's are displayed. .Pp If the file is a character special or block special file, -the major and minor device numbers for the file are displayed -in the size field. +the device number for the file is displayed in the size field. If the file is a symbolic link the pathname of the linked-to file is preceded by .Dq Li -> . Modified: head/bin/ls/ls.c ============================================================================== --- head/bin/ls/ls.c Wed Sep 28 18:49:37 2011 (r225846) +++ head/bin/ls/ls.c Wed Sep 28 18:53:36 2011 (r225847) @@ -563,7 +563,7 @@ display(const FTSENT *p, FTSENT *list, i long maxblock; u_long btotal, labelstrlen, maxinode, maxlen, maxnlink; u_long maxlabelstr; - u_int devstrlen; + u_int sizelen; int maxflags; gid_t maxgroup; uid_t maxuser; @@ -572,7 +572,6 @@ display(const FTSENT *p, FTSENT *list, i int entries, needstats; const char *user, *group; char *flags, *labelstr = NULL; - char buf[STRBUF_SIZEOF(u_quad_t) + 1]; char ngroup[STRBUF_SIZEOF(uid_t) + 1]; char nuser[STRBUF_SIZEOF(gid_t) + 1]; @@ -656,7 +655,8 @@ display(const FTSENT *p, FTSENT *list, i MAKENINES(maxsize); free(jinitmax); } - devstrlen = 0; + d.s_size = 0; + sizelen = 0; flags = NULL; for (cur = list, entries = 0; cur; cur = cur->fts_link) { if (cur->fts_info == FTS_ERR || cur->fts_info == FTS_NS) { @@ -796,14 +796,12 @@ label_out: np->group = &np->data[ulen + 1]; (void)strcpy(np->group, group); - if ((S_ISCHR(sp->st_mode) || - S_ISBLK(sp->st_mode)) && - devstrlen < DEVSTR_HEX_LEN) { - if (minor(sp->st_rdev) > 255 || - minor(sp->st_rdev) < 0) - devstrlen = DEVSTR_HEX_LEN; - else - devstrlen = DEVSTR_LEN; + if (S_ISCHR(sp->st_mode) || + S_ISBLK(sp->st_mode)) { + sizelen = snprintf(NULL, 0, + "%#jx", (uintmax_t)sp->st_rdev); + if (d.s_size < sizelen) + d.s_size = sizelen; } if (f_flags) { @@ -837,23 +835,16 @@ label_out: d.maxlen = maxlen; if (needstats) { d.btotal = btotal; - (void)snprintf(buf, sizeof(buf), "%lu", maxblock); - d.s_block = strlen(buf); + d.s_block = snprintf(NULL, 0, "%lu", maxblock); d.s_flags = maxflags; d.s_label = maxlabelstr; d.s_group = maxgroup; - (void)snprintf(buf, sizeof(buf), "%lu", maxinode); - d.s_inode = strlen(buf); - (void)snprintf(buf, sizeof(buf), "%lu", maxnlink); - d.s_nlink = strlen(buf); - if (f_humanval) - d.s_size = HUMANVALSTR_LEN; - else { - (void)snprintf(buf, sizeof(buf), "%ju", maxsize); - d.s_size = strlen(buf); - } - if (d.s_size < devstrlen) - d.s_size = devstrlen; + d.s_inode = snprintf(NULL, 0, "%lu", maxinode); + d.s_nlink = snprintf(NULL, 0, "%lu", maxnlink); + sizelen = f_humanval ? HUMANVALSTR_LEN : + snprintf(NULL, 0, "%ju", maxsize); + if (d.s_size < sizelen) + d.s_size = sizelen; d.s_user = maxuser; } printfcn(&d); Modified: head/bin/ls/ls.h ============================================================================== --- head/bin/ls/ls.h Wed Sep 28 18:49:37 2011 (r225846) +++ head/bin/ls/ls.h Wed Sep 28 18:53:36 2011 (r225847) @@ -36,8 +36,6 @@ #define NO_PRINT 1 #define HUMANVALSTR_LEN 5 -#define DEVSTR_LEN 8 -#define DEVSTR_HEX_LEN 15 extern long blocksize; /* block size units */ Modified: head/bin/ls/print.c ============================================================================== --- head/bin/ls/print.c Wed Sep 28 18:49:37 2011 (r225846) +++ head/bin/ls/print.c Wed Sep 28 18:53:36 2011 (r225847) @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -351,16 +352,8 @@ printaname(const FTSENT *p, u_long inode static void printdev(size_t width, dev_t dev) { - char buf[DEVSTR_HEX_LEN + 1]; - if (minor(dev) > 255 || minor(dev) < 0) - (void)snprintf(buf, sizeof(buf), "%3d, 0x%08x", - major(dev), (u_int)minor(dev)); - else - (void)snprintf(buf, sizeof(buf), "%3d, %3d", - major(dev), minor(dev)); - - (void)printf("%*s ", (u_int)width, buf); + (void)printf("%#*jx ", (u_int)width, (uintmax_t)dev); } static void Modified: head/bin/ps/print.c ============================================================================== --- head/bin/ps/print.c Wed Sep 28 18:49:37 2011 (r225846) +++ head/bin/ps/print.c Wed Sep 28 18:53:36 2011 (r225847) @@ -392,17 +392,13 @@ tdev(KINFO *k, VARENT *ve) { VAR *v; dev_t dev; - char buff[16]; v = ve->var; dev = k->ki_p->ki_tdev; if (dev == NODEV) (void)printf("%*s", v->width, "??"); - else { - (void)snprintf(buff, sizeof(buff), - "%d/%d", major(dev), minor(dev)); - (void)printf("%*s", v->width, buff); - } + else + (void)printf("%#*jx", v->width, (uintmax_t)dev); } void Modified: head/lib/libc/gen/devname.c ============================================================================== --- head/lib/libc/gen/devname.c Wed Sep 28 18:49:37 2011 (r225846) +++ head/lib/libc/gen/devname.c Wed Sep 28 18:53:36 2011 (r225847) @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -60,8 +61,8 @@ devname_r(dev_t dev, mode_t type, char * } /* Finally just format it */ - snprintf(buf, len, "#%c:%d:0x%x", - S_ISCHR(type) ? 'C' : 'B', major(dev), minor(dev)); + snprintf(buf, len, "#%c:%#jx", + S_ISCHR(type) ? 'C' : 'B', (uintmax_t)dev); return (buf); } Modified: head/sbin/fsdb/fsdbutil.c ============================================================================== --- head/sbin/fsdb/fsdbutil.c Wed Sep 28 18:49:37 2011 (r225846) +++ head/sbin/fsdb/fsdbutil.c Wed Sep 28 18:53:36 2011 (r225847) @@ -126,12 +126,10 @@ printstat(const char *cp, ino_t inum, un puts("regular file"); break; case IFBLK: - printf("block special (%d,%d)", - major(DIP(dp, di_rdev)), minor(DIP(dp, di_rdev))); + printf("block special (%#jx)", (uintmax_t)DIP(dp, di_rdev)); break; case IFCHR: - printf("character special (%d,%d)", - major(DIP(dp, di_rdev)), minor(DIP(dp, di_rdev))); + printf("character special (%#jx)", DIP(dp, di_rdev)); break; case IFLNK: fputs("symlink",stdout); Modified: head/usr.bin/find/find.1 ============================================================================== --- head/usr.bin/find/find.1 Wed Sep 28 18:49:37 2011 (r225846) +++ head/usr.bin/find/find.1 Wed Sep 28 18:53:36 2011 (r225847) @@ -31,7 +31,7 @@ .\" @(#)find.1 8.7 (Berkeley) 5/9/95 .\" $FreeBSD$ .\" -.Dd March 17, 2010 +.Dd September 28, 2011 .Dt FIND 1 .Os .Sh NAME @@ -507,7 +507,7 @@ This primary always evaluates to true. The following information for the current file is written to standard output: its inode number, size in 512-byte blocks, file permissions, number of hard links, owner, group, size in bytes, last modification time, and pathname. -If the file is a block or character special file, the major and minor numbers +If the file is a block or character special file, the device number will be displayed instead of the size in bytes. If the file is a symbolic link, the pathname of the linked-to file will be displayed preceded by Modified: head/usr.bin/find/ls.c ============================================================================== --- head/usr.bin/find/ls.c Wed Sep 28 18:49:37 2011 (r225846) +++ head/usr.bin/find/ls.c Wed Sep 28 18:53:36 2011 (r225847) @@ -70,8 +70,7 @@ printlong(char *name, char *accpath, str group_from_gid(sb->st_gid, 0)); if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) - (void)printf("%3d, %3d ", major(sb->st_rdev), - minor(sb->st_rdev)); + (void)printf("%#8jx ", (uintmax_t)sb->st_rdev); else (void)printf("%8"PRId64" ", sb->st_size); printtime(sb->st_mtime); Modified: head/usr.bin/fstat/fstat.1 ============================================================================== --- head/usr.bin/fstat/fstat.1 Wed Sep 28 18:49:37 2011 (r225846) +++ head/usr.bin/fstat/fstat.1 Wed Sep 28 18:53:36 2011 (r225847) @@ -28,7 +28,7 @@ .\" @(#)fstat.1 8.3 (Berkeley) 2/25/94 .\" $FreeBSD$ .\" -.Dd July 9, 2009 +.Dd September 28, 2011 .Dt FSTAT 1 .Os .Sh NAME @@ -142,7 +142,7 @@ pathname that the file system the file r If the .Fl n flag is specified, this header is present and is the -major/minor number of the device that this file resides in. +number of the device that this file resides in. .It Li INUM The inode number of the file. .It Li MODE Modified: head/usr.bin/fstat/fstat.c ============================================================================== --- head/usr.bin/fstat/fstat.c Wed Sep 28 18:49:37 2011 (r225846) +++ head/usr.bin/fstat/fstat.c Wed Sep 28 18:53:36 2011 (r225847) @@ -411,7 +411,7 @@ print_pts_info(struct procstat *procstat } printf("* pseudo-terminal master "); if (nflg || !*pts.devname) { - printf("%10d,%-2d", major(pts.dev), minor(pts.dev)); + printf("%#10jx", (uintmax_t)pts.dev); } else { printf("%10s", pts.devname); } @@ -441,7 +441,7 @@ print_vnode_info(struct procstat *procst } if (nflg) - printf(" %2d,%-2d", major(vn.vn_fsid), minor(vn.vn_fsid)); + printf(" %#8jx", (uintmax_t)vn.vn_fsid); else if (vn.vn_mntdir != NULL) (void)printf(" %-8s", vn.vn_mntdir); @@ -457,7 +457,7 @@ print_vnode_info(struct procstat *procst if (vn.vn_type == PS_FST_VTYPE_VBLK || vn.vn_type == PS_FST_VTYPE_VCHR) { if (nflg || !*vn.vn_devname) - printf(" %2d,%-2d", major(vn.vn_dev), minor(vn.vn_dev)); + printf(" %#6jx", (uintmax_t)vn.vn_dev); else { printf(" %6s", vn.vn_devname); } Modified: head/usr.sbin/pstat/pstat.c ============================================================================== --- head/usr.sbin/pstat/pstat.c Wed Sep 28 18:49:37 2011 (r225846) +++ head/usr.sbin/pstat/pstat.c Wed Sep 28 18:53:36 2011 (r225847) @@ -345,7 +345,7 @@ ttyprt(struct xtty *xt) errx(1, "struct xtty size mismatch"); if (usenumflag || xt->xt_dev == 0 || (name = devname(xt->xt_dev, S_IFCHR)) == NULL) - printf("%5d,%4d ", major(xt->xt_dev), minor(xt->xt_dev)); + printf("%#10jx ", (uintmax_t)xt->xt_dev); else printf("%10s ", name); printf("%5zu %4zu %4zu %4zu %5zu %4zu %4zu %5u %5d %5d ", From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 18:56:02 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8A841065672; Wed, 28 Sep 2011 18:56:02 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D893C8FC13; Wed, 28 Sep 2011 18:56:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SIu2U5085651; Wed, 28 Sep 2011 18:56:02 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SIu2n2085649; Wed, 28 Sep 2011 18:56:02 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201109281856.p8SIu2n2085649@svn.freebsd.org> From: Eitan Adler Date: Wed, 28 Sep 2011 18:56:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225848 - head/share/misc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 18:56:03 -0000 Author: eadler (ports committer) Date: Wed Sep 28 18:56:02 2011 New Revision: 225848 URL: http://svn.freebsd.org/changeset/base/225848 Log: - add myself to committers-ports.dot Approved by: sahil (mentor) Modified: head/share/misc/committers-ports.dot Modified: head/share/misc/committers-ports.dot ============================================================================== --- head/share/misc/committers-ports.dot Wed Sep 28 18:53:36 2011 (r225847) +++ head/share/misc/committers-ports.dot Wed Sep 28 18:56:02 2011 (r225848) @@ -78,6 +78,7 @@ delphij [label="Xin Li\ndelphij@FreeBSD. demon [label="Dmitry Sivachenko\ndemon@FreeBSD.org\n2000/11/13"] dhn [label="Dennis Herrmann\ndhn@FreeBSD.org\n2009/03/03"] dryice [label="Dryice Dong Liu\ndryice@FreeBSD.org\n2006/12/25"] +eadler [label="Eitan Adler\neadler@FreeBSD.org\2011/08/17"] edwin [label="Edwin Groothuis\nedwin@FreeBSD.org\n2002/10/22"] ehaupt [label="Emanuel Haupt\nehaupt@FreeBSD.org\n2005/10/03"] eik [label="Oliver Eikemeier\neik@FreeBSD.org\n2003/11/12"] @@ -209,6 +210,7 @@ arved -> stefan asami -> obrien +bapt -> eadler bapt -> jlaffaye beat -> decke @@ -385,6 +387,7 @@ rafan -> chinsan rene -> crees sahil -> culot +sahil -> eadler sat -> beech From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 19:01:15 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BF97106566C; Wed, 28 Sep 2011 19:01:15 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8C0848FC08; Wed, 28 Sep 2011 19:01:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SJ1FCG085848; Wed, 28 Sep 2011 19:01:15 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SJ1F3D085846; Wed, 28 Sep 2011 19:01:15 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201109281901.p8SJ1F3D085846@svn.freebsd.org> From: Xin LI Date: Wed, 28 Sep 2011 19:01:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225849 - head/etc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 19:01:15 -0000 Author: delphij Date: Wed Sep 28 19:01:15 2011 New Revision: 225849 URL: http://svn.freebsd.org/changeset/base/225849 Log: Test if the interface is afif in dhcpif() and syncdhcpif(), as done in ipv6_autoconfif. Reviewed by: hrs (freebsd-rc@) MFC after: 1 week Modified: head/etc/network.subr Modified: head/etc/network.subr ============================================================================== --- head/etc/network.subr Wed Sep 28 18:56:02 2011 (r225848) +++ head/etc/network.subr Wed Sep 28 19:01:15 2011 (r225849) @@ -297,6 +297,10 @@ dhcpif() local _tmpargs _arg _tmpargs=`_ifconfig_getargs $1` + if noafif $1; then + return 1 + fi + for _arg in $_tmpargs; do case $_arg in [Dd][Hh][Cc][Pp]) @@ -322,6 +326,10 @@ syncdhcpif() local _tmpargs _arg _tmpargs=`_ifconfig_getargs $1` + if noafif $1; then + return 1 + fi + for _arg in $_tmpargs; do case $_arg in [Nn][Oo][Ss][Yy][Nn][Cc][Dd][Hh][Cc][Pp]) From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 19:36:22 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05F99106566B; Wed, 28 Sep 2011 19:36:22 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E921A8FC19; Wed, 28 Sep 2011 19:36:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SJaLWS086919; Wed, 28 Sep 2011 19:36:21 GMT (envelope-from mckusick@svn.freebsd.org) Received: (from mckusick@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SJaLQk086917; Wed, 28 Sep 2011 19:36:21 GMT (envelope-from mckusick@svn.freebsd.org) Message-Id: <201109281936.p8SJaLQk086917@svn.freebsd.org> From: Kirk McKusick Date: Wed, 28 Sep 2011 19:36:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225850 - stable/9/sys/ufs/ffs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 19:36:22 -0000 Author: mckusick Date: Wed Sep 28 19:36:21 2011 New Revision: 225850 URL: http://svn.freebsd.org/changeset/base/225850 Log: MFC: r225806: This update eliminates the system hang reported in kern/160662 when taking a snapshot on a filesystem running with journaled soft updates. As journaled soft updates first appeared in 9.0, this will be the only MFC of this change. Approved by: re (kib) Reported by: Hans Ottevanger Fix verified by: Hans Ottevanger PR: kern/160662 Modified: stable/9/sys/ufs/ffs/ffs_snapshot.c Modified: stable/9/sys/ufs/ffs/ffs_snapshot.c ============================================================================== --- stable/9/sys/ufs/ffs/ffs_snapshot.c Wed Sep 28 19:01:15 2011 (r225849) +++ stable/9/sys/ufs/ffs/ffs_snapshot.c Wed Sep 28 19:36:21 2011 (r225850) @@ -203,7 +203,7 @@ ffs_snapshot(mp, snapfile) ufs2_daddr_t numblks, blkno, *blkp, *snapblklist; int error, cg, snaploc; int i, size, len, loc; - int flag; + uint64_t flag; struct timespec starttime = {0, 0}, endtime; char saved_nice = 0; long redo = 0, snaplistsize = 0; From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 19:38:48 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28089106564A; Wed, 28 Sep 2011 19:38:48 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0D6968FC21; Wed, 28 Sep 2011 19:38:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SJclMW087022; Wed, 28 Sep 2011 19:38:47 GMT (envelope-from mckusick@svn.freebsd.org) Received: (from mckusick@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SJclbt087020; Wed, 28 Sep 2011 19:38:47 GMT (envelope-from mckusick@svn.freebsd.org) Message-Id: <201109281938.p8SJclbt087020@svn.freebsd.org> From: Kirk McKusick Date: Wed, 28 Sep 2011 19:38:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225851 - stable/9/sys/ufs/ffs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 19:38:48 -0000 Author: mckusick Date: Wed Sep 28 19:38:47 2011 New Revision: 225851 URL: http://svn.freebsd.org/changeset/base/225851 Log: MFC r225807: This update eliminates a lock-order reversal warning discovered whle tracking down the system hang reported in kern/160662 and corrected in revision 225806 (MFC'ed as 225850). The LOR is not the cause of the system hang and indeed cannot cause an actual deadlock. However, it can be easily eliminated by defering the acquisition of a buflock until after all the vnode locks have been acquired. As journaled soft updates first appeared in 9.0, this will be the only MFC of this change. Approved by: re (kib) Reported by: Hans Ottevanger PR: kern/160662 Modified: stable/9/sys/ufs/ffs/ffs_snapshot.c Modified: stable/9/sys/ufs/ffs/ffs_snapshot.c ============================================================================== --- stable/9/sys/ufs/ffs/ffs_snapshot.c Wed Sep 28 19:36:21 2011 (r225850) +++ stable/9/sys/ufs/ffs/ffs_snapshot.c Wed Sep 28 19:38:47 2011 (r225851) @@ -212,7 +212,7 @@ ffs_snapshot(mp, snapfile) struct fs *copy_fs = NULL, *fs; struct thread *td = curthread; struct inode *ip, *xp; - struct buf *bp, *nbp, *ibp, *sbp = NULL; + struct buf *bp, *nbp, *ibp; struct nameidata nd; struct mount *wrtmp; struct vattr vat; @@ -460,21 +460,14 @@ restart: * Grab a copy of the superblock and its summary information. * We delay writing it until the suspension is released below. */ - error = bread(vp, lblkno(fs, fs->fs_sblockloc), fs->fs_bsize, - KERNCRED, &sbp); - if (error) { - brelse(sbp); - sbp = NULL; - goto out1; - } - loc = blkoff(fs, fs->fs_sblockloc); - copy_fs = (struct fs *)(sbp->b_data + loc); + copy_fs = malloc((u_long)fs->fs_bsize, M_UFSMNT, M_WAITOK); bcopy(fs, copy_fs, fs->fs_sbsize); if ((fs->fs_flags & (FS_UNCLEAN | FS_NEEDSFSCK)) == 0) copy_fs->fs_clean = 1; size = fs->fs_bsize < SBLOCKSIZE ? fs->fs_bsize : SBLOCKSIZE; if (fs->fs_sbsize < size) - bzero(&sbp->b_data[loc + fs->fs_sbsize], size - fs->fs_sbsize); + bzero(&((char *)copy_fs)[fs->fs_sbsize], + size - fs->fs_sbsize); size = blkroundup(fs, fs->fs_cssize); if (fs->fs_contigsumsize > 0) size += fs->fs_ncg * sizeof(int32_t); @@ -490,8 +483,8 @@ restart: len, KERNCRED, &bp)) != 0) { brelse(bp); free(copy_fs->fs_csp, M_UFSMNT); - bawrite(sbp); - sbp = NULL; + free(copy_fs, M_UFSMNT); + copy_fs = NULL; goto out1; } bcopy(bp->b_data, space, (u_int)len); @@ -606,8 +599,8 @@ loop: vdrop(xvp); if (error) { free(copy_fs->fs_csp, M_UFSMNT); - bawrite(sbp); - sbp = NULL; + free(copy_fs, M_UFSMNT); + copy_fs = NULL; MNT_VNODE_FOREACH_ABORT(mp, mvp); goto out1; } @@ -621,8 +614,8 @@ loop: error = softdep_journal_lookup(mp, &xvp); if (error) { free(copy_fs->fs_csp, M_UFSMNT); - bawrite(sbp); - sbp = NULL; + free(copy_fs, M_UFSMNT); + copy_fs = NULL; goto out1; } xp = VTOI(xvp); @@ -688,8 +681,8 @@ loop: VI_UNLOCK(devvp); ASSERT_VOP_LOCKED(vp, "ffs_snapshot vp"); out1: - KASSERT((sn != NULL && sbp != NULL && error == 0) || - (sn == NULL && sbp == NULL && error != 0), + KASSERT((sn != NULL && copy_fs != NULL && error == 0) || + (sn == NULL && copy_fs == NULL && error != 0), ("email phk@ and mckusick@")); /* * Resume operation on filesystem. @@ -703,7 +696,7 @@ out1: vp->v_mount->mnt_stat.f_mntonname, (long)endtime.tv_sec, endtime.tv_nsec / 1000000, redo, fs->fs_ncg); } - if (sbp == NULL) + if (copy_fs == NULL) goto out; /* * Copy allocation information from all the snapshots in @@ -793,6 +786,15 @@ out1: space = (char *)space + fs->fs_bsize; bawrite(nbp); } + error = bread(vp, lblkno(fs, fs->fs_sblockloc), fs->fs_bsize, + KERNCRED, &nbp); + if (error) { + brelse(nbp); + } else { + loc = blkoff(fs, fs->fs_sblockloc); + bcopy((char *)copy_fs, &nbp->b_data[loc], fs->fs_bsize); + bawrite(nbp); + } /* * As this is the newest list, it is the most inclusive, so * should replace the previous list. @@ -822,7 +824,8 @@ out1: vrele(vp); /* Drop extra reference */ done: free(copy_fs->fs_csp, M_UFSMNT); - bawrite(sbp); + free(copy_fs, M_UFSMNT); + copy_fs = NULL; out: NDFREE(&nd, NDF_ONLY_PNBUF); if (saved_nice > 0) { From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 20:42:22 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72C311065673; Wed, 28 Sep 2011 20:42:22 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 62D028FC12; Wed, 28 Sep 2011 20:42:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SKgMXr089116; Wed, 28 Sep 2011 20:42:22 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SKgMGH089114; Wed, 28 Sep 2011 20:42:22 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201109282042.p8SKgMGH089114@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Wed, 28 Sep 2011 20:42:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225852 - head/crypto/openssh X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 20:42:22 -0000 Author: des Date: Wed Sep 28 20:42:22 2011 New Revision: 225852 URL: http://svn.freebsd.org/changeset/base/225852 Log: Belatedly regenerate after application of the HPN patch. Modified: head/crypto/openssh/ssh_namespace.h Modified: head/crypto/openssh/ssh_namespace.h ============================================================================== --- head/crypto/openssh/ssh_namespace.h Wed Sep 28 19:38:47 2011 (r225851) +++ head/crypto/openssh/ssh_namespace.h Wed Sep 28 20:42:22 2011 (r225852) @@ -7,7 +7,7 @@ * * A list of symbols which need munging is obtained as follows: * - * nm libssh.a | awk '/[0-9a-z] [A-Z] / && $3 !~ /^ssh_/ { print "#define" $3 "\t\tssh_" $3 }' + * nm libssh.a | awk '/[0-9a-z] [A-Z] / && $3 !~ /^ssh_/ { print "#define " $3 "\t\tssh_" $3 }' * * $FreeBSD$ */ @@ -58,6 +58,7 @@ #define buffer_get_int64 ssh_buffer_get_int64 #define buffer_get_int64_ret ssh_buffer_get_int64_ret #define buffer_get_int_ret ssh_buffer_get_int_ret +#define buffer_get_max_len ssh_buffer_get_max_len #define buffer_get_ret ssh_buffer_get_ret #define buffer_get_short ssh_buffer_get_short #define buffer_get_short_ret ssh_buffer_get_short_ret @@ -139,6 +140,7 @@ #define channel_send_window_changes ssh_channel_send_window_changes #define channel_set_af ssh_channel_set_af #define channel_set_fds ssh_channel_set_fds +#define channel_set_hpn ssh_channel_set_hpn #define channel_setup_local_fwd_listener ssh_channel_setup_local_fwd_listener #define channel_setup_remote_fwd_listener ssh_channel_setup_remote_fwd_listener #define channel_still_open ssh_channel_still_open @@ -438,6 +440,7 @@ #define set_nonblock ssh_set_nonblock #define shadow_pw ssh_shadow_pw #define sigdie ssh_sigdie +#define sock_get_rcvbuf ssh_sock_get_rcvbuf #define sock_set_v6only ssh_sock_set_v6only #define ssh1_3des_iv ssh_ssh1_3des_iv #define start_progress_meter ssh_start_progress_meter From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 20:46:52 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D86AC1065670; Wed, 28 Sep 2011 20:46:52 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AE7928FC1E; Wed, 28 Sep 2011 20:46:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SKkqQ8089296; Wed, 28 Sep 2011 20:46:52 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SKkqQT089293; Wed, 28 Sep 2011 20:46:52 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201109282046.p8SKkqQT089293@svn.freebsd.org> From: Eitan Adler Date: Wed, 28 Sep 2011 20:46:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225853 - in head: share/misc usr.bin/calendar/calendars X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 20:46:52 -0000 Author: eadler (ports committer) Date: Wed Sep 28 20:46:52 2011 New Revision: 225853 URL: http://svn.freebsd.org/changeset/base/225853 Log: - fix whitespace issue in calendar - add a n after \ Submitted by: brueffer Approved by: bapt (mentor) Modified: head/share/misc/committers-ports.dot head/usr.bin/calendar/calendars/calendar.freebsd Modified: head/share/misc/committers-ports.dot ============================================================================== --- head/share/misc/committers-ports.dot Wed Sep 28 20:42:22 2011 (r225852) +++ head/share/misc/committers-ports.dot Wed Sep 28 20:46:52 2011 (r225853) @@ -78,7 +78,7 @@ delphij [label="Xin Li\ndelphij@FreeBSD. demon [label="Dmitry Sivachenko\ndemon@FreeBSD.org\n2000/11/13"] dhn [label="Dennis Herrmann\ndhn@FreeBSD.org\n2009/03/03"] dryice [label="Dryice Dong Liu\ndryice@FreeBSD.org\n2006/12/25"] -eadler [label="Eitan Adler\neadler@FreeBSD.org\2011/08/17"] +eadler [label="Eitan Adler\neadler@FreeBSD.org\n2011/08/17"] edwin [label="Edwin Groothuis\nedwin@FreeBSD.org\n2002/10/22"] ehaupt [label="Emanuel Haupt\nehaupt@FreeBSD.org\n2005/10/03"] eik [label="Oliver Eikemeier\neik@FreeBSD.org\n2003/11/12"] Modified: head/usr.bin/calendar/calendars/calendar.freebsd ============================================================================== --- head/usr.bin/calendar/calendars/calendar.freebsd Wed Sep 28 20:42:22 2011 (r225852) +++ head/usr.bin/calendar/calendars/calendar.freebsd Wed Sep 28 20:46:52 2011 (r225853) @@ -47,7 +47,7 @@ 02/02 Michael W Lucas born in Detroit, Michigan, United States, 1967 02/02 Dmitry Chagin born in Stalingrad, USSR, 1976 02/02 Yoichi Nakayama born in Tsu, Mie, Japan, 1976 -02/04 Eitan Adler born in West Hempstead, New York, United States, 1991 +02/04 Eitan Adler born in West Hempstead, New York, United States, 199 02/05 Frank Laszlo born in Howell, Michigan, United States, 1983 02/10 David Greenman born in Portland, Oregon, United States, 1968 02/10 Paul Richards born in Ammanford, Carmarthenshire, United Kingdom, 1968 From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 21:01:53 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 863CC1065675; Wed, 28 Sep 2011 21:01:53 +0000 (UTC) Date: Wed, 28 Sep 2011 21:01:53 +0000 From: Alexander Best To: Ed Schouten Message-ID: <20110928210153.GA86466@freebsd.org> References: <201109281853.p8SIrave085527@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201109281853.p8SIrave085527@svn.freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225847 - in head: bin/ls bin/ps lib/libc/gen sbin/fsdb usr.bin/find usr.bin/fstat usr.sbin/pstat X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 21:01:53 -0000 On Wed Sep 28 11, Ed Schouten wrote: > Author: ed > Date: Wed Sep 28 18:53:36 2011 > New Revision: 225847 > URL: http://svn.freebsd.org/changeset/base/225847 > > Log: > Get rid of major/minor number distinction. > > As of FreeBSD 6, devices can only be opened through devfs. These device > nodes don't have major and minor numbers anymore. The st_rdev field in > struct stat is simply based a copy of st_ino. > > Simply display device numbers as hexadecimal, using "%#jx". This is > allowed by POSIX, since it explicitly states things like the following > (example taken from ls(1)): > > "If the file is a character special or block special file, the > size of the file may be replaced with implementation-defined > information associated with the device in question." > > This makes the output of these commands more compact. For example, ls(1) > now uses approximately four columns less. While there, simplify the > column length calculation from ls(1) by calling snprintf() with a NULL > buffer. very cool. maybe before the release of freebsd 10.0 we could get edward's ps(1) auto-size-column-width patch committed. this shrinks the ps(1) output some more: http://people.freebsd.org/~trasz/ps-9.diff :) cheers. alex > > Don't be afraid; if needed one can still obtain individual major/minor > numbers using stat(1). > > Modified: > head/bin/ls/ls.1 > head/bin/ls/ls.c > head/bin/ls/ls.h > head/bin/ls/print.c > head/bin/ps/print.c > head/lib/libc/gen/devname.c > head/sbin/fsdb/fsdbutil.c > head/usr.bin/find/find.1 > head/usr.bin/find/ls.c > head/usr.bin/fstat/fstat.1 > head/usr.bin/fstat/fstat.c > head/usr.sbin/pstat/pstat.c > > Modified: head/bin/ls/ls.1 > ============================================================================== > --- head/bin/ls/ls.1 Wed Sep 28 18:49:37 2011 (r225846) > +++ head/bin/ls/ls.1 Wed Sep 28 18:53:36 2011 (r225847) > @@ -32,7 +32,7 @@ > .\" @(#)ls.1 8.7 (Berkeley) 7/29/94 > .\" $FreeBSD$ > .\" > -.Dd April 4, 2008 > +.Dd September 28, 2011 > .Dt LS 1 > .Os > .Sh NAME > @@ -357,8 +357,7 @@ option is given, > the numeric ID's are displayed. > .Pp > If the file is a character special or block special file, > -the major and minor device numbers for the file are displayed > -in the size field. > +the device number for the file is displayed in the size field. > If the file is a symbolic link the pathname of the > linked-to file is preceded by > .Dq Li -> . > > Modified: head/bin/ls/ls.c > ============================================================================== > --- head/bin/ls/ls.c Wed Sep 28 18:49:37 2011 (r225846) > +++ head/bin/ls/ls.c Wed Sep 28 18:53:36 2011 (r225847) > @@ -563,7 +563,7 @@ display(const FTSENT *p, FTSENT *list, i > long maxblock; > u_long btotal, labelstrlen, maxinode, maxlen, maxnlink; > u_long maxlabelstr; > - u_int devstrlen; > + u_int sizelen; > int maxflags; > gid_t maxgroup; > uid_t maxuser; > @@ -572,7 +572,6 @@ display(const FTSENT *p, FTSENT *list, i > int entries, needstats; > const char *user, *group; > char *flags, *labelstr = NULL; > - char buf[STRBUF_SIZEOF(u_quad_t) + 1]; > char ngroup[STRBUF_SIZEOF(uid_t) + 1]; > char nuser[STRBUF_SIZEOF(gid_t) + 1]; > > @@ -656,7 +655,8 @@ display(const FTSENT *p, FTSENT *list, i > MAKENINES(maxsize); > free(jinitmax); > } > - devstrlen = 0; > + d.s_size = 0; > + sizelen = 0; > flags = NULL; > for (cur = list, entries = 0; cur; cur = cur->fts_link) { > if (cur->fts_info == FTS_ERR || cur->fts_info == FTS_NS) { > @@ -796,14 +796,12 @@ label_out: > np->group = &np->data[ulen + 1]; > (void)strcpy(np->group, group); > > - if ((S_ISCHR(sp->st_mode) || > - S_ISBLK(sp->st_mode)) && > - devstrlen < DEVSTR_HEX_LEN) { > - if (minor(sp->st_rdev) > 255 || > - minor(sp->st_rdev) < 0) > - devstrlen = DEVSTR_HEX_LEN; > - else > - devstrlen = DEVSTR_LEN; > + if (S_ISCHR(sp->st_mode) || > + S_ISBLK(sp->st_mode)) { > + sizelen = snprintf(NULL, 0, > + "%#jx", (uintmax_t)sp->st_rdev); > + if (d.s_size < sizelen) > + d.s_size = sizelen; > } > > if (f_flags) { > @@ -837,23 +835,16 @@ label_out: > d.maxlen = maxlen; > if (needstats) { > d.btotal = btotal; > - (void)snprintf(buf, sizeof(buf), "%lu", maxblock); > - d.s_block = strlen(buf); > + d.s_block = snprintf(NULL, 0, "%lu", maxblock); > d.s_flags = maxflags; > d.s_label = maxlabelstr; > d.s_group = maxgroup; > - (void)snprintf(buf, sizeof(buf), "%lu", maxinode); > - d.s_inode = strlen(buf); > - (void)snprintf(buf, sizeof(buf), "%lu", maxnlink); > - d.s_nlink = strlen(buf); > - if (f_humanval) > - d.s_size = HUMANVALSTR_LEN; > - else { > - (void)snprintf(buf, sizeof(buf), "%ju", maxsize); > - d.s_size = strlen(buf); > - } > - if (d.s_size < devstrlen) > - d.s_size = devstrlen; > + d.s_inode = snprintf(NULL, 0, "%lu", maxinode); > + d.s_nlink = snprintf(NULL, 0, "%lu", maxnlink); > + sizelen = f_humanval ? HUMANVALSTR_LEN : > + snprintf(NULL, 0, "%ju", maxsize); > + if (d.s_size < sizelen) > + d.s_size = sizelen; > d.s_user = maxuser; > } > printfcn(&d); > > Modified: head/bin/ls/ls.h > ============================================================================== > --- head/bin/ls/ls.h Wed Sep 28 18:49:37 2011 (r225846) > +++ head/bin/ls/ls.h Wed Sep 28 18:53:36 2011 (r225847) > @@ -36,8 +36,6 @@ > #define NO_PRINT 1 > > #define HUMANVALSTR_LEN 5 > -#define DEVSTR_LEN 8 > -#define DEVSTR_HEX_LEN 15 > > extern long blocksize; /* block size units */ > > > Modified: head/bin/ls/print.c > ============================================================================== > --- head/bin/ls/print.c Wed Sep 28 18:49:37 2011 (r225846) > +++ head/bin/ls/print.c Wed Sep 28 18:53:36 2011 (r225847) > @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); > #include > #include > #include > +#include > #include > #include > #include > @@ -351,16 +352,8 @@ printaname(const FTSENT *p, u_long inode > static void > printdev(size_t width, dev_t dev) > { > - char buf[DEVSTR_HEX_LEN + 1]; > > - if (minor(dev) > 255 || minor(dev) < 0) > - (void)snprintf(buf, sizeof(buf), "%3d, 0x%08x", > - major(dev), (u_int)minor(dev)); > - else > - (void)snprintf(buf, sizeof(buf), "%3d, %3d", > - major(dev), minor(dev)); > - > - (void)printf("%*s ", (u_int)width, buf); > + (void)printf("%#*jx ", (u_int)width, (uintmax_t)dev); > } > > static void > > Modified: head/bin/ps/print.c > ============================================================================== > --- head/bin/ps/print.c Wed Sep 28 18:49:37 2011 (r225846) > +++ head/bin/ps/print.c Wed Sep 28 18:53:36 2011 (r225847) > @@ -392,17 +392,13 @@ tdev(KINFO *k, VARENT *ve) > { > VAR *v; > dev_t dev; > - char buff[16]; > > v = ve->var; > dev = k->ki_p->ki_tdev; > if (dev == NODEV) > (void)printf("%*s", v->width, "??"); > - else { > - (void)snprintf(buff, sizeof(buff), > - "%d/%d", major(dev), minor(dev)); > - (void)printf("%*s", v->width, buff); > - } > + else > + (void)printf("%#*jx", v->width, (uintmax_t)dev); > } > > void > > Modified: head/lib/libc/gen/devname.c > ============================================================================== > --- head/lib/libc/gen/devname.c Wed Sep 28 18:49:37 2011 (r225846) > +++ head/lib/libc/gen/devname.c Wed Sep 28 18:53:36 2011 (r225847) > @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); > #include > > #include > +#include > #include > #include > #include > @@ -60,8 +61,8 @@ devname_r(dev_t dev, mode_t type, char * > } > > /* Finally just format it */ > - snprintf(buf, len, "#%c:%d:0x%x", > - S_ISCHR(type) ? 'C' : 'B', major(dev), minor(dev)); > + snprintf(buf, len, "#%c:%#jx", > + S_ISCHR(type) ? 'C' : 'B', (uintmax_t)dev); > return (buf); > } > > > Modified: head/sbin/fsdb/fsdbutil.c > ============================================================================== > --- head/sbin/fsdb/fsdbutil.c Wed Sep 28 18:49:37 2011 (r225846) > +++ head/sbin/fsdb/fsdbutil.c Wed Sep 28 18:53:36 2011 (r225847) > @@ -126,12 +126,10 @@ printstat(const char *cp, ino_t inum, un > puts("regular file"); > break; > case IFBLK: > - printf("block special (%d,%d)", > - major(DIP(dp, di_rdev)), minor(DIP(dp, di_rdev))); > + printf("block special (%#jx)", (uintmax_t)DIP(dp, di_rdev)); > break; > case IFCHR: > - printf("character special (%d,%d)", > - major(DIP(dp, di_rdev)), minor(DIP(dp, di_rdev))); > + printf("character special (%#jx)", DIP(dp, di_rdev)); > break; > case IFLNK: > fputs("symlink",stdout); > > Modified: head/usr.bin/find/find.1 > ============================================================================== > --- head/usr.bin/find/find.1 Wed Sep 28 18:49:37 2011 (r225846) > +++ head/usr.bin/find/find.1 Wed Sep 28 18:53:36 2011 (r225847) > @@ -31,7 +31,7 @@ > .\" @(#)find.1 8.7 (Berkeley) 5/9/95 > .\" $FreeBSD$ > .\" > -.Dd March 17, 2010 > +.Dd September 28, 2011 > .Dt FIND 1 > .Os > .Sh NAME > @@ -507,7 +507,7 @@ This primary always evaluates to true. > The following information for the current file is written to standard output: > its inode number, size in 512-byte blocks, file permissions, number of hard > links, owner, group, size in bytes, last modification time, and pathname. > -If the file is a block or character special file, the major and minor numbers > +If the file is a block or character special file, the device number > will be displayed instead of the size in bytes. > If the file is a symbolic link, the pathname of the linked-to file will be > displayed preceded by > > Modified: head/usr.bin/find/ls.c > ============================================================================== > --- head/usr.bin/find/ls.c Wed Sep 28 18:49:37 2011 (r225846) > +++ head/usr.bin/find/ls.c Wed Sep 28 18:53:36 2011 (r225847) > @@ -70,8 +70,7 @@ printlong(char *name, char *accpath, str > group_from_gid(sb->st_gid, 0)); > > if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) > - (void)printf("%3d, %3d ", major(sb->st_rdev), > - minor(sb->st_rdev)); > + (void)printf("%#8jx ", (uintmax_t)sb->st_rdev); > else > (void)printf("%8"PRId64" ", sb->st_size); > printtime(sb->st_mtime); > > Modified: head/usr.bin/fstat/fstat.1 > ============================================================================== > --- head/usr.bin/fstat/fstat.1 Wed Sep 28 18:49:37 2011 (r225846) > +++ head/usr.bin/fstat/fstat.1 Wed Sep 28 18:53:36 2011 (r225847) > @@ -28,7 +28,7 @@ > .\" @(#)fstat.1 8.3 (Berkeley) 2/25/94 > .\" $FreeBSD$ > .\" > -.Dd July 9, 2009 > +.Dd September 28, 2011 > .Dt FSTAT 1 > .Os > .Sh NAME > @@ -142,7 +142,7 @@ pathname that the file system the file r > If the > .Fl n > flag is specified, this header is present and is the > -major/minor number of the device that this file resides in. > +number of the device that this file resides in. > .It Li INUM > The inode number of the file. > .It Li MODE > > Modified: head/usr.bin/fstat/fstat.c > ============================================================================== > --- head/usr.bin/fstat/fstat.c Wed Sep 28 18:49:37 2011 (r225846) > +++ head/usr.bin/fstat/fstat.c Wed Sep 28 18:53:36 2011 (r225847) > @@ -411,7 +411,7 @@ print_pts_info(struct procstat *procstat > } > printf("* pseudo-terminal master "); > if (nflg || !*pts.devname) { > - printf("%10d,%-2d", major(pts.dev), minor(pts.dev)); > + printf("%#10jx", (uintmax_t)pts.dev); > } else { > printf("%10s", pts.devname); > } > @@ -441,7 +441,7 @@ print_vnode_info(struct procstat *procst > } > > if (nflg) > - printf(" %2d,%-2d", major(vn.vn_fsid), minor(vn.vn_fsid)); > + printf(" %#8jx", (uintmax_t)vn.vn_fsid); > else if (vn.vn_mntdir != NULL) > (void)printf(" %-8s", vn.vn_mntdir); > > @@ -457,7 +457,7 @@ print_vnode_info(struct procstat *procst > > if (vn.vn_type == PS_FST_VTYPE_VBLK || vn.vn_type == PS_FST_VTYPE_VCHR) { > if (nflg || !*vn.vn_devname) > - printf(" %2d,%-2d", major(vn.vn_dev), minor(vn.vn_dev)); > + printf(" %#6jx", (uintmax_t)vn.vn_dev); > else { > printf(" %6s", vn.vn_devname); > } > > Modified: head/usr.sbin/pstat/pstat.c > ============================================================================== > --- head/usr.sbin/pstat/pstat.c Wed Sep 28 18:49:37 2011 (r225846) > +++ head/usr.sbin/pstat/pstat.c Wed Sep 28 18:53:36 2011 (r225847) > @@ -345,7 +345,7 @@ ttyprt(struct xtty *xt) > errx(1, "struct xtty size mismatch"); > if (usenumflag || xt->xt_dev == 0 || > (name = devname(xt->xt_dev, S_IFCHR)) == NULL) > - printf("%5d,%4d ", major(xt->xt_dev), minor(xt->xt_dev)); > + printf("%#10jx ", (uintmax_t)xt->xt_dev); > else > printf("%10s ", name); > printf("%5zu %4zu %4zu %4zu %5zu %4zu %4zu %5u %5d %5d ", From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 21:42:13 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7A37106566B; Wed, 28 Sep 2011 21:42:13 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C75928FC08; Wed, 28 Sep 2011 21:42:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8SLgDoD090943; Wed, 28 Sep 2011 21:42:13 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8SLgDCV090941; Wed, 28 Sep 2011 21:42:13 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201109282142.p8SLgDCV090941@svn.freebsd.org> From: Eitan Adler Date: Wed, 28 Sep 2011 21:42:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225854 - head/usr.bin/calendar/calendars X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 21:42:13 -0000 Author: eadler (ports committer) Date: Wed Sep 28 21:42:13 2011 New Revision: 225854 URL: http://svn.freebsd.org/changeset/base/225854 Log: - I am not the oldest committer alive (yet) Approved by: bapt (mentor) Modified: head/usr.bin/calendar/calendars/calendar.freebsd Modified: head/usr.bin/calendar/calendars/calendar.freebsd ============================================================================== --- head/usr.bin/calendar/calendars/calendar.freebsd Wed Sep 28 20:46:52 2011 (r225853) +++ head/usr.bin/calendar/calendars/calendar.freebsd Wed Sep 28 21:42:13 2011 (r225854) @@ -47,7 +47,7 @@ 02/02 Michael W Lucas born in Detroit, Michigan, United States, 1967 02/02 Dmitry Chagin born in Stalingrad, USSR, 1976 02/02 Yoichi Nakayama born in Tsu, Mie, Japan, 1976 -02/04 Eitan Adler born in West Hempstead, New York, United States, 199 +02/04 Eitan Adler born in West Hempstead, New York, United States, 1991 02/05 Frank Laszlo born in Howell, Michigan, United States, 1983 02/10 David Greenman born in Portland, Oregon, United States, 1968 02/10 Paul Richards born in Ammanford, Carmarthenshire, United Kingdom, 1968 From owner-svn-src-all@FreeBSD.ORG Wed Sep 28 22:30:11 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 170CE106564A; Wed, 28 Sep 2011 22:30:11 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C7BD58FC14; Wed, 28 Sep 2011 22:30:10 +0000 (UTC) Received: from 192.168.0.5 (71-213-10-32.slkc.qwest.net [71.213.10.32]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p8SMNkdI006768 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Wed, 28 Sep 2011 16:23:48 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 28 Sep 2011 16:23:54 -0600 Message-ID: <1alpfgmia72sqsuh6i7c8its.1317248634803@email.android.com> From: "imp@bsdimp.com" To: Eitan Adler , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Wed, 28 Sep 2011 16:23:49 -0600 (MDT) Cc: Subject: Re: svn commit: r225854 - head/usr.bin/calendar/calendars X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 22:30:11 -0000 U28geW91IGFyZW4ndCBhIHZhbXBpcmU/CgpFaXRhbiBBZGxlciA8ZWFkbGVyQGZyZWVic2Qub3Jn PiB3cm90ZToKCj5BdXRob3I6IGVhZGxlciAocG9ydHMgY29tbWl0dGVyKQo+RGF0ZTogV2VkIFNl cCAyOCAyMTo0MjoxMyAyMDExCj5OZXcgUmV2aXNpb246IDIyNTg1NAo+VVJMOiBodHRwOi8vc3Zu LmZyZWVic2Qub3JnL2NoYW5nZXNldC9iYXNlLzIyNTg1NAo+Cj5Mb2c6Cj4gIC0gSSBhbSBub3Qg dGhlIG9sZGVzdCBjb21taXR0ZXIgYWxpdmUgKHlldCkKPiAgCj4gIEFwcHJvdmVkIGJ5OgliYXB0 IChtZW50b3IpCj4KPk1vZGlmaWVkOgo+ICBoZWFkL3Vzci5iaW4vY2FsZW5kYXIvY2FsZW5kYXJz L2NhbGVuZGFyLmZyZWVic2QKPgo+TW9kaWZpZWQ6IGhlYWQvdXNyLmJpbi9jYWxlbmRhci9jYWxl bmRhcnMvY2FsZW5kYXIuZnJlZWJzZAo+PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Cj4tLS0gaGVhZC91 c3IuYmluL2NhbGVuZGFyL2NhbGVuZGFycy9jYWxlbmRhci5mcmVlYnNkCVdlZCBTZXAgMjggMjA6 NDY6NTIgMjAxMQkocjIyNTg1MykKPisrKyBoZWFkL3Vzci5iaW4vY2FsZW5kYXIvY2FsZW5kYXJz L2NhbGVuZGFyLmZyZWVic2QJV2VkIFNlcCAyOCAyMTo0MjoxMyAyMDExCShyMjI1ODU0KQo+QEAg LTQ3LDcgKzQ3LDcgQEAKPiAwMi8wMglNaWNoYWVsIFcgTHVjYXMgPG13bHVjYXNARnJlZUJTRC5v cmc+IGJvcm4gaW4gRGV0cm9pdCwgTWljaGlnYW4sIFVuaXRlZCBTdGF0ZXMsIDE5NjcKPiAwMi8w MglEbWl0cnkgQ2hhZ2luIDxkY2hhZ2luQEZyZWVCU0Qub3JnPiBib3JuIGluIFN0YWxpbmdyYWQs IFVTU1IsIDE5NzYKPiAwMi8wMglZb2ljaGkgTmFrYXlhbWEgPHlvaWNoaUBGcmVlQlNELm9yZz4g Ym9ybiBpbiBUc3UsIE1pZSwgSmFwYW4sIDE5NzYKPi0wMi8wNAlFaXRhbiBBZGxlciA8ZWFkbGVy QEZyZWVCU0Qub3JnPiBib3JuIGluIFdlc3QgSGVtcHN0ZWFkLCBOZXcgWW9yaywgVW5pdGVkIFN0 YXRlcywgMTk5Cj4rMDIvMDQJRWl0YW4gQWRsZXIgPGVhZGxlckBGcmVlQlNELm9yZz4gYm9ybiBp biBXZXN0IEhlbXBzdGVhZCwgTmV3IFlvcmssIFVuaXRlZCBTdGF0ZXMsIDE5OTEKPiAwMi8wNQlG cmFuayBMYXN6bG8gPGxhc3psb2ZARnJlZUJTRC5vcmc+IGJvcm4gaW4gSG93ZWxsLCBNaWNoaWdh biwgVW5pdGVkIFN0YXRlcywgMTk4Mwo+IDAyLzEwCURhdmlkIEdyZWVubWFuIDxkZ0BGcmVlQlNE Lm9yZz4gYm9ybiBpbiBQb3J0bGFuZCwgT3JlZ29uLCBVbml0ZWQgU3RhdGVzLCAxOTY4Cj4gMDIv MTAJUGF1bCBSaWNoYXJkcyA8cGF1bEBGcmVlQlNELm9yZz4gYm9ybiBpbiBBbW1hbmZvcmQsIENh cm1hcnRoZW5zaGlyZSwgVW5pdGVkIEtpbmdkb20sIDE5NjgKPgo+Cg== From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 00:39:57 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50CE1106564A; Thu, 29 Sep 2011 00:39:57 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3CCCC8FC12; Thu, 29 Sep 2011 00:39:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T0dveU096801; Thu, 29 Sep 2011 00:39:57 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T0dvEo096785; Thu, 29 Sep 2011 00:39:57 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201109290039.p8T0dvEo096785@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 29 Sep 2011 00:39:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225855 - in stable/8/sys: amd64/amd64 amd64/ia32 amd64/include i386/i386 ia64/ia32 ia64/ia64 kern powerpc/aim powerpc/booke sparc64/sparc64 sun4v/sun4v sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 00:39:57 -0000 Author: kib Date: Thu Sep 29 00:39:56 2011 New Revision: 225855 URL: http://svn.freebsd.org/changeset/base/225855 Log: Merge the optimizations for the syscall entry and leave. MFC r225474: Inline the syscallenter() and syscallret(). This reduces the time measured by the syscall entry speed microbenchmarks by ~10% on amd64. MFC r225475: Perform amd64-specific microoptimizations for native syscall entry sequence. The effect is ~1% on the microbenchmark. In particular, do not restore registers which are preserved by the C calling sequence. Align the jump target. Avoid unneeded memory accesses by calculating some data in syscall entry trampoline. MFC r225483: The jump target shall be after the padding, not into it. MFC r225575: Microoptimize the return path for the fast syscalls on amd64. Arrange the code to have the fall-through path to follow the likely target. Do not use intermediate register to reload user %rsp. MFC r225576: Put amd64_syscall() prototype in md_var.h. Tested by: Alexandr Kovalenko Added: stable/8/sys/kern/subr_syscall.c - copied, changed from r225474, head/sys/kern/subr_syscall.c Modified: stable/8/sys/amd64/amd64/exception.S stable/8/sys/amd64/amd64/genassym.c stable/8/sys/amd64/amd64/trap.c stable/8/sys/amd64/ia32/ia32_syscall.c stable/8/sys/amd64/include/md_var.h stable/8/sys/i386/i386/trap.c stable/8/sys/ia64/ia32/ia32_trap.c stable/8/sys/ia64/ia64/trap.c stable/8/sys/kern/subr_trap.c stable/8/sys/powerpc/aim/trap.c stable/8/sys/powerpc/booke/trap.c stable/8/sys/sparc64/sparc64/trap.c stable/8/sys/sun4v/sun4v/trap.c stable/8/sys/sys/proc.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/amd64/amd64/exception.S ============================================================================== --- stable/8/sys/amd64/amd64/exception.S Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/amd64/amd64/exception.S Thu Sep 29 00:39:56 2011 (r225855) @@ -380,8 +380,11 @@ IDTVEC(fast_syscall) movl $TF_HASSEGS,TF_FLAGS(%rsp) cld FAKE_MCOUNT(TF_RIP(%rsp)) - movq %rsp,%rdi - call syscall + movq PCPU(CURTHREAD),%rdi + movq %rsp,TD_FRAME(%rdi) + movl TF_RFLAGS(%rsp),%esi + andl $PSL_T,%esi + call amd64_syscall 1: movq PCPU(CURPCB),%rax /* Disable interrupts before testing PCB_FULL_IRET. */ cli @@ -390,29 +393,25 @@ IDTVEC(fast_syscall) /* Check for and handle AST's on return to userland. */ movq PCPU(CURTHREAD),%rax testl $TDF_ASTPENDING | TDF_NEEDRESCHED,TD_FLAGS(%rax) - je 2f - sti - movq %rsp, %rdi - call ast - jmp 1b -2: /* Restore preserved registers. */ + jne 2f + /* Restore preserved registers. */ MEXITCOUNT movq TF_RDI(%rsp),%rdi /* bonus; preserve arg 1 */ movq TF_RSI(%rsp),%rsi /* bonus: preserve arg 2 */ movq TF_RDX(%rsp),%rdx /* return value 2 */ movq TF_RAX(%rsp),%rax /* return value 1 */ - movq TF_RBX(%rsp),%rbx /* C preserved */ - movq TF_RBP(%rsp),%rbp /* C preserved */ - movq TF_R12(%rsp),%r12 /* C preserved */ - movq TF_R13(%rsp),%r13 /* C preserved */ - movq TF_R14(%rsp),%r14 /* C preserved */ - movq TF_R15(%rsp),%r15 /* C preserved */ movq TF_RFLAGS(%rsp),%r11 /* original %rflags */ movq TF_RIP(%rsp),%rcx /* original %rip */ - movq TF_RSP(%rsp),%r9 /* user stack pointer */ - movq %r9,%rsp /* original %rsp */ + movq TF_RSP(%rsp),%rsp /* user stack pointer */ swapgs sysretq + +2: /* AST scheduled. */ + sti + movq %rsp,%rdi + call ast + jmp 1b + 3: /* Requested full context restore, use doreti for that. */ MEXITCOUNT jmp doreti Modified: stable/8/sys/amd64/amd64/genassym.c ============================================================================== --- stable/8/sys/amd64/amd64/genassym.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/amd64/amd64/genassym.c Thu Sep 29 00:39:56 2011 (r225855) @@ -87,6 +87,7 @@ ASSYM(TD_PCB, offsetof(struct thread, td ASSYM(TD_PFLAGS, offsetof(struct thread, td_pflags)); ASSYM(TD_PROC, offsetof(struct thread, td_proc)); ASSYM(TD_TID, offsetof(struct thread, td_tid)); +ASSYM(TD_FRAME, offsetof(struct thread, td_frame)); ASSYM(TDF_ASTPENDING, TDF_ASTPENDING); ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED); Modified: stable/8/sys/amd64/amd64/trap.c ============================================================================== --- stable/8/sys/amd64/amd64/trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/amd64/amd64/trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -889,41 +889,37 @@ cpu_fetch_syscall_args(struct thread *td return (error); } +#include "../../kern/subr_syscall.c" + /* * syscall - system call request C handler * * A system call is essentially treated as a trap. */ void -syscall(struct trapframe *frame) +amd64_syscall(struct thread *td, int traced) { - struct thread *td; struct syscall_args sa; - register_t orig_tf_rflags; int error; ksiginfo_t ksi; #ifdef DIAGNOSTIC - if (ISPL(frame->tf_cs) != SEL_UPL) { + if (ISPL(td->td_frame->tf_cs) != SEL_UPL) { panic("syscall"); /* NOT REACHED */ } #endif - orig_tf_rflags = frame->tf_rflags; - td = curthread; - td->td_frame = frame; - error = syscallenter(td, &sa); /* * Traced syscall. */ - if (orig_tf_rflags & PSL_T) { - frame->tf_rflags &= ~PSL_T; + if (__predict_false(traced)) { + td->td_frame->tf_rflags &= ~PSL_T; ksiginfo_init_trap(&ksi); ksi.ksi_signo = SIGTRAP; ksi.ksi_code = TRAP_TRACE; - ksi.ksi_addr = (void *)frame->tf_rip; + ksi.ksi_addr = (void *)td->td_frame->tf_rip; trapsignal(td, &ksi); } Modified: stable/8/sys/amd64/ia32/ia32_syscall.c ============================================================================== --- stable/8/sys/amd64/ia32/ia32_syscall.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/amd64/ia32/ia32_syscall.c Thu Sep 29 00:39:56 2011 (r225855) @@ -156,6 +156,8 @@ ia32_fetch_syscall_args(struct thread *t return (error); } +#include "../../kern/subr_syscall.c" + void ia32_syscall(struct trapframe *frame) { Modified: stable/8/sys/amd64/include/md_var.h ============================================================================== --- stable/8/sys/amd64/include/md_var.h Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/amd64/include/md_var.h Thu Sep 29 00:39:56 2011 (r225855) @@ -75,6 +75,7 @@ struct fpreg; struct dbreg; struct dumperinfo; +void amd64_syscall(struct thread *td, int traced); void busdma_swi(void); void cpu_setregs(void); void doreti_iret(void) __asm(__STRING(doreti_iret)); Modified: stable/8/sys/i386/i386/trap.c ============================================================================== --- stable/8/sys/i386/i386/trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/i386/i386/trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -1060,6 +1060,8 @@ cpu_fetch_syscall_args(struct thread *td return (error); } +#include "../../kern/subr_syscall.c" + /* * syscall - system call request C handler * Modified: stable/8/sys/ia64/ia32/ia32_trap.c ============================================================================== --- stable/8/sys/ia64/ia32/ia32_trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/ia64/ia32/ia32_trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -144,6 +144,8 @@ ia32_fetch_syscall_args(struct thread *t return (error); } +#include "../../kern/subr_syscall.c" + static void ia32_syscall(struct trapframe *tf) { Modified: stable/8/sys/ia64/ia64/trap.c ============================================================================== --- stable/8/sys/ia64/ia64/trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/ia64/ia64/trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -936,6 +936,8 @@ cpu_fetch_syscall_args(struct thread *td return (0); } +#include "../../kern/subr_syscall.c" + /* * Process a system call. * Copied and modified: stable/8/sys/kern/subr_syscall.c (from r225474, head/sys/kern/subr_syscall.c) ============================================================================== --- head/sys/kern/subr_syscall.c Sun Sep 11 16:05:09 2011 (r225474, copy source) +++ stable/8/sys/kern/subr_syscall.c Thu Sep 29 00:39:56 2011 (r225855) @@ -38,13 +38,11 @@ * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 */ -#include "opt_capsicum.h" #include "opt_ktrace.h" #include "opt_kdtrace.h" __FBSDID("$FreeBSD$"); -#include #include #ifdef KTRACE #include @@ -100,22 +98,6 @@ syscallenter(struct thread *td, struct s goto retval; } -#ifdef CAPABILITY_MODE - /* - * In capability mode, we only allow access to system calls - * flagged with SYF_CAPENABLED. - */ - if (IN_CAPABILITY_MODE(td) && - !(sa->callp->sy_flags & SYF_CAPENABLED)) { - error = ECAPMODE; - goto retval; - } -#endif - - error = syscall_thread_enter(td, sa->callp); - if (error != 0) - goto retval; - #ifdef KDTRACE_HOOKS /* * If the systrace module has registered it's probe @@ -144,7 +126,6 @@ syscallenter(struct thread *td, struct s (*systrace_probe_func)(sa->callp->sy_return, sa->code, sa->callp, NULL, (error) ? -1 : td->td_retval[0]); #endif - syscall_thread_exit(td, sa->callp); CTR4(KTR_SYSC, "syscall: p=%p error=%d return %#lx %#lx", p, error, td->td_retval[0], td->td_retval[1]); } Modified: stable/8/sys/kern/subr_trap.c ============================================================================== --- stable/8/sys/kern/subr_trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/kern/subr_trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -249,7 +249,6 @@ ast(struct trapframe *framep) mtx_assert(&Giant, MA_NOTOWNED); } -#ifdef HAVE_SYSCALL_ARGS_DEF const char * syscallname(struct proc *p, u_int code) { @@ -261,148 +260,3 @@ syscallname(struct proc *p, u_int code) return (unknown); return (sv->sv_syscallnames[code]); } - -int -syscallenter(struct thread *td, struct syscall_args *sa) -{ - struct proc *p; - int error, traced; - - PCPU_INC(cnt.v_syscall); - p = td->td_proc; - td->td_syscalls++; - - td->td_pticks = 0; - if (td->td_ucred != p->p_ucred) - cred_update_thread(td); - if (p->p_flag & P_TRACED) { - traced = 1; - PROC_LOCK(p); - td->td_dbgflags &= ~TDB_USERWR; - td->td_dbgflags |= TDB_SCE; - PROC_UNLOCK(p); - } else - traced = 0; - error = (p->p_sysent->sv_fetch_syscall_args)(td, sa); -#ifdef KTRACE - if (KTRPOINT(td, KTR_SYSCALL)) - ktrsyscall(sa->code, sa->narg, sa->args); -#endif - - CTR6(KTR_SYSC, -"syscall: td=%p pid %d %s (%#lx, %#lx, %#lx)", - td, td->td_proc->p_pid, syscallname(p, sa->code), - sa->args[0], sa->args[1], sa->args[2]); - - if (error == 0) { - STOPEVENT(p, S_SCE, sa->narg); - PTRACESTOP_SC(p, td, S_PT_SCE); - if (td->td_dbgflags & TDB_USERWR) { - /* - * Reread syscall number and arguments if - * debugger modified registers or memory. - */ - error = (p->p_sysent->sv_fetch_syscall_args)(td, sa); -#ifdef KTRACE - if (KTRPOINT(td, KTR_SYSCALL)) - ktrsyscall(sa->code, sa->narg, sa->args); -#endif - if (error != 0) - goto retval; - } - -#ifdef KDTRACE_HOOKS - /* - * If the systrace module has registered it's probe - * callback and if there is a probe active for the - * syscall 'entry', process the probe. - */ - if (systrace_probe_func != NULL && sa->callp->sy_entry != 0) - (*systrace_probe_func)(sa->callp->sy_entry, sa->code, - sa->callp, sa->args, 0); -#endif - - AUDIT_SYSCALL_ENTER(sa->code, td); - error = (sa->callp->sy_call)(td, sa->args); - AUDIT_SYSCALL_EXIT(error, td); - - /* Save the latest error return value. */ - td->td_errno = error; - -#ifdef KDTRACE_HOOKS - /* - * If the systrace module has registered it's probe - * callback and if there is a probe active for the - * syscall 'return', process the probe. - */ - if (systrace_probe_func != NULL && sa->callp->sy_return != 0) - (*systrace_probe_func)(sa->callp->sy_return, sa->code, - sa->callp, NULL, (error) ? -1 : td->td_retval[0]); -#endif - CTR4(KTR_SYSC, "syscall: p=%p error=%d return %#lx %#lx", - p, error, td->td_retval[0], td->td_retval[1]); - } - retval: - if (traced) { - PROC_LOCK(p); - td->td_dbgflags &= ~TDB_SCE; - PROC_UNLOCK(p); - } - (p->p_sysent->sv_set_syscall_retval)(td, error); - return (error); -} - -void -syscallret(struct thread *td, int error, struct syscall_args *sa __unused) -{ - struct proc *p; - int traced; - - p = td->td_proc; - - /* - * Check for misbehavior. - */ - WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning", - syscallname(p, sa->code)); - KASSERT(td->td_critnest == 0, - ("System call %s returning in a critical section", - syscallname(p, sa->code))); - KASSERT(td->td_locks == 0, - ("System call %s returning with %d locks held", - syscallname(p, sa->code), td->td_locks)); - - /* - * Handle reschedule and other end-of-syscall issues - */ - userret(td, td->td_frame); - - CTR4(KTR_SYSC, "syscall %s exit thread %p pid %d proc %s", - syscallname(p, sa->code), td, td->td_proc->p_pid, td->td_name); - -#ifdef KTRACE - if (KTRPOINT(td, KTR_SYSRET)) - ktrsysret(sa->code, error, td->td_retval[0]); -#endif - - if (p->p_flag & P_TRACED) { - traced = 1; - PROC_LOCK(p); - td->td_dbgflags |= TDB_SCX; - PROC_UNLOCK(p); - } else - traced = 0; - /* - * This works because errno is findable through the - * register set. If we ever support an emulation where this - * is not the case, this code will need to be revisited. - */ - STOPEVENT(p, S_SCX, sa->code); - PTRACESTOP_SC(p, td, S_PT_SCX); - if (traced || (td->td_dbgflags & (TDB_EXEC | TDB_FORK)) != 0) { - PROC_LOCK(p); - td->td_dbgflags &= ~(TDB_SCX | TDB_EXEC | TDB_FORK); - PROC_UNLOCK(p); - } -} -#endif /* HAVE_SYSCALL_ARGS_DEF */ Modified: stable/8/sys/powerpc/aim/trap.c ============================================================================== --- stable/8/sys/powerpc/aim/trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/powerpc/aim/trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -394,6 +394,8 @@ cpu_fetch_syscall_args(struct thread *td return (error); } +#include "../../kern/subr_syscall.c" + void syscall(struct trapframe *frame) { Modified: stable/8/sys/powerpc/booke/trap.c ============================================================================== --- stable/8/sys/powerpc/booke/trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/powerpc/booke/trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -379,6 +379,8 @@ cpu_fetch_syscall_args(struct thread *td return (error); } +#include "../../kern/subr_syscall.c" + void syscall(struct trapframe *frame) { Modified: stable/8/sys/sparc64/sparc64/trap.c ============================================================================== --- stable/8/sys/sparc64/sparc64/trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/sparc64/sparc64/trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -614,6 +614,8 @@ cpu_fetch_syscall_args(struct thread *td return (error); } +#include "../../kern/subr_syscall.c" + /* * Syscall handler * The arguments to the syscall are passed in the out registers by the caller, Modified: stable/8/sys/sun4v/sun4v/trap.c ============================================================================== --- stable/8/sys/sun4v/sun4v/trap.c Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/sun4v/sun4v/trap.c Thu Sep 29 00:39:56 2011 (r225855) @@ -610,6 +610,8 @@ cpu_fetch_syscall_args(struct thread *td return (error); } +#include "../../kern/subr_syscall.c" + /* * Syscall handler. The arguments to the syscall are passed in the o registers * by the caller, and are saved in the trap frame. The syscall number is passed Modified: stable/8/sys/sys/proc.h ============================================================================== --- stable/8/sys/sys/proc.h Wed Sep 28 21:42:13 2011 (r225854) +++ stable/8/sys/sys/proc.h Thu Sep 29 00:39:56 2011 (r225855) @@ -853,9 +853,6 @@ void cpu_switch(struct thread *, struct void cpu_throw(struct thread *, struct thread *) __dead2; void unsleep(struct thread *); void userret(struct thread *, struct trapframe *); -struct syscall_args; -int syscallenter(struct thread *, struct syscall_args *); -void syscallret(struct thread *, int, struct syscall_args *); void cpu_exit(struct thread *); void exit1(struct thread *, int) __dead2; From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 00:44:34 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2F50106566C; Thu, 29 Sep 2011 00:44:34 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A33CC8FC16; Thu, 29 Sep 2011 00:44:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T0iYcx096978; Thu, 29 Sep 2011 00:44:34 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T0iYfr096976; Thu, 29 Sep 2011 00:44:34 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201109290044.p8T0iYfr096976@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 29 Sep 2011 00:44:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225856 - head/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 00:44:34 -0000 Author: kib Date: Thu Sep 29 00:44:34 2011 New Revision: 225856 URL: http://svn.freebsd.org/changeset/base/225856 Log: Style nit. Submitted by: jhb MFC after: 2 weeks Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Thu Sep 29 00:39:56 2011 (r225855) +++ head/sys/vm/vm_page.c Thu Sep 29 00:44:34 2011 (r225856) @@ -2348,7 +2348,6 @@ vm_page_clear_dirty_mask(vm_page_t m, in * If the object is locked and the page is neither VPO_BUSY nor * PGA_WRITEABLE, then the page's dirty field cannot possibly be * set by a concurrent pmap operation. - * */ VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED); if ((m->oflags & VPO_BUSY) == 0 && (m->aflags & PGA_WRITEABLE) == 0) From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 02:29:32 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 960BC106566B; Thu, 29 Sep 2011 02:29:32 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6C7B28FC13; Thu, 29 Sep 2011 02:29:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T2TWer000208; Thu, 29 Sep 2011 02:29:32 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T2TWYt000206; Thu, 29 Sep 2011 02:29:32 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201109290229.p8T2TWYt000206@svn.freebsd.org> From: Glen Barber Date: Thu, 29 Sep 2011 02:29:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225857 - head/usr.bin/script X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 02:29:32 -0000 Author: gjb (doc committer) Date: Thu Sep 29 02:29:32 2011 New Revision: 225857 URL: http://svn.freebsd.org/changeset/base/225857 Log: Fix a few grammar and mdoc nits in script.1 PR: 161088 Submitted by: Ben Kaduk ( kaduk % mit ! edu ) MFC after: 1 week Need-MFC: 225809 Modified: head/usr.bin/script/script.1 Modified: head/usr.bin/script/script.1 ============================================================================== --- head/usr.bin/script/script.1 Thu Sep 29 00:44:34 2011 (r225856) +++ head/usr.bin/script/script.1 Thu Sep 29 02:29:32 2011 (r225857) @@ -28,7 +28,7 @@ .\" @(#)script.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd January 22, 2004 +.Dd September 28, 2011 .Dt SCRIPT 1 .Os .Sh NAME @@ -73,15 +73,16 @@ or .Pa typescript , retaining the prior contents. .It Fl k -Log keys sent to program as well as output. +Log keys sent to the program as well as output. .It Fl q Run in quiet mode, omit the start and stop status messages. .It Fl t Ar time -Specify time interval between flushing script output file. +Specify the interval at which the script output file will be flushed +to disk, in seconds. A value of 0 causes .Nm -to flush for every character I/O event. +to flush after every character I/O event. The default interval is 30 seconds. .El @@ -136,13 +137,15 @@ If .Ev SHELL is not set, the Bourne shell is assumed. -(Most shells set this variable automatically). +.Pq Most shells set this variable automatically . .El .Sh SEE ALSO .Xr csh 1 -(for the +.Po +for the .Em history -mechanism). +mechanism +.Pc . .Sh HISTORY The .Nm @@ -165,13 +168,15 @@ mode, echo cancelling is far from ideal. The slave terminal mode is checked for ECHO mode to check when to avoid manual echo logging. This does not -work when in a raw mode where the program being run is doing manual echo. +work when the terminal is in a raw mode where +the program being run is doing manual echo. .Pp -If the +If .Nm -reads zero bytes from the terminal it switches to a mode when it probes read -only once a second until it gets some data. -This prevents the +reads zero bytes from the terminal, it switches to a mode when it +only attempts to read +once a second until there is data to read. +This prevents .Nm -spinning on zero-byte reads, but might cause a 1-second delay in -processing of the user input. +from spinning on zero-byte reads, but might cause a 1-second delay in +processing of user input. From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 02:52:34 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13A56106566C; Thu, 29 Sep 2011 02:52:34 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 034D38FC0A; Thu, 29 Sep 2011 02:52:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T2qXjo000987; Thu, 29 Sep 2011 02:52:33 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T2qXbO000985; Thu, 29 Sep 2011 02:52:33 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201109290252.p8T2qXbO000985@svn.freebsd.org> From: Glen Barber Date: Thu, 29 Sep 2011 02:52:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225858 - head/share/man/man7 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 02:52:34 -0000 Author: gjb (doc committer) Date: Thu Sep 29 02:52:33 2011 New Revision: 225858 URL: http://svn.freebsd.org/changeset/base/225858 Log: Document, and provide an example for, PORTS_MODULES in build(7). PR: 161017 Submitted by: gcooper MFC after: 1 week Modified: head/share/man/man7/build.7 Modified: head/share/man/man7/build.7 ============================================================================== --- head/share/man/man7/build.7 Thu Sep 29 02:29:32 2011 (r225857) +++ head/share/man/man7/build.7 Thu Sep 29 02:52:33 2011 (r225858) @@ -414,6 +414,16 @@ is set to the value of .It Va LOCAL_DIRS If set, this variable supplies a list of additional directories to build, relative to the root of the source tree. +.It Va PORTS_MODULES +A list of ports with kernel modules that should be built and installed +as part of the +.Cm buildkernel +and +.Cm installkernel +process. +.Bd -literal -offset indent +make PORTS_MODULES=emulators/kqemu-kmod kernel +.Ed .It Va SUBDIR_OVERRIDE Override the default list of sub-directories and only build the sub-directory named in this variable. From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 02:57:08 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94F20106564A; Thu, 29 Sep 2011 02:57:08 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8467F8FC12; Thu, 29 Sep 2011 02:57:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T2v8rY001177; Thu, 29 Sep 2011 02:57:08 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T2v86W001175; Thu, 29 Sep 2011 02:57:08 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201109290257.p8T2v86W001175@svn.freebsd.org> From: Glen Barber Date: Thu, 29 Sep 2011 02:57:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225859 - head/share/man/man7 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 02:57:08 -0000 Author: gjb (doc committer) Date: Thu Sep 29 02:57:08 2011 New Revision: 225859 URL: http://svn.freebsd.org/changeset/base/225859 Log: Whitespace cleanup in build(7). MFC after: 1 week Need-MFC: 225858 Modified: head/share/man/man7/build.7 Modified: head/share/man/man7/build.7 ============================================================================== --- head/share/man/man7/build.7 Thu Sep 29 02:52:33 2011 (r225858) +++ head/share/man/man7/build.7 Thu Sep 29 02:57:08 2011 (r225859) @@ -238,7 +238,7 @@ This command takes a long time. Get updated sources as configured in .Xr make.conf 5 . .It Cm targets -Print a list of supported +Print a list of supported .Va TARGET / .Va TARGET_ARCH @@ -399,17 +399,17 @@ It defaults to .It Va KERNFAST If set, the build target .Cm buildkernel -defaults to setting +defaults to setting .Va NO_KERNELCLEAN , .Va NO_KERNELCONFIG , -.Va NO_KERNELDEPEND +.Va NO_KERNELDEPEND and .Va NO_KERNELOBJ . When set to a value other than .Cm 1 -then -.Va KERNCONF -is set to the value of +then +.Va KERNCONF +is set to the value of .Va KERNFAST . .It Va LOCAL_DIRS If set, this variable supplies a list of additional directories to @@ -452,11 +452,11 @@ output. Set this to cross-build for a different architecture. If not set, .Va TARGET_ARCH -defaults to the current machine architecture, unless +defaults to the current machine architecture, unless .Va TARGET is also set, in which case it defaults to the appropriate value for that platform. -Typically, one only needs to set +Typically, one only needs to set .Va TARGET . .El .Pp From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 03:37:42 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2408106564A; Thu, 29 Sep 2011 03:37:42 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 87C8D8FC14; Thu, 29 Sep 2011 03:37:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T3bgAm002751; Thu, 29 Sep 2011 03:37:42 GMT (envelope-from wblock@svn.freebsd.org) Received: (from wblock@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T3bgwv002749; Thu, 29 Sep 2011 03:37:42 GMT (envelope-from wblock@svn.freebsd.org) Message-Id: <201109290337.p8T3bgwv002749@svn.freebsd.org> From: Warren Block Date: Thu, 29 Sep 2011 03:37:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225861 - head/etc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 03:37:42 -0000 Author: wblock (doc committer) Date: Thu Sep 29 03:37:42 2011 New Revision: 225861 URL: http://svn.freebsd.org/changeset/base/225861 Log: Fix a confusing sentence. [1] Other wording tweaks. Reviewed by: imp [1] Approved by: gjb Modified: head/etc/devd.conf Modified: head/etc/devd.conf ============================================================================== --- head/etc/devd.conf Thu Sep 29 03:10:42 2011 (r225860) +++ head/etc/devd.conf Thu Sep 29 03:37:42 2011 (r225861) @@ -8,10 +8,10 @@ # NB: device-name is shorthand for 'match device-name' options { - # Each directory directive adds a directory the list of directories - # that we scan for files. Files are read-in in the order that they - # are returned from readdir(3). The rule-sets are combined to - # create a DFA that's used to match events to actions. + # Each "directory" directive adds a directory to the list of + # directories that we scan for files. Files are loaded in the order + # that they are returned from readdir(3). The rule-sets are combined + # to create a DFA that's used to match events to actions. directory "/etc/devd"; directory "/usr/local/etc/devd"; pid-file "/var/run/devd.pid"; @@ -32,8 +32,8 @@ options { # script is called pccard_ether. # # NB: DETACH events are ignored; the kernel should handle all cleanup -# (routes, arp cache) if you need to do something beware of races -# against immediate create of a device w/ the same name; e.g. +# (routes, arp cache). Beware of races against immediate create +# of a device with the same name; e.g. # ifconfig bridge0 destroy; ifconfig bridge0 create # notify 0 { @@ -43,7 +43,7 @@ notify 0 { }; # -# Try to start dhclient on Ethernet like interfaces when the link comes +# Try to start dhclient on Ethernet-like interfaces when the link comes # up. Only devices that are configured to support DHCP will actually # run it. No link down rule exists because dhclient automatically exits # when the link goes down. @@ -87,7 +87,7 @@ detach 100 { device-name "ed50"; }; -# When a USB Bluetooth dongle appears activate it +# When a USB Bluetooth dongle appears, activate it attach 100 { device-name "ubt[0-9]+"; action "/etc/rc.d/bluetooth quietstart $device-name"; @@ -125,7 +125,7 @@ detach 100 { }; # Firmware download into the ActiveWire board. After the firmware download is -# done the device detaches and reappears as something new and shiny +# done, the device detaches and reappears as something new and shiny # automatically. attach 100 { match "vendor" "0x0854"; @@ -265,12 +265,11 @@ notify 10 { /* EXAMPLES TO END OF FILE -# The following might be an example of something that a vendor might -# install if you were to add their device. This might reside in -# /usr/local/etc/devd/deqna.conf. A deqna is, in this hypothetical -# example, a pccard ethernet-like device. Students of history may -# know other devices by this name, and will get the in-jokes in this -# entry. +# An example of something that a vendor might install if you were to +# add their device. This might reside in /usr/local/etc/devd/deqna.conf. +# A deqna is, in this hypothetical example, a pccard ethernet-like device. +# Students of history may know other devices by this name, and will get +# the in-jokes in this entry. nomatch 10 { match "bus" "pccard[0-9]+"; match "manufacturer" "0x1234"; @@ -288,7 +287,7 @@ detach 10 { # Examples of notify hooks. A notify is a generic way for a kernel # subsystem to send event notification to userland. -# + # Here are some examples of ACPI notify handlers. ACPI subsystems that # generate notifies include the AC adapter, power/sleep buttons, # control method batteries, lid switch, and thermal zones. @@ -316,7 +315,7 @@ notify 10 { }; # This example works around a memory leak in PostgreSQL, restarting -# it when "user:pgsql:swap:devctl=1G" rctl(8) rule gets triggered. +# it when the "user:pgsql:swap:devctl=1G" rctl(8) rule gets triggered. notify 0 { match "system" "RCTL"; match "rule" "user:70:swap:.*"; From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 05:23:58 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 183A11065670; Thu, 29 Sep 2011 05:23:58 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0377A8FC0C; Thu, 29 Sep 2011 05:23:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T5NvjK006113; Thu, 29 Sep 2011 05:23:57 GMT (envelope-from stas@svn.freebsd.org) Received: (from stas@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T5Nveg006110; Thu, 29 Sep 2011 05:23:57 GMT (envelope-from stas@svn.freebsd.org) Message-Id: <201109290523.p8T5Nveg006110@svn.freebsd.org> From: Stanislav Sedov Date: Thu, 29 Sep 2011 05:23:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225864 - in vendor-crypto/heimdal/dist: . admin appl cf crypto/heimdal crypto/heimdal/admin crypto/heimdal/appl crypto/heimdal/cf crypto/heimdal/doc crypto/heimdal/etc crypto/heimdal/i... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 05:23:58 -0000 Author: stas Date: Thu Sep 29 05:23:57 2011 New Revision: 225864 URL: http://svn.freebsd.org/changeset/base/225864 Log: - Flatten the vendor heimdal tree. Added: vendor-crypto/heimdal/dist/ChangeLog - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog vendor-crypto/heimdal/dist/ChangeLog.1998 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.1998 vendor-crypto/heimdal/dist/ChangeLog.1999 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.1999 vendor-crypto/heimdal/dist/ChangeLog.2000 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2000 vendor-crypto/heimdal/dist/ChangeLog.2001 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2001 vendor-crypto/heimdal/dist/ChangeLog.2002 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2002 vendor-crypto/heimdal/dist/ChangeLog.2003 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2003 vendor-crypto/heimdal/dist/ChangeLog.2004 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2004 vendor-crypto/heimdal/dist/ChangeLog.2005 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2005 vendor-crypto/heimdal/dist/ChangeLog.2006 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2006 vendor-crypto/heimdal/dist/LICENSE - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/LICENSE vendor-crypto/heimdal/dist/Makefile.am - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/Makefile.am vendor-crypto/heimdal/dist/Makefile.am.common - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/Makefile.am.common vendor-crypto/heimdal/dist/Makefile.in - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/Makefile.in vendor-crypto/heimdal/dist/NEWS - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/NEWS vendor-crypto/heimdal/dist/README - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/README vendor-crypto/heimdal/dist/acinclude.m4 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/acinclude.m4 vendor-crypto/heimdal/dist/aclocal.m4 - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/aclocal.m4 vendor-crypto/heimdal/dist/admin/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/admin/ vendor-crypto/heimdal/dist/appl/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/appl/ vendor-crypto/heimdal/dist/autogen.sh - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/autogen.sh vendor-crypto/heimdal/dist/cf/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/cf/ vendor-crypto/heimdal/dist/compile - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/compile vendor-crypto/heimdal/dist/config.guess - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/config.guess vendor-crypto/heimdal/dist/config.sub - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/config.sub vendor-crypto/heimdal/dist/configure - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/configure vendor-crypto/heimdal/dist/configure.in - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/configure.in vendor-crypto/heimdal/dist/doc/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/doc/ vendor-crypto/heimdal/dist/etc/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/etc/ vendor-crypto/heimdal/dist/include/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/include/ vendor-crypto/heimdal/dist/install-sh - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/install-sh vendor-crypto/heimdal/dist/kadmin/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/kadmin/ vendor-crypto/heimdal/dist/kcm/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/kcm/ vendor-crypto/heimdal/dist/kdc/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/kdc/ vendor-crypto/heimdal/dist/kpasswd/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/kpasswd/ vendor-crypto/heimdal/dist/krb5.conf - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/krb5.conf vendor-crypto/heimdal/dist/kuser/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/kuser/ vendor-crypto/heimdal/dist/lib/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/lib/ vendor-crypto/heimdal/dist/ltconfig - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ltconfig vendor-crypto/heimdal/dist/ltmain.sh - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ltmain.sh vendor-crypto/heimdal/dist/missing - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/missing vendor-crypto/heimdal/dist/mkinstalldirs - copied unchanged from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/mkinstalldirs vendor-crypto/heimdal/dist/packages/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/packages/ vendor-crypto/heimdal/dist/tests/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/tests/ vendor-crypto/heimdal/dist/tools/ - copied from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/tools/ Deleted: vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.1998 vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.1999 vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2000 vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2001 vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2002 vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2003 vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2004 vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2005 vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog.2006 vendor-crypto/heimdal/dist/crypto/heimdal/LICENSE vendor-crypto/heimdal/dist/crypto/heimdal/Makefile.am vendor-crypto/heimdal/dist/crypto/heimdal/Makefile.am.common vendor-crypto/heimdal/dist/crypto/heimdal/Makefile.in vendor-crypto/heimdal/dist/crypto/heimdal/NEWS vendor-crypto/heimdal/dist/crypto/heimdal/README vendor-crypto/heimdal/dist/crypto/heimdal/acinclude.m4 vendor-crypto/heimdal/dist/crypto/heimdal/aclocal.m4 vendor-crypto/heimdal/dist/crypto/heimdal/admin/ vendor-crypto/heimdal/dist/crypto/heimdal/appl/ vendor-crypto/heimdal/dist/crypto/heimdal/autogen.sh vendor-crypto/heimdal/dist/crypto/heimdal/cf/ vendor-crypto/heimdal/dist/crypto/heimdal/compile vendor-crypto/heimdal/dist/crypto/heimdal/config.guess vendor-crypto/heimdal/dist/crypto/heimdal/config.sub vendor-crypto/heimdal/dist/crypto/heimdal/configure vendor-crypto/heimdal/dist/crypto/heimdal/configure.in vendor-crypto/heimdal/dist/crypto/heimdal/doc/ vendor-crypto/heimdal/dist/crypto/heimdal/etc/ vendor-crypto/heimdal/dist/crypto/heimdal/include/ vendor-crypto/heimdal/dist/crypto/heimdal/install-sh vendor-crypto/heimdal/dist/crypto/heimdal/kadmin/ vendor-crypto/heimdal/dist/crypto/heimdal/kcm/ vendor-crypto/heimdal/dist/crypto/heimdal/kdc/ vendor-crypto/heimdal/dist/crypto/heimdal/kpasswd/ vendor-crypto/heimdal/dist/crypto/heimdal/krb5.conf vendor-crypto/heimdal/dist/crypto/heimdal/kuser/ vendor-crypto/heimdal/dist/crypto/heimdal/lib/ vendor-crypto/heimdal/dist/crypto/heimdal/ltconfig vendor-crypto/heimdal/dist/crypto/heimdal/ltmain.sh vendor-crypto/heimdal/dist/crypto/heimdal/missing vendor-crypto/heimdal/dist/crypto/heimdal/mkinstalldirs vendor-crypto/heimdal/dist/crypto/heimdal/packages/ vendor-crypto/heimdal/dist/crypto/heimdal/tests/ vendor-crypto/heimdal/dist/crypto/heimdal/tools/ Copied: vendor-crypto/heimdal/dist/ChangeLog (from r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor-crypto/heimdal/dist/ChangeLog Thu Sep 29 05:23:57 2011 (r225864, copy of r225862, vendor-crypto/heimdal/dist/crypto/heimdal/ChangeLog) @@ -0,0 +1,1356 @@ +2008-01-24 Love Hörnquist Åstrand + + * Release 1.1 + +2008-01-21 Love Hörnquist Åstrand + + * lib/krb5/get_for_creds.c: Use on variable less. + + * lib/krb5/get_for_creds.c: Try to handle ticket full and + ticketless tickets better. Add doxygen comments while here. + + * lib/krb5/test_forward.c: Used for testing + krb5_get_forwarded_creds(). + + * lib/krb5/Makefile.am: noinst_PROGRAMS += test_forward + + * lib/krb5/Makefile.am: drop CHECK_SYMBOLS + + * lib/hdb/Makefile.am: drop CHECK_SYMBOLS + + * kdc/Makefile.am: drop CHECK_SYMBOLS + +2008-01-18 Love Hörnquist Åstrand + + * lib/krb5/version-script.map: Add krb5_digest_probe. + +2008-01-13 Love Hörnquist Åstrand + + * lib/krb5/pkinit.c: Replace hx509_name_to_der_name with + hx509_name_binary. + +2008-01-12 Love Hörnquist Åstrand + + * lib/krb5/Makefile.am: add missing files + +2007-12-28 Love Hörnquist Åstrand + + * kdc/digest.c: Log probe message, add NTLM_TARGET_DOMAIN to the + type2 message. + +2007-12-14 Love Hörnquist Åstrand + + * lib/hdb/dbinfo.c: Add hdb_default_db(). + + * Makefile.am: Add some extra cf/*. + +2007-12-12 Love Hörnquist Åstrand + + * kuser/kgetcred.c: Fix type of name-type. From Andy Polyakov. + +2007-12-09 Love Hörnquist Åstrand + + * kdc/log.c: Use hdb_db_dir(). + + * kpasswd/kpasswdd.c: Use hdb_db_dir(). + +2007-12-08 Love Hörnquist Åstrand + + * kdc/config.c: Use hdb_db_dir(). + + * kdc/kdc_locl.h: add KDC_LOG_FILE + + * kdc/hpropd.c: Use hdb_default_db(). + + * kdc/kstash.c: Use hdb_db_dir(). + + * kdc/pkinit.c: Adapt to hx509 changes, use hdb_db_dir(). + + * lib/krb5/rd_req.c: Document krb5_rd_req_in_set_pac_check. + + * lib/krb5/verify_krb5_conf.c: Check check_pac. + + * lib/krb5/rd_req.c: use KRB5_CTX_F_CHECK_PAC to init check_pac + field in the krb5_rd_req_in_ctx + + * lib/krb5/expand_hostname.c: Adapt to changing + dns_canonicalize_hostname into flags field. + + * lib/krb5/context.c: Adapt to changing dns_canonicalize_hostname + into flags field, add check-pac as an libdefaults option. + + * lib/krb5/pkinit.c: Adapt to changes in hx509 interface. + + * doc: add doxygen documentation to hcrypto + + * doc/doxytmpl.dxy: generate links + +2007-12-07 Love Hörnquist Åstrand + + * lib/krb5/Makefile.am: build_HEADERZ += heim_threads.h + + * lib/hdb/dbinfo.c (hdb_db_dir): Return the directory where the + hdb database resides. + + * configure.in: Add --with-hdbdir to specify where the database is + stored. + + * lib/krb5/crypto.c: revert previous patch, the problem is located + in the RAND_file_name() function that will cause recursive nss + lookups, can't fix that here. + +2007-12-06 Love Hörnquist Åstrand + + * lib/krb5/crypto.c (krb5_generate_random_block): try to avoid the + dead-lock in by not holding the lock while running + RAND_file_name. Prompted by Hai Zaar. + + * lib/krb5/n-fold.c: spelling + +2007-12-04 Love Hörnquist Åstrand + + * kuser/kdigest.c (digest-probe): implement command. + + * kuser/kdigest-commands.in (digest-probe): new command + + * kdc/digest.c: Implement supportedMechs request. + + * lib/krb5/error_string.c: Make krb5_get_error_string return an + allocated string to make the function indempotent. From + Zeqing (Fred) Xia. + +2007-12-03 Love Hörnquist Åstrand + + * lib/krb5/krb5_locl.h (krb5_context_data): Flag if + default_cc_name was set by the user. + + * lib/krb5/fcache.c (fcc_move): make sure ->version is uptodate. + + * kcm/acquire.c: use krb5_free_cred_contents + + * kuser/kimpersonate.c: use krb5_free_cred_contents + + * kuser/kinit.c: Use krb5_cc_move to make an atomic switch of the + cred cache. + + * lib/krb5/cache.c: Put back code that was needed, move gen_new + into new_unique. + + * lib/krb5/mcache.c (mcc_default_name): Remove const + + * lib/krb5/krb5_locl.h: Add KRB5_DEFAULT_CCNAME_KCM, redefine + KRB5_DEFAULT_CCNAME to KRB5_DEFAULT_CCTYPE + + * lib/krb5/cache.c: Use krb5_cc_ops->default_name to get the + default name. + + * lib/krb5/kcm.c: Implement krb5_cc_ops->default_name. + + * lib/krb5/mcache.c: Implement krb5_cc_ops->default_name. + + * lib/krb5/fcache.c: Implement krb5_cc_ops->default_name. + + * lib/krb5/krb5.h: Add krb5_cc_ops->default_name. + + * lib/krb5/acache.c: Free context when done, implement + krb5_cc_ops->default_name. + + * lib/krb5/kcm.c: implement dummy kcm_move + + * lib/krb5/mcache.c: Implement the move operation. + + * lib/krb5/version-script.map: export krb5_cc_move + + * lib/krb5/cache.c: New function krb5_cc_move(). + + * lib/krb5/fcache.c: Implement the move operation. + + * lib/krb5/krb5.h: Add move to the krb5_cc_ops, causes major + version bump. + + * lib/krb5/acache.c: Implement the move operation. Avoid using + cc_set_principal() since it broken on Mac OS X 10.5.0. + +2007-12-02 Love Hörnquist Åstrand + + * lib/krb5/krb5_ccapi.h: Drop variable names to avoid -Wshadow. + +2007-11-14 Love Hörnquist Åstrand + + * kdc/krb5tgs.c: Should pass different key usage constants + depending on whether or not optional sub-session key was passed by + the client for the check of authorization data. The constant is + used to derive "specific key" and its values are specified in + 7.5.1 of RFC4120. + + Patch from Andy Polyakov. + + * kdc/krb5tgs.c: Don't send auth data in referrals, microsoft + clients have started to not like that. Thanks to Andy Polyakov for + excellent research. + +2007-11-11 Love Hörnquist Åstrand + + * lib/krb5/creds.c: use krb5_data_cmp + + * lib/krb5/acache.c: use krb5_free_cred_contents + + * lib/krb5/test_renew.c: use krb5_free_cred_contents + +2007-11-10 Love Hörnquist Åstrand + + * lib/krb5/acl.c: doxygen documentation + + * lib/krb5/addr_families.c: doxygen documentation + + * doc: add doxygen + + * lib/krb5/plugin.c: doxygen documentation + + * lib/krb5/kcm.c: doxygen documentation + + * lib/krb5/fcache.c: doxygen documentation + + * lib/krb5/cache.c: doxygen documentations + + * lib/krb5/doxygen.c: doxygen introduction + + * lib/krb5/error_string.c: Doxygen documentation. + +2007-11-03 Love Hörnquist Åstrand + + * lib/krb5/test_plugin.c: expose krb5_plugin_register + + * lib/krb5/plugin.c: expose krb5_plugin_register + + * lib/krb5/version-script.map: sort, expose krb5_plugin_register + +2007-10-24 Love Hörnquist Åstrand + + * kdc/kerberos5.c: Adding same enctype is enough one time. From + Andy Polyakov and Bjorn Sandell. + +2007-10-18 Love + + * lib/krb5/cache.c (krb5_cc_retrieve_cred): check return value + from krb5_cc_start_seq_get. From Zeqing (Fred) Xia + + * lib/krb5/fcache.c (init_fcc): provide better error codes + + * kdc/kerberos5.c (get_pa_etype_info2): more paranoia, avoid + sending warning about pruned etypes. + + * kdc/kerberos5.c (older_enctype): old windows enctypes (arcfour + based) "old", this to support windows 2000 clients (unjoined to a + domain). From Andy Polyakov. + +2007-10-07 Love Hörnquist Åstrand + + * doc/setup.texi: Spelling, from Mark Peoples via Bjorn Sandell. + +2007-10-04 Love Hörnquist Åstrand + + * kdc/krb5tgs.c: More prettier printing of enctype, from KAMADA + Ken'ichi. + + * lib/krb5/crypto.c (krb5_enctype_to_string): make sure string is + NULL on failure. + +2007-10-03 Love Hörnquist Åstrand + + * kdc/kdc-replay.c: Catch KRB5_PROG_ATYPE_NOSUPP from + krb5_addr2sockaddr and igore thte test is that case. + +2007-09-29 Love Hörnquist Åstrand + + * lib/krb5/context.c (krb5_free_context): free + default_cc_name_env, from Gunther Deschner. + +2007-08-27 Love Hörnquist Åstrand + + * lib/krb5/{krb5.h,pac.c,test_pac.c,send_to_kdc.c,rd_req.c}: Make + work with c++, reported by Hai Zaar + + * lib/krb5/{digest.c,krb5.h}: Make work with c++, reported by Hai Zaar + +2007-08-20 Love Hörnquist Åstrand + + * lib/hdb/Makefile.am: EXTRA_DIST += hdb.schema + +2007-07-31 Love Hörnquist Åstrand + + * check return value of alloc functions, from Charles Longeau + + * lib/krb5/principal.c: spelling. + + * kadmin/kadmin.8: spelling + + * lib/krb5/crypto.c: Check return values from alloc + functions. Prompted by patch of Charles Longeau. + + * lib/krb5/n-fold.c: Make _krb5_n_fold return a error + code. Prompted by patch of Charles Longeau. + +2007-07-27 Love Hörnquist Åstrand + + * lib/krb5/init_creds.c: Always set the ticket options, use + KRB5_ADDRESSLESS_DEFAULT as the default value, this make the unset + tri-state not so useful. + +2007-07-24 Love Hörnquist Åstrand + + * tools/heimdal-gssapi.pc.in: Add LIB_pkinit to the list of + libraries. + + * tools/heimdal-gssapi.pc.in: pkg-config file for libgssapi in + heimdal. + + * tools/Makefile.am: Add heimdal-gssapi.pc and install it into + $(libdir)/pkgconfig + +2007-07-23 Love Hörnquist Åstrand + + * lib/krb5/pkinit.c: Add RFC3526 modp group14 as a default. + +2007-07-22 Love Hörnquist Åstrand + + * lib/hdb/dbinfo.c (get_dbinfo): use dbname instead of realm as + key if the entry is a correct entry. + + * lib/krb5/get_cred.c: Make krb5_get_renewed_creds work, from + Gunther Deschner. + + * lib/krb5/Makefile.am: Add test_renew to noinst_PROGRAMS. + + * lib/krb5/test_renew.c: Test for krb5_get_renewed_creds. + +2007-07-21 Love Hörnquist Åstrand + + * lib/hdb/keys.c: Make parse_key_set handle key set string "v5", + from Peter Meinecke. + + * kdc/kaserver.c: Don't ovewrite the error code, from Peter + Meinecke. + +2007-07-18 Love Hörnquist Åstrand + + * TODO-1.0: remove + + * Makefile.am: remove TODO-1.0 + +2007-07-17 Love Hörnquist Åstrand + + * Heimdal 1.0 release branch cut here + + * doc/hx509.texi: use version.texi + + * doc/heimdal.texi: use version.texi + + * doc/version.texi: version.texi + + * lib/hdb/db3.c: avoid type-punned pointer warning. + + * kdc/kx509.c: Use unsigned char * as argument to HMAC_Update to + please OpenSSL and gcc. + + * kdc/digest.c: Use unsigned char * as argument to MD5_Update to + please OpenSSL and gcc. + +2007-07-16 Love Hörnquist Åstrand + + * include/Makefile.am: Add krb_err.h. + + * kdc/set_dbinfo.c: Print acl file too. + + * kdc/kerberos4.c: Error codes are just fine, remove XXX now. + + * lib/krb5/krb5-v4compat.h: Drop duplicate error codes. + + * kdc/kerberos4.c: switch to ET errors. + + * lib/krb5/Makefile.am: Add krb_err.h to build_HEADERZ. + + * lib/krb5/v4_glue.c: If its a Kerberos 4 error-code, remove the + et BASE. + +2007-07-15 Love Hörnquist Åstrand + + * lib/krb5/krb5-v4compat.h: Include "krb_err.h". + + * lib/krb5/v4_glue.c: return more interesting error codes. + + * lib/krb5/plugin.c: Prefix enum plugin_type. + + * lib/krb5/krb5_locl.h: Expose plugin structures. + + * lib/krb5/krb5.h: Add plugin structures. + + * lib/krb5/krb_err.et: V4 errors. + + * lib/krb5/version-script.map: First version of version script. + +2007-07-13 Love Hörnquist Åstrand + + * kdc/kerberos5.c: Java 1.6 expects the name to be the same type, + lets allow that for uncomplicated name-types. + +2007-07-12 Love Hörnquist Åstrand + + * lib/krb5/v4_glue.c (_krb5_krb_rd_req): if ticket contains + address 0, its ticket less and don't really care about + from_addr. return better error codes. + + * kpasswd/kpasswdd.c: Fix pointer vs strict alias rules. + +2007-07-11 Love Hörnquist Åstrand + + * lib/hdb/hdb-ldap.c: When using sambaNTPassword, avoid adding + more then one enctype 23 to krb5EncryptionType. + + * lib/krb5/cache.c: Spelling. + + * kdc/kerberos5.c: Don't send newer enctypes in ETYPE-INFO. + (get_pa_etype_info2): return the enctypes as sorted in the + database + +2007-07-10 Love Hörnquist Åstrand + + * kuser/kinit.c: krb5-v4compat.h defines prototypes for + v4 (semiprivate functions) in libkrb5, don't include + krb5-private.h any longer. + + * lib/krb5/krbhst.c: Set error string when there is no KDC for a + realm. + + * lib/krb5/Makefile.am: New library version. + + * kdc/Makefile.am: New library version. + + * lib/krb5/krb5_locl.h: Add default_cc_name_env. + + * lib/krb5/cache.c (enviroment_changed): return non-zero if + enviroment that will determine default krb5cc name has changed. + (krb5_cc_default_name): also check if cached value is uptodate. + + * lib/krb5/krb5_locl.h: Drop pkinit_flags. + +2007-07-05 Love Hörnquist Åstrand + + * configure.in: add tests/java/Makefile + + * lib/hdb/dbinfo.c: Add hdb_dbinfo_get_log_file. + +2007-07-04 Love Hörnquist Åstrand + + * kdc/kerberos5.c: Improve the default salt detection to avoid + returning v4 password salting to java that doesn't look at the + returning padata for salting. + + * kdc: Split out krb5_kdc_set_dbinfo, From Andrew Bartlett + +2007-07-02 Love Hörnquist Åstrand + + * kdc/digest.c: Try harder to provide better error message for + digest messages. + + * lib/krb5/Makefile.am: verify_krb5_conf_OBJECTS depends on + krb5-pr*.h, make -j finds this. + +2007-06-28 Love Hörnquist Åstrand + + * kdc/digest.c: On success, print username, not ip-adress. + +2007-06-26 Love Hörnquist Åstrand + + * lib/krb5/get_cred.c: Add krb5_get_renewed_creds. + + * lib/krb5/krb5_get_credentials.3: add krb5_get_renewed_creds + + * lib/krb5/pkinit.c: Use hx509_cms_unwrap_ContentInfo. + +2007-06-25 Love Hörnquist Åstrand + + * doc/setup.texi: Add example for pkinit_win2k_require_binding + in [kdc] section. + + * kdc/default_config.c: Rename require_binding to + win2k_require_binding to match client configuration. + + * kdc/default_config.c: Add [kdc]pkinit_require_binding option. + + * kdc/pkinit.c (pk_mk_pa_reply_enckey): only allow non-bound reply + if its not required. + + * kdc/default_config.c: rename pkinit_princ_in_cert and add + pkinit_require_binding + + * kdc/kdc.h: rename pkinit_princ_in_cert and add + pkinit_require_binding + + * kdc/pkinit.c: rename pkinit_princ_in_cert + +2007-06-24 Love Hörnquist Åstrand + + * lib/krb5/pkinit.c: Adapt to hx509_verify_hostname change. + +2007-06-21 Love Hörnquist Åstrand + + * kdc/krb5tgs.c: Drop unused variable. + + * kdc/krb5tgs.c: disable anonyous tgs requests + + * kdc/krb5tgs.c: Don't check PAC on cross realm for now. + + * kuser/kgetcred.c: Set KRB5_GC_CONSTRAINED_DELEGATION and parse + nametypes. + + * lib/krb5/krb5_principal.3: Document krb5_parse_nametype. + + * lib/krb5/principal.c (krb5_parse_nametype): parse nametype and + return their integer values. + + * lib/krb5/krb5.h (krb5_get_creds): Add + KRB5_GC_CONSTRAINED_DELEGATION. + + * lib/krb5/get_cred.c (krb5_get_creds): if + KRB5_GC_CONSTRAINED_DELEGATION is set, set both request_anonymous + and constrained_delegation. + +2007-06-20 Love Hörnquist Åstrand + + * kdc/digest.c: Return an error message instead of dropping the + packet for more failure cases. + + * lib/krb5/krb5_principal.3: Add KRB5_PRINCIPAL_UNPARSE_DISPLAY. + + * appl/gssmask/gssmask.c (AcquirePKInitCreds): fail more + gracefully + +2007-06-18 Love Hörnquist Åstrand + + * lib/krb5/pac.c: make compile. + + * lib/krb5/pac.c (verify_checksum): memset cksum to avoid using + pointer from stack. + + * lib/krb5/plugin.c: Don't expose free pointer. + + * lib/krb5/pkinit.c (_krb5_pk_load_id): fail directoy for first + calloc. + + * lib/krb5/pkinit.c (get_reply_key*): don't expose freed memory + + * lib/krb5/krbhst.c: Host is static memory, don't free. + + * lib/krb5/crypto.c (decrypt_internal_derived): make sure length + is longer then confounder + checksum. + + * kdc: export get_dbinfo as krb5_kdc_set_dbinfo and call from + users. This to allows libkdc users to to specify their own + databases + + * lib/krb5/pkinit.c (pk_rd_pa_reply_enckey): simplify handling of + content data (and avoid leaking memory). + + * kdc/misc.c (_kdc_db_fetch): set error string for failures. + +2007-06-15 Love Hörnquist Åstrand + + * kdc/pkinit.c: Use KRB5_AUTHDATA_INITIAL_VERIFIED_CAS. + +2007-06-13 Love Hörnquist Åstrand + + * kdc/pkinit.c: tell user when they got a pk-init request with + pkinit disabled. + +2007-06-12 Love Hörnquist Åstrand + + * lib/krb5/principal.c: Rename UNPARSE_NO_QUOTE to + UNPARSE_DISPLAY. + + * lib/krb5/krb5.h: Rename UNPARSE_NO_QUOTE to UNPARSE_DISPLAY. + + * lib/krb5/principal.c: Make no-quote mean replace strange chars + with space. + + * lib/krb5/principal.c: Support KRB5_PRINCIPAL_UNPARSE_NO_QUOTE. + + * lib/krb5/krb5.h: Add KRB5_PRINCIPAL_UNPARSE_NO_QUOTE. + + * lib/krb5/test_princ.c: Test quoteing. + + * lib/krb5/pkinit.c: update (c) + + * lib/krb5/get_cred.c: use krb5_sendto_context to talk to the KDC. + + * lib/krb5/send_to_kdc.c (_krb5_kdc_retry): check if the whole + process needs to restart or just skip this KDC. + + * lib/krb5/init_creds_pw.c: Use krb5_sendto_context to talk to + KDC. + + * lib/krb5/krb5.h: Add sendto hooks and opaque structure. + + * lib/krb5/krb5_rd_error.3: Update prototype. + + * lib/krb5/send_to_kdc.c: Add hooks for processing the reply from + the server. + +2007-06-11 Love Hörnquist Åstrand + + * lib/krb5/krb5_err.et: Some new error codes from RFC 4120. + +2007-06-09 Love Hörnquist Åstrand + + * kdc/krb5tgs.c: Constify. + + * kdc/kerberos5.c: Constify. + + * kdc/pkinit.c: Check for KRB5-PADATA-PK-AS-09-BINDING. Constify. + +2007-06-08 Love Hörnquist Åstrand + + * include/Makefile.am: Make krb5-types.h nodist_include_HEADERS. + + * kdc/Makefile.am: EXTRA_DIST += version-script.map. + +2007-06-07 Love Hörnquist Åstrand + + * Makefile.am (print-distdir): print name of dist + + * kdc/pkinit.c: Break out loading of mappings file to a separate + function and remove warning that it can't open the mapping file, + there are now mappings in the db, maybe the users uses that + instead... + + * lib/krb5/crypto.c: Require the raw key have the correct size and + do away with the minsize. Minsize was a thing that originated + from RC2, but since RC2 is done in the x509/cms subsystem now + there is no need to keep that around. + + * lib/hdb/dbinfo.c: If there is no default dbname, also check for + unset mkey_file and set it default mkey name, make backward compat + stuff work. + + * kdc/version-script.map: add new symbols + + * kdc/kdc-replay.c: Also update krb5_context view of what the time + is. + + * configure.in: add tests/can/Makefile + + * kdc/kdc-replay.c: Add --[version|help]. + + * kdc/pkinit.c: Push down the kdc time into the x509 library. + + * kdc/connect.c: Move up krb5_kdc_save_request so we can catch the + reply data too. + + * kdc/kdc-replay.c: verify reply by checking asn1 class, type and + tag of the reply if there is one. + + * kdc/process.c: Save asn1 class, type and tag of the reply if + there is one. Used to verify the reply in kdc-replay. + +2007-06-06 Love Hörnquist Åstrand + + * kdc/kdc_locl.h: extern for request_log. + + * kdc/Makefile.am: Add kdc-replay. + + * kdc/kdc-replay.c: Replay kdc messages to the KDC library. + + * kdc/config.c: Pick up request_log from [kdc]kdc-request-log. + + * kdc/connect.c: Option to save the request to disk. + + * kdc/process.c (krb5_kdc_save_request): save request to file. + + * kdc/process.c (krb5_kdc_process*): dont update _kdc_time + automagicly. + (krb5_kdc_update_time): set or get current kdc-time. + + * kdc/pkinit.c (_kdc_pk_rd_padata): accept both pkcs-7 and + pkauthdata as the signeddata oid + + * kdc/pkinit.c (_kdc_pk_rd_padata): Try to log what went wrong. + +2007-06-05 Love Hörnquist Åstrand + + * kdc/pkinit.c: Use oid_id_pkcs7_data for pkinit-9 encKey reply to + match windows DC behavior better. + +2007-06-04 Love Hörnquist Åstrand + + * configure.in: use test for -framework Security + + * appl/test/uu_server.c: Print status to stdout. + + * kdc/digest.c (digest ntlm): provide log entires by setting ret + to an error. + +2007-06-03 Love Hörnquist Åstrand + + * doc/hx509.texi: Indent crl-sign. + + * doc/hx509.texi: One more crl-sign example. + + * lib/krb5/test_princ.c: plug memory leaks. + + * lib/krb5/pac.c: plug memory leaks. + + * lib/krb5/test_pac.c: plug memory leaks. + + * lib/krb5/test_prf.c: plug memory leak. + + * lib/krb5/test_cc.c: plug memory leaks. + + * doc/hx509.texi: Simple blob about publishing CRLs. + + * doc/win2k.texi: drop text about enctypes. + +2007-06-02 Love Hörnquist Åstrand + + * kdc/pkinit.c: In case of OCSP verification failure, referash + every 5 min. In case of success, refreash 2 min before expiring or + faster. + +2007-05-31 Love Hörnquist Åstrand + + * lib/krb5/krb5_err.et: add error 68, WRONG_REALM + + * kdc/pkinit.c: Handle the ms san in a propper way, still cheat + with the realm name. + + * kdc/kerberos5.c: If _kdc_pk_check_client failes, bail out + directly and hand the error back to the client. + + * lib/krb5/krb5_err.et: Add missing REVOCATION_STATUS_UNAVAILABLE + and fix error message for CLIENT_NAME_MISMATCH. + + * kdc/pkinit.c: More logging for pk-init client mismatch. + + * kdc/kerberos5.c: Also add a KRB5_PADATA_PK_AS_REQ_WIN for + windows pk-init (-9) to make MIT clients happy. + +2007-05-30 Love Hörnquist Åstrand + + * kdc/pkinit.c: Force des3 for win2k. + + * kdc/pkinit.c: Add wrapping to ContentInfo wrapping to + COMPAT_WIN2K. + + * lib/krb5/keytab_keyfile.c: Spelling. + + * kdc/pkinit.c: Allow matching by MS UPN SAN, note that this delta + doesn't deal with case of realm. + +2007-05-16 Love Hörnquist Åstrand + + * lib/krb5/crypto.c (krb5_crypto_overhead): return static overhead + of encryption. + +2007-05-10 Dave Love + + * doc/win2k.texi: Update some URLs. + +2007-05-13 Love Hörnquist Åstrand + + * kuser/kimpersonate.c: Fix version number of ticket, it should be + 5 not the kvno. + +2007-05-08 Love Hörnquist Åstrand + + * doc/setup.texi: Salting is really Encryption types and salting. + +2007-05-07 Love Hörnquist Åstrand + + * doc/setup.texi: spelling, from Ronny Blomme + + * doc/win2k.texi: Fix ksetup /SetComputerPassword, from Ronny + Blomme + +2007-05-02 Love Hörnquist Åstrand + + * lib/hdb/dbinfo.c (hdb_get_dbinfo) If there are no database + specified, create one and let it use the defaults. + +2007-04-27 Love Hörnquist Åstrand + + * lib/hdb/test_dbinfo.c: test acl file + + * lib/hdb/test_dbinfo.c: test acl file + + * lib/hdb/dbinfo.c: add acl file + + * etc: ignore Makefile.in + + * Makefile.am: SUBDIRS += etc + + * configure.in: Add etc/Makefile. + + * etc/Makefile.am: make sure services.append is distributed + +2007-04-24 Love Hörnquist Åstrand + + * kdc: rename windc_init to krb5_kdc_windc_init + + * kdc/version-script.map: version script for libkdc + + * kdc/Makefile.am: version script for libkdc + +2007-04-23 Love Hörnquist Åstrand + + * lib/krb5/init_creds.c (krb5_get_init_creds_opt_get_error): + correct the order of the arguments. + + * lib/hdb/Makefile.am: Add and test dbinfo. + + * lib/hdb/hdb.h: Forward declaration for struct hdb_dbinfo; + + * kdc/config.c: Use krb5_kdc_get_config and just fill in what the + users wanted differently. + + * kdc/default_config.c: Make the default configuration fetch info + from the krb5.conf. + +2007-04-22 Love Hörnquist Åstrand + + * lib/krb5/store.c (krb5_store_creds_tag): use session.keytype to + determine if to send the session-key, for the second place in the + function. + + * tools/krb5-config.in: rename des to hcrypto + + * kuser/Makefile.am: depend on libheimntlm + + * kuser/kinit.c: Add --ntlm-domain that store the ntlm cred for + this domain if the Kerberos password auth worked. + + * kuser/klist.c: add new option --hidden that doesn't display + principal that starts with @ + + * tools/krb5-config.in: Add heimntlm when we use gssapi. + + * lib/krb5/krb5_ccache.3 (krb5_cc_retrieve_cred): document what to + free 'cred' with. + + * lib/krb5/cache.c (krb5_cc_retrieve_cred): document what to free + 'cred' with. + +2007-04-21 Love Hörnquist Åstrand + + * lib/krb5/store.c (krb5_store_creds_tag): use session.keytype to + determine if to send the session-key. + + * kcm/client.c (kcm_ccache_new_client): make root be able to pass + the name constraints, not the opposite. From Bryan Jacobs. + +2007-04-20 Love Hörnquist Åstrand + + * kcm/acl.c: make compile again. + + * kcm/client.c: fix warning. + + * kcm: First, it allows root to ignore the naming conventions. + Second, it allows root to always perform any operation on any + ccache. Note that root could do this anyway with FILE ccaches. + From Bryan Jacobs. + + * Rename libdes to libhcrypto. + +2007-04-19 Love Hörnquist Åstrand + + * kinit: remove code that depend on kerberos 4 library + + * kdc: remove code that depend on kerberos 4 library + + * configure.in: Drop kerberos 4 support. + + * kdc/hpropd.c (main): free the message when done with it. + + * lib/krb5/pkinit.c (_krb5_get_init_creds_opt_free_pkinit): + remember to free memory too. + + * lib/krb5/pkinit.c (pk_rd_pa_reply_dh): free content-type when + done. + + * configure.in: test rk_VERSIONSCRIPT + +2007-04-18 Love Hörnquist Åstrand + + * fix-export: remove, all done by make dist now + +2007-04-15 Love Hörnquist Åstrand + + * lib/krb5/krb5_get_credentials.3: spelling, from Jason McIntyre + +2007-04-11 Love Hörnquist Åstrand + + * kdc/kstash.8: Spelling, from raga + via Bjorn Sandell. + + * lib/krb5/store_mem.c: indent. + + * lib/krb5/recvauth.c: Set error string. + + * lib/krb5/rd_req.c: clear error strings. + + * lib/krb5/rd_cred.c: clear error string. + + * lib/krb5/pkinit.c: Set error strings. + + * lib/krb5/get_cred.c: Tell what principal we are not finding for + all KRB5_CC_NOTFOUND. + +2007-02-22 Love Hörnquist Åstrand + + * kdc/kerberos5.c: Return the same error codes as a windows KDC. + + * kuser/kinit.c: KRB5KDC_ERR_PREAUTH_FAILED is also a password + failed. + + * kdc/kerberos5.c: Make handling of replying e_data more generic, + from metze. + + * kdc/kerberos5.c: Fix (string const and shadow) warnings, from + metze. + + * lib/krb5/pac.c: Create the PAC element in the same order as + w2k3, maybe there's some broken code in windows which relies on + this... From metze. + + * kdc/kerberos5.c: Select a session enctype from the list of the + crypto systems supported enctype, is supported by the client and + is one of the enctype of the enctype of the krbtgt. + + The later is used as a hint what enctype all KDC are supporting to + make sure a newer version of KDC wont generate a session enctype + that and older version of a KDC in the same realm can't decrypt. + + But if the KDC admin is paranoid and doesn't want to have "no the + best" enctypes on the krbtgt, lets save the best pick from the + client list and hope that that will work for any other KDCs. + + Reported by metze. + + * kdc/hprop.c (propagate_database): on any failure, drop the + connection to the peer and try next one. + +2007-02-18 Love Hörnquist Åstrand + + * lib/krb5/krb5_get_init_creds.3: document new options. + + * kdc/krb5tgs.c: Only check service key for cross realm PACs. + + * lib/krb5/init_creds.c: use the new merged flags field. + (krb5_get_init_creds_opt_set_win2k): new function, turn on all w2k + compat flags. + + * lib/krb5/init_creds_pw.c: use the new merged flags field. + + * lib/krb5/krb5_locl.h: merge all flags into one entity + +2007-02-11 Dave Love + + * lib/krb5/krb5_aname_to_localname.3: Small fixes + + * lib/krb5/krb5_digest.3: Small fixes + + * kuser/kimpersonate.1: Small fixes + +2007-02-17 Love Hörnquist Åstrand + + * lib/krb5/init_creds_pw.c (find_pa_data): if there is no list, + there is no entry. + + * kdc/krb5tgs.c: Don't check PACs on cross realm requests. + + * lib/krb5/krb5.h: add KRB5_KU_CANONICALIZED_NAMES. + + * lib/krb5/init_creds_pw.c: Verify client referral data. + + * kdc/kerberos5.c: switch some "return ret" to "goto out". + + * kdc/kerberos5.c: Pass down canonicalize request to hdb layer, + sign client referrals. + + * lib/hdb/hdb.h: Add HDB_F_CANON. + + * lib/hdb: add simple alias support to the database backends + +2007-02-16 Love Hörnquist Åstrand + + * kuser/kinit.c: Add canonicalize flag. + + * lib/krb5/init_creds_pw.c: Use EXTRACT_TICKET_* flags, support + canonicalize. + + * lib/krb5/init_creds.c (krb5_get_init_creds_opt_set_canonicalize): + new function. + + * lib/krb5/get_cred.c: Use EXTRACT_TICKET_* flags. + + * lib/krb5/get_in_tkt.c: Use EXTRACT_TICKET_* flags. + + * lib/krb5/krb5_locl.h: Add EXTRACT_TICKET_* flags. + *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 05:26:21 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0990106566C; Thu, 29 Sep 2011 05:26:21 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A24898FC0C; Thu, 29 Sep 2011 05:26:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T5QLtQ006225; Thu, 29 Sep 2011 05:26:21 GMT (envelope-from stas@svn.freebsd.org) Received: (from stas@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T5QLQV006220; Thu, 29 Sep 2011 05:26:21 GMT (envelope-from stas@svn.freebsd.org) Message-Id: <201109290526.p8T5QLQV006220@svn.freebsd.org> From: Stanislav Sedov Date: Thu, 29 Sep 2011 05:26:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225865 - in vendor-crypto/heimdal/dist: . admin appl appl/afsutil appl/ftp appl/ftp/common appl/ftp/ftp appl/ftp/ftpd appl/gssmask appl/kf appl/login appl/push appl/rcp appl/rsh appl/s... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 05:26:22 -0000 Author: stas Date: Thu Sep 29 05:26:20 2011 New Revision: 225865 URL: http://svn.freebsd.org/changeset/base/225865 Log: - Disable keyword expansion on vendor heimdal code. Modified: vendor-crypto/heimdal/dist/appl/rcp/extern.h (contents, props changed) vendor-crypto/heimdal/dist/appl/rcp/util.c (contents, props changed) vendor-crypto/heimdal/dist/lib/gssapi/gssapi_mech.h (contents, props changed) Directory Properties: vendor-crypto/heimdal/dist/ChangeLog (props changed) vendor-crypto/heimdal/dist/ChangeLog.1998 (props changed) vendor-crypto/heimdal/dist/ChangeLog.1999 (props changed) vendor-crypto/heimdal/dist/ChangeLog.2000 (props changed) vendor-crypto/heimdal/dist/ChangeLog.2001 (props changed) vendor-crypto/heimdal/dist/ChangeLog.2002 (props changed) vendor-crypto/heimdal/dist/ChangeLog.2003 (props changed) vendor-crypto/heimdal/dist/ChangeLog.2004 (props changed) vendor-crypto/heimdal/dist/ChangeLog.2005 (props changed) vendor-crypto/heimdal/dist/ChangeLog.2006 (props changed) vendor-crypto/heimdal/dist/LICENSE (props changed) vendor-crypto/heimdal/dist/Makefile.am (props changed) vendor-crypto/heimdal/dist/Makefile.am.common (props changed) vendor-crypto/heimdal/dist/Makefile.in (props changed) vendor-crypto/heimdal/dist/NEWS (props changed) vendor-crypto/heimdal/dist/README (props changed) vendor-crypto/heimdal/dist/acinclude.m4 (props changed) vendor-crypto/heimdal/dist/aclocal.m4 (props changed) vendor-crypto/heimdal/dist/admin/ChangeLog (props changed) vendor-crypto/heimdal/dist/admin/Makefile.am (props changed) vendor-crypto/heimdal/dist/admin/Makefile.in (props changed) vendor-crypto/heimdal/dist/admin/add.c (props changed) vendor-crypto/heimdal/dist/admin/change.c (props changed) vendor-crypto/heimdal/dist/admin/copy.c (props changed) vendor-crypto/heimdal/dist/admin/get.c (props changed) vendor-crypto/heimdal/dist/admin/ktutil-commands.in (props changed) vendor-crypto/heimdal/dist/admin/ktutil.8 (props changed) vendor-crypto/heimdal/dist/admin/ktutil.c (props changed) vendor-crypto/heimdal/dist/admin/ktutil_locl.h (props changed) vendor-crypto/heimdal/dist/admin/list.c (props changed) vendor-crypto/heimdal/dist/admin/purge.c (props changed) vendor-crypto/heimdal/dist/admin/remove.c (props changed) vendor-crypto/heimdal/dist/admin/rename.c (props changed) vendor-crypto/heimdal/dist/appl/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/afsutil/ChangeLog (props changed) vendor-crypto/heimdal/dist/appl/afsutil/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/afsutil/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/afsutil/afslog.1 (props changed) vendor-crypto/heimdal/dist/appl/afsutil/afslog.c (props changed) vendor-crypto/heimdal/dist/appl/afsutil/pagsh.1 (props changed) vendor-crypto/heimdal/dist/appl/afsutil/pagsh.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ChangeLog (props changed) vendor-crypto/heimdal/dist/appl/ftp/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/ftp/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/ftp/common/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/ftp/common/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/ftp/common/buffer.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/common/common.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/common/sockbuf.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/cmds.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/cmdtab.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/domacro.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/extern.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/ftp.1 (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/ftp.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/ftp_locl.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/ftp_var.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/globals.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/gssapi.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/kauth.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/krb4.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/main.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/pathnames.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/ruserpass.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/security.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftp/security.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/extern.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/ftpcmd.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/ftpcmd.y (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/ftpd.8 (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/ftpd.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/ftpd_locl.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/ftpusers.5 (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/gss_userok.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/gssapi.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/kauth.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/klist.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/krb4.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/logwtmp.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/ls.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/pathnames.h (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/popen.c (props changed) vendor-crypto/heimdal/dist/appl/ftp/ftpd/security.c (props changed) vendor-crypto/heimdal/dist/appl/gssmask/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/gssmask/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/gssmask/common.c (props changed) vendor-crypto/heimdal/dist/appl/gssmask/common.h (props changed) vendor-crypto/heimdal/dist/appl/gssmask/gssmaestro.c (props changed) vendor-crypto/heimdal/dist/appl/gssmask/gssmask.c (props changed) vendor-crypto/heimdal/dist/appl/gssmask/protocol.h (props changed) vendor-crypto/heimdal/dist/appl/kf/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/kf/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/kf/kf.1 (props changed) vendor-crypto/heimdal/dist/appl/kf/kf.c (props changed) vendor-crypto/heimdal/dist/appl/kf/kf_locl.h (props changed) vendor-crypto/heimdal/dist/appl/kf/kfd.8 (props changed) vendor-crypto/heimdal/dist/appl/kf/kfd.c (props changed) vendor-crypto/heimdal/dist/appl/login/ChangeLog (props changed) vendor-crypto/heimdal/dist/appl/login/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/login/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/login/conf.c (props changed) vendor-crypto/heimdal/dist/appl/login/env.c (props changed) vendor-crypto/heimdal/dist/appl/login/limits_conf.c (props changed) vendor-crypto/heimdal/dist/appl/login/login.1 (props changed) vendor-crypto/heimdal/dist/appl/login/login.access.5 (props changed) vendor-crypto/heimdal/dist/appl/login/login.c (props changed) vendor-crypto/heimdal/dist/appl/login/login_access.c (props changed) vendor-crypto/heimdal/dist/appl/login/login_locl.h (props changed) vendor-crypto/heimdal/dist/appl/login/login_protos.h (props changed) vendor-crypto/heimdal/dist/appl/login/loginpaths.h (props changed) vendor-crypto/heimdal/dist/appl/login/osfc2.c (props changed) vendor-crypto/heimdal/dist/appl/login/read_string.c (props changed) vendor-crypto/heimdal/dist/appl/login/shadow.c (props changed) vendor-crypto/heimdal/dist/appl/login/stty_default.c (props changed) vendor-crypto/heimdal/dist/appl/login/tty.c (props changed) vendor-crypto/heimdal/dist/appl/login/utmp_login.c (props changed) vendor-crypto/heimdal/dist/appl/login/utmpx_login.c (props changed) vendor-crypto/heimdal/dist/appl/push/ChangeLog (props changed) vendor-crypto/heimdal/dist/appl/push/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/push/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/push/pfrom.1 (props changed) vendor-crypto/heimdal/dist/appl/push/pfrom.in (props changed) vendor-crypto/heimdal/dist/appl/push/push.8 (props changed) vendor-crypto/heimdal/dist/appl/push/push.c (props changed) vendor-crypto/heimdal/dist/appl/push/push_locl.h (props changed) vendor-crypto/heimdal/dist/appl/rcp/ChangeLog (props changed) vendor-crypto/heimdal/dist/appl/rcp/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/rcp/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/rcp/rcp.1 (props changed) vendor-crypto/heimdal/dist/appl/rcp/rcp.c (props changed) vendor-crypto/heimdal/dist/appl/rcp/rcp_locl.h (props changed) vendor-crypto/heimdal/dist/appl/rsh/ChangeLog (props changed) vendor-crypto/heimdal/dist/appl/rsh/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/rsh/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/rsh/common.c (props changed) vendor-crypto/heimdal/dist/appl/rsh/limits_conf.c (props changed) vendor-crypto/heimdal/dist/appl/rsh/login_access.c (props changed) vendor-crypto/heimdal/dist/appl/rsh/rsh.1 (props changed) vendor-crypto/heimdal/dist/appl/rsh/rsh.c (props changed) vendor-crypto/heimdal/dist/appl/rsh/rsh_locl.h (props changed) vendor-crypto/heimdal/dist/appl/rsh/rshd.8 (props changed) vendor-crypto/heimdal/dist/appl/rsh/rshd.c (props changed) vendor-crypto/heimdal/dist/appl/su/ChangeLog (props changed) vendor-crypto/heimdal/dist/appl/su/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/su/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/su/su.1 (props changed) vendor-crypto/heimdal/dist/appl/su/su.c (props changed) vendor-crypto/heimdal/dist/appl/su/supaths.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/ChangeLog (props changed) vendor-crypto/heimdal/dist/appl/telnet/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/telnet/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/telnet/README.ORIG (props changed) vendor-crypto/heimdal/dist/appl/telnet/arpa/telnet.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/auth-proto.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/auth.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/auth.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/enc-proto.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/enc_des.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/encrypt.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/encrypt.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/genget.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/kerberos.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/kerberos5.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/krb4encpwd.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/misc-proto.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/misc.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/misc.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/rsaencpwd.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/libtelnet/spx.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet.state (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/authenc.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/commands.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/defines.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/externs.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/main.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/network.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/ring.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/ring.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/sys_bsd.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/telnet.1 (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/telnet.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/telnet_locl.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/terminal.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/types.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnet/utilities.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/authenc.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/defs.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/ext.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/global.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/slc.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/state.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/sys_term.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/telnetd.8 (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/telnetd.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/telnetd.h (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/termstat.c (props changed) vendor-crypto/heimdal/dist/appl/telnet/telnetd/utility.c (props changed) vendor-crypto/heimdal/dist/appl/test/Makefile.am (props changed) vendor-crypto/heimdal/dist/appl/test/Makefile.in (props changed) vendor-crypto/heimdal/dist/appl/test/common.c (props changed) vendor-crypto/heimdal/dist/appl/test/gss_common.c (props changed) vendor-crypto/heimdal/dist/appl/test/gss_common.h (props changed) vendor-crypto/heimdal/dist/appl/test/gssapi_client.c (props changed) vendor-crypto/heimdal/dist/appl/test/gssapi_server.c (props changed) vendor-crypto/heimdal/dist/appl/test/http_client.c (props changed) vendor-crypto/heimdal/dist/appl/test/nt_gss_client.c (props changed) vendor-crypto/heimdal/dist/appl/test/nt_gss_common.c (props changed) vendor-crypto/heimdal/dist/appl/test/nt_gss_common.h (props changed) vendor-crypto/heimdal/dist/appl/test/nt_gss_server.c (props changed) vendor-crypto/heimdal/dist/appl/test/tcp_client.c (props changed) vendor-crypto/heimdal/dist/appl/test/tcp_server.c (props changed) vendor-crypto/heimdal/dist/appl/test/test_locl.h (props changed) vendor-crypto/heimdal/dist/appl/test/uu_client.c (props changed) vendor-crypto/heimdal/dist/appl/test/uu_server.c (props changed) vendor-crypto/heimdal/dist/autogen.sh (props changed) vendor-crypto/heimdal/dist/cf/ChangeLog (props changed) vendor-crypto/heimdal/dist/cf/Makefile.am.common (props changed) vendor-crypto/heimdal/dist/cf/aix.m4 (props changed) vendor-crypto/heimdal/dist/cf/auth-modules.m4 (props changed) vendor-crypto/heimdal/dist/cf/autobuild.m4 (props changed) vendor-crypto/heimdal/dist/cf/broken-getaddrinfo.m4 (props changed) vendor-crypto/heimdal/dist/cf/broken-getnameinfo.m4 (props changed) vendor-crypto/heimdal/dist/cf/broken-glob.m4 (props changed) vendor-crypto/heimdal/dist/cf/broken-realloc.m4 (props changed) vendor-crypto/heimdal/dist/cf/broken-snprintf.m4 (props changed) vendor-crypto/heimdal/dist/cf/broken.m4 (props changed) vendor-crypto/heimdal/dist/cf/broken2.m4 (props changed) vendor-crypto/heimdal/dist/cf/c-attribute.m4 (props changed) vendor-crypto/heimdal/dist/cf/c-function.m4 (props changed) vendor-crypto/heimdal/dist/cf/capabilities.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-compile-et.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-declaration.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-getpwnam_r-posix.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-man.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-netinet-ip-and-tcp.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-type-extra.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-var.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-x.m4 (props changed) vendor-crypto/heimdal/dist/cf/check-xau.m4 (props changed) vendor-crypto/heimdal/dist/cf/crypto.m4 (props changed) vendor-crypto/heimdal/dist/cf/db.m4 (props changed) vendor-crypto/heimdal/dist/cf/destdirs.m4 (props changed) vendor-crypto/heimdal/dist/cf/dlopen.m4 (props changed) vendor-crypto/heimdal/dist/cf/find-func-no-libs.m4 (props changed) vendor-crypto/heimdal/dist/cf/find-func-no-libs2.m4 (props changed) vendor-crypto/heimdal/dist/cf/find-func.m4 (props changed) vendor-crypto/heimdal/dist/cf/find-if-not-broken.m4 (props changed) vendor-crypto/heimdal/dist/cf/framework-security.m4 (props changed) vendor-crypto/heimdal/dist/cf/have-pragma-weak.m4 (props changed) vendor-crypto/heimdal/dist/cf/have-struct-field.m4 (props changed) vendor-crypto/heimdal/dist/cf/have-type.m4 (props changed) vendor-crypto/heimdal/dist/cf/have-types.m4 (props changed) vendor-crypto/heimdal/dist/cf/install-catman.sh (props changed) vendor-crypto/heimdal/dist/cf/irix.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-bigendian.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-func-getcwd-broken.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-func-getlogin.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-ipv6.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-prog-ln-s.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-prog-ranlib.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-prog-yacc.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-readline.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-struct-spwd.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-struct-winsize.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-sys-aix.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-sys-nextstep.m4 (props changed) vendor-crypto/heimdal/dist/cf/krb-version.m4 (props changed) vendor-crypto/heimdal/dist/cf/largefile.m4 (props changed) vendor-crypto/heimdal/dist/cf/make-proto.pl (props changed) vendor-crypto/heimdal/dist/cf/mips-abi.m4 (props changed) vendor-crypto/heimdal/dist/cf/misc.m4 (props changed) vendor-crypto/heimdal/dist/cf/need-proto.m4 (props changed) vendor-crypto/heimdal/dist/cf/osfc2.m4 (props changed) vendor-crypto/heimdal/dist/cf/otp.m4 (props changed) vendor-crypto/heimdal/dist/cf/proto-compat.m4 (props changed) vendor-crypto/heimdal/dist/cf/pthreads.m4 (props changed) vendor-crypto/heimdal/dist/cf/resolv.m4 (props changed) vendor-crypto/heimdal/dist/cf/retsigtype.m4 (props changed) vendor-crypto/heimdal/dist/cf/roken-frag.m4 (props changed) vendor-crypto/heimdal/dist/cf/roken.m4 (props changed) vendor-crypto/heimdal/dist/cf/socket-wrapper.m4 (props changed) vendor-crypto/heimdal/dist/cf/sunos.m4 (props changed) vendor-crypto/heimdal/dist/cf/telnet.m4 (props changed) vendor-crypto/heimdal/dist/cf/test-package.m4 (props changed) vendor-crypto/heimdal/dist/cf/valgrind-suppressions (props changed) vendor-crypto/heimdal/dist/cf/vararray.m4 (props changed) vendor-crypto/heimdal/dist/cf/version-script.m4 (props changed) vendor-crypto/heimdal/dist/cf/wflags.m4 (props changed) vendor-crypto/heimdal/dist/cf/win32.m4 (props changed) vendor-crypto/heimdal/dist/cf/with-all.m4 (props changed) vendor-crypto/heimdal/dist/compile (props changed) vendor-crypto/heimdal/dist/config.guess (props changed) vendor-crypto/heimdal/dist/config.sub (props changed) vendor-crypto/heimdal/dist/configure (props changed) vendor-crypto/heimdal/dist/configure.in (props changed) vendor-crypto/heimdal/dist/doc/Makefile.am (props changed) vendor-crypto/heimdal/dist/doc/Makefile.in (props changed) vendor-crypto/heimdal/dist/doc/ack.texi (props changed) vendor-crypto/heimdal/dist/doc/apps.texi (props changed) vendor-crypto/heimdal/dist/doc/doxytmpl.dxy (props changed) vendor-crypto/heimdal/dist/doc/hcrypto.din (props changed) vendor-crypto/heimdal/dist/doc/heimdal.css (props changed) vendor-crypto/heimdal/dist/doc/heimdal.texi (props changed) vendor-crypto/heimdal/dist/doc/hx509.din (props changed) vendor-crypto/heimdal/dist/doc/hx509.texi (props changed) vendor-crypto/heimdal/dist/doc/init-creds (props changed) vendor-crypto/heimdal/dist/doc/install.texi (props changed) vendor-crypto/heimdal/dist/doc/intro.texi (props changed) vendor-crypto/heimdal/dist/doc/kerberos4.texi (props changed) vendor-crypto/heimdal/dist/doc/krb5.din (props changed) vendor-crypto/heimdal/dist/doc/latin1.tex (props changed) vendor-crypto/heimdal/dist/doc/layman.asc (props changed) vendor-crypto/heimdal/dist/doc/mdate-sh (props changed) vendor-crypto/heimdal/dist/doc/migration.texi (props changed) vendor-crypto/heimdal/dist/doc/misc.texi (props changed) vendor-crypto/heimdal/dist/doc/ntlm.din (props changed) vendor-crypto/heimdal/dist/doc/programming.texi (props changed) vendor-crypto/heimdal/dist/doc/setup.texi (props changed) vendor-crypto/heimdal/dist/doc/vars.texi (props changed) vendor-crypto/heimdal/dist/doc/vars.tin (props changed) vendor-crypto/heimdal/dist/doc/whatis.texi (props changed) vendor-crypto/heimdal/dist/doc/win2k.texi (props changed) vendor-crypto/heimdal/dist/etc/Makefile.am (props changed) vendor-crypto/heimdal/dist/etc/Makefile.in (props changed) vendor-crypto/heimdal/dist/etc/services.append (props changed) vendor-crypto/heimdal/dist/include/Makefile.am (props changed) vendor-crypto/heimdal/dist/include/Makefile.in (props changed) vendor-crypto/heimdal/dist/include/bits.c (props changed) vendor-crypto/heimdal/dist/include/config.h.in (props changed) vendor-crypto/heimdal/dist/include/gssapi/Makefile.am (props changed) vendor-crypto/heimdal/dist/include/gssapi/Makefile.in (props changed) vendor-crypto/heimdal/dist/include/hcrypto/Makefile.am (props changed) vendor-crypto/heimdal/dist/include/hcrypto/Makefile.in (props changed) vendor-crypto/heimdal/dist/include/kadm5/Makefile.am (props changed) vendor-crypto/heimdal/dist/include/kadm5/Makefile.in (props changed) vendor-crypto/heimdal/dist/include/make_crypto.c (props changed) vendor-crypto/heimdal/dist/install-sh (props changed) vendor-crypto/heimdal/dist/kadmin/ChangeLog (props changed) vendor-crypto/heimdal/dist/kadmin/Makefile.am (props changed) vendor-crypto/heimdal/dist/kadmin/Makefile.in (props changed) vendor-crypto/heimdal/dist/kadmin/add-random-users.c (props changed) vendor-crypto/heimdal/dist/kadmin/add_enctype.c (props changed) vendor-crypto/heimdal/dist/kadmin/ank.c (props changed) vendor-crypto/heimdal/dist/kadmin/check.c (props changed) vendor-crypto/heimdal/dist/kadmin/cpw.c (props changed) vendor-crypto/heimdal/dist/kadmin/del.c (props changed) vendor-crypto/heimdal/dist/kadmin/del_enctype.c (props changed) vendor-crypto/heimdal/dist/kadmin/dump.c (props changed) vendor-crypto/heimdal/dist/kadmin/ext.c (props changed) vendor-crypto/heimdal/dist/kadmin/get.c (props changed) vendor-crypto/heimdal/dist/kadmin/init.c (props changed) vendor-crypto/heimdal/dist/kadmin/kadm_conn.c (props changed) vendor-crypto/heimdal/dist/kadmin/kadmin-commands.in (props changed) vendor-crypto/heimdal/dist/kadmin/kadmin.8 (props changed) vendor-crypto/heimdal/dist/kadmin/kadmin.c (props changed) vendor-crypto/heimdal/dist/kadmin/kadmin_locl.h (props changed) vendor-crypto/heimdal/dist/kadmin/kadmind.8 (props changed) vendor-crypto/heimdal/dist/kadmin/kadmind.c (props changed) vendor-crypto/heimdal/dist/kadmin/load.c (props changed) vendor-crypto/heimdal/dist/kadmin/mod.c (props changed) vendor-crypto/heimdal/dist/kadmin/pw_quality.c (props changed) vendor-crypto/heimdal/dist/kadmin/random_password.c (props changed) vendor-crypto/heimdal/dist/kadmin/rename.c (props changed) vendor-crypto/heimdal/dist/kadmin/server.c (props changed) vendor-crypto/heimdal/dist/kadmin/stash.c (props changed) vendor-crypto/heimdal/dist/kadmin/test_util.c (props changed) vendor-crypto/heimdal/dist/kadmin/util.c (props changed) vendor-crypto/heimdal/dist/kadmin/version4.c (props changed) vendor-crypto/heimdal/dist/kcm/Makefile.am (props changed) vendor-crypto/heimdal/dist/kcm/Makefile.in (props changed) vendor-crypto/heimdal/dist/kcm/acl.c (props changed) vendor-crypto/heimdal/dist/kcm/acquire.c (props changed) vendor-crypto/heimdal/dist/kcm/cache.c (props changed) vendor-crypto/heimdal/dist/kcm/client.c (props changed) vendor-crypto/heimdal/dist/kcm/config.c (props changed) vendor-crypto/heimdal/dist/kcm/connect.c (props changed) vendor-crypto/heimdal/dist/kcm/cursor.c (props changed) vendor-crypto/heimdal/dist/kcm/events.c (props changed) vendor-crypto/heimdal/dist/kcm/glue.c (props changed) vendor-crypto/heimdal/dist/kcm/headers.h (props changed) vendor-crypto/heimdal/dist/kcm/kcm.8 (props changed) vendor-crypto/heimdal/dist/kcm/kcm_locl.h (props changed) vendor-crypto/heimdal/dist/kcm/kcm_protos.h (props changed) vendor-crypto/heimdal/dist/kcm/log.c (props changed) vendor-crypto/heimdal/dist/kcm/main.c (props changed) vendor-crypto/heimdal/dist/kcm/protocol.c (props changed) vendor-crypto/heimdal/dist/kcm/renew.c (props changed) vendor-crypto/heimdal/dist/kdc/524.c (props changed) vendor-crypto/heimdal/dist/kdc/Makefile.am (props changed) vendor-crypto/heimdal/dist/kdc/Makefile.in (props changed) vendor-crypto/heimdal/dist/kdc/config.c (props changed) vendor-crypto/heimdal/dist/kdc/connect.c (props changed) vendor-crypto/heimdal/dist/kdc/default_config.c (props changed) vendor-crypto/heimdal/dist/kdc/digest.c (props changed) vendor-crypto/heimdal/dist/kdc/headers.h (props changed) vendor-crypto/heimdal/dist/kdc/hprop.8 (props changed) vendor-crypto/heimdal/dist/kdc/hprop.c (props changed) vendor-crypto/heimdal/dist/kdc/hprop.h (props changed) vendor-crypto/heimdal/dist/kdc/hpropd.8 (props changed) vendor-crypto/heimdal/dist/kdc/hpropd.c (props changed) vendor-crypto/heimdal/dist/kdc/kadb.h (props changed) vendor-crypto/heimdal/dist/kdc/kaserver.c (props changed) vendor-crypto/heimdal/dist/kdc/kdc-private.h (props changed) vendor-crypto/heimdal/dist/kdc/kdc-protos.h (props changed) vendor-crypto/heimdal/dist/kdc/kdc-replay.c (props changed) vendor-crypto/heimdal/dist/kdc/kdc.8 (props changed) vendor-crypto/heimdal/dist/kdc/kdc.h (props changed) vendor-crypto/heimdal/dist/kdc/kdc_locl.h (props changed) vendor-crypto/heimdal/dist/kdc/kerberos4.c (props changed) vendor-crypto/heimdal/dist/kdc/kerberos5.c (props changed) vendor-crypto/heimdal/dist/kdc/krb5tgs.c (props changed) vendor-crypto/heimdal/dist/kdc/kstash.8 (props changed) vendor-crypto/heimdal/dist/kdc/kstash.c (props changed) vendor-crypto/heimdal/dist/kdc/kx509.c (props changed) vendor-crypto/heimdal/dist/kdc/log.c (props changed) vendor-crypto/heimdal/dist/kdc/main.c (props changed) vendor-crypto/heimdal/dist/kdc/misc.c (props changed) vendor-crypto/heimdal/dist/kdc/mit_dump.c (props changed) vendor-crypto/heimdal/dist/kdc/pkinit.c (props changed) vendor-crypto/heimdal/dist/kdc/process.c (props changed) vendor-crypto/heimdal/dist/kdc/rx.h (props changed) vendor-crypto/heimdal/dist/kdc/set_dbinfo.c (props changed) vendor-crypto/heimdal/dist/kdc/string2key.8 (props changed) vendor-crypto/heimdal/dist/kdc/string2key.c (props changed) vendor-crypto/heimdal/dist/kdc/v4_dump.c (props changed) vendor-crypto/heimdal/dist/kdc/version-script.map (props changed) vendor-crypto/heimdal/dist/kdc/windc.c (props changed) vendor-crypto/heimdal/dist/kdc/windc_plugin.h (props changed) vendor-crypto/heimdal/dist/kpasswd/Makefile.am (props changed) vendor-crypto/heimdal/dist/kpasswd/Makefile.in (props changed) vendor-crypto/heimdal/dist/kpasswd/kpasswd-generator.c (props changed) vendor-crypto/heimdal/dist/kpasswd/kpasswd.1 (props changed) vendor-crypto/heimdal/dist/kpasswd/kpasswd.c (props changed) vendor-crypto/heimdal/dist/kpasswd/kpasswd_locl.h (props changed) vendor-crypto/heimdal/dist/kpasswd/kpasswdd.8 (props changed) vendor-crypto/heimdal/dist/kpasswd/kpasswdd.c (props changed) vendor-crypto/heimdal/dist/krb5.conf (props changed) vendor-crypto/heimdal/dist/kuser/Makefile.am (props changed) vendor-crypto/heimdal/dist/kuser/Makefile.in (props changed) vendor-crypto/heimdal/dist/kuser/copy_cred_cache.1 (props changed) vendor-crypto/heimdal/dist/kuser/copy_cred_cache.c (props changed) vendor-crypto/heimdal/dist/kuser/generate-requests.c (props changed) vendor-crypto/heimdal/dist/kuser/kauth_options.c (props changed) vendor-crypto/heimdal/dist/kuser/kdecode_ticket.c (props changed) vendor-crypto/heimdal/dist/kuser/kdestroy.1 (props changed) vendor-crypto/heimdal/dist/kuser/kdestroy.c (props changed) vendor-crypto/heimdal/dist/kuser/kdigest-commands.in (props changed) vendor-crypto/heimdal/dist/kuser/kdigest.c (props changed) vendor-crypto/heimdal/dist/kuser/kgetcred.1 (props changed) vendor-crypto/heimdal/dist/kuser/kgetcred.c (props changed) vendor-crypto/heimdal/dist/kuser/kimpersonate.1 (props changed) vendor-crypto/heimdal/dist/kuser/kimpersonate.c (props changed) vendor-crypto/heimdal/dist/kuser/kinit.1 (props changed) vendor-crypto/heimdal/dist/kuser/kinit.c (props changed) vendor-crypto/heimdal/dist/kuser/kinit_options.c (props changed) vendor-crypto/heimdal/dist/kuser/klist.1 (props changed) vendor-crypto/heimdal/dist/kuser/klist.c (props changed) vendor-crypto/heimdal/dist/kuser/kuser_locl.h (props changed) vendor-crypto/heimdal/dist/kuser/kverify.c (props changed) vendor-crypto/heimdal/dist/lib/45/45_locl.h (props changed) vendor-crypto/heimdal/dist/lib/45/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/45/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/45/get_ad_tkt.c (props changed) vendor-crypto/heimdal/dist/lib/45/mk_req.c (props changed) vendor-crypto/heimdal/dist/lib/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/asn1/CMS.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/asn1/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/asn1/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/asn1/asn1-common.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/asn1_err.et (props changed) vendor-crypto/heimdal/dist/lib/asn1/asn1_gen.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/asn1_print.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/asn1_queue.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/canthandle.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/check-common.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/check-common.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/check-der.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/check-gen.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/check-timegm.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/der-protos.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/der.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/der.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/der_cmp.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/der_copy.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/der_format.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/der_free.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/der_get.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/der_length.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/der_locl.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/der_put.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/digest.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/extra.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen_copy.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen_decode.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen_encode.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen_free.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen_glue.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen_length.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen_locl.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/gen_seq.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/hash.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/hash.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/heim_asn1.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/k5.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/kx509.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/lex.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/lex.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/lex.l (props changed) vendor-crypto/heimdal/dist/lib/asn1/main.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/parse.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/parse.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/parse.y (props changed) vendor-crypto/heimdal/dist/lib/asn1/pkcs12.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/pkcs8.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/pkcs9.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/pkinit.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/rfc2459.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/setchgpw2.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/symbol.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/symbol.h (props changed) vendor-crypto/heimdal/dist/lib/asn1/test.asn1 (props changed) vendor-crypto/heimdal/dist/lib/asn1/test.gen (props changed) vendor-crypto/heimdal/dist/lib/asn1/timegm.c (props changed) vendor-crypto/heimdal/dist/lib/asn1/x509.asn1 (props changed) vendor-crypto/heimdal/dist/lib/auth/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/auth/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/auth/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/auth/afskauthlib/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/auth/afskauthlib/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/auth/afskauthlib/verify.c (props changed) vendor-crypto/heimdal/dist/lib/auth/pam/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/auth/pam/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/auth/pam/pam.c (props changed) vendor-crypto/heimdal/dist/lib/auth/pam/pam.conf.add (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/krb4+c2_matrix.conf (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/krb4_matrix.conf (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/krb5+c2_matrix.conf (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/krb5_matrix.conf (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/make-rpath (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/posix_getpw.c (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/security.patch (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/sia.c (props changed) vendor-crypto/heimdal/dist/lib/auth/sia/sia_locl.h (props changed) vendor-crypto/heimdal/dist/lib/com_err/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/com_err/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/com_err/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/com_err/com_err.c (props changed) vendor-crypto/heimdal/dist/lib/com_err/com_err.h (props changed) vendor-crypto/heimdal/dist/lib/com_err/com_right.h (props changed) vendor-crypto/heimdal/dist/lib/com_err/compile_et.c (props changed) vendor-crypto/heimdal/dist/lib/com_err/compile_et.h (props changed) vendor-crypto/heimdal/dist/lib/com_err/error.c (props changed) vendor-crypto/heimdal/dist/lib/com_err/lex.c (props changed) vendor-crypto/heimdal/dist/lib/com_err/lex.h (props changed) vendor-crypto/heimdal/dist/lib/com_err/lex.l (props changed) vendor-crypto/heimdal/dist/lib/com_err/parse.c (props changed) vendor-crypto/heimdal/dist/lib/com_err/parse.h (props changed) vendor-crypto/heimdal/dist/lib/com_err/parse.y (props changed) vendor-crypto/heimdal/dist/lib/com_err/roken_rename.h (props changed) vendor-crypto/heimdal/dist/lib/com_err/version-script.map (props changed) vendor-crypto/heimdal/dist/lib/gssapi/8003.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/gssapi/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/gssapi/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/gssapi/accept_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/acquire_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/add_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/add_oid_set_member.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/address_to_krb5addr.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/arcfour.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/arcfour.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/canonicalize_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/compare_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/compat.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/context_time.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/copy_ccache.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/create_emtpy_oid_set.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/decapsulate.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/delete_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/display_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/display_status.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/duplicate_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/encapsulate.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/export_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/export_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/external.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/get_mic.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gss-commands.in (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gss.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gss_acquire_cred.3 (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gssapi.3 (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gssapi.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gssapi/gssapi.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gssapi/gssapi_krb5.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gssapi/gssapi_spnego.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/gssapi_locl.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/import_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/import_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/indicate_mechs.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/init.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/init_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/inquire_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/inquire_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/inquire_cred_by_mech.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/inquire_mechs_for_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/inquire_names_for_mech.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/8003.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/acquire_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/add_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/address_to_krb5addr.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/arcfour.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/canonicalize_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/ccache_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/cfx.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/cfx.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/compare_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/compat.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/context_time.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/copy_ccache.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/decapsulate.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/delete_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/display_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/display_status.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/duplicate_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/encapsulate.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/export_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/export_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/external.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/get_mic.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/gkrb5_err.et (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/gsskrb5-private.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/gsskrb5_locl.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/import_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/import_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/indicate_mechs.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/init.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/init_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/inquire_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/inquire_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_mech.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/inquire_cred_by_oid.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/inquire_mechs_for_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/inquire_names_for_mech.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/inquire_sec_context_by_oid.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/prf.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/process_context_token.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/release_buffer.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/release_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/release_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/sequence.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/set_cred_option.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/set_sec_context_option.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/test_cfx.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/ticket_flags.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/unwrap.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/v1.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/verify_mic.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/krb5/wrap.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/accept_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/acquire_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/add_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/canonicalize_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/compare_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/context_time.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/crypto.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/delete_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/digest.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/display_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/display_status.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/duplicate_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/export_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/export_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/external.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/import_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/import_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/indicate_mechs.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/inquire_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/inquire_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/inquire_cred_by_mech.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/inquire_mechs_for_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/inquire_names_for_mech.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/ntlm-private.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/ntlm.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/process_context_token.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/release_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/ntlm/release_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/process_context_token.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/release_buffer.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/release_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/release_name.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/release_oid_set.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/compat.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/context_stubs.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/cred_stubs.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/external.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/init_sec_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/spnego-private.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/spnego.asn1 (props changed) vendor-crypto/heimdal/dist/lib/gssapi/spnego/spnego_locl.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_acquire_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_common.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_common.h (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_context.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_cred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_kcred.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_names.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_ntlm.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_oid.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/test_oid_set_member.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/unwrap.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/v1.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/verify_mic.c (props changed) vendor-crypto/heimdal/dist/lib/gssapi/version-script.map (props changed) vendor-crypto/heimdal/dist/lib/gssapi/wrap.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/hdb/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/hdb/common.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/convert_db.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/db.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/db3.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/dbinfo.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/ext.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb-ldap.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb-private.h (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb-protos.h (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb.asn1 (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb.h (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb.schema (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb_err.et (props changed) vendor-crypto/heimdal/dist/lib/hdb/hdb_locl.h (props changed) vendor-crypto/heimdal/dist/lib/hdb/keys.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/keytab.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/mkey.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/ndbm.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/print.c (props changed) vendor-crypto/heimdal/dist/lib/hdb/test_dbinfo.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/hx509/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/hx509/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/ca.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/cert.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/cms.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/collector.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/crmf.asn1 (props changed) vendor-crypto/heimdal/dist/lib/hx509/crypto.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/bleichenbacher-bad.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/bleichenbacher-good.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/bleichenbacher-sf-pad-correct.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ca.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ca.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/crl1.crl (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/crl1.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/gen-req.sh (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/j.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/kdc.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/kdc.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/key.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/key2.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/nist-data (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/nist-data2 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/no-proxy-test.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/no-proxy-test.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-req1.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-req2.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-resp1-2.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-resp1-3.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-resp1-ca.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-resp1-keyhash.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-resp1-ocsp-no-cert.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-resp1-ocsp.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-resp1.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-resp2.der (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-responder.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/ocsp-responder.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/openssl.cnf (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/pkinit-proxy-chain.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/pkinit-proxy.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/pkinit-proxy.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/pkinit-pw.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/pkinit.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/pkinit.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy-level-test.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy-level-test.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy-test.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy-test.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy10-child-child-test.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy10-child-child-test.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy10-child-test.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy10-child-test.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy10-test.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/proxy10-test.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/revoke.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/revoke.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/sf-class2-root.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/static-file (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/sub-ca.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/sub-ca.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/sub-cert.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/sub-cert.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/sub-cert.p12 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-ds-only.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-ds-only.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-enveloped-aes-128 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-enveloped-aes-256 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-enveloped-des (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-enveloped-des-ede3 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-enveloped-rc2-128 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-enveloped-rc2-40 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-enveloped-rc2-64 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-ke-only.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-ke-only.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-nopw.p12 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-pw.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-signed-data (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-signed-data-noattr (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test-signed-data-noattr-nocerts (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test.combined.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test.crt (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/test.p12 (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/yutaka-pad-broken-ca.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/yutaka-pad-broken-cert.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/yutaka-pad-ok-ca.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/yutaka-pad-ok-cert.pem (props changed) vendor-crypto/heimdal/dist/lib/hx509/data/yutaka-pad.key (props changed) vendor-crypto/heimdal/dist/lib/hx509/doxygen.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/env.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/error.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/file.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/hx509-private.h (props changed) vendor-crypto/heimdal/dist/lib/hx509/hx509-protos.h (props changed) vendor-crypto/heimdal/dist/lib/hx509/hx509.h (props changed) vendor-crypto/heimdal/dist/lib/hx509/hx509_err.et (props changed) vendor-crypto/heimdal/dist/lib/hx509/hx_locl.h (props changed) vendor-crypto/heimdal/dist/lib/hx509/hxtool-commands.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/hxtool.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/keyset.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ks_dir.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ks_file.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ks_keychain.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ks_mem.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ks_null.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ks_p11.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ks_p12.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/lock.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/name.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ocsp.asn1 (props changed) vendor-crypto/heimdal/dist/lib/hx509/peer.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/pkcs10.asn1 (props changed) vendor-crypto/heimdal/dist/lib/hx509/print.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/ref/pkcs11.h (props changed) vendor-crypto/heimdal/dist/lib/hx509/req.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/revoke.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/softp11.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_ca.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_cert.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_chain.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_cms.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_crypto.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_java_pkcs11.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_name.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_nist.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_nist2.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_nist_cert.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_nist_pkcs12.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_pkcs11.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_query.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_req.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_soft_pkcs11.c (props changed) vendor-crypto/heimdal/dist/lib/hx509/test_windows.in (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-available1 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-available2 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-available3 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-select (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-select1 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-select2 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-select3 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-select4 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-select5 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-select6 (props changed) vendor-crypto/heimdal/dist/lib/hx509/tst-crypto-select7 (props changed) vendor-crypto/heimdal/dist/lib/hx509/version-script.map (props changed) vendor-crypto/heimdal/dist/lib/kadm5/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/kadm5/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/kadm5/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/kadm5/acl.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/ad.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/admin.h (props changed) vendor-crypto/heimdal/dist/lib/kadm5/bump_pw_expire.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/check-cracklib.pl (props changed) vendor-crypto/heimdal/dist/lib/kadm5/chpass_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/chpass_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/client_glue.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/common_glue.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/context_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/create_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/create_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/default_keys.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/delete_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/delete_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/destroy_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/destroy_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/dump_log.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/ent_setup.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/error.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/flush.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/flush_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/flush_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/free.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/get_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/get_princs_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/get_princs_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/get_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/init_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/init_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/iprop-commands.in (props changed) vendor-crypto/heimdal/dist/lib/kadm5/iprop-log.8 (props changed) vendor-crypto/heimdal/dist/lib/kadm5/iprop-log.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/iprop.8 (props changed) vendor-crypto/heimdal/dist/lib/kadm5/iprop.h (props changed) vendor-crypto/heimdal/dist/lib/kadm5/ipropd_common.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/ipropd_master.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/ipropd_slave.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/kadm5-private.h (props changed) vendor-crypto/heimdal/dist/lib/kadm5/kadm5-protos.h (props changed) vendor-crypto/heimdal/dist/lib/kadm5/kadm5-pwcheck.h (props changed) vendor-crypto/heimdal/dist/lib/kadm5/kadm5_err.et (props changed) vendor-crypto/heimdal/dist/lib/kadm5/kadm5_locl.h (props changed) vendor-crypto/heimdal/dist/lib/kadm5/kadm5_pwcheck.3 (props changed) vendor-crypto/heimdal/dist/lib/kadm5/keys.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/log.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/marshall.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/modify_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/modify_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/password_quality.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/private.h (props changed) vendor-crypto/heimdal/dist/lib/kadm5/privs_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/privs_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/randkey_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/randkey_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/rename_c.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/rename_s.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/replay_log.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/sample_passwd_check.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/send_recv.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/server_glue.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/set_keys.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/set_modifier.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/test_pw_quality.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/truncate_log.c (props changed) vendor-crypto/heimdal/dist/lib/kadm5/version-script.map (props changed) vendor-crypto/heimdal/dist/lib/kafs/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/kafs/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/kafs/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/kafs/README.dlfcn (props changed) vendor-crypto/heimdal/dist/lib/kafs/afskrb.c (props changed) vendor-crypto/heimdal/dist/lib/kafs/afskrb5.c (props changed) vendor-crypto/heimdal/dist/lib/kafs/afsl.exp (props changed) vendor-crypto/heimdal/dist/lib/kafs/afslib.c (props changed) vendor-crypto/heimdal/dist/lib/kafs/afslib.exp (props changed) vendor-crypto/heimdal/dist/lib/kafs/afssys.c (props changed) vendor-crypto/heimdal/dist/lib/kafs/afssysdefs.h (props changed) vendor-crypto/heimdal/dist/lib/kafs/common.c (props changed) vendor-crypto/heimdal/dist/lib/kafs/dlfcn.c (props changed) vendor-crypto/heimdal/dist/lib/kafs/dlfcn.h (props changed) vendor-crypto/heimdal/dist/lib/kafs/kafs.3 (props changed) vendor-crypto/heimdal/dist/lib/kafs/kafs.h (props changed) vendor-crypto/heimdal/dist/lib/kafs/kafs_locl.h (props changed) vendor-crypto/heimdal/dist/lib/kafs/roken_rename.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/krb5/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/krb5/acache.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/acl.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/add_et_list.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/addr_families.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/aes-test.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/aname_to_localname.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/appdefault.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/asn1_glue.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/auth_context.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/build_ap_req.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/build_auth.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/cache.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/changepw.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/codec.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/config_file.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/config_file_netinfo.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/constants.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/context.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/convert_creds.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/copy_host_realm.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/crc.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/creds.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/crypto.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/data.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/derived-key-test.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/digest.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/doxygen.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/dump_config.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/eai_to_heim_errno.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/error_string.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/expand_hostname.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/fcache.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/free.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/free_host_realm.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/generate_seq_number.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/generate_subkey.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_addrs.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_cred.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_default_principal.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_default_realm.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_for_creds.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_host_realm.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_in_tkt.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_in_tkt_pw.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_in_tkt_with_keytab.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_in_tkt_with_skey.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/get_port.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/heim_err.et (props changed) vendor-crypto/heimdal/dist/lib/krb5/heim_threads.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/init_creds.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/init_creds_pw.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/k524_err.et (props changed) vendor-crypto/heimdal/dist/lib/krb5/kcm.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/kcm.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/kerberos.8 (props changed) vendor-crypto/heimdal/dist/lib/krb5/keyblock.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/keytab.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/keytab_any.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/keytab_file.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/keytab_keyfile.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/keytab_krb4.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/keytab_memory.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5-private.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5-protos.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5-v4compat.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5.conf.5 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5.moduli (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb524_convert_creds_kdc.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_425_conv_principal.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_acl_match_file.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_address.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_aname_to_localname.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_appdefault.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_auth_context.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_build_principal.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_c_make_checksum.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_ccache.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_ccapi.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_check_transited.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_compare_creds.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_config.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_context.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_create_checksum.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_creds.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_crypto_init.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_data.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_digest.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_eai_to_heim_errno.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_encrypt.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_err.et (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_expand_hostname.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_find_padata.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_free_addresses.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_free_principal.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_generate_random_block.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_get_all_client_addrs.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_get_credentials.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_get_creds.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_get_forwarded_creds.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_get_in_cred.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_get_init_creds.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_get_krbhst.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_getportbyname.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_init_context.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_is_thread_safe.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_keyblock.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_keytab.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_krbhst_init.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_kuserok.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_locl.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_mk_req.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_mk_safe.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_openlog.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_parse_name.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_principal.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_principal_get_realm.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_rcache.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_rd_error.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_rd_safe.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_set_default_realm.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_set_password.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_sname_to_principal.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_storage.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_string_to_key.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_ticket.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_timeofday.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_unparse_name.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_verify_init_creds.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_verify_user.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb5_warn.3 (props changed) vendor-crypto/heimdal/dist/lib/krb5/krb_err.et (props changed) vendor-crypto/heimdal/dist/lib/krb5/krbhst-test.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/krbhst.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/kuserok.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/locate_plugin.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/log.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/mcache.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/misc.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/mit_glue.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/mk_error.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/mk_priv.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/mk_rep.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/mk_req.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/mk_req_ext.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/mk_safe.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/n-fold-test.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/n-fold.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/name-45-test.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/net_read.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/net_write.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/pac.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/padata.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/parse-name-test.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/pkinit.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/plugin.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/principal.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/prog_setup.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/prompter_posix.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/rd_cred.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/rd_error.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/rd_priv.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/rd_rep.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/rd_req.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/rd_safe.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/read_message.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/recvauth.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/replay.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/send_to_kdc.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/sendauth.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/set_default_realm.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/sock_principal.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/store-int.h (props changed) vendor-crypto/heimdal/dist/lib/krb5/store-test.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/store.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/store_emem.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/store_fd.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/store_mem.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/string-to-key-test.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_acl.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_addr.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_alname.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_cc.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_config.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_crypto.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_crypto_wrapping.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_forward.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_get_addrs.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_hostname.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_keytab.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_kuserok.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_mem.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_pac.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_pkinit_dh2key.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_plugin.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_prf.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_princ.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_renew.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_store.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/test_time.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/ticket.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/time.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/transited.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/v4_glue.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/verify_init.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/verify_krb5_conf.8 (props changed) vendor-crypto/heimdal/dist/lib/krb5/verify_krb5_conf.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/verify_user.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/version-script.map (props changed) vendor-crypto/heimdal/dist/lib/krb5/version.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/warn.c (props changed) vendor-crypto/heimdal/dist/lib/krb5/write_message.c (props changed) vendor-crypto/heimdal/dist/lib/ntlm/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/ntlm/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/ntlm/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/ntlm/heimntlm-protos.h (props changed) vendor-crypto/heimdal/dist/lib/ntlm/heimntlm.h (props changed) vendor-crypto/heimdal/dist/lib/ntlm/ntlm.c (props changed) vendor-crypto/heimdal/dist/lib/ntlm/test_ntlm.c (props changed) vendor-crypto/heimdal/dist/lib/ntlm/version-script.map (props changed) vendor-crypto/heimdal/dist/lib/roken/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/roken/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/roken/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/roken/acconfig.h (props changed) vendor-crypto/heimdal/dist/lib/roken/acinclude.m4 (props changed) vendor-crypto/heimdal/dist/lib/roken/base64-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/base64.c (props changed) vendor-crypto/heimdal/dist/lib/roken/base64.h (props changed) vendor-crypto/heimdal/dist/lib/roken/bswap.c (props changed) vendor-crypto/heimdal/dist/lib/roken/chown.c (props changed) vendor-crypto/heimdal/dist/lib/roken/closefrom.c (props changed) vendor-crypto/heimdal/dist/lib/roken/concat.c (props changed) vendor-crypto/heimdal/dist/lib/roken/copyhostent.c (props changed) vendor-crypto/heimdal/dist/lib/roken/daemon.c (props changed) vendor-crypto/heimdal/dist/lib/roken/dumpdata.c (props changed) vendor-crypto/heimdal/dist/lib/roken/ecalloc.3 (props changed) vendor-crypto/heimdal/dist/lib/roken/ecalloc.c (props changed) vendor-crypto/heimdal/dist/lib/roken/emalloc.c (props changed) vendor-crypto/heimdal/dist/lib/roken/environment.c (props changed) vendor-crypto/heimdal/dist/lib/roken/eread.c (props changed) vendor-crypto/heimdal/dist/lib/roken/erealloc.c (props changed) vendor-crypto/heimdal/dist/lib/roken/err.c (props changed) vendor-crypto/heimdal/dist/lib/roken/err.hin (props changed) vendor-crypto/heimdal/dist/lib/roken/errx.c (props changed) vendor-crypto/heimdal/dist/lib/roken/esetenv.c (props changed) vendor-crypto/heimdal/dist/lib/roken/estrdup.c (props changed) vendor-crypto/heimdal/dist/lib/roken/ewrite.c (props changed) vendor-crypto/heimdal/dist/lib/roken/fchown.c (props changed) vendor-crypto/heimdal/dist/lib/roken/flock.c (props changed) vendor-crypto/heimdal/dist/lib/roken/fnmatch.c (props changed) vendor-crypto/heimdal/dist/lib/roken/fnmatch.hin (props changed) vendor-crypto/heimdal/dist/lib/roken/freeaddrinfo.c (props changed) vendor-crypto/heimdal/dist/lib/roken/freehostent.c (props changed) vendor-crypto/heimdal/dist/lib/roken/gai_strerror.c (props changed) vendor-crypto/heimdal/dist/lib/roken/get_default_username.c (props changed) vendor-crypto/heimdal/dist/lib/roken/get_window_size.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getaddrinfo-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getaddrinfo.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getaddrinfo_hostspec.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getarg.3 (props changed) vendor-crypto/heimdal/dist/lib/roken/getarg.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getarg.h (props changed) vendor-crypto/heimdal/dist/lib/roken/getcap.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getcwd.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getdtablesize.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getegid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/geteuid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getgid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/gethostname.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getifaddrs.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getipnodebyaddr.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getipnodebyname.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getnameinfo.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getnameinfo_verified.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getopt.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getprogname.c (props changed) vendor-crypto/heimdal/dist/lib/roken/gettimeofday.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getuid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/getusershell.c (props changed) vendor-crypto/heimdal/dist/lib/roken/glob.c (props changed) vendor-crypto/heimdal/dist/lib/roken/glob.hin (props changed) vendor-crypto/heimdal/dist/lib/roken/h_errno.c (props changed) vendor-crypto/heimdal/dist/lib/roken/hex-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/hex.c (props changed) vendor-crypto/heimdal/dist/lib/roken/hex.h (props changed) vendor-crypto/heimdal/dist/lib/roken/hostent_find_fqdn.c (props changed) vendor-crypto/heimdal/dist/lib/roken/hstrerror.c (props changed) vendor-crypto/heimdal/dist/lib/roken/ifaddrs.hin (props changed) vendor-crypto/heimdal/dist/lib/roken/inet_aton.c (props changed) vendor-crypto/heimdal/dist/lib/roken/inet_ntop.c (props changed) vendor-crypto/heimdal/dist/lib/roken/inet_pton.c (props changed) vendor-crypto/heimdal/dist/lib/roken/initgroups.c (props changed) vendor-crypto/heimdal/dist/lib/roken/innetgr.c (props changed) vendor-crypto/heimdal/dist/lib/roken/install-sh (props changed) vendor-crypto/heimdal/dist/lib/roken/iruserok.c (props changed) vendor-crypto/heimdal/dist/lib/roken/issuid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/k_getpwnam.c (props changed) vendor-crypto/heimdal/dist/lib/roken/k_getpwuid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/localtime_r.c (props changed) vendor-crypto/heimdal/dist/lib/roken/lstat.c (props changed) vendor-crypto/heimdal/dist/lib/roken/memmove.c (props changed) vendor-crypto/heimdal/dist/lib/roken/mini_inetd.c (props changed) vendor-crypto/heimdal/dist/lib/roken/missing (props changed) vendor-crypto/heimdal/dist/lib/roken/mkinstalldirs (props changed) vendor-crypto/heimdal/dist/lib/roken/mkstemp.c (props changed) vendor-crypto/heimdal/dist/lib/roken/ndbm_wrap.c (props changed) vendor-crypto/heimdal/dist/lib/roken/ndbm_wrap.h (props changed) vendor-crypto/heimdal/dist/lib/roken/net_read.c (props changed) vendor-crypto/heimdal/dist/lib/roken/net_write.c (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_bytes-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_bytes.c (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_bytes.h (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_reply-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_time-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_time.3 (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_time.c (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_time.h (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_units.c (props changed) vendor-crypto/heimdal/dist/lib/roken/parse_units.h (props changed) vendor-crypto/heimdal/dist/lib/roken/print_version.c (props changed) vendor-crypto/heimdal/dist/lib/roken/putenv.c (props changed) vendor-crypto/heimdal/dist/lib/roken/rcmd.c (props changed) vendor-crypto/heimdal/dist/lib/roken/readv.c (props changed) vendor-crypto/heimdal/dist/lib/roken/realloc.c (props changed) vendor-crypto/heimdal/dist/lib/roken/recvmsg.c (props changed) vendor-crypto/heimdal/dist/lib/roken/resolve-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/resolve.c (props changed) vendor-crypto/heimdal/dist/lib/roken/resolve.h (props changed) vendor-crypto/heimdal/dist/lib/roken/resource.h (props changed) vendor-crypto/heimdal/dist/lib/roken/roken-common.h (props changed) vendor-crypto/heimdal/dist/lib/roken/roken.awk (props changed) vendor-crypto/heimdal/dist/lib/roken/roken.h.in (props changed) vendor-crypto/heimdal/dist/lib/roken/roken_gethostby.c (props changed) vendor-crypto/heimdal/dist/lib/roken/rtbl.3 (props changed) vendor-crypto/heimdal/dist/lib/roken/rtbl.c (props changed) vendor-crypto/heimdal/dist/lib/roken/rtbl.h (props changed) vendor-crypto/heimdal/dist/lib/roken/sendmsg.c (props changed) vendor-crypto/heimdal/dist/lib/roken/setegid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/setenv.c (props changed) vendor-crypto/heimdal/dist/lib/roken/seteuid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/setprogname.c (props changed) vendor-crypto/heimdal/dist/lib/roken/signal.c (props changed) vendor-crypto/heimdal/dist/lib/roken/simple_exec.c (props changed) vendor-crypto/heimdal/dist/lib/roken/snprintf-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/snprintf-test.h (props changed) vendor-crypto/heimdal/dist/lib/roken/snprintf.c (props changed) vendor-crypto/heimdal/dist/lib/roken/socket.c (props changed) vendor-crypto/heimdal/dist/lib/roken/socket_wrapper.c (props changed) vendor-crypto/heimdal/dist/lib/roken/socket_wrapper.h (props changed) vendor-crypto/heimdal/dist/lib/roken/strcasecmp.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strcollect.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strdup.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strerror.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strftime.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strlcat.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strlcpy.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strlwr.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strncasecmp.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strndup.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strnlen.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strpftime-test.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strpftime-test.h (props changed) vendor-crypto/heimdal/dist/lib/roken/strpool.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strptime.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strsep.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strsep_copy.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strtok_r.c (props changed) vendor-crypto/heimdal/dist/lib/roken/strupr.c (props changed) vendor-crypto/heimdal/dist/lib/roken/swab.c (props changed) vendor-crypto/heimdal/dist/lib/roken/test-mem.c (props changed) vendor-crypto/heimdal/dist/lib/roken/test-mem.h (props changed) vendor-crypto/heimdal/dist/lib/roken/test-readenv.c (props changed) vendor-crypto/heimdal/dist/lib/roken/timegm.c (props changed) vendor-crypto/heimdal/dist/lib/roken/timeval.c (props changed) vendor-crypto/heimdal/dist/lib/roken/tm2time.c (props changed) vendor-crypto/heimdal/dist/lib/roken/unsetenv.c (props changed) vendor-crypto/heimdal/dist/lib/roken/unvis.c (props changed) vendor-crypto/heimdal/dist/lib/roken/verify.c (props changed) vendor-crypto/heimdal/dist/lib/roken/verr.c (props changed) vendor-crypto/heimdal/dist/lib/roken/verrx.c (props changed) vendor-crypto/heimdal/dist/lib/roken/vis.c (props changed) vendor-crypto/heimdal/dist/lib/roken/vis.h (props changed) vendor-crypto/heimdal/dist/lib/roken/vis.hin (props changed) vendor-crypto/heimdal/dist/lib/roken/vsyslog.c (props changed) vendor-crypto/heimdal/dist/lib/roken/vwarn.c (props changed) vendor-crypto/heimdal/dist/lib/roken/vwarnx.c (props changed) vendor-crypto/heimdal/dist/lib/roken/warn.c (props changed) vendor-crypto/heimdal/dist/lib/roken/warnerr.c (props changed) vendor-crypto/heimdal/dist/lib/roken/warnx.c (props changed) vendor-crypto/heimdal/dist/lib/roken/write_pid.c (props changed) vendor-crypto/heimdal/dist/lib/roken/writev.c (props changed) vendor-crypto/heimdal/dist/lib/roken/xdbm.h (props changed) vendor-crypto/heimdal/dist/lib/sl/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/sl/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/sl/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/sl/lex.c (props changed) vendor-crypto/heimdal/dist/lib/sl/lex.l (props changed) vendor-crypto/heimdal/dist/lib/sl/make_cmds.c (props changed) vendor-crypto/heimdal/dist/lib/sl/make_cmds.h (props changed) vendor-crypto/heimdal/dist/lib/sl/parse.c (props changed) vendor-crypto/heimdal/dist/lib/sl/parse.h (props changed) vendor-crypto/heimdal/dist/lib/sl/parse.y (props changed) vendor-crypto/heimdal/dist/lib/sl/roken_rename.h (props changed) vendor-crypto/heimdal/dist/lib/sl/sl.c (props changed) vendor-crypto/heimdal/dist/lib/sl/sl.h (props changed) vendor-crypto/heimdal/dist/lib/sl/sl_locl.h (props changed) vendor-crypto/heimdal/dist/lib/sl/slc-gram.c (props changed) vendor-crypto/heimdal/dist/lib/sl/slc-gram.h (props changed) vendor-crypto/heimdal/dist/lib/sl/slc-gram.y (props changed) vendor-crypto/heimdal/dist/lib/sl/slc-lex.c (props changed) vendor-crypto/heimdal/dist/lib/sl/slc-lex.l (props changed) vendor-crypto/heimdal/dist/lib/sl/slc.h (props changed) vendor-crypto/heimdal/dist/lib/sl/ss.c (props changed) vendor-crypto/heimdal/dist/lib/sl/ss.h (props changed) vendor-crypto/heimdal/dist/lib/sl/test_sl.c (props changed) vendor-crypto/heimdal/dist/lib/vers/ChangeLog (props changed) vendor-crypto/heimdal/dist/lib/vers/Makefile.am (props changed) vendor-crypto/heimdal/dist/lib/vers/Makefile.in (props changed) vendor-crypto/heimdal/dist/lib/vers/make-print-version.c (props changed) vendor-crypto/heimdal/dist/lib/vers/print_version.c (props changed) vendor-crypto/heimdal/dist/lib/vers/vers.h (props changed) vendor-crypto/heimdal/dist/ltconfig (props changed) vendor-crypto/heimdal/dist/ltmain.sh (props changed) vendor-crypto/heimdal/dist/missing (props changed) vendor-crypto/heimdal/dist/mkinstalldirs (props changed) vendor-crypto/heimdal/dist/packages/ChangeLog (props changed) vendor-crypto/heimdal/dist/packages/Makefile.am (props changed) vendor-crypto/heimdal/dist/packages/Makefile.in (props changed) vendor-crypto/heimdal/dist/packages/debian/Makefile.am (props changed) vendor-crypto/heimdal/dist/packages/debian/Makefile.in (props changed) vendor-crypto/heimdal/dist/packages/debian/README (props changed) vendor-crypto/heimdal/dist/packages/debian/README.Debian (props changed) vendor-crypto/heimdal/dist/packages/debian/changelog (props changed) vendor-crypto/heimdal/dist/packages/debian/compat (props changed) vendor-crypto/heimdal/dist/packages/debian/control (props changed) vendor-crypto/heimdal/dist/packages/debian/copyright (props changed) vendor-crypto/heimdal/dist/packages/debian/extras/default (props changed) vendor-crypto/heimdal/dist/packages/debian/extras/kadmind.acl (props changed) vendor-crypto/heimdal/dist/packages/debian/extras/kdc.conf (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-clients-x.install (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-clients.install (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-clients.postinst (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-clients.prerm (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-dev.install (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-docs.install (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kcm.init (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kcm.install (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kdc.dirs (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kdc.examples (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kdc.init (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kdc.install (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kdc.logrotate (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kdc.postinst (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kdc.postrm (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-kdc.templates (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers-x.dirs (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers-x.install (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers-x.postinst (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers-x.postrm (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers-x.prerm (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers.dirs (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers.install (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers.postinst (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers.postrm (props changed) vendor-crypto/heimdal/dist/packages/debian/heimdal-servers.prerm (props changed) vendor-crypto/heimdal/dist/packages/debian/libasn1-8-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libasn1-8-heimdal.postinst.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libasn1-8-heimdal.postrm.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libasn1-8-heimdal.substvars (props changed) vendor-crypto/heimdal/dist/packages/debian/libgssapi2-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libgssapi2-heimdal.postinst.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libgssapi2-heimdal.postrm.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libgssapi2-heimdal.substvars (props changed) vendor-crypto/heimdal/dist/packages/debian/libhdb9-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libhdb9-heimdal.postinst.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libhdb9-heimdal.postrm.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libhdb9-heimdal.substvars (props changed) vendor-crypto/heimdal/dist/packages/debian/libkadm5clnt7-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libkadm5clnt7-heimdal.postinst.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libkadm5clnt7-heimdal.postrm.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libkadm5clnt7-heimdal.substvars (props changed) vendor-crypto/heimdal/dist/packages/debian/libkadm5srv7-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libkadm5srv8-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libkafs0-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libkrb5-22-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libkrb5-22-heimdal.postinst.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libkrb5-22-heimdal.postrm.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libkrb5-22-heimdal.substvars (props changed) vendor-crypto/heimdal/dist/packages/debian/libotp0-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libroken18-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/libroken18-heimdal.postinst.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libroken18-heimdal.postrm.debhelper (props changed) vendor-crypto/heimdal/dist/packages/debian/libroken18-heimdal.substvars (props changed) vendor-crypto/heimdal/dist/packages/debian/libsl0-heimdal.install (props changed) vendor-crypto/heimdal/dist/packages/debian/patches/021_debian (props changed) vendor-crypto/heimdal/dist/packages/debian/patches/022_ftp-roken-glob (props changed) vendor-crypto/heimdal/dist/packages/debian/patches/022_openafs (props changed) vendor-crypto/heimdal/dist/packages/debian/patches/025_pthreads (props changed) vendor-crypto/heimdal/dist/packages/debian/patches/026_posix_max (props changed) vendor-crypto/heimdal/dist/packages/debian/po/POTFILES.in (props changed) vendor-crypto/heimdal/dist/packages/debian/po/templates.pot (props changed) vendor-crypto/heimdal/dist/packages/debian/rules (props changed) vendor-crypto/heimdal/dist/packages/debian/scripts/convert_source (props changed) vendor-crypto/heimdal/dist/packages/mac/Info.plist (props changed) vendor-crypto/heimdal/dist/packages/mac/Makefile.am (props changed) vendor-crypto/heimdal/dist/packages/mac/Makefile.in (props changed) vendor-crypto/heimdal/dist/packages/mac/Resources/Description.plist (props changed) vendor-crypto/heimdal/dist/packages/mac/Resources/English.lproj/Welcome.rtf (props changed) vendor-crypto/heimdal/dist/packages/mac/mac.sh (props changed) vendor-crypto/heimdal/dist/tests/ChangeLog (props changed) vendor-crypto/heimdal/dist/tests/Makefile.am (props changed) vendor-crypto/heimdal/dist/tests/Makefile.in (props changed) vendor-crypto/heimdal/dist/tests/can/Makefile.am (props changed) vendor-crypto/heimdal/dist/tests/can/Makefile.in (props changed) vendor-crypto/heimdal/dist/tests/can/apple-10.4.kadm (props changed) vendor-crypto/heimdal/dist/tests/can/apple-10.4.req (props changed) vendor-crypto/heimdal/dist/tests/can/check-can.in (props changed) vendor-crypto/heimdal/dist/tests/can/heim-0.8.kadm (props changed) vendor-crypto/heimdal/dist/tests/can/heim-0.8.req (props changed) vendor-crypto/heimdal/dist/tests/can/krb5.conf.in (props changed) vendor-crypto/heimdal/dist/tests/can/mit-pkinit-20070607.ca.crt (props changed) vendor-crypto/heimdal/dist/tests/can/mit-pkinit-20070607.kadm (props changed) vendor-crypto/heimdal/dist/tests/can/mit-pkinit-20070607.req (props changed) vendor-crypto/heimdal/dist/tests/can/mit-pkinit-20070607.xf (props changed) vendor-crypto/heimdal/dist/tests/can/test_can.in (props changed) vendor-crypto/heimdal/dist/tests/db/Makefile.am (props changed) vendor-crypto/heimdal/dist/tests/db/Makefile.in (props changed) vendor-crypto/heimdal/dist/tests/db/add-modify-delete.in (props changed) vendor-crypto/heimdal/dist/tests/db/check-dbinfo.in (props changed) vendor-crypto/heimdal/dist/tests/db/have-db.in (props changed) vendor-crypto/heimdal/dist/tests/db/krb5.conf.in (props changed) vendor-crypto/heimdal/dist/tests/db/loaddump-db.in (props changed) vendor-crypto/heimdal/dist/tests/db/text-dump-0.7 (props changed) vendor-crypto/heimdal/dist/tests/db/text-dump-known-ext (props changed) vendor-crypto/heimdal/dist/tests/db/text-dump-no-ext (props changed) vendor-crypto/heimdal/dist/tests/db/text-dump-unknown-ext (props changed) vendor-crypto/heimdal/dist/tests/gss/Makefile.am (props changed) vendor-crypto/heimdal/dist/tests/gss/Makefile.in (props changed) vendor-crypto/heimdal/dist/tests/gss/check-basic.in (props changed) vendor-crypto/heimdal/dist/tests/gss/check-context.in (props changed) vendor-crypto/heimdal/dist/tests/gss/check-gss.in (props changed) vendor-crypto/heimdal/dist/tests/gss/check-gssmask.in (props changed) vendor-crypto/heimdal/dist/tests/gss/check-ntlm.in (props changed) vendor-crypto/heimdal/dist/tests/gss/check-spnego.in (props changed) vendor-crypto/heimdal/dist/tests/gss/krb5.conf.in (props changed) vendor-crypto/heimdal/dist/tests/gss/ntlm-user-file.txt (props changed) vendor-crypto/heimdal/dist/tests/java/KerberosInit.java (props changed) vendor-crypto/heimdal/dist/tests/java/Makefile.am (props changed) vendor-crypto/heimdal/dist/tests/java/Makefile.in (props changed) vendor-crypto/heimdal/dist/tests/java/check-kinit.in (props changed) vendor-crypto/heimdal/dist/tests/java/have-java.sh (props changed) vendor-crypto/heimdal/dist/tests/java/jaas.conf (props changed) vendor-crypto/heimdal/dist/tests/java/krb5.conf.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/Makefile.am (props changed) vendor-crypto/heimdal/dist/tests/kdc/Makefile.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/ap-req.c (props changed) vendor-crypto/heimdal/dist/tests/kdc/check-digest.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/check-iprop.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/check-kadmin.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/check-kdc.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/check-keys.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/check-pkinit.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/check-referral.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/check-uu.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/donotexists.txt (props changed) vendor-crypto/heimdal/dist/tests/kdc/heimdal.acl (props changed) vendor-crypto/heimdal/dist/tests/kdc/iprop-acl (props changed) vendor-crypto/heimdal/dist/tests/kdc/krb5-pkinit.conf.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/krb5.conf.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/krb5.conf.keys.in (props changed) vendor-crypto/heimdal/dist/tests/kdc/ntlm-user-file.txt (props changed) vendor-crypto/heimdal/dist/tests/kdc/pki-mapping (props changed) vendor-crypto/heimdal/dist/tests/kdc/uuserver.txt (props changed) vendor-crypto/heimdal/dist/tests/kdc/wait-kdc.sh (props changed) vendor-crypto/heimdal/dist/tests/ldap/Makefile.am (props changed) vendor-crypto/heimdal/dist/tests/ldap/Makefile.in (props changed) vendor-crypto/heimdal/dist/tests/ldap/check-ldap.in (props changed) vendor-crypto/heimdal/dist/tests/ldap/init.ldif (props changed) vendor-crypto/heimdal/dist/tests/ldap/krb5.conf.in (props changed) vendor-crypto/heimdal/dist/tests/ldap/samba.schema (props changed) vendor-crypto/heimdal/dist/tests/ldap/slapd-init.in (props changed) vendor-crypto/heimdal/dist/tests/ldap/slapd-stop (props changed) vendor-crypto/heimdal/dist/tests/ldap/slapd.conf (props changed) vendor-crypto/heimdal/dist/tests/plugin/Makefile.am (props changed) vendor-crypto/heimdal/dist/tests/plugin/Makefile.in (props changed) vendor-crypto/heimdal/dist/tests/plugin/check-pac.in (props changed) vendor-crypto/heimdal/dist/tests/plugin/krb5.conf.in (props changed) vendor-crypto/heimdal/dist/tests/plugin/windc.c (props changed) vendor-crypto/heimdal/dist/tools/Makefile.am (props changed) vendor-crypto/heimdal/dist/tools/Makefile.in (props changed) vendor-crypto/heimdal/dist/tools/build.sh (props changed) vendor-crypto/heimdal/dist/tools/heimdal-build.sh (props changed) vendor-crypto/heimdal/dist/tools/heimdal-gssapi.pc.in (props changed) vendor-crypto/heimdal/dist/tools/kdc-log-analyze.pl (props changed) vendor-crypto/heimdal/dist/tools/krb5-config.1 (props changed) vendor-crypto/heimdal/dist/tools/krb5-config.in (props changed) Modified: vendor-crypto/heimdal/dist/appl/rcp/extern.h ============================================================================== --- vendor-crypto/heimdal/dist/appl/rcp/extern.h Thu Sep 29 05:23:57 2011 (r225864) +++ vendor-crypto/heimdal/dist/appl/rcp/extern.h Thu Sep 29 05:26:20 2011 (r225865) @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)extern.h 8.1 (Berkeley) 5/31/93 - * $FreeBSD$ + * $FreeBSD: vendor-crypto/heimdal/dist/appl/rcp/extern.h 225864 2011-09-29 05:23:57Z stas $ */ typedef struct { Modified: vendor-crypto/heimdal/dist/appl/rcp/util.c ============================================================================== --- vendor-crypto/heimdal/dist/appl/rcp/util.c Thu Sep 29 05:23:57 2011 (r225864) +++ vendor-crypto/heimdal/dist/appl/rcp/util.c Thu Sep 29 05:26:20 2011 (r225865) @@ -37,7 +37,7 @@ static char sccsid[] = "@(#)util.c 8.2 (Berkeley) 4/2/94"; #endif static const char rcsid[] = - "$FreeBSD$"; + "$FreeBSD: vendor-crypto/heimdal/dist/appl/rcp/util.c 225864 2011-09-29 05:23:57Z stas $"; #endif /* not lint */ #endif Modified: vendor-crypto/heimdal/dist/lib/gssapi/gssapi_mech.h ============================================================================== --- vendor-crypto/heimdal/dist/lib/gssapi/gssapi_mech.h Thu Sep 29 05:23:57 2011 (r225864) +++ vendor-crypto/heimdal/dist/lib/gssapi/gssapi_mech.h Thu Sep 29 05:26:20 2011 (r225865) @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD$ + * $FreeBSD: vendor-crypto/heimdal/dist/lib/gssapi/gssapi_mech.h 225864 2011-09-29 05:23:57Z stas $ */ #ifndef GSSAPI_MECH_H From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 05:58:09 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4016106566B; Thu, 29 Sep 2011 05:58:09 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 897BE8FC0A; Thu, 29 Sep 2011 05:58:09 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T5w9nM007215; Thu, 29 Sep 2011 05:58:09 GMT (envelope-from stas@svn.freebsd.org) Received: (from stas@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T5w9Mh007214; Thu, 29 Sep 2011 05:58:09 GMT (envelope-from stas@svn.freebsd.org) Message-Id: <201109290558.p8T5w9Mh007214@svn.freebsd.org> From: Stanislav Sedov Date: Thu, 29 Sep 2011 05:58:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-crypto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225866 - in vendor-crypto/heimdal/dist: . cf crypto kadmin kuser lib/asn1 lib/gssapi lib/hdb lib/kadm5 lib/krb5 lib/roken tools X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 05:58:09 -0000 Author: stas Date: Thu Sep 29 05:58:09 2011 New Revision: 225866 URL: http://svn.freebsd.org/changeset/base/225866 Log: - Kill files that do not belong to the laters heimdal version imported. Deleted: vendor-crypto/heimdal/dist/cf/broken-getnameinfo.m4 vendor-crypto/heimdal/dist/cf/check-declaration.m4 vendor-crypto/heimdal/dist/crypto/ vendor-crypto/heimdal/dist/kadmin/version4.c vendor-crypto/heimdal/dist/kuser/kauth_options.c vendor-crypto/heimdal/dist/kuser/kinit_options.c vendor-crypto/heimdal/dist/lib/asn1/gen.h vendor-crypto/heimdal/dist/lib/asn1/x509.asn1 vendor-crypto/heimdal/dist/lib/gssapi/8003.c vendor-crypto/heimdal/dist/lib/gssapi/accept_sec_context.c vendor-crypto/heimdal/dist/lib/gssapi/acquire_cred.c vendor-crypto/heimdal/dist/lib/gssapi/add_cred.c vendor-crypto/heimdal/dist/lib/gssapi/add_oid_set_member.c vendor-crypto/heimdal/dist/lib/gssapi/address_to_krb5addr.c vendor-crypto/heimdal/dist/lib/gssapi/arcfour.c vendor-crypto/heimdal/dist/lib/gssapi/arcfour.h vendor-crypto/heimdal/dist/lib/gssapi/canonicalize_name.c vendor-crypto/heimdal/dist/lib/gssapi/compare_name.c vendor-crypto/heimdal/dist/lib/gssapi/compat.c vendor-crypto/heimdal/dist/lib/gssapi/context_time.c vendor-crypto/heimdal/dist/lib/gssapi/copy_ccache.c vendor-crypto/heimdal/dist/lib/gssapi/create_emtpy_oid_set.c vendor-crypto/heimdal/dist/lib/gssapi/decapsulate.c vendor-crypto/heimdal/dist/lib/gssapi/delete_sec_context.c vendor-crypto/heimdal/dist/lib/gssapi/display_name.c vendor-crypto/heimdal/dist/lib/gssapi/display_status.c vendor-crypto/heimdal/dist/lib/gssapi/duplicate_name.c vendor-crypto/heimdal/dist/lib/gssapi/encapsulate.c vendor-crypto/heimdal/dist/lib/gssapi/export_name.c vendor-crypto/heimdal/dist/lib/gssapi/export_sec_context.c vendor-crypto/heimdal/dist/lib/gssapi/external.c vendor-crypto/heimdal/dist/lib/gssapi/get_mic.c vendor-crypto/heimdal/dist/lib/gssapi/gssapi_locl.h vendor-crypto/heimdal/dist/lib/gssapi/import_name.c vendor-crypto/heimdal/dist/lib/gssapi/import_sec_context.c vendor-crypto/heimdal/dist/lib/gssapi/indicate_mechs.c vendor-crypto/heimdal/dist/lib/gssapi/init.c vendor-crypto/heimdal/dist/lib/gssapi/init_sec_context.c vendor-crypto/heimdal/dist/lib/gssapi/inquire_context.c vendor-crypto/heimdal/dist/lib/gssapi/inquire_cred.c vendor-crypto/heimdal/dist/lib/gssapi/inquire_cred_by_mech.c vendor-crypto/heimdal/dist/lib/gssapi/inquire_mechs_for_name.c vendor-crypto/heimdal/dist/lib/gssapi/inquire_names_for_mech.c vendor-crypto/heimdal/dist/lib/gssapi/process_context_token.c vendor-crypto/heimdal/dist/lib/gssapi/release_buffer.c vendor-crypto/heimdal/dist/lib/gssapi/release_cred.c vendor-crypto/heimdal/dist/lib/gssapi/release_name.c vendor-crypto/heimdal/dist/lib/gssapi/release_oid_set.c vendor-crypto/heimdal/dist/lib/gssapi/test_oid_set_member.c vendor-crypto/heimdal/dist/lib/gssapi/unwrap.c vendor-crypto/heimdal/dist/lib/gssapi/v1.c vendor-crypto/heimdal/dist/lib/gssapi/verify_mic.c vendor-crypto/heimdal/dist/lib/gssapi/wrap.c vendor-crypto/heimdal/dist/lib/hdb/convert_db.c vendor-crypto/heimdal/dist/lib/kadm5/dump_log.c vendor-crypto/heimdal/dist/lib/kadm5/replay_log.c vendor-crypto/heimdal/dist/lib/kadm5/truncate_log.c vendor-crypto/heimdal/dist/lib/krb5/dump_config.c vendor-crypto/heimdal/dist/lib/krb5/krb5_build_principal.3 vendor-crypto/heimdal/dist/lib/krb5/krb5_free_addresses.3 vendor-crypto/heimdal/dist/lib/krb5/krb5_free_principal.3 vendor-crypto/heimdal/dist/lib/krb5/krb5_principal_get_realm.3 vendor-crypto/heimdal/dist/lib/krb5/krb5_sname_to_principal.3 vendor-crypto/heimdal/dist/lib/roken/acconfig.h vendor-crypto/heimdal/dist/lib/roken/acinclude.m4 vendor-crypto/heimdal/dist/lib/roken/print_version.c vendor-crypto/heimdal/dist/lib/roken/resource.h vendor-crypto/heimdal/dist/ltconfig vendor-crypto/heimdal/dist/mkinstalldirs vendor-crypto/heimdal/dist/tools/build.sh From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 06:00:26 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94ABA1065673; Thu, 29 Sep 2011 06:00:26 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6BC368FC17; Thu, 29 Sep 2011 06:00:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T60QFg007363; Thu, 29 Sep 2011 06:00:26 GMT (envelope-from stas@svn.freebsd.org) Received: (from stas@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T60QOe007362; Thu, 29 Sep 2011 06:00:26 GMT (envelope-from stas@svn.freebsd.org) Message-Id: <201109290600.p8T60QOe007362@svn.freebsd.org> From: Stanislav Sedov Date: Thu, 29 Sep 2011 06:00:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225867 - head/crypto/heimdal X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 06:00:26 -0000 Author: stas Date: Thu Sep 29 06:00:26 2011 New Revision: 225867 URL: http://svn.freebsd.org/changeset/base/225867 Log: - Bootstrap the heimdal merge history. Modified: Directory Properties: head/crypto/heimdal/ (props changed) From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 06:31:43 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C9981065672; Thu, 29 Sep 2011 06:31:43 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EEA7F8FC08; Thu, 29 Sep 2011 06:31:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T6VgRi008382; Thu, 29 Sep 2011 06:31:42 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T6VgJ3008377; Thu, 29 Sep 2011 06:31:42 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <201109290631.p8T6VgJ3008377@svn.freebsd.org> From: Edward Tomasz Napierala Date: Thu, 29 Sep 2011 06:31:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 06:31:43 -0000 Author: trasz Date: Thu Sep 29 06:31:42 2011 New Revision: 225868 URL: http://svn.freebsd.org/changeset/base/225868 Log: Make ps(1) automatically size its column widths. Modified: head/bin/ps/extern.h head/bin/ps/keyword.c head/bin/ps/print.c head/bin/ps/ps.c head/bin/ps/ps.h Modified: head/bin/ps/extern.h ============================================================================== --- head/bin/ps/extern.h Thu Sep 29 06:00:26 2011 (r225867) +++ head/bin/ps/extern.h Thu Sep 29 06:31:42 2011 (r225868) @@ -39,63 +39,52 @@ extern fixpt_t ccpu; extern int cflag, eval, fscale, nlistread, rawcpu; extern unsigned long mempages; extern time_t now; -extern int showthreads, sumrusage, termwidth, totwidth; +extern int showthreads, sumrusage, termwidth; extern STAILQ_HEAD(velisthead, varent) varlist; __BEGIN_DECLS -void arguments(KINFO *, VARENT *); -void command(KINFO *, VARENT *); -void cputime(KINFO *, VARENT *); +char *arguments(KINFO *, VARENT *); +char *command(KINFO *, VARENT *); +char *cputime(KINFO *, VARENT *); int donlist(void); -void elapsed(KINFO *, VARENT *); -void elapseds(KINFO *, VARENT *); -void emulname(KINFO *, VARENT *); +char *elapsed(KINFO *, VARENT *); +char *elapseds(KINFO *, VARENT *); +char *emulname(KINFO *, VARENT *); VARENT *find_varentry(VAR *); const char *fmt_argv(char **, char *, size_t); double getpcpu(const KINFO *); -void kvar(KINFO *, VARENT *); -void label(KINFO *, VARENT *); -void loginclass(KINFO *, VARENT *); -void logname(KINFO *, VARENT *); -void longtname(KINFO *, VARENT *); -void lstarted(KINFO *, VARENT *); -void maxrss(KINFO *, VARENT *); -void lockname(KINFO *, VARENT *); -void mwchan(KINFO *, VARENT *); -void nwchan(KINFO *, VARENT *); -void pagein(KINFO *, VARENT *); +char *kvar(KINFO *, VARENT *); +char *label(KINFO *, VARENT *); +char *loginclass(KINFO *, VARENT *); +char *logname(KINFO *, VARENT *); +char *longtname(KINFO *, VARENT *); +char *lstarted(KINFO *, VARENT *); +char *maxrss(KINFO *, VARENT *); +char *lockname(KINFO *, VARENT *); +char *mwchan(KINFO *, VARENT *); +char *nwchan(KINFO *, VARENT *); +char *pagein(KINFO *, VARENT *); void parsefmt(const char *, int); -void pcpu(KINFO *, VARENT *); -void pmem(KINFO *, VARENT *); -void pri(KINFO *, VARENT *); +char *pcpu(KINFO *, VARENT *); +char *pmem(KINFO *, VARENT *); +char *pri(KINFO *, VARENT *); void printheader(void); -void priorityr(KINFO *, VARENT *); -void egroupname(KINFO *, VARENT *); -void rgroupname(KINFO *, VARENT *); -void runame(KINFO *, VARENT *); -void rvar(KINFO *, VARENT *); -int s_comm(KINFO *); -int s_cputime(KINFO *); -int s_label(KINFO *); -int s_loginclass(KINFO *); -int s_logname(KINFO *); -int s_egroupname(KINFO *); -int s_rgroupname(KINFO *); -int s_runame(KINFO *); -int s_systime(KINFO *); -int s_uname(KINFO *); -int s_usertime(KINFO *); +char *priorityr(KINFO *, VARENT *); +char *egroupname(KINFO *, VARENT *); +char *rgroupname(KINFO *, VARENT *); +char *runame(KINFO *, VARENT *); +char *rvar(KINFO *, VARENT *); void showkey(void); -void started(KINFO *, VARENT *); -void state(KINFO *, VARENT *); -void systime(KINFO *, VARENT *); -void tdev(KINFO *, VARENT *); -void tdnam(KINFO *, VARENT *); -void tname(KINFO *, VARENT *); -void ucomm(KINFO *, VARENT *); -void uname(KINFO *, VARENT *); -void upr(KINFO *, VARENT *); -void usertime(KINFO *, VARENT *); -void vsize(KINFO *, VARENT *); -void wchan(KINFO *, VARENT *); +char *started(KINFO *, VARENT *); +char *state(KINFO *, VARENT *); +char *systime(KINFO *, VARENT *); +char *tdev(KINFO *, VARENT *); +char *tdnam(KINFO *, VARENT *); +char *tname(KINFO *, VARENT *); +char *ucomm(KINFO *, VARENT *); +char *uname(KINFO *, VARENT *); +char *upr(KINFO *, VARENT *); +char *usertime(KINFO *, VARENT *); +char *vsize(KINFO *, VARENT *); +char *wchan(KINFO *, VARENT *); __END_DECLS Modified: head/bin/ps/keyword.c ============================================================================== --- head/bin/ps/keyword.c Thu Sep 29 06:00:26 2011 (r225867) +++ head/bin/ps/keyword.c Thu Sep 29 06:31:42 2011 (r225868) @@ -57,178 +57,116 @@ static int vcmp(const void *, const voi #define KOFF(x) offsetof(struct kinfo_proc, x) #define ROFF(x) offsetof(struct rusage, x) -#define EMULLEN 13 /* enough for "FreeBSD ELF32" */ #define LWPFMT "d" -#define LWPLEN 6 #define NLWPFMT "d" -#define NLWPLEN 4 #define UIDFMT "u" -#define UIDLEN 5 #define PIDFMT "d" -#define PIDLEN 5 -#define USERLEN (MAXLOGNAME - 1) /* PLEASE KEEP THE TABLE BELOW SORTED ALPHABETICALLY!!! */ static VAR var[] = { - {"%cpu", "%CPU", NULL, 0, pcpu, NULL, 5, 0, CHAR, NULL, 0}, - {"%mem", "%MEM", NULL, 0, pmem, NULL, 4, 0, CHAR, NULL, 0}, - {"acflag", "ACFLG", NULL, 0, kvar, NULL, 3, KOFF(ki_acflag), USHORT, - "x", 0}, - {"acflg", "", "acflag", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"args", "COMMAND", NULL, COMM|LJUST|USER, arguments, NULL, 16, 0, + {"%cpu", "%CPU", NULL, 0, pcpu, 0, CHAR, NULL, 0}, + {"%mem", "%MEM", NULL, 0, pmem, 0, CHAR, NULL, 0}, + {"acflag", "ACFLG", NULL, 0, kvar, KOFF(ki_acflag), USHORT, "x", 0}, + {"acflg", "", "acflag", 0, NULL, 0, CHAR, NULL, 0}, + {"args", "COMMAND", NULL, COMM|LJUST|USER, arguments, 0, CHAR, NULL, 0}, - {"blocked", "", "sigmask", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"caught", "", "sigcatch", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"class", "CLASS", NULL, LJUST, loginclass, s_loginclass, - MAXLOGNAME-1, 0, CHAR, NULL, 0}, - {"comm", "COMMAND", NULL, LJUST, ucomm, s_comm, - COMMLEN + TDNAMLEN + 1, 0, CHAR, NULL, 0}, - {"command", "COMMAND", NULL, COMM|LJUST|USER, command, NULL, 16, 0, + {"blocked", "", "sigmask", 0, NULL, 0, CHAR, NULL, 0}, + {"caught", "", "sigcatch", 0, NULL, 0, CHAR, NULL, 0}, + {"class", "CLASS", NULL, LJUST, loginclass, 0, CHAR, NULL, 0}, + {"comm", "COMMAND", NULL, LJUST, ucomm, 0, CHAR, NULL, 0}, + {"command", "COMMAND", NULL, COMM|LJUST|USER, command, 0, CHAR, NULL, 0}, - {"cpu", "CPU", NULL, 0, kvar, NULL, 3, KOFF(ki_estcpu), UINT, "d", - 0}, - {"cputime", "", "time", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"egid", "", "gid", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"egroup", "", "group", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"emul", "EMUL", NULL, LJUST, emulname, NULL, EMULLEN, 0, CHAR, - NULL, 0}, - {"etime", "ELAPSED", NULL, USER, elapsed, NULL, 12, 0, CHAR, NULL, 0}, - {"etimes", "ELAPSED", NULL, USER, elapseds, NULL, 12, 0, CHAR, NULL, 0}, - {"euid", "", "uid", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"f", "F", NULL, 0, kvar, NULL, 8, KOFF(ki_flag), INT, "x", 0}, - {"flags", "", "f", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"gid", "GID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_groups), - UINT, UIDFMT, 0}, - {"group", "GROUP", NULL, LJUST, egroupname, s_egroupname, - USERLEN, 0, CHAR, NULL, 0}, - {"ignored", "", "sigignore", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"inblk", "INBLK", NULL, USER, rvar, NULL, 4, ROFF(ru_inblock), LONG, - "ld", 0}, - {"inblock", "", "inblk", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"jid", "JID", NULL, 0, kvar, NULL, 6, KOFF(ki_jid), INT, "d", 0}, - {"jobc", "JOBC", NULL, 0, kvar, NULL, 4, KOFF(ki_jobc), SHORT, "d", - 0}, - {"ktrace", "KTRACE", NULL, 0, kvar, NULL, 8, KOFF(ki_traceflag), INT, - "x", 0}, - {"label", "LABEL", NULL, LJUST, label, s_label, SHRT_MAX, 0, CHAR, - NULL, 0}, - {"lim", "LIM", NULL, 0, maxrss, NULL, 5, 0, CHAR, NULL, 0}, - {"lockname", "LOCK", NULL, LJUST, lockname, NULL, 6, 0, CHAR, NULL, - 0}, - {"login", "LOGIN", NULL, LJUST, logname, s_logname, MAXLOGNAME-1, - 0, CHAR, NULL, 0}, - {"logname", "", "login", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"lstart", "STARTED", NULL, LJUST|USER, lstarted, NULL, 28, 0, CHAR, - NULL, 0}, - {"lwp", "LWP", NULL, 0, kvar, NULL, LWPLEN, KOFF(ki_tid), UINT, - LWPFMT, 0}, - {"majflt", "MAJFLT", NULL, USER, rvar, NULL, 4, ROFF(ru_majflt), - LONG, "ld", 0}, - {"minflt", "MINFLT", NULL, USER, rvar, NULL, 4, ROFF(ru_minflt), - LONG, "ld", 0}, - {"msgrcv", "MSGRCV", NULL, USER, rvar, NULL, 4, ROFF(ru_msgrcv), - LONG, "ld", 0}, - {"msgsnd", "MSGSND", NULL, USER, rvar, NULL, 4, ROFF(ru_msgsnd), - LONG, "ld", 0}, - {"mwchan", "MWCHAN", NULL, LJUST, mwchan, NULL, 6, 0, CHAR, NULL, 0}, - {"ni", "", "nice", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"nice", "NI", NULL, 0, kvar, NULL, 2, KOFF(ki_nice), CHAR, "d", - 0}, - {"nivcsw", "NIVCSW", NULL, USER, rvar, NULL, 5, ROFF(ru_nivcsw), - LONG, "ld", 0}, - {"nlwp", "NLWP", NULL, 0, kvar, NULL, NLWPLEN, KOFF(ki_numthreads), - UINT, NLWPFMT, 0}, - {"nsignals", "", "nsigs", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"nsigs", "NSIGS", NULL, USER, rvar, NULL, 4, ROFF(ru_nsignals), - LONG, "ld", 0}, - {"nswap", "NSWAP", NULL, USER, rvar, NULL, 4, ROFF(ru_nswap), - LONG, "ld", 0}, - {"nvcsw", "NVCSW", NULL, USER, rvar, NULL, 5, ROFF(ru_nvcsw), - LONG, "ld", 0}, - {"nwchan", "NWCHAN", NULL, LJUST, nwchan, NULL, sizeof(void *) * 2, 0, - CHAR, NULL, 0}, - {"oublk", "OUBLK", NULL, USER, rvar, NULL, 4, ROFF(ru_oublock), - LONG, "ld", 0}, - {"oublock", "", "oublk", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"paddr", "PADDR", NULL, 0, kvar, NULL, sizeof(void *) * 2, - KOFF(ki_paddr), KPTR, "lx", 0}, - {"pagein", "PAGEIN", NULL, USER, pagein, NULL, 6, 0, CHAR, NULL, 0}, - {"pcpu", "", "%cpu", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"pending", "", "sig", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"pgid", "PGID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_pgid), UINT, - PIDFMT, 0}, - {"pid", "PID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_pid), UINT, - PIDFMT, 0}, - {"pmem", "", "%mem", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"ppid", "PPID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_ppid), UINT, - PIDFMT, 0}, - {"pri", "PRI", NULL, 0, pri, NULL, 3, 0, CHAR, NULL, 0}, - {"re", "RE", NULL, INF127, kvar, NULL, 3, KOFF(ki_swtime), UINT, "d", - 0}, - {"rgid", "RGID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_rgid), - UINT, UIDFMT, 0}, - {"rgroup", "RGROUP", NULL, LJUST, rgroupname, s_rgroupname, - USERLEN, 0, CHAR, NULL, 0}, - {"rss", "RSS", NULL, 0, kvar, NULL, 6, KOFF(ki_rssize), PGTOK, "ld", 0}, - {"rtprio", "RTPRIO", NULL, 0, priorityr, NULL, 7, KOFF(ki_pri), CHAR, - NULL, 0}, - {"ruid", "RUID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_ruid), - UINT, UIDFMT, 0}, - {"ruser", "RUSER", NULL, LJUST, runame, s_runame, USERLEN, - 0, CHAR, NULL, 0}, - {"sid", "SID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_sid), UINT, - PIDFMT, 0}, - {"sig", "PENDING", NULL, 0, kvar, NULL, 8, KOFF(ki_siglist), INT, - "x", 0}, - {"sigcatch", "CAUGHT", NULL, 0, kvar, NULL, 8, KOFF(ki_sigcatch), - UINT, "x", 0}, - {"sigignore", "IGNORED", NULL, 0, kvar, NULL, 8, KOFF(ki_sigignore), + {"cpu", "CPU", NULL, 0, kvar, KOFF(ki_estcpu), UINT, "d", 0}, + {"cputime", "", "time", 0, NULL, 0, CHAR, NULL, 0}, + {"egid", "", "gid", 0, NULL, 0, CHAR, NULL, 0}, + {"egroup", "", "group", 0, NULL, 0, CHAR, NULL, 0}, + {"emul", "EMUL", NULL, LJUST, emulname, 0, CHAR, NULL, 0}, + {"etime", "ELAPSED", NULL, USER, elapsed, 0, CHAR, NULL, 0}, + {"etimes", "ELAPSED", NULL, USER, elapseds, 0, CHAR, NULL, 0}, + {"euid", "", "uid", 0, NULL, 0, CHAR, NULL, 0}, + {"f", "F", NULL, 0, kvar, KOFF(ki_flag), INT, "x", 0}, + {"flags", "", "f", 0, NULL, 0, CHAR, NULL, 0}, + {"gid", "GID", NULL, 0, kvar, KOFF(ki_groups), UINT, UIDFMT, 0}, + {"group", "GROUP", NULL, LJUST, egroupname, 0, CHAR, NULL, 0}, + {"ignored", "", "sigignore", 0, NULL, 0, CHAR, NULL, 0}, + {"inblk", "INBLK", NULL, USER, rvar, ROFF(ru_inblock), LONG, "ld", 0}, + {"inblock", "", "inblk", 0, NULL, 0, CHAR, NULL, 0}, + {"jid", "JID", NULL, 0, kvar, KOFF(ki_jid), INT, "d", 0}, + {"jobc", "JOBC", NULL, 0, kvar, KOFF(ki_jobc), SHORT, "d", 0}, + {"ktrace", "KTRACE", NULL, 0, kvar, KOFF(ki_traceflag), INT, "x", 0}, + {"label", "LABEL", NULL, LJUST, label, 0, CHAR, NULL, 0}, + {"lim", "LIM", NULL, 0, maxrss, 0, CHAR, NULL, 0}, + {"lockname", "LOCK", NULL, LJUST, lockname, 0, CHAR, NULL, 0}, + {"login", "LOGIN", NULL, LJUST, logname, 0, CHAR, NULL, 0}, + {"logname", "", "login", 0, NULL, 0, CHAR, NULL, 0}, + {"lstart", "STARTED", NULL, LJUST|USER, lstarted, 0, CHAR, NULL, 0}, + {"lwp", "LWP", NULL, 0, kvar, KOFF(ki_tid), UINT, LWPFMT, 0}, + {"majflt", "MAJFLT", NULL, USER, rvar, ROFF(ru_majflt), LONG, "ld", 0}, + {"minflt", "MINFLT", NULL, USER, rvar, ROFF(ru_minflt), LONG, "ld", 0}, + {"msgrcv", "MSGRCV", NULL, USER, rvar, ROFF(ru_msgrcv), LONG, "ld", 0}, + {"msgsnd", "MSGSND", NULL, USER, rvar, ROFF(ru_msgsnd), LONG, "ld", 0}, + {"mwchan", "MWCHAN", NULL, LJUST, mwchan, 0, CHAR, NULL, 0}, + {"ni", "", "nice", 0, NULL, 0, CHAR, NULL, 0}, + {"nice", "NI", NULL, 0, kvar, KOFF(ki_nice), CHAR, "d", 0}, + {"nivcsw", "NIVCSW", NULL, USER, rvar, ROFF(ru_nivcsw), LONG, "ld", 0}, + {"nlwp", "NLWP", NULL, 0, kvar, KOFF(ki_numthreads), UINT, NLWPFMT, 0}, + {"nsignals", "", "nsigs", 0, NULL, 0, CHAR, NULL, 0}, + {"nsigs", "NSIGS", NULL, USER, rvar, ROFF(ru_nsignals), LONG, "ld", 0}, + {"nswap", "NSWAP", NULL, USER, rvar, ROFF(ru_nswap), LONG, "ld", 0}, + {"nvcsw", "NVCSW", NULL, USER, rvar, ROFF(ru_nvcsw), LONG, "ld", 0}, + {"nwchan", "NWCHAN", NULL, LJUST, nwchan, 0, CHAR, NULL, 0}, + {"oublk", "OUBLK", NULL, USER, rvar, ROFF(ru_oublock), LONG, "ld", 0}, + {"oublock", "", "oublk", 0, NULL, 0, CHAR, NULL, 0}, + {"paddr", "PADDR", NULL, 0, kvar, KOFF(ki_paddr), KPTR, "lx", 0}, + {"pagein", "PAGEIN", NULL, USER, pagein, 0, CHAR, NULL, 0}, + {"pcpu", "", "%cpu", 0, NULL, 0, CHAR, NULL, 0}, + {"pending", "", "sig", 0, NULL, 0, CHAR, NULL, 0}, + {"pgid", "PGID", NULL, 0, kvar, KOFF(ki_pgid), UINT, PIDFMT, 0}, + {"pid", "PID", NULL, 0, kvar, KOFF(ki_pid), UINT, PIDFMT, 0}, + {"pmem", "", "%mem", 0, NULL, 0, CHAR, NULL, 0}, + {"ppid", "PPID", NULL, 0, kvar, KOFF(ki_ppid), UINT, PIDFMT, 0}, + {"pri", "PRI", NULL, 0, pri, 0, CHAR, NULL, 0}, + {"re", "RE", NULL, INF127, kvar, KOFF(ki_swtime), UINT, "d", 0}, + {"rgid", "RGID", NULL, 0, kvar, KOFF(ki_rgid), UINT, UIDFMT, 0}, + {"rgroup", "RGROUP", NULL, LJUST, rgroupname, 0, CHAR, NULL, 0}, + {"rss", "RSS", NULL, 0, kvar, KOFF(ki_rssize), PGTOK, "ld", 0}, + {"rtprio", "RTPRIO", NULL, 0, priorityr, KOFF(ki_pri), CHAR, NULL, 0}, + {"ruid", "RUID", NULL, 0, kvar, KOFF(ki_ruid), UINT, UIDFMT, 0}, + {"ruser", "RUSER", NULL, LJUST, runame, 0, CHAR, NULL, 0}, + {"sid", "SID", NULL, 0, kvar, KOFF(ki_sid), UINT, PIDFMT, 0}, + {"sig", "PENDING", NULL, 0, kvar, KOFF(ki_siglist), INT, "x", 0}, + {"sigcatch", "CAUGHT", NULL, 0, kvar, KOFF(ki_sigcatch), UINT, "x", 0}, + {"sigignore", "IGNORED", NULL, 0, kvar, KOFF(ki_sigignore), UINT, "x", 0}, - {"sigmask", "BLOCKED", NULL, 0, kvar, NULL, 8, KOFF(ki_sigmask), - UINT, "x", 0}, - {"sl", "SL", NULL, INF127, kvar, NULL, 3, KOFF(ki_slptime), UINT, "d", - 0}, - {"start", "STARTED", NULL, LJUST|USER, started, NULL, 7, 0, CHAR, NULL, - 0}, - {"stat", "", "state", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"state", "STAT", NULL, 0, state, NULL, 4, 0, CHAR, NULL, 0}, - {"svgid", "SVGID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_svgid), - UINT, UIDFMT, 0}, - {"svuid", "SVUID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_svuid), - UINT, UIDFMT, 0}, - {"systime", "SYSTIME", NULL, USER, systime, s_systime, 15, 0, CHAR, - NULL, 0}, - {"tdaddr", "TDADDR", NULL, 0, kvar, NULL, sizeof(void *) * 2, - KOFF(ki_tdaddr), KPTR, "lx", 0}, - {"tdev", "TDEV", NULL, 0, tdev, NULL, 5, 0, CHAR, NULL, 0}, - {"tdnam", "TDNAM", NULL, LJUST, tdnam, NULL, COMMLEN, 0, CHAR, NULL, 0}, - {"time", "TIME", NULL, USER, cputime, s_cputime, 15, 0, CHAR, - NULL, 0}, - {"tpgid", "TPGID", NULL, 0, kvar, NULL, 4, KOFF(ki_tpgid), UINT, - PIDFMT, 0}, - {"tsid", "TSID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_tsid), UINT, - PIDFMT, 0}, - {"tsiz", "TSIZ", NULL, 0, kvar, NULL, 4, KOFF(ki_tsize), PGTOK, "ld", 0}, - {"tt", "TT ", NULL, 0, tname, NULL, 4, 0, CHAR, NULL, 0}, - {"tty", "TTY", NULL, LJUST, longtname, NULL, 8, 0, CHAR, NULL, 0}, - {"ucomm", "UCOMM", NULL, LJUST, ucomm, s_comm, - COMMLEN + TDNAMLEN + 1, 0, CHAR, NULL, 0}, - {"uid", "UID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_uid), UINT, - UIDFMT, 0}, - {"upr", "UPR", NULL, 0, upr, NULL, 3, 0, CHAR, NULL, 0}, - {"uprocp", "UPROCP", NULL, 0, kvar, NULL, sizeof(void *) * 2, - KOFF(ki_paddr), KPTR, "lx", 0}, - {"user", "USER", NULL, LJUST, uname, s_uname, USERLEN, 0, CHAR, - NULL, 0}, - {"usertime", "USERTIME", NULL, USER, usertime, s_usertime, 15, 0, - CHAR, NULL, 0}, - {"usrpri", "", "upr", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"vsize", "", "vsz", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, - {"vsz", "VSZ", NULL, 0, vsize, NULL, 6, 0, CHAR, NULL, 0}, - {"wchan", "WCHAN", NULL, LJUST, wchan, NULL, 6, 0, CHAR, NULL, 0}, - {"xstat", "XSTAT", NULL, 0, kvar, NULL, 4, KOFF(ki_xstat), USHORT, - "x", 0}, - {"", NULL, NULL, 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, + {"sigmask", "BLOCKED", NULL, 0, kvar, KOFF(ki_sigmask), UINT, "x", 0}, + {"sl", "SL", NULL, INF127, kvar, KOFF(ki_slptime), UINT, "d", 0}, + {"start", "STARTED", NULL, LJUST|USER, started, 0, CHAR, NULL, 0}, + {"stat", "", "state", 0, NULL, 0, CHAR, NULL, 0}, + {"state", "STAT", NULL, LJUST, state, 0, CHAR, NULL, 0}, + {"svgid", "SVGID", NULL, 0, kvar, KOFF(ki_svgid), UINT, UIDFMT, 0}, + {"svuid", "SVUID", NULL, 0, kvar, KOFF(ki_svuid), UINT, UIDFMT, 0}, + {"systime", "SYSTIME", NULL, USER, systime, 0, CHAR, NULL, 0}, + {"tdaddr", "TDADDR", NULL, 0, kvar, KOFF(ki_tdaddr), KPTR, "lx", 0}, + {"tdev", "TDEV", NULL, 0, tdev, 0, CHAR, NULL, 0}, + {"tdnam", "TDNAM", NULL, LJUST, tdnam, 0, CHAR, NULL, 0}, + {"time", "TIME", NULL, USER, cputime, 0, CHAR, NULL, 0}, + {"tpgid", "TPGID", NULL, 0, kvar, KOFF(ki_tpgid), UINT, PIDFMT, 0}, + {"tsid", "TSID", NULL, 0, kvar, KOFF(ki_tsid), UINT, PIDFMT, 0}, + {"tsiz", "TSIZ", NULL, 0, kvar, KOFF(ki_tsize), PGTOK, "ld", 0}, + {"tt", "TT ", NULL, 0, tname, 0, CHAR, NULL, 0}, + {"tty", "TTY", NULL, LJUST, longtname, 0, CHAR, NULL, 0}, + {"ucomm", "UCOMM", NULL, LJUST, ucomm, 0, CHAR, NULL, 0}, + {"uid", "UID", NULL, 0, kvar, KOFF(ki_uid), UINT, UIDFMT, 0}, + {"upr", "UPR", NULL, 0, upr, 0, CHAR, NULL, 0}, + {"uprocp", "UPROCP", NULL, 0, kvar, KOFF(ki_paddr), KPTR, "lx", 0}, + {"user", "USER", NULL, LJUST, uname, 0, CHAR, NULL, 0}, + {"usertime", "USERTIME", NULL, USER, usertime, 0, CHAR, NULL, 0}, + {"usrpri", "", "upr", 0, NULL, 0, CHAR, NULL, 0}, + {"vsize", "", "vsz", 0, NULL, 0, CHAR, NULL, 0}, + {"vsz", "VSZ", NULL, 0, vsize, 0, CHAR, NULL, 0}, + {"wchan", "WCHAN", NULL, LJUST, wchan, 0, CHAR, NULL, 0}, + {"xstat", "XSTAT", NULL, 0, kvar, KOFF(ki_xstat), USHORT, "x", 0}, + {"", NULL, NULL, 0, NULL, 0, CHAR, NULL, 0}, }; void Modified: head/bin/ps/print.c ============================================================================== --- head/bin/ps/print.c Thu Sep 29 06:00:26 2011 (r225867) +++ head/bin/ps/print.c Thu Sep 29 06:31:42 2011 (r225868) @@ -64,6 +64,9 @@ __FBSDID("$FreeBSD$"); #include "ps.h" +#define COMMAND_WIDTH 16 +#define ARGUMENTS_WIDTH 16 + #define ps_pgtok(a) (((a) * getpagesize()) / 1024) void @@ -93,53 +96,42 @@ printheader(void) (void)putchar('\n'); } -void +char * arguments(KINFO *k, VARENT *ve) { VAR *v; - int left; - char *cp, *vis_args; + char *vis_args; v = ve->var; if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) errx(1, "malloc failed"); strvis(vis_args, k->ki_args, VIS_TAB | VIS_NL | VIS_NOSLASH); - if (STAILQ_NEXT(ve, next_ve) == NULL) { - /* last field */ - if (termwidth == UNLIMITED) { - (void)printf("%s", vis_args); - } else { - left = termwidth - (totwidth - v->width); - if (left < 1) /* already wrapped, just use std width */ - left = v->width; - for (cp = vis_args; --left >= 0 && *cp != '\0';) - (void)putchar(*cp++); - } - } else { - (void)printf("%-*.*s", v->width, v->width, vis_args); - } - free(vis_args); + + if (STAILQ_NEXT(ve, next_ve) != NULL && strlen(vis_args) > ARGUMENTS_WIDTH) + vis_args[ARGUMENTS_WIDTH] = '\0'; + + return (vis_args); } -void +char * command(KINFO *k, VARENT *ve) { VAR *v; - int left; - char *cp, *vis_env, *vis_args; + char *vis_args, *vis_env, *str; v = ve->var; if (cflag) { /* If it is the last field, then don't pad */ if (STAILQ_NEXT(ve, next_ve) == NULL) { - if (k->ki_d.prefix) - (void)printf("%s", k->ki_d.prefix); - (void)printf("%s", k->ki_p->ki_comm); - if (showthreads && k->ki_p->ki_numthreads > 1) - (void)printf("/%s", k->ki_p->ki_tdname); + asprintf(&str, "%s%s%s%s", + k->ki_d.prefix ? k->ki_d.prefix : "", + k->ki_p->ki_comm, + (showthreads && k->ki_p->ki_numthreads > 1) ? "/" : "", + (showthreads && k->ki_p->ki_numthreads > 1) ? k->ki_p->ki_tdname : ""); } else - (void)printf("%-*s", v->width, k->ki_p->ki_comm); - return; + str = strdup(k->ki_p->ki_comm); + + return (str); } if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) errx(1, "malloc failed"); @@ -157,89 +149,84 @@ command(KINFO *k, VARENT *ve) } else vis_env = NULL; - if (termwidth == UNLIMITED) { - if (k->ki_d.prefix) - (void)printf("%s", k->ki_d.prefix); - if (vis_env) - (void)printf("%s ", vis_env); - (void)printf("%s", vis_args); - } else { - left = termwidth - (totwidth - v->width); - if (left < 1) /* already wrapped, just use std width */ - left = v->width; - if ((cp = k->ki_d.prefix) != NULL) - while (--left >= 0 && *cp) - (void)putchar(*cp++); - if ((cp = vis_env) != NULL) { - while (--left >= 0 && *cp) - (void)putchar(*cp++); - if (--left >= 0) - putchar(' '); - } - for (cp = vis_args; --left >= 0 && *cp != '\0';) - (void)putchar(*cp++); - } + asprintf(&str, "%s%s%s%s", + k->ki_d.prefix ? k->ki_d.prefix : "", + vis_env ? vis_env : "", + vis_env ? " " : "", + vis_args); + if (vis_env != NULL) free(vis_env); - } else + free(vis_args); + } else { /* ki_d.prefix & ki_env aren't shown for interim fields */ - (void)printf("%-*.*s", v->width, v->width, vis_args); - free(vis_args); + str = vis_args; + + if (strlen(str) > COMMAND_WIDTH) + str[COMMAND_WIDTH] = '\0'; + } + + return (str); } -void +char * ucomm(KINFO *k, VARENT *ve) { - char tmpbuff[COMMLEN + TDNAMLEN + 2]; VAR *v; + char *str; v = ve->var; if (STAILQ_NEXT(ve, next_ve) == NULL) { /* last field, don't pad */ - if (k->ki_d.prefix) - (void)printf("%s", k->ki_d.prefix); - (void)printf("%s", k->ki_p->ki_comm); - if (showthreads && k->ki_p->ki_numthreads > 1) - printf("/%s", k->ki_p->ki_tdname); + asprintf(&str, "%s%s%s%s", + k->ki_d.prefix ? k->ki_d.prefix : "", + k->ki_p->ki_comm, + (showthreads && k->ki_p->ki_numthreads > 1) ? "/" : "", + (showthreads && k->ki_p->ki_numthreads > 1) ? k->ki_p->ki_tdname : ""); } else { - bzero(tmpbuff, sizeof(tmpbuff)); if (showthreads && k->ki_p->ki_numthreads > 1) - sprintf(tmpbuff, "%s/%s", k->ki_p->ki_comm, - k->ki_p->ki_tdname); + asprintf(&str, "%s/%s", k->ki_p->ki_comm, k->ki_p->ki_tdname); else - sprintf(tmpbuff, "%s", k->ki_p->ki_comm); - (void)printf("%-*s", v->width, tmpbuff); + str = strdup(k->ki_p->ki_comm); } + return (str); } -void +char * tdnam(KINFO *k, VARENT *ve) { VAR *v; + char *str; v = ve->var; if (showthreads && k->ki_p->ki_numthreads > 1) - (void)printf("%-*s", v->width, k->ki_p->ki_tdname); + str = strdup(k->ki_p->ki_tdname); else - (void)printf("%-*s", v->width, " "); + str = strdup(" "); + + return (str); } -void +char * logname(KINFO *k, VARENT *ve) { VAR *v; - char *s; v = ve->var; - (void)printf("%-*s", v->width, (s = k->ki_p->ki_login, *s) ? s : "-"); + if (*k->ki_p->ki_login == '\0') + return (NULL); + return (strdup(k->ki_p->ki_login)); } -void +char * state(KINFO *k, VARENT *ve) { int flag, tdflags; - char *cp; + char *cp, *buf; VAR *v; - char buf[16]; + + buf = malloc(16); + if (buf == NULL) + errx(1, "malloc failed"); v = ve->var; flag = k->ki_p->ki_flag; @@ -301,274 +288,270 @@ state(KINFO *k, VARENT *ve) if (flag & P_JAILED) *cp++ = 'J'; *cp = '\0'; - (void)printf("%-*s", v->width, buf); + return (buf); } #define scalepri(x) ((x) - PZERO) -void +char * pri(KINFO *k, VARENT *ve) { VAR *v; + char *str; v = ve->var; - (void)printf("%*d", v->width, scalepri(k->ki_p->ki_pri.pri_level)); + asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_level)); + return (str); } -void +char * upr(KINFO *k, VARENT *ve) { VAR *v; + char *str; v = ve->var; - (void)printf("%*d", v->width, scalepri(k->ki_p->ki_pri.pri_user)); + asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_user)); + return (str); } #undef scalepri -void +char * uname(KINFO *k, VARENT *ve) { VAR *v; v = ve->var; - (void)printf("%-*s", v->width, user_from_uid(k->ki_p->ki_uid, 0)); + return (strdup(user_from_uid(k->ki_p->ki_uid, 0))); } -int -s_uname(KINFO *k) -{ - return (strlen(user_from_uid(k->ki_p->ki_uid, 0))); -} - -void +char * egroupname(KINFO *k, VARENT *ve) { VAR *v; v = ve->var; - (void)printf("%-*s", v->width, - group_from_gid(k->ki_p->ki_groups[0], 0)); + return (strdup(group_from_gid(k->ki_p->ki_groups[0], 0))); } -int -s_egroupname(KINFO *k) -{ - return (strlen(group_from_gid(k->ki_p->ki_groups[0], 0))); -} - -void +char * rgroupname(KINFO *k, VARENT *ve) { VAR *v; v = ve->var; - (void)printf("%-*s", v->width, group_from_gid(k->ki_p->ki_rgid, 0)); -} - -int -s_rgroupname(KINFO *k) -{ - return (strlen(group_from_gid(k->ki_p->ki_rgid, 0))); + return (strdup(group_from_gid(k->ki_p->ki_rgid, 0))); } -void +char * runame(KINFO *k, VARENT *ve) { VAR *v; v = ve->var; - (void)printf("%-*s", v->width, user_from_uid(k->ki_p->ki_ruid, 0)); -} - -int -s_runame(KINFO *k) -{ - return (strlen(user_from_uid(k->ki_p->ki_ruid, 0))); + return (strdup(user_from_uid(k->ki_p->ki_ruid, 0))); } - -void +char * tdev(KINFO *k, VARENT *ve) { VAR *v; dev_t dev; + char *str; v = ve->var; dev = k->ki_p->ki_tdev; if (dev == NODEV) - (void)printf("%*s", v->width, "??"); + str = strdup("??"); else - (void)printf("%#*jx", v->width, (uintmax_t)dev); + asprintf(&str, "%#jx", (uintmax_t)dev); + + return (str); } -void +char * tname(KINFO *k, VARENT *ve) { VAR *v; dev_t dev; - char *ttname; + char *ttname, *str; v = ve->var; dev = k->ki_p->ki_tdev; if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL) - (void)printf("%*s ", v->width - 1, "??"); + str = strdup("?? "); else { if (strncmp(ttname, "tty", 3) == 0 || strncmp(ttname, "cua", 3) == 0) ttname += 3; if (strncmp(ttname, "pts/", 4) == 0) ttname += 4; - (void)printf("%*.*s%c", v->width - 1, v->width - 1, ttname, + asprintf(&str, "%s%c", ttname, k->ki_p->ki_kiflag & KI_CTTY ? ' ' : '-'); } + + return (str); } -void +char * longtname(KINFO *k, VARENT *ve) { VAR *v; dev_t dev; - char *ttname; + const char *ttname; v = ve->var; dev = k->ki_p->ki_tdev; if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL) - (void)printf("%-*s", v->width, "??"); - else - (void)printf("%-*s", v->width, ttname); + ttname = "??"; + + return (strdup(ttname)); } -void +char * started(KINFO *k, VARENT *ve) { VAR *v; time_t then; struct tm *tp; static int use_ampm = -1; - char buf[100]; + size_t buflen = 100; + char *buf; + + buf = malloc(buflen); + if (buf == NULL) + errx(1, "malloc failed"); v = ve->var; - if (!k->ki_valid) { - (void)printf("%-*s", v->width, "-"); - return; - } + if (!k->ki_valid) + return (NULL); if (use_ampm < 0) use_ampm = (*nl_langinfo(T_FMT_AMPM) != '\0'); then = k->ki_p->ki_start.tv_sec; tp = localtime(&then); if (now - k->ki_p->ki_start.tv_sec < 24 * 3600) { - (void)strftime(buf, sizeof(buf), + (void)strftime(buf, buflen, use_ampm ? "%l:%M%p" : "%k:%M ", tp); } else if (now - k->ki_p->ki_start.tv_sec < 7 * 86400) { - (void)strftime(buf, sizeof(buf), + (void)strftime(buf, buflen, use_ampm ? "%a%I%p" : "%a%H ", tp); } else - (void)strftime(buf, sizeof(buf), "%e%b%y", tp); - (void)printf("%-*s", v->width, buf); + (void)strftime(buf, buflen, "%e%b%y", tp); + return (buf); } -void +char * lstarted(KINFO *k, VARENT *ve) { VAR *v; time_t then; - char buf[100]; + char *buf; + size_t buflen = 100; + + buf = malloc(buflen); + if (buf == NULL) + errx(1, "malloc failed"); v = ve->var; - if (!k->ki_valid) { - (void)printf("%-*s", v->width, "-"); - return; - } + if (!k->ki_valid) + return (NULL); then = k->ki_p->ki_start.tv_sec; - (void)strftime(buf, sizeof(buf), "%c", localtime(&then)); - (void)printf("%-*s", v->width, buf); + (void)strftime(buf, buflen, "%c", localtime(&then)); + return (buf); } -void +char * lockname(KINFO *k, VARENT *ve) { VAR *v; + char *str; v = ve->var; if (k->ki_p->ki_kiflag & KI_LOCKBLOCK) { if (k->ki_p->ki_lockname[0] != 0) - (void)printf("%-*.*s", v->width, v->width, - k->ki_p->ki_lockname); + str = strdup(k->ki_p->ki_lockname); else - (void)printf("%-*s", v->width, "???"); + str = strdup("???"); } else - (void)printf("%-*s", v->width, "-"); + str = NULL; + + return (str); } -void +char * wchan(KINFO *k, VARENT *ve) { VAR *v; + char *str; v = ve->var; if (k->ki_p->ki_wchan) { if (k->ki_p->ki_wmesg[0] != 0) - (void)printf("%-*.*s", v->width, v->width, - k->ki_p->ki_wmesg); + str = strdup(k->ki_p->ki_wmesg); else - (void)printf("%-*lx", v->width, - (long)k->ki_p->ki_wchan); + asprintf(&str, "%lx", (long)k->ki_p->ki_wchan); } else - (void)printf("%-*s", v->width, "-"); + str = NULL; + + return (str); } -void +char * nwchan(KINFO *k, VARENT *ve) { VAR *v; + char *str; v = ve->var; - if (k->ki_p->ki_wchan) { - (void)printf("%0*lx", v->width, - (long)k->ki_p->ki_wchan); - } else - (void)printf("%-*s", v->width, "-"); + if (k->ki_p->ki_wchan) + asprintf(&str, "%0lx", (long)k->ki_p->ki_wchan); + else + str = NULL; + + return (str); } -void +char * mwchan(KINFO *k, VARENT *ve) { VAR *v; + char *str; v = ve->var; if (k->ki_p->ki_wchan) { if (k->ki_p->ki_wmesg[0] != 0) - (void)printf("%-*.*s", v->width, v->width, - k->ki_p->ki_wmesg); + str = strdup(k->ki_p->ki_wmesg); else - (void)printf("%-*lx", v->width, - (long)k->ki_p->ki_wchan); + asprintf(&str, "%lx", (long)k->ki_p->ki_wchan); } else if (k->ki_p->ki_kiflag & KI_LOCKBLOCK) { if (k->ki_p->ki_lockname[0]) { - (void)printf("%-*.*s", v->width, v->width, - k->ki_p->ki_lockname); + str = strdup(k->ki_p->ki_lockname); } else - (void)printf("%-*s", v->width, "???"); + str = strdup("???"); } else - (void)printf("%-*s", v->width, "-"); + str = NULL; + + return (str); } -void +char * vsize(KINFO *k, VARENT *ve) { VAR *v; + char *str; v = ve->var; - (void)printf("%*lu", v->width, (u_long)(k->ki_p->ki_size / 1024)); + asprintf(&str, "%lu", (u_long)(k->ki_p->ki_size / 1024)); + return (str); } -static void +static char * printtime(KINFO *k, VARENT *ve, long secs, long psecs) /* psecs is "parts" of a second. first micro, then centi */ { VAR *v; - char obuff[128]; static char decimal_point; + char *str; if (decimal_point == '\0') decimal_point = localeconv()->decimal_point[0]; @@ -582,21 +565,12 @@ printtime(KINFO *k, VARENT *ve, long sec secs += psecs / 100; psecs = psecs % 100; } - (void)snprintf(obuff, sizeof(obuff), "%ld:%02ld%c%02ld", + asprintf(&str, "%ld:%02ld%c%02ld", secs / 60, secs % 60, decimal_point, psecs); - (void)printf("%*s", v->width, obuff); -} - -static int -sizetime(long secs) -{ - - if (secs < 60) - return (7); - return (log10(secs / 60) + 7); + return (str); } -void +char * cputime(KINFO *k, VARENT *ve) { long secs, psecs; @@ -612,10 +586,10 @@ cputime(KINFO *k, VARENT *ve) secs += k->ki_p->ki_childtime.tv_sec; psecs += k->ki_p->ki_childtime.tv_usec; } - printtime(k, ve, secs, psecs); + return (printtime(k, ve, secs, psecs)); *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 08:37:54 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41441106564A; Thu, 29 Sep 2011 08:37:54 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 32FD88FC18; Thu, 29 Sep 2011 08:37:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8T8bsr1012301; Thu, 29 Sep 2011 08:37:54 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8T8bsUS012298; Thu, 29 Sep 2011 08:37:54 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109290837.p8T8bsUS012298@svn.freebsd.org> From: Alexander Motin Date: Thu, 29 Sep 2011 08:37:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225869 - head/sys/dev/mfi X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 08:37:54 -0000 Author: mav Date: Thu Sep 29 08:37:53 2011 New Revision: 225869 URL: http://svn.freebsd.org/changeset/base/225869 Log: - Add special support for the MFI_CMD ioctl with MFI_CMD_STP command, used by present MegaCLI version. It has some special meaning for the first s/g list entry, while the main s/g list begins from the the second entry, and those lists should remain separate after loading to the busdma map. - Fix bug in 32bit ioctl compatibility shims when s/g list consists of more then on element. Sponsored by: iXsystems, inc. MFC after: 3 days Modified: head/sys/dev/mfi/mfi.c head/sys/dev/mfi/mfivar.h Modified: head/sys/dev/mfi/mfi.c ============================================================================== --- head/sys/dev/mfi/mfi.c Thu Sep 29 06:31:42 2011 (r225868) +++ head/sys/dev/mfi/mfi.c Thu Sep 29 08:37:53 2011 (r225869) @@ -1488,7 +1488,7 @@ mfi_data_cb(void *arg, bus_dma_segment_t struct mfi_command *cm; union mfi_sgl *sgl; struct mfi_softc *sc; - int i, dir; + int i, j, first, dir; cm = (struct mfi_command *)arg; sc = cm->cm_sc; @@ -1502,19 +1502,33 @@ mfi_data_cb(void *arg, bus_dma_segment_t return; } + j = 0; + if (cm->cm_frame->header.cmd == MFI_CMD_STP) { + first = cm->cm_stp_len; + if ((sc->mfi_flags & MFI_FLAGS_SG64) == 0) { + sgl->sg32[j].addr = segs[0].ds_addr; + sgl->sg32[j++].len = first; + } else { + sgl->sg64[j].addr = segs[0].ds_addr; + sgl->sg64[j++].len = first; + } + } else + first = 0; if ((sc->mfi_flags & MFI_FLAGS_SG64) == 0) { for (i = 0; i < nsegs; i++) { - sgl->sg32[i].addr = segs[i].ds_addr; - sgl->sg32[i].len = segs[i].ds_len; + sgl->sg32[j].addr = segs[i].ds_addr + first; + sgl->sg32[j++].len = segs[i].ds_len - first; + first = 0; } } else { for (i = 0; i < nsegs; i++) { - sgl->sg64[i].addr = segs[i].ds_addr; - sgl->sg64[i].len = segs[i].ds_len; + sgl->sg64[j].addr = segs[i].ds_addr + first; + sgl->sg64[j++].len = segs[i].ds_len - first; + first = 0; } hdr->flags |= MFI_FRAME_SGL64; } - hdr->sg_count = nsegs; + hdr->sg_count = j; dir = 0; if (cm->cm_flags & MFI_CMD_DATAIN) { @@ -1525,6 +1539,8 @@ mfi_data_cb(void *arg, bus_dma_segment_t dir |= BUS_DMASYNC_PREWRITE; hdr->flags |= MFI_FRAME_DIR_WRITE; } + if (cm->cm_frame->header.cmd == MFI_CMD_STP) + dir |= BUS_DMASYNC_PREWRITE; bus_dmamap_sync(sc->mfi_buffer_dmat, cm->cm_dmamap, dir); cm->cm_flags |= MFI_CMD_MAPPED; @@ -1602,7 +1618,8 @@ mfi_complete(struct mfi_softc *sc, struc if ((cm->cm_flags & MFI_CMD_MAPPED) != 0) { dir = 0; - if (cm->cm_flags & MFI_CMD_DATAIN) + if ((cm->cm_flags & MFI_CMD_DATAIN) || + (cm->cm_frame->header.cmd == MFI_CMD_STP)) dir |= BUS_DMASYNC_POSTREAD; if (cm->cm_flags & MFI_CMD_DATAOUT) dir |= BUS_DMASYNC_POSTWRITE; @@ -1927,7 +1944,8 @@ mfi_ioctl(struct cdev *dev, u_long cmd, struct mfi_command *cm = NULL; uint32_t context; union mfi_sense_ptr sense_ptr; - uint8_t *data = NULL, *temp; + uint8_t *data = NULL, *temp, *addr; + size_t len; int i; struct mfi_ioc_passthru *iop = (struct mfi_ioc_passthru *)arg; #ifdef __amd64__ @@ -2024,6 +2042,21 @@ mfi_ioctl(struct cdev *dev, u_long cmd, if (cm->cm_flags == 0) cm->cm_flags |= MFI_CMD_DATAIN | MFI_CMD_DATAOUT; cm->cm_len = cm->cm_frame->header.data_len; + if (cm->cm_frame->header.cmd == MFI_CMD_STP) { +#ifdef __amd64__ + if (cmd == MFI_CMD) { +#endif + /* Native */ + cm->cm_stp_len = ioc->mfi_sgl[0].iov_len; +#ifdef __amd64__ + } else { + /* 32bit on 64bit */ + ioc32 = (struct mfi_ioc_packet32 *)ioc; + cm->cm_stp_len = ioc32->mfi_sgl[0].iov_len; + } +#endif + cm->cm_len += cm->cm_stp_len; + } if (cm->cm_len && (cm->cm_flags & (MFI_CMD_DATAIN | MFI_CMD_DATAOUT))) { cm->cm_data = data = malloc(cm->cm_len, M_MFIBUF, @@ -2040,35 +2073,30 @@ mfi_ioctl(struct cdev *dev, u_long cmd, cm->cm_frame->header.context = context; temp = data; - if (cm->cm_flags & MFI_CMD_DATAOUT) { + if ((cm->cm_flags & MFI_CMD_DATAOUT) || + (cm->cm_frame->header.cmd == MFI_CMD_STP)) { for (i = 0; i < ioc->mfi_sge_count; i++) { #ifdef __amd64__ if (cmd == MFI_CMD) { +#endif /* Native */ - error = copyin(ioc->mfi_sgl[i].iov_base, - temp, - ioc->mfi_sgl[i].iov_len); + addr = ioc->mfi_sgl[i].iov_base; + len = ioc->mfi_sgl[i].iov_len; +#ifdef __amd64__ } else { - void *temp_convert; - /* 32bit */ + /* 32bit on 64bit */ ioc32 = (struct mfi_ioc_packet32 *)ioc; - temp_convert = - PTRIN(ioc32->mfi_sgl[i].iov_base); - error = copyin(temp_convert, - temp, - ioc32->mfi_sgl[i].iov_len); + addr = PTRIN(ioc32->mfi_sgl[i].iov_base); + len = ioc32->mfi_sgl[i].iov_len; } -#else - error = copyin(ioc->mfi_sgl[i].iov_base, - temp, - ioc->mfi_sgl[i].iov_len); #endif + error = copyin(addr, temp, len); if (error != 0) { device_printf(sc->mfi_dev, "Copy in failed\n"); goto out; } - temp = &temp[ioc->mfi_sgl[i].iov_len]; + temp = &temp[len]; } } @@ -2098,35 +2126,30 @@ mfi_ioctl(struct cdev *dev, u_long cmd, mtx_unlock(&sc->mfi_io_lock); temp = data; - if (cm->cm_flags & MFI_CMD_DATAIN) { + if ((cm->cm_flags & MFI_CMD_DATAIN) || + (cm->cm_frame->header.cmd == MFI_CMD_STP)) { for (i = 0; i < ioc->mfi_sge_count; i++) { #ifdef __amd64__ if (cmd == MFI_CMD) { +#endif /* Native */ - error = copyout(temp, - ioc->mfi_sgl[i].iov_base, - ioc->mfi_sgl[i].iov_len); + addr = ioc->mfi_sgl[i].iov_base; + len = ioc->mfi_sgl[i].iov_len; +#ifdef __amd64__ } else { - void *temp_convert; - /* 32bit */ + /* 32bit on 64bit */ ioc32 = (struct mfi_ioc_packet32 *)ioc; - temp_convert = - PTRIN(ioc32->mfi_sgl[i].iov_base); - error = copyout(temp, - temp_convert, - ioc32->mfi_sgl[i].iov_len); + addr = PTRIN(ioc32->mfi_sgl[i].iov_base); + len = ioc32->mfi_sgl[i].iov_len; } -#else - error = copyout(temp, - ioc->mfi_sgl[i].iov_base, - ioc->mfi_sgl[i].iov_len); #endif + error = copyout(temp, addr, len); if (error != 0) { device_printf(sc->mfi_dev, "Copy out failed\n"); goto out; } - temp = &temp[ioc->mfi_sgl[i].iov_len]; + temp = &temp[len]; } } Modified: head/sys/dev/mfi/mfivar.h ============================================================================== --- head/sys/dev/mfi/mfivar.h Thu Sep 29 06:31:42 2011 (r225868) +++ head/sys/dev/mfi/mfivar.h Thu Sep 29 08:37:53 2011 (r225869) @@ -87,6 +87,7 @@ struct mfi_command { union mfi_sgl *cm_sg; void *cm_data; int cm_len; + int cm_stp_len; int cm_total_frame_size; int cm_extra_frames; int cm_flags; From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 10:38:00 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AB1A10656D8; Thu, 29 Sep 2011 10:38:00 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4CDC58FC1B; Thu, 29 Sep 2011 10:38:00 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TAc0fA018038; Thu, 29 Sep 2011 10:38:00 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8TAc0Ct018036; Thu, 29 Sep 2011 10:38:00 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109291038.p8TAc0Ct018036@svn.freebsd.org> From: Alexander Motin Date: Thu, 29 Sep 2011 10:38:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225873 - stable/9/sys/dev/ahci X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 10:38:00 -0000 Author: mav Date: Thu Sep 29 10:37:59 2011 New Revision: 225873 URL: http://svn.freebsd.org/changeset/base/225873 Log: MFC r225789: Add one more ID for the Marvell 88SE9128 6Gbps SATA controller. Approved by: re (kib) Modified: stable/9/sys/dev/ahci/ahci.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/amd64/include/xen/ (props changed) stable/9/sys/boot/ (props changed) stable/9/sys/boot/i386/efi/ (props changed) stable/9/sys/boot/ia64/efi/ (props changed) stable/9/sys/boot/ia64/ski/ (props changed) stable/9/sys/boot/powerpc/boot1.chrp/ (props changed) stable/9/sys/boot/powerpc/ofw/ (props changed) stable/9/sys/cddl/contrib/opensolaris/ (props changed) stable/9/sys/conf/ (props changed) stable/9/sys/contrib/dev/acpica/ (props changed) stable/9/sys/contrib/octeon-sdk/ (props changed) stable/9/sys/contrib/pf/ (props changed) stable/9/sys/contrib/x86emu/ (props changed) Modified: stable/9/sys/dev/ahci/ahci.c ============================================================================== --- stable/9/sys/dev/ahci/ahci.c Thu Sep 29 10:37:42 2011 (r225872) +++ stable/9/sys/dev/ahci/ahci.c Thu Sep 29 10:37:59 2011 (r225873) @@ -197,6 +197,7 @@ static struct { {0x91231b4b, 0x11, "Marvell 88SE912x", AHCI_Q_NOBSYRES|AHCI_Q_ALTSIG}, {0x91231b4b, 0x00, "Marvell 88SE912x", AHCI_Q_EDGEIS|AHCI_Q_SATA2|AHCI_Q_NOBSYRES}, {0x91251b4b, 0x00, "Marvell 88SE9125", AHCI_Q_NOBSYRES}, + {0x91281b4b, 0x00, "Marvell 88SE9128", AHCI_Q_NOBSYRES|AHCI_Q_ALTSIG}, {0x91721b4b, 0x00, "Marvell 88SE9172", AHCI_Q_NOBSYRES}, {0x91821b4b, 0x00, "Marvell 88SE9182", AHCI_Q_NOBSYRES}, {0x06201103, 0x00, "HighPoint RocketRAID 620", AHCI_Q_NOBSYRES}, From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 10:42:52 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C96C1065674; Thu, 29 Sep 2011 10:42:52 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4F0F08FC13; Thu, 29 Sep 2011 10:42:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TAgqDO018232; Thu, 29 Sep 2011 10:42:52 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8TAgqWL018230; Thu, 29 Sep 2011 10:42:52 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109291042.p8TAgqWL018230@svn.freebsd.org> From: Alexander Motin Date: Thu, 29 Sep 2011 10:42:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225874 - stable/8/sys/dev/ahci X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 10:42:52 -0000 Author: mav Date: Thu Sep 29 10:42:51 2011 New Revision: 225874 URL: http://svn.freebsd.org/changeset/base/225874 Log: MFC r225789: Add one more ID for the Marvell 88SE9128 6Gbps SATA controller. Modified: stable/8/sys/dev/ahci/ahci.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/dev/ahci/ahci.c ============================================================================== --- stable/8/sys/dev/ahci/ahci.c Thu Sep 29 10:37:59 2011 (r225873) +++ stable/8/sys/dev/ahci/ahci.c Thu Sep 29 10:42:51 2011 (r225874) @@ -197,6 +197,7 @@ static struct { {0x91231b4b, 0x11, "Marvell 88SE912x", AHCI_Q_NOBSYRES|AHCI_Q_ALTSIG}, {0x91231b4b, 0x00, "Marvell 88SE912x", AHCI_Q_EDGEIS|AHCI_Q_SATA2|AHCI_Q_NOBSYRES}, {0x91251b4b, 0x00, "Marvell 88SE9125", AHCI_Q_NOBSYRES}, + {0x91281b4b, 0x00, "Marvell 88SE9128", AHCI_Q_NOBSYRES|AHCI_Q_ALTSIG}, {0x91721b4b, 0x00, "Marvell 88SE9172", AHCI_Q_NOBSYRES}, {0x91821b4b, 0x00, "Marvell 88SE9182", AHCI_Q_NOBSYRES}, {0x06201103, 0x00, "HighPoint RocketRAID 620", AHCI_Q_NOBSYRES}, From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 12:14:57 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 377021065676; Thu, 29 Sep 2011 12:14:57 +0000 (UTC) Date: Thu, 29 Sep 2011 12:14:57 +0000 From: Alexander Best To: Edward Tomasz Napierala Message-ID: <20110929121457.GA53600@freebsd.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201109290631.p8T6VgJ3008377@svn.freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 12:14:57 -0000 On Thu Sep 29 11, Edward Tomasz Napierala wrote: > Author: trasz > Date: Thu Sep 29 06:31:42 2011 > New Revision: 225868 > URL: http://svn.freebsd.org/changeset/base/225868 > > Log: > Make ps(1) automatically size its column widths. cool to see this committed. :) i think i wrote you about the two spaces between the "TT" and "TIME" field some time ago. you said that the "TT" entry can contain a postfix "-". can you describe a situation, where this can occur? i've never seen the "TT" field contain an entry larger than 2 chars. cheers. alex > > Modified: > head/bin/ps/extern.h > head/bin/ps/keyword.c > head/bin/ps/print.c > head/bin/ps/ps.c > head/bin/ps/ps.h > > Modified: head/bin/ps/extern.h > ============================================================================== > --- head/bin/ps/extern.h Thu Sep 29 06:00:26 2011 (r225867) > +++ head/bin/ps/extern.h Thu Sep 29 06:31:42 2011 (r225868) > @@ -39,63 +39,52 @@ extern fixpt_t ccpu; > extern int cflag, eval, fscale, nlistread, rawcpu; > extern unsigned long mempages; > extern time_t now; > -extern int showthreads, sumrusage, termwidth, totwidth; > +extern int showthreads, sumrusage, termwidth; > extern STAILQ_HEAD(velisthead, varent) varlist; > > __BEGIN_DECLS > -void arguments(KINFO *, VARENT *); > -void command(KINFO *, VARENT *); > -void cputime(KINFO *, VARENT *); > +char *arguments(KINFO *, VARENT *); > +char *command(KINFO *, VARENT *); > +char *cputime(KINFO *, VARENT *); > int donlist(void); > -void elapsed(KINFO *, VARENT *); > -void elapseds(KINFO *, VARENT *); > -void emulname(KINFO *, VARENT *); > +char *elapsed(KINFO *, VARENT *); > +char *elapseds(KINFO *, VARENT *); > +char *emulname(KINFO *, VARENT *); > VARENT *find_varentry(VAR *); > const char *fmt_argv(char **, char *, size_t); > double getpcpu(const KINFO *); > -void kvar(KINFO *, VARENT *); > -void label(KINFO *, VARENT *); > -void loginclass(KINFO *, VARENT *); > -void logname(KINFO *, VARENT *); > -void longtname(KINFO *, VARENT *); > -void lstarted(KINFO *, VARENT *); > -void maxrss(KINFO *, VARENT *); > -void lockname(KINFO *, VARENT *); > -void mwchan(KINFO *, VARENT *); > -void nwchan(KINFO *, VARENT *); > -void pagein(KINFO *, VARENT *); > +char *kvar(KINFO *, VARENT *); > +char *label(KINFO *, VARENT *); > +char *loginclass(KINFO *, VARENT *); > +char *logname(KINFO *, VARENT *); > +char *longtname(KINFO *, VARENT *); > +char *lstarted(KINFO *, VARENT *); > +char *maxrss(KINFO *, VARENT *); > +char *lockname(KINFO *, VARENT *); > +char *mwchan(KINFO *, VARENT *); > +char *nwchan(KINFO *, VARENT *); > +char *pagein(KINFO *, VARENT *); > void parsefmt(const char *, int); > -void pcpu(KINFO *, VARENT *); > -void pmem(KINFO *, VARENT *); > -void pri(KINFO *, VARENT *); > +char *pcpu(KINFO *, VARENT *); > +char *pmem(KINFO *, VARENT *); > +char *pri(KINFO *, VARENT *); > void printheader(void); > -void priorityr(KINFO *, VARENT *); > -void egroupname(KINFO *, VARENT *); > -void rgroupname(KINFO *, VARENT *); > -void runame(KINFO *, VARENT *); > -void rvar(KINFO *, VARENT *); > -int s_comm(KINFO *); > -int s_cputime(KINFO *); > -int s_label(KINFO *); > -int s_loginclass(KINFO *); > -int s_logname(KINFO *); > -int s_egroupname(KINFO *); > -int s_rgroupname(KINFO *); > -int s_runame(KINFO *); > -int s_systime(KINFO *); > -int s_uname(KINFO *); > -int s_usertime(KINFO *); > +char *priorityr(KINFO *, VARENT *); > +char *egroupname(KINFO *, VARENT *); > +char *rgroupname(KINFO *, VARENT *); > +char *runame(KINFO *, VARENT *); > +char *rvar(KINFO *, VARENT *); > void showkey(void); > -void started(KINFO *, VARENT *); > -void state(KINFO *, VARENT *); > -void systime(KINFO *, VARENT *); > -void tdev(KINFO *, VARENT *); > -void tdnam(KINFO *, VARENT *); > -void tname(KINFO *, VARENT *); > -void ucomm(KINFO *, VARENT *); > -void uname(KINFO *, VARENT *); > -void upr(KINFO *, VARENT *); > -void usertime(KINFO *, VARENT *); > -void vsize(KINFO *, VARENT *); > -void wchan(KINFO *, VARENT *); > +char *started(KINFO *, VARENT *); > +char *state(KINFO *, VARENT *); > +char *systime(KINFO *, VARENT *); > +char *tdev(KINFO *, VARENT *); > +char *tdnam(KINFO *, VARENT *); > +char *tname(KINFO *, VARENT *); > +char *ucomm(KINFO *, VARENT *); > +char *uname(KINFO *, VARENT *); > +char *upr(KINFO *, VARENT *); > +char *usertime(KINFO *, VARENT *); > +char *vsize(KINFO *, VARENT *); > +char *wchan(KINFO *, VARENT *); > __END_DECLS > > Modified: head/bin/ps/keyword.c > ============================================================================== > --- head/bin/ps/keyword.c Thu Sep 29 06:00:26 2011 (r225867) > +++ head/bin/ps/keyword.c Thu Sep 29 06:31:42 2011 (r225868) > @@ -57,178 +57,116 @@ static int vcmp(const void *, const voi > #define KOFF(x) offsetof(struct kinfo_proc, x) > #define ROFF(x) offsetof(struct rusage, x) > > -#define EMULLEN 13 /* enough for "FreeBSD ELF32" */ > #define LWPFMT "d" > -#define LWPLEN 6 > #define NLWPFMT "d" > -#define NLWPLEN 4 > #define UIDFMT "u" > -#define UIDLEN 5 > #define PIDFMT "d" > -#define PIDLEN 5 > -#define USERLEN (MAXLOGNAME - 1) > > /* PLEASE KEEP THE TABLE BELOW SORTED ALPHABETICALLY!!! */ > static VAR var[] = { > - {"%cpu", "%CPU", NULL, 0, pcpu, NULL, 5, 0, CHAR, NULL, 0}, > - {"%mem", "%MEM", NULL, 0, pmem, NULL, 4, 0, CHAR, NULL, 0}, > - {"acflag", "ACFLG", NULL, 0, kvar, NULL, 3, KOFF(ki_acflag), USHORT, > - "x", 0}, > - {"acflg", "", "acflag", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"args", "COMMAND", NULL, COMM|LJUST|USER, arguments, NULL, 16, 0, > + {"%cpu", "%CPU", NULL, 0, pcpu, 0, CHAR, NULL, 0}, > + {"%mem", "%MEM", NULL, 0, pmem, 0, CHAR, NULL, 0}, > + {"acflag", "ACFLG", NULL, 0, kvar, KOFF(ki_acflag), USHORT, "x", 0}, > + {"acflg", "", "acflag", 0, NULL, 0, CHAR, NULL, 0}, > + {"args", "COMMAND", NULL, COMM|LJUST|USER, arguments, 0, > CHAR, NULL, 0}, > - {"blocked", "", "sigmask", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"caught", "", "sigcatch", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"class", "CLASS", NULL, LJUST, loginclass, s_loginclass, > - MAXLOGNAME-1, 0, CHAR, NULL, 0}, > - {"comm", "COMMAND", NULL, LJUST, ucomm, s_comm, > - COMMLEN + TDNAMLEN + 1, 0, CHAR, NULL, 0}, > - {"command", "COMMAND", NULL, COMM|LJUST|USER, command, NULL, 16, 0, > + {"blocked", "", "sigmask", 0, NULL, 0, CHAR, NULL, 0}, > + {"caught", "", "sigcatch", 0, NULL, 0, CHAR, NULL, 0}, > + {"class", "CLASS", NULL, LJUST, loginclass, 0, CHAR, NULL, 0}, > + {"comm", "COMMAND", NULL, LJUST, ucomm, 0, CHAR, NULL, 0}, > + {"command", "COMMAND", NULL, COMM|LJUST|USER, command, 0, > CHAR, NULL, 0}, > - {"cpu", "CPU", NULL, 0, kvar, NULL, 3, KOFF(ki_estcpu), UINT, "d", > - 0}, > - {"cputime", "", "time", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"egid", "", "gid", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"egroup", "", "group", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"emul", "EMUL", NULL, LJUST, emulname, NULL, EMULLEN, 0, CHAR, > - NULL, 0}, > - {"etime", "ELAPSED", NULL, USER, elapsed, NULL, 12, 0, CHAR, NULL, 0}, > - {"etimes", "ELAPSED", NULL, USER, elapseds, NULL, 12, 0, CHAR, NULL, 0}, > - {"euid", "", "uid", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"f", "F", NULL, 0, kvar, NULL, 8, KOFF(ki_flag), INT, "x", 0}, > - {"flags", "", "f", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"gid", "GID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_groups), > - UINT, UIDFMT, 0}, > - {"group", "GROUP", NULL, LJUST, egroupname, s_egroupname, > - USERLEN, 0, CHAR, NULL, 0}, > - {"ignored", "", "sigignore", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"inblk", "INBLK", NULL, USER, rvar, NULL, 4, ROFF(ru_inblock), LONG, > - "ld", 0}, > - {"inblock", "", "inblk", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"jid", "JID", NULL, 0, kvar, NULL, 6, KOFF(ki_jid), INT, "d", 0}, > - {"jobc", "JOBC", NULL, 0, kvar, NULL, 4, KOFF(ki_jobc), SHORT, "d", > - 0}, > - {"ktrace", "KTRACE", NULL, 0, kvar, NULL, 8, KOFF(ki_traceflag), INT, > - "x", 0}, > - {"label", "LABEL", NULL, LJUST, label, s_label, SHRT_MAX, 0, CHAR, > - NULL, 0}, > - {"lim", "LIM", NULL, 0, maxrss, NULL, 5, 0, CHAR, NULL, 0}, > - {"lockname", "LOCK", NULL, LJUST, lockname, NULL, 6, 0, CHAR, NULL, > - 0}, > - {"login", "LOGIN", NULL, LJUST, logname, s_logname, MAXLOGNAME-1, > - 0, CHAR, NULL, 0}, > - {"logname", "", "login", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"lstart", "STARTED", NULL, LJUST|USER, lstarted, NULL, 28, 0, CHAR, > - NULL, 0}, > - {"lwp", "LWP", NULL, 0, kvar, NULL, LWPLEN, KOFF(ki_tid), UINT, > - LWPFMT, 0}, > - {"majflt", "MAJFLT", NULL, USER, rvar, NULL, 4, ROFF(ru_majflt), > - LONG, "ld", 0}, > - {"minflt", "MINFLT", NULL, USER, rvar, NULL, 4, ROFF(ru_minflt), > - LONG, "ld", 0}, > - {"msgrcv", "MSGRCV", NULL, USER, rvar, NULL, 4, ROFF(ru_msgrcv), > - LONG, "ld", 0}, > - {"msgsnd", "MSGSND", NULL, USER, rvar, NULL, 4, ROFF(ru_msgsnd), > - LONG, "ld", 0}, > - {"mwchan", "MWCHAN", NULL, LJUST, mwchan, NULL, 6, 0, CHAR, NULL, 0}, > - {"ni", "", "nice", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"nice", "NI", NULL, 0, kvar, NULL, 2, KOFF(ki_nice), CHAR, "d", > - 0}, > - {"nivcsw", "NIVCSW", NULL, USER, rvar, NULL, 5, ROFF(ru_nivcsw), > - LONG, "ld", 0}, > - {"nlwp", "NLWP", NULL, 0, kvar, NULL, NLWPLEN, KOFF(ki_numthreads), > - UINT, NLWPFMT, 0}, > - {"nsignals", "", "nsigs", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"nsigs", "NSIGS", NULL, USER, rvar, NULL, 4, ROFF(ru_nsignals), > - LONG, "ld", 0}, > - {"nswap", "NSWAP", NULL, USER, rvar, NULL, 4, ROFF(ru_nswap), > - LONG, "ld", 0}, > - {"nvcsw", "NVCSW", NULL, USER, rvar, NULL, 5, ROFF(ru_nvcsw), > - LONG, "ld", 0}, > - {"nwchan", "NWCHAN", NULL, LJUST, nwchan, NULL, sizeof(void *) * 2, 0, > - CHAR, NULL, 0}, > - {"oublk", "OUBLK", NULL, USER, rvar, NULL, 4, ROFF(ru_oublock), > - LONG, "ld", 0}, > - {"oublock", "", "oublk", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"paddr", "PADDR", NULL, 0, kvar, NULL, sizeof(void *) * 2, > - KOFF(ki_paddr), KPTR, "lx", 0}, > - {"pagein", "PAGEIN", NULL, USER, pagein, NULL, 6, 0, CHAR, NULL, 0}, > - {"pcpu", "", "%cpu", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"pending", "", "sig", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"pgid", "PGID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_pgid), UINT, > - PIDFMT, 0}, > - {"pid", "PID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_pid), UINT, > - PIDFMT, 0}, > - {"pmem", "", "%mem", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"ppid", "PPID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_ppid), UINT, > - PIDFMT, 0}, > - {"pri", "PRI", NULL, 0, pri, NULL, 3, 0, CHAR, NULL, 0}, > - {"re", "RE", NULL, INF127, kvar, NULL, 3, KOFF(ki_swtime), UINT, "d", > - 0}, > - {"rgid", "RGID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_rgid), > - UINT, UIDFMT, 0}, > - {"rgroup", "RGROUP", NULL, LJUST, rgroupname, s_rgroupname, > - USERLEN, 0, CHAR, NULL, 0}, > - {"rss", "RSS", NULL, 0, kvar, NULL, 6, KOFF(ki_rssize), PGTOK, "ld", 0}, > - {"rtprio", "RTPRIO", NULL, 0, priorityr, NULL, 7, KOFF(ki_pri), CHAR, > - NULL, 0}, > - {"ruid", "RUID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_ruid), > - UINT, UIDFMT, 0}, > - {"ruser", "RUSER", NULL, LJUST, runame, s_runame, USERLEN, > - 0, CHAR, NULL, 0}, > - {"sid", "SID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_sid), UINT, > - PIDFMT, 0}, > - {"sig", "PENDING", NULL, 0, kvar, NULL, 8, KOFF(ki_siglist), INT, > - "x", 0}, > - {"sigcatch", "CAUGHT", NULL, 0, kvar, NULL, 8, KOFF(ki_sigcatch), > - UINT, "x", 0}, > - {"sigignore", "IGNORED", NULL, 0, kvar, NULL, 8, KOFF(ki_sigignore), > + {"cpu", "CPU", NULL, 0, kvar, KOFF(ki_estcpu), UINT, "d", 0}, > + {"cputime", "", "time", 0, NULL, 0, CHAR, NULL, 0}, > + {"egid", "", "gid", 0, NULL, 0, CHAR, NULL, 0}, > + {"egroup", "", "group", 0, NULL, 0, CHAR, NULL, 0}, > + {"emul", "EMUL", NULL, LJUST, emulname, 0, CHAR, NULL, 0}, > + {"etime", "ELAPSED", NULL, USER, elapsed, 0, CHAR, NULL, 0}, > + {"etimes", "ELAPSED", NULL, USER, elapseds, 0, CHAR, NULL, 0}, > + {"euid", "", "uid", 0, NULL, 0, CHAR, NULL, 0}, > + {"f", "F", NULL, 0, kvar, KOFF(ki_flag), INT, "x", 0}, > + {"flags", "", "f", 0, NULL, 0, CHAR, NULL, 0}, > + {"gid", "GID", NULL, 0, kvar, KOFF(ki_groups), UINT, UIDFMT, 0}, > + {"group", "GROUP", NULL, LJUST, egroupname, 0, CHAR, NULL, 0}, > + {"ignored", "", "sigignore", 0, NULL, 0, CHAR, NULL, 0}, > + {"inblk", "INBLK", NULL, USER, rvar, ROFF(ru_inblock), LONG, "ld", 0}, > + {"inblock", "", "inblk", 0, NULL, 0, CHAR, NULL, 0}, > + {"jid", "JID", NULL, 0, kvar, KOFF(ki_jid), INT, "d", 0}, > + {"jobc", "JOBC", NULL, 0, kvar, KOFF(ki_jobc), SHORT, "d", 0}, > + {"ktrace", "KTRACE", NULL, 0, kvar, KOFF(ki_traceflag), INT, "x", 0}, > + {"label", "LABEL", NULL, LJUST, label, 0, CHAR, NULL, 0}, > + {"lim", "LIM", NULL, 0, maxrss, 0, CHAR, NULL, 0}, > + {"lockname", "LOCK", NULL, LJUST, lockname, 0, CHAR, NULL, 0}, > + {"login", "LOGIN", NULL, LJUST, logname, 0, CHAR, NULL, 0}, > + {"logname", "", "login", 0, NULL, 0, CHAR, NULL, 0}, > + {"lstart", "STARTED", NULL, LJUST|USER, lstarted, 0, CHAR, NULL, 0}, > + {"lwp", "LWP", NULL, 0, kvar, KOFF(ki_tid), UINT, LWPFMT, 0}, > + {"majflt", "MAJFLT", NULL, USER, rvar, ROFF(ru_majflt), LONG, "ld", 0}, > + {"minflt", "MINFLT", NULL, USER, rvar, ROFF(ru_minflt), LONG, "ld", 0}, > + {"msgrcv", "MSGRCV", NULL, USER, rvar, ROFF(ru_msgrcv), LONG, "ld", 0}, > + {"msgsnd", "MSGSND", NULL, USER, rvar, ROFF(ru_msgsnd), LONG, "ld", 0}, > + {"mwchan", "MWCHAN", NULL, LJUST, mwchan, 0, CHAR, NULL, 0}, > + {"ni", "", "nice", 0, NULL, 0, CHAR, NULL, 0}, > + {"nice", "NI", NULL, 0, kvar, KOFF(ki_nice), CHAR, "d", 0}, > + {"nivcsw", "NIVCSW", NULL, USER, rvar, ROFF(ru_nivcsw), LONG, "ld", 0}, > + {"nlwp", "NLWP", NULL, 0, kvar, KOFF(ki_numthreads), UINT, NLWPFMT, 0}, > + {"nsignals", "", "nsigs", 0, NULL, 0, CHAR, NULL, 0}, > + {"nsigs", "NSIGS", NULL, USER, rvar, ROFF(ru_nsignals), LONG, "ld", 0}, > + {"nswap", "NSWAP", NULL, USER, rvar, ROFF(ru_nswap), LONG, "ld", 0}, > + {"nvcsw", "NVCSW", NULL, USER, rvar, ROFF(ru_nvcsw), LONG, "ld", 0}, > + {"nwchan", "NWCHAN", NULL, LJUST, nwchan, 0, CHAR, NULL, 0}, > + {"oublk", "OUBLK", NULL, USER, rvar, ROFF(ru_oublock), LONG, "ld", 0}, > + {"oublock", "", "oublk", 0, NULL, 0, CHAR, NULL, 0}, > + {"paddr", "PADDR", NULL, 0, kvar, KOFF(ki_paddr), KPTR, "lx", 0}, > + {"pagein", "PAGEIN", NULL, USER, pagein, 0, CHAR, NULL, 0}, > + {"pcpu", "", "%cpu", 0, NULL, 0, CHAR, NULL, 0}, > + {"pending", "", "sig", 0, NULL, 0, CHAR, NULL, 0}, > + {"pgid", "PGID", NULL, 0, kvar, KOFF(ki_pgid), UINT, PIDFMT, 0}, > + {"pid", "PID", NULL, 0, kvar, KOFF(ki_pid), UINT, PIDFMT, 0}, > + {"pmem", "", "%mem", 0, NULL, 0, CHAR, NULL, 0}, > + {"ppid", "PPID", NULL, 0, kvar, KOFF(ki_ppid), UINT, PIDFMT, 0}, > + {"pri", "PRI", NULL, 0, pri, 0, CHAR, NULL, 0}, > + {"re", "RE", NULL, INF127, kvar, KOFF(ki_swtime), UINT, "d", 0}, > + {"rgid", "RGID", NULL, 0, kvar, KOFF(ki_rgid), UINT, UIDFMT, 0}, > + {"rgroup", "RGROUP", NULL, LJUST, rgroupname, 0, CHAR, NULL, 0}, > + {"rss", "RSS", NULL, 0, kvar, KOFF(ki_rssize), PGTOK, "ld", 0}, > + {"rtprio", "RTPRIO", NULL, 0, priorityr, KOFF(ki_pri), CHAR, NULL, 0}, > + {"ruid", "RUID", NULL, 0, kvar, KOFF(ki_ruid), UINT, UIDFMT, 0}, > + {"ruser", "RUSER", NULL, LJUST, runame, 0, CHAR, NULL, 0}, > + {"sid", "SID", NULL, 0, kvar, KOFF(ki_sid), UINT, PIDFMT, 0}, > + {"sig", "PENDING", NULL, 0, kvar, KOFF(ki_siglist), INT, "x", 0}, > + {"sigcatch", "CAUGHT", NULL, 0, kvar, KOFF(ki_sigcatch), UINT, "x", 0}, > + {"sigignore", "IGNORED", NULL, 0, kvar, KOFF(ki_sigignore), > UINT, "x", 0}, > - {"sigmask", "BLOCKED", NULL, 0, kvar, NULL, 8, KOFF(ki_sigmask), > - UINT, "x", 0}, > - {"sl", "SL", NULL, INF127, kvar, NULL, 3, KOFF(ki_slptime), UINT, "d", > - 0}, > - {"start", "STARTED", NULL, LJUST|USER, started, NULL, 7, 0, CHAR, NULL, > - 0}, > - {"stat", "", "state", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"state", "STAT", NULL, 0, state, NULL, 4, 0, CHAR, NULL, 0}, > - {"svgid", "SVGID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_svgid), > - UINT, UIDFMT, 0}, > - {"svuid", "SVUID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_svuid), > - UINT, UIDFMT, 0}, > - {"systime", "SYSTIME", NULL, USER, systime, s_systime, 15, 0, CHAR, > - NULL, 0}, > - {"tdaddr", "TDADDR", NULL, 0, kvar, NULL, sizeof(void *) * 2, > - KOFF(ki_tdaddr), KPTR, "lx", 0}, > - {"tdev", "TDEV", NULL, 0, tdev, NULL, 5, 0, CHAR, NULL, 0}, > - {"tdnam", "TDNAM", NULL, LJUST, tdnam, NULL, COMMLEN, 0, CHAR, NULL, 0}, > - {"time", "TIME", NULL, USER, cputime, s_cputime, 15, 0, CHAR, > - NULL, 0}, > - {"tpgid", "TPGID", NULL, 0, kvar, NULL, 4, KOFF(ki_tpgid), UINT, > - PIDFMT, 0}, > - {"tsid", "TSID", NULL, 0, kvar, NULL, PIDLEN, KOFF(ki_tsid), UINT, > - PIDFMT, 0}, > - {"tsiz", "TSIZ", NULL, 0, kvar, NULL, 4, KOFF(ki_tsize), PGTOK, "ld", 0}, > - {"tt", "TT ", NULL, 0, tname, NULL, 4, 0, CHAR, NULL, 0}, > - {"tty", "TTY", NULL, LJUST, longtname, NULL, 8, 0, CHAR, NULL, 0}, > - {"ucomm", "UCOMM", NULL, LJUST, ucomm, s_comm, > - COMMLEN + TDNAMLEN + 1, 0, CHAR, NULL, 0}, > - {"uid", "UID", NULL, 0, kvar, NULL, UIDLEN, KOFF(ki_uid), UINT, > - UIDFMT, 0}, > - {"upr", "UPR", NULL, 0, upr, NULL, 3, 0, CHAR, NULL, 0}, > - {"uprocp", "UPROCP", NULL, 0, kvar, NULL, sizeof(void *) * 2, > - KOFF(ki_paddr), KPTR, "lx", 0}, > - {"user", "USER", NULL, LJUST, uname, s_uname, USERLEN, 0, CHAR, > - NULL, 0}, > - {"usertime", "USERTIME", NULL, USER, usertime, s_usertime, 15, 0, > - CHAR, NULL, 0}, > - {"usrpri", "", "upr", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"vsize", "", "vsz", 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > - {"vsz", "VSZ", NULL, 0, vsize, NULL, 6, 0, CHAR, NULL, 0}, > - {"wchan", "WCHAN", NULL, LJUST, wchan, NULL, 6, 0, CHAR, NULL, 0}, > - {"xstat", "XSTAT", NULL, 0, kvar, NULL, 4, KOFF(ki_xstat), USHORT, > - "x", 0}, > - {"", NULL, NULL, 0, NULL, NULL, 0, 0, CHAR, NULL, 0}, > + {"sigmask", "BLOCKED", NULL, 0, kvar, KOFF(ki_sigmask), UINT, "x", 0}, > + {"sl", "SL", NULL, INF127, kvar, KOFF(ki_slptime), UINT, "d", 0}, > + {"start", "STARTED", NULL, LJUST|USER, started, 0, CHAR, NULL, 0}, > + {"stat", "", "state", 0, NULL, 0, CHAR, NULL, 0}, > + {"state", "STAT", NULL, LJUST, state, 0, CHAR, NULL, 0}, > + {"svgid", "SVGID", NULL, 0, kvar, KOFF(ki_svgid), UINT, UIDFMT, 0}, > + {"svuid", "SVUID", NULL, 0, kvar, KOFF(ki_svuid), UINT, UIDFMT, 0}, > + {"systime", "SYSTIME", NULL, USER, systime, 0, CHAR, NULL, 0}, > + {"tdaddr", "TDADDR", NULL, 0, kvar, KOFF(ki_tdaddr), KPTR, "lx", 0}, > + {"tdev", "TDEV", NULL, 0, tdev, 0, CHAR, NULL, 0}, > + {"tdnam", "TDNAM", NULL, LJUST, tdnam, 0, CHAR, NULL, 0}, > + {"time", "TIME", NULL, USER, cputime, 0, CHAR, NULL, 0}, > + {"tpgid", "TPGID", NULL, 0, kvar, KOFF(ki_tpgid), UINT, PIDFMT, 0}, > + {"tsid", "TSID", NULL, 0, kvar, KOFF(ki_tsid), UINT, PIDFMT, 0}, > + {"tsiz", "TSIZ", NULL, 0, kvar, KOFF(ki_tsize), PGTOK, "ld", 0}, > + {"tt", "TT ", NULL, 0, tname, 0, CHAR, NULL, 0}, > + {"tty", "TTY", NULL, LJUST, longtname, 0, CHAR, NULL, 0}, > + {"ucomm", "UCOMM", NULL, LJUST, ucomm, 0, CHAR, NULL, 0}, > + {"uid", "UID", NULL, 0, kvar, KOFF(ki_uid), UINT, UIDFMT, 0}, > + {"upr", "UPR", NULL, 0, upr, 0, CHAR, NULL, 0}, > + {"uprocp", "UPROCP", NULL, 0, kvar, KOFF(ki_paddr), KPTR, "lx", 0}, > + {"user", "USER", NULL, LJUST, uname, 0, CHAR, NULL, 0}, > + {"usertime", "USERTIME", NULL, USER, usertime, 0, CHAR, NULL, 0}, > + {"usrpri", "", "upr", 0, NULL, 0, CHAR, NULL, 0}, > + {"vsize", "", "vsz", 0, NULL, 0, CHAR, NULL, 0}, > + {"vsz", "VSZ", NULL, 0, vsize, 0, CHAR, NULL, 0}, > + {"wchan", "WCHAN", NULL, LJUST, wchan, 0, CHAR, NULL, 0}, > + {"xstat", "XSTAT", NULL, 0, kvar, KOFF(ki_xstat), USHORT, "x", 0}, > + {"", NULL, NULL, 0, NULL, 0, CHAR, NULL, 0}, > }; > > void > > Modified: head/bin/ps/print.c > ============================================================================== > --- head/bin/ps/print.c Thu Sep 29 06:00:26 2011 (r225867) > +++ head/bin/ps/print.c Thu Sep 29 06:31:42 2011 (r225868) > @@ -64,6 +64,9 @@ __FBSDID("$FreeBSD$"); > > #include "ps.h" > > +#define COMMAND_WIDTH 16 > +#define ARGUMENTS_WIDTH 16 > + > #define ps_pgtok(a) (((a) * getpagesize()) / 1024) > > void > @@ -93,53 +96,42 @@ printheader(void) > (void)putchar('\n'); > } > > -void > +char * > arguments(KINFO *k, VARENT *ve) > { > VAR *v; > - int left; > - char *cp, *vis_args; > + char *vis_args; > > v = ve->var; > if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) > errx(1, "malloc failed"); > strvis(vis_args, k->ki_args, VIS_TAB | VIS_NL | VIS_NOSLASH); > - if (STAILQ_NEXT(ve, next_ve) == NULL) { > - /* last field */ > - if (termwidth == UNLIMITED) { > - (void)printf("%s", vis_args); > - } else { > - left = termwidth - (totwidth - v->width); > - if (left < 1) /* already wrapped, just use std width */ > - left = v->width; > - for (cp = vis_args; --left >= 0 && *cp != '\0';) > - (void)putchar(*cp++); > - } > - } else { > - (void)printf("%-*.*s", v->width, v->width, vis_args); > - } > - free(vis_args); > + > + if (STAILQ_NEXT(ve, next_ve) != NULL && strlen(vis_args) > ARGUMENTS_WIDTH) > + vis_args[ARGUMENTS_WIDTH] = '\0'; > + > + return (vis_args); > } > > -void > +char * > command(KINFO *k, VARENT *ve) > { > VAR *v; > - int left; > - char *cp, *vis_env, *vis_args; > + char *vis_args, *vis_env, *str; > > v = ve->var; > if (cflag) { > /* If it is the last field, then don't pad */ > if (STAILQ_NEXT(ve, next_ve) == NULL) { > - if (k->ki_d.prefix) > - (void)printf("%s", k->ki_d.prefix); > - (void)printf("%s", k->ki_p->ki_comm); > - if (showthreads && k->ki_p->ki_numthreads > 1) > - (void)printf("/%s", k->ki_p->ki_tdname); > + asprintf(&str, "%s%s%s%s", > + k->ki_d.prefix ? k->ki_d.prefix : "", > + k->ki_p->ki_comm, > + (showthreads && k->ki_p->ki_numthreads > 1) ? "/" : "", > + (showthreads && k->ki_p->ki_numthreads > 1) ? k->ki_p->ki_tdname : ""); > } else > - (void)printf("%-*s", v->width, k->ki_p->ki_comm); > - return; > + str = strdup(k->ki_p->ki_comm); > + > + return (str); > } > if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) > errx(1, "malloc failed"); > @@ -157,89 +149,84 @@ command(KINFO *k, VARENT *ve) > } else > vis_env = NULL; > > - if (termwidth == UNLIMITED) { > - if (k->ki_d.prefix) > - (void)printf("%s", k->ki_d.prefix); > - if (vis_env) > - (void)printf("%s ", vis_env); > - (void)printf("%s", vis_args); > - } else { > - left = termwidth - (totwidth - v->width); > - if (left < 1) /* already wrapped, just use std width */ > - left = v->width; > - if ((cp = k->ki_d.prefix) != NULL) > - while (--left >= 0 && *cp) > - (void)putchar(*cp++); > - if ((cp = vis_env) != NULL) { > - while (--left >= 0 && *cp) > - (void)putchar(*cp++); > - if (--left >= 0) > - putchar(' '); > - } > - for (cp = vis_args; --left >= 0 && *cp != '\0';) > - (void)putchar(*cp++); > - } > + asprintf(&str, "%s%s%s%s", > + k->ki_d.prefix ? k->ki_d.prefix : "", > + vis_env ? vis_env : "", > + vis_env ? " " : "", > + vis_args); > + > if (vis_env != NULL) > free(vis_env); > - } else > + free(vis_args); > + } else { > /* ki_d.prefix & ki_env aren't shown for interim fields */ > - (void)printf("%-*.*s", v->width, v->width, vis_args); > - free(vis_args); > + str = vis_args; > + > + if (strlen(str) > COMMAND_WIDTH) > + str[COMMAND_WIDTH] = '\0'; > + } > + > + return (str); > } > > -void > +char * > ucomm(KINFO *k, VARENT *ve) > { > - char tmpbuff[COMMLEN + TDNAMLEN + 2]; > VAR *v; > + char *str; > > v = ve->var; > if (STAILQ_NEXT(ve, next_ve) == NULL) { /* last field, don't pad */ > - if (k->ki_d.prefix) > - (void)printf("%s", k->ki_d.prefix); > - (void)printf("%s", k->ki_p->ki_comm); > - if (showthreads && k->ki_p->ki_numthreads > 1) > - printf("/%s", k->ki_p->ki_tdname); > + asprintf(&str, "%s%s%s%s", > + k->ki_d.prefix ? k->ki_d.prefix : "", > + k->ki_p->ki_comm, > + (showthreads && k->ki_p->ki_numthreads > 1) ? "/" : "", > + (showthreads && k->ki_p->ki_numthreads > 1) ? k->ki_p->ki_tdname : ""); > } else { > - bzero(tmpbuff, sizeof(tmpbuff)); > if (showthreads && k->ki_p->ki_numthreads > 1) > - sprintf(tmpbuff, "%s/%s", k->ki_p->ki_comm, > - k->ki_p->ki_tdname); > + asprintf(&str, "%s/%s", k->ki_p->ki_comm, k->ki_p->ki_tdname); > else > - sprintf(tmpbuff, "%s", k->ki_p->ki_comm); > - (void)printf("%-*s", v->width, tmpbuff); > + str = strdup(k->ki_p->ki_comm); > } > + return (str); > } > > -void > +char * > tdnam(KINFO *k, VARENT *ve) > { > VAR *v; > + char *str; > > v = ve->var; > if (showthreads && k->ki_p->ki_numthreads > 1) > - (void)printf("%-*s", v->width, k->ki_p->ki_tdname); > + str = strdup(k->ki_p->ki_tdname); > else > - (void)printf("%-*s", v->width, " "); > + str = strdup(" "); > + > + return (str); > } > > -void > +char * > logname(KINFO *k, VARENT *ve) > { > VAR *v; > - char *s; > > v = ve->var; > - (void)printf("%-*s", v->width, (s = k->ki_p->ki_login, *s) ? s : "-"); > + if (*k->ki_p->ki_login == '\0') > + return (NULL); > + return (strdup(k->ki_p->ki_login)); > } > > -void > +char * > state(KINFO *k, VARENT *ve) > { > int flag, tdflags; > - char *cp; > + char *cp, *buf; > VAR *v; > - char buf[16]; > + > + buf = malloc(16); > + if (buf == NULL) > + errx(1, "malloc failed"); > > v = ve->var; > flag = k->ki_p->ki_flag; > @@ -301,274 +288,270 @@ state(KINFO *k, VARENT *ve) > if (flag & P_JAILED) > *cp++ = 'J'; > *cp = '\0'; > - (void)printf("%-*s", v->width, buf); > + return (buf); > } > > #define scalepri(x) ((x) - PZERO) > > -void > +char * > pri(KINFO *k, VARENT *ve) > { > VAR *v; > + char *str; > > v = ve->var; > - (void)printf("%*d", v->width, scalepri(k->ki_p->ki_pri.pri_level)); > + asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_level)); > + return (str); > } > > -void > +char * > upr(KINFO *k, VARENT *ve) > { > VAR *v; > + char *str; > > v = ve->var; > - (void)printf("%*d", v->width, scalepri(k->ki_p->ki_pri.pri_user)); > + asprintf(&str, "%d", scalepri(k->ki_p->ki_pri.pri_user)); > + return (str); > } > #undef scalepri > > -void > +char * > uname(KINFO *k, VARENT *ve) > { > VAR *v; > > v = ve->var; > - (void)printf("%-*s", v->width, user_from_uid(k->ki_p->ki_uid, 0)); > + return (strdup(user_from_uid(k->ki_p->ki_uid, 0))); > } > > -int > -s_uname(KINFO *k) > -{ > - return (strlen(user_from_uid(k->ki_p->ki_uid, 0))); > -} > - > -void > +char * > egroupname(KINFO *k, VARENT *ve) > { > VAR *v; > > v = ve->var; > - (void)printf("%-*s", v->width, > - group_from_gid(k->ki_p->ki_groups[0], 0)); > + return (strdup(group_from_gid(k->ki_p->ki_groups[0], 0))); > } > > -int > -s_egroupname(KINFO *k) > -{ > - return (strlen(group_from_gid(k->ki_p->ki_groups[0], 0))); > -} > - > -void > +char * > rgroupname(KINFO *k, VARENT *ve) > { > VAR *v; > > v = ve->var; > - (void)printf("%-*s", v->width, group_from_gid(k->ki_p->ki_rgid, 0)); > -} > - > -int > -s_rgroupname(KINFO *k) > -{ > - return (strlen(group_from_gid(k->ki_p->ki_rgid, 0))); > + return (strdup(group_from_gid(k->ki_p->ki_rgid, 0))); > } > > -void > +char * > runame(KINFO *k, VARENT *ve) > { > VAR *v; > > v = ve->var; > - (void)printf("%-*s", v->width, user_from_uid(k->ki_p->ki_ruid, 0)); > -} > - > -int > -s_runame(KINFO *k) > -{ > - return (strlen(user_from_uid(k->ki_p->ki_ruid, 0))); > + return (strdup(user_from_uid(k->ki_p->ki_ruid, 0))); > } > > - > -void > +char * > tdev(KINFO *k, VARENT *ve) > { > VAR *v; > dev_t dev; > + char *str; > > v = ve->var; > dev = k->ki_p->ki_tdev; > if (dev == NODEV) > - (void)printf("%*s", v->width, "??"); > + str = strdup("??"); > else > - (void)printf("%#*jx", v->width, (uintmax_t)dev); > + asprintf(&str, "%#jx", (uintmax_t)dev); > + > + return (str); > } > > -void > +char * > tname(KINFO *k, VARENT *ve) > { > VAR *v; > dev_t dev; > - char *ttname; > + char *ttname, *str; > > v = ve->var; > dev = k->ki_p->ki_tdev; > if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL) > - (void)printf("%*s ", v->width - 1, "??"); > + str = strdup("?? "); > else { > if (strncmp(ttname, "tty", 3) == 0 || > strncmp(ttname, "cua", 3) == 0) > ttname += 3; > if (strncmp(ttname, "pts/", 4) == 0) > ttname += 4; > - (void)printf("%*.*s%c", v->width - 1, v->width - 1, ttname, > + asprintf(&str, "%s%c", ttname, > k->ki_p->ki_kiflag & KI_CTTY ? ' ' : '-'); > } > + > + return (str); > } > > -void > +char * > longtname(KINFO *k, VARENT *ve) > { > VAR *v; > dev_t dev; > - char *ttname; > + const char *ttname; > > v = ve->var; > dev = k->ki_p->ki_tdev; > if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL) > - (void)printf("%-*s", v->width, "??"); > - else > - (void)printf("%-*s", v->width, ttname); > + ttname = "??"; > + > + return (strdup(ttname)); > } > > -void > +char * > started(KINFO *k, VARENT *ve) > { > VAR *v; > time_t then; > struct tm *tp; > static int use_ampm = -1; > - char buf[100]; > + size_t buflen = 100; > + char *buf; > + > + buf = malloc(buflen); > + if (buf == NULL) > + errx(1, "malloc failed"); > > v = ve->var; > - if (!k->ki_valid) { > - (void)printf("%-*s", v->width, "-"); > - return; > - } > + if (!k->ki_valid) > + return (NULL); > if (use_ampm < 0) > use_ampm = (*nl_langinfo(T_FMT_AMPM) != '\0'); > then = k->ki_p->ki_start.tv_sec; > tp = localtime(&then); > if (now - k->ki_p->ki_start.tv_sec < 24 * 3600) { > - (void)strftime(buf, sizeof(buf), > + (void)strftime(buf, buflen, > use_ampm ? "%l:%M%p" : "%k:%M ", tp); > } else if (now - k->ki_p->ki_start.tv_sec < 7 * 86400) { > - (void)strftime(buf, sizeof(buf), > + (void)strftime(buf, buflen, > use_ampm ? "%a%I%p" : "%a%H ", tp); > } else > - (void)strftime(buf, sizeof(buf), "%e%b%y", tp); > - (void)printf("%-*s", v->width, buf); > + (void)strftime(buf, buflen, "%e%b%y", tp); > + return (buf); > } > > -void > +char * > lstarted(KINFO *k, VARENT *ve) > { > VAR *v; > time_t then; > - char buf[100]; > + char *buf; > + size_t buflen = 100; > + > + buf = malloc(buflen); > + if (buf == NULL) > + errx(1, "malloc failed"); > > v = ve->var; > - if (!k->ki_valid) { > - (void)printf("%-*s", v->width, "-"); > - return; > - } > + if (!k->ki_valid) > + return (NULL); > then = k->ki_p->ki_start.tv_sec; > - (void)strftime(buf, sizeof(buf), "%c", localtime(&then)); > - (void)printf("%-*s", v->width, buf); > + (void)strftime(buf, buflen, "%c", localtime(&then)); > + return (buf); > } > > -void > +char * > lockname(KINFO *k, VARENT *ve) > { > VAR *v; > + char *str; > > v = ve->var; > if (k->ki_p->ki_kiflag & KI_LOCKBLOCK) { > if (k->ki_p->ki_lockname[0] != 0) > - (void)printf("%-*.*s", v->width, v->width, > - k->ki_p->ki_lockname); > + str = strdup(k->ki_p->ki_lockname); > else > - (void)printf("%-*s", v->width, "???"); > + str = strdup("???"); > } else > - (void)printf("%-*s", v->width, "-"); > + str = NULL; > + > + return (str); > } > > -void > +char * > wchan(KINFO *k, VARENT *ve) > { > VAR *v; > + char *str; > > v = ve->var; > if (k->ki_p->ki_wchan) { > if (k->ki_p->ki_wmesg[0] != 0) > - (void)printf("%-*.*s", v->width, v->width, > - k->ki_p->ki_wmesg); > + str = strdup(k->ki_p->ki_wmesg); > else > - (void)printf("%-*lx", v->width, > - (long)k->ki_p->ki_wchan); > + asprintf(&str, "%lx", (long)k->ki_p->ki_wchan); > } else > - (void)printf("%-*s", v->width, "-"); > + str = NULL; > + > + return (str); > } > > -void > +char * > nwchan(KINFO *k, VARENT *ve) > { > VAR *v; > + char *str; > > v = ve->var; > - if (k->ki_p->ki_wchan) { > - (void)printf("%0*lx", v->width, > - (long)k->ki_p->ki_wchan); > - } else > - (void)printf("%-*s", v->width, "-"); > + if (k->ki_p->ki_wchan) > + asprintf(&str, "%0lx", (long)k->ki_p->ki_wchan); > + else > + str = NULL; > + > + return (str); > } > > -void > +char * > mwchan(KINFO *k, VARENT *ve) > { > VAR *v; > + char *str; > > v = ve->var; > if (k->ki_p->ki_wchan) { > if (k->ki_p->ki_wmesg[0] != 0) > - (void)printf("%-*.*s", v->width, v->width, > - k->ki_p->ki_wmesg); > + str = strdup(k->ki_p->ki_wmesg); > else > - (void)printf("%-*lx", v->width, > - (long)k->ki_p->ki_wchan); > + asprintf(&str, "%lx", (long)k->ki_p->ki_wchan); > } else if (k->ki_p->ki_kiflag & KI_LOCKBLOCK) { > if (k->ki_p->ki_lockname[0]) { > - (void)printf("%-*.*s", v->width, v->width, > - k->ki_p->ki_lockname); > + str = strdup(k->ki_p->ki_lockname); > } else > - (void)printf("%-*s", v->width, "???"); > + str = strdup("???"); > } else > - (void)printf("%-*s", v->width, "-"); > + str = NULL; > + > + return (str); > } > > -void > +char * > vsize(KINFO *k, VARENT *ve) > { > VAR *v; > + char *str; > > v = ve->var; > - (void)printf("%*lu", v->width, (u_long)(k->ki_p->ki_size / 1024)); > + asprintf(&str, "%lu", (u_long)(k->ki_p->ki_size / 1024)); > + return (str); > } > > -static void > +static char * > printtime(KINFO *k, VARENT *ve, long secs, long psecs) > /* psecs is "parts" of a second. first micro, then centi */ > { > VAR *v; > - char obuff[128]; > static char decimal_point; > + char *str; > > if (decimal_point == '\0') > decimal_point = localeconv()->decimal_point[0]; > @@ -582,21 +565,12 @@ printtime(KINFO *k, VARENT *ve, long sec > secs += psecs / 100; > psecs = psecs % 100; > } > - (void)snprintf(obuff, sizeof(obuff), "%ld:%02ld%c%02ld", > + asprintf(&str, "%ld:%02ld%c%02ld", > secs / 60, secs % 60, decimal_point, psecs); > - (void)printf("%*s", v->width, obuff); > -} > - > -static int > -sizetime(long secs) > -{ > - > - if (secs < 60) > - return (7); > - return (log10(secs / 60) + 7); > + return (str); > } > > -void > +char * > cputime(KINFO *k, VARENT *ve) > { > long secs, psecs; > @@ -612,10 +586,10 @@ cputime(KINFO *k, VARENT *ve) > secs += k->ki_p->ki_childtime.tv_sec; > psecs += k->ki_p->ki_childtime.tv_usec; > } > - printtime(k, ve, secs, psecs); > + return (printtime(k, ve, secs, psecs)); > > *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 13:28:39 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0817106566B; Thu, 29 Sep 2011 13:28:39 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id C097D8FC1E; Thu, 29 Sep 2011 13:28:38 +0000 (UTC) Received: by fxg9 with SMTP id 9so2381429fxg.13 for ; Thu, 29 Sep 2011 06:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=/lvO3w6CFvMdmcpGrJhp//Sr7H14NoHmc0shv9fl7nQ=; b=l5QgQ+VHbxewcRZl7ktvNopM9Wde+xW2DC6TKkh+YifE3V7VY5kEgEI0dk6tLuSweJ 1JftjIBvKutPtMkvsAPdkgzaOHfr3L8C7vfu+CPqBLKmbzvHjr73cm5IGPjZKdOgScqM WZ+hw9aHaXDF4iDli2Stz/kHaKhU5UcKN9574= Received: by 10.223.42.216 with SMTP id t24mr6233650fae.141.1317301364627; Thu, 29 Sep 2011 06:02:44 -0700 (PDT) Received: from enapierala.whl (58.wheelsystems.com. [83.12.187.58]) by mx.google.com with ESMTPS id w6sm2070707fah.0.2011.09.29.06.02.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Sep 2011 06:02:43 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=iso-8859-2 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: <20110929121457.GA53600@freebsd.org> Date: Thu, 29 Sep 2011 15:02:41 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <11B87D92-4C1E-4AD9-BEC5-13D28B022FB1@FreeBSD.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> To: Alexander Best X-Mailer: Apple Mail (2.1244.3) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 13:28:39 -0000 Wiadomo=B6=E6 napisana przez Alexander Best w dniu 29 wrz 2011, o godz. = 14:14: > On Thu Sep 29 11, Edward Tomasz Napierala wrote: >> Author: trasz >> Date: Thu Sep 29 06:31:42 2011 >> New Revision: 225868 >> URL: http://svn.freebsd.org/changeset/base/225868 >>=20 >> Log: >> Make ps(1) automatically size its column widths. >=20 > cool to see this committed. :) >=20 > i think i wrote you about the two spaces between the "TT" and "TIME" = field > some time ago. you said that the "TT" entry can contain a postfix "-". = can > you describe a situation, where this can occur? i've never seen the = "TT" field > contain an entry larger than 2 chars. Login via ssh, run "nohup sleep 1000 &", then logout. -- If you cut off my head, what would I say? Me and my head, or me and my = body? From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 14:19:35 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4967A106566B; Thu, 29 Sep 2011 14:19:35 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 39C5C8FC14; Thu, 29 Sep 2011 14:19:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TEJZnt026320; Thu, 29 Sep 2011 14:19:35 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8TEJZQs026318; Thu, 29 Sep 2011 14:19:35 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109291419.p8TEJZQs026318@svn.freebsd.org> From: Alexander Motin Date: Thu, 29 Sep 2011 14:19:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225875 - head/sys/powerpc/powerpc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 14:19:35 -0000 Author: mav Date: Thu Sep 29 14:19:34 2011 New Revision: 225875 URL: http://svn.freebsd.org/changeset/base/225875 Log: Handle the race in cpu_idle() when due to the critical section CPU could get into sleep after receiving interrupt, delaying interrupt thread execution indefinitely until the next interrupt arrive. Reviewed by: nwhitehorn MFC after: 3 days Modified: head/sys/powerpc/powerpc/cpu.c Modified: head/sys/powerpc/powerpc/cpu.c ============================================================================== --- head/sys/powerpc/powerpc/cpu.c Thu Sep 29 10:42:51 2011 (r225874) +++ head/sys/powerpc/powerpc/cpu.c Thu Sep 29 14:19:34 2011 (r225875) @@ -553,6 +553,11 @@ cpu_idle_60x(void) vers = mfpvr() >> 16; #ifdef AIM + mtmsr(msr & ~PSL_EE); + if (sched_runnable()) { + mtmsr(msr); + return; + } switch (vers) { case IBM970: case IBM970FX: @@ -583,6 +588,11 @@ cpu_idle_e500(void) msr = mfmsr(); #ifdef E500 + mtmsr(msr & ~PSL_EE); + if (sched_runnable()) { + mtmsr(msr); + return; + } /* Freescale E500 core RM section 6.4.1. */ __asm __volatile("msync; mtmsr %0; isync" :: "r" (msr | PSL_WE)); From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 15:05:17 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BBA01065675; Thu, 29 Sep 2011 15:05:17 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EEC7E8FC13; Thu, 29 Sep 2011 15:05:16 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TF5GhT028105; Thu, 29 Sep 2011 15:05:16 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8TF5G13028102; Thu, 29 Sep 2011 15:05:16 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201109291505.p8TF5G13028102@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Thu, 29 Sep 2011 15:05:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225876 - in stable/8/sys: modules/netgraph/ipfw netgraph X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 15:05:17 -0000 Author: ae Date: Thu Sep 29 15:05:16 2011 New Revision: 225876 URL: http://svn.freebsd.org/changeset/base/225876 Log: MFC r225586: Add IPv6 support to the ng_ipfw(4) [1]. Also add ifdefs to be able build it with and without INET/INET6 support. Submitted by: Alexander V. Chernikov [1] Tested by: Alexander V. Chernikov [1] Modified: stable/8/sys/modules/netgraph/ipfw/Makefile stable/8/sys/netgraph/ng_ipfw.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/modules/netgraph/ipfw/Makefile ============================================================================== --- stable/8/sys/modules/netgraph/ipfw/Makefile Thu Sep 29 14:19:34 2011 (r225875) +++ stable/8/sys/modules/netgraph/ipfw/Makefile Thu Sep 29 15:05:16 2011 (r225876) @@ -1,6 +1,20 @@ # $FreeBSD$ +.include + KMOD= ng_ipfw -SRCS= ng_ipfw.c +SRCS= ng_ipfw.c opt_inet.h opt_inet6.h + +.if !defined(KERNBUILDDIR) + +.if ${MK_INET_SUPPORT} != "no" +opt_inet.h: + echo "#define INET 1" > ${.TARGET} +.endif +.if ${MK_INET6_SUPPORT} != "no" +opt_inet6.h: + echo "#define INET6 1" > ${.TARGET} +.endif +.endif .include Modified: stable/8/sys/netgraph/ng_ipfw.c ============================================================================== --- stable/8/sys/netgraph/ng_ipfw.c Thu Sep 29 14:19:34 2011 (r225875) +++ stable/8/sys/netgraph/ng_ipfw.c Thu Sep 29 15:05:16 2011 (r225876) @@ -26,6 +26,9 @@ * $FreeBSD$ */ +#include "opt_inet.h" +#include "opt_inet6.h" + #include #include #include @@ -47,6 +50,8 @@ #include #include #include +#include +#include #include #include @@ -224,6 +229,7 @@ ng_ipfw_rcvdata(hook_p hook, item_p item struct m_tag *tag; struct ipfw_rule_ref *r; struct mbuf *m; + struct ip *ip; NGI_GET_M(item, m); NG_FREE_ITEM(item); @@ -234,23 +240,47 @@ ng_ipfw_rcvdata(hook_p hook, item_p item return (EINVAL); /* XXX: find smth better */ }; + if (m->m_len < sizeof(struct ip) && + (m = m_pullup(m, sizeof(struct ip))) == NULL) + return (EINVAL); + + ip = mtod(m, struct ip *); + r = (struct ipfw_rule_ref *)(tag + 1); if (r->info & IPFW_INFO_IN) { - ip_input(m); + switch (ip->ip_v) { +#ifdef INET + case IPVERSION: + ip_input(m); + break; +#endif +#ifdef INET6 + case IPV6_VERSION >> 4: + ip6_input(m); + break; +#endif + default: + NG_FREE_M(m); + return (EINVAL); + } return (0); } else { - struct ip *ip; - - if (m->m_len < sizeof(struct ip) && - (m = m_pullup(m, sizeof(struct ip))) == NULL) + switch (ip->ip_v) { +#ifdef INET + case IPVERSION: + SET_HOST_IPLEN(ip); + return (ip_output(m, NULL, NULL, IP_FORWARDING, + NULL, NULL)); +#endif +#ifdef INET6 + case IPV6_VERSION >> 4: + return (ip6_output(m, NULL, NULL, 0, NULL, + NULL, NULL)); +#endif + default: return (EINVAL); - - ip = mtod(m, struct ip *); - - SET_HOST_IPLEN(ip); - - return ip_output(m, NULL, NULL, IP_FORWARDING, NULL, NULL); - } + } + } } static int From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 15:12:59 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26C30106566C; Thu, 29 Sep 2011 15:12:59 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 173818FC13; Thu, 29 Sep 2011 15:12:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TFCwok028370; Thu, 29 Sep 2011 15:12:58 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8TFCw9t028368; Thu, 29 Sep 2011 15:12:58 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109291512.p8TFCw9t028368@svn.freebsd.org> From: Alexander Motin Date: Thu, 29 Sep 2011 15:12:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225877 - head/sys/powerpc/powerpc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 15:12:59 -0000 Author: mav Date: Thu Sep 29 15:12:58 2011 New Revision: 225877 URL: http://svn.freebsd.org/changeset/base/225877 Log: Add header missed in r225875. MFC after: 3 days Modified: head/sys/powerpc/powerpc/cpu.c Modified: head/sys/powerpc/powerpc/cpu.c ============================================================================== --- head/sys/powerpc/powerpc/cpu.c Thu Sep 29 15:05:16 2011 (r225876) +++ head/sys/powerpc/powerpc/cpu.c Thu Sep 29 15:12:58 2011 (r225877) @@ -65,6 +65,7 @@ #include #include #include +#include #include #include From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 15:43:02 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BACCA1065670; Thu, 29 Sep 2011 15:43:02 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AB26A8FC12; Thu, 29 Sep 2011 15:43:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TFh28G029308; Thu, 29 Sep 2011 15:43:02 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8TFh2wX029306; Thu, 29 Sep 2011 15:43:02 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201109291543.p8TFh2wX029306@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Thu, 29 Sep 2011 15:43:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225878 - head/sys/dev/puc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 15:43:02 -0000 Author: ae Date: Thu Sep 29 15:43:02 2011 New Revision: 225878 URL: http://svn.freebsd.org/changeset/base/225878 Log: Add Oxford Semiconductor OXPCIe952 (0x1c38) 1 port serial card. PR: kern/160895 Submitted by: Konstantin V. Krotov MFC after: 1 week Modified: head/sys/dev/puc/pucdata.c Modified: head/sys/dev/puc/pucdata.c ============================================================================== --- head/sys/dev/puc/pucdata.c Thu Sep 29 15:12:58 2011 (r225877) +++ head/sys/dev/puc/pucdata.c Thu Sep 29 15:43:02 2011 (r225878) @@ -733,6 +733,13 @@ const struct puc_cfg puc_pci_devices[] = * */ + { 0x1415, 0xc138, 0xffff, 0, + "Oxford Semiconductor OXPCIe952 UARTs", + DEFAULT_RCLK * 0x22, + PUC_PORT_NONSTANDARD, 0x10, 0, -1, + .config_function = puc_config_oxford_pcie + }, + { 0x1415, 0xc158, 0xffff, 0, "Oxford Semiconductor OXPCIe952 UARTs", DEFAULT_RCLK * 0x22, From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 16:09:08 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 891B71065673 for ; Thu, 29 Sep 2011 16:09:08 +0000 (UTC) (envelope-from seb@geekycode.net) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5B3D08FC13 for ; Thu, 29 Sep 2011 16:09:08 +0000 (UTC) Received: by iadk27 with SMTP id k27so1263408iad.13 for ; Thu, 29 Sep 2011 09:09:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.63.136 with SMTP id b8mr2685359ibi.43.1317310966900; Thu, 29 Sep 2011 08:42:46 -0700 (PDT) Received: by 10.231.206.136 with HTTP; Thu, 29 Sep 2011 08:42:46 -0700 (PDT) X-Originating-IP: [203.122.218.242] Date: Fri, 30 Sep 2011 01:12:46 +0930 Message-ID: From: Sebastian Ramadan To: svn-src-all@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: svn commit: r218347 - stable/8/sys/dev/ata/chipsets - still fails X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 16:09:08 -0000 Though the errors appear to be different, this also appears to be an issue on my Dell Dimension 5150. In fact, I don't recieve so many errors in my verbose dmesg, so I'm happy to paste them for you. It appears that my chipset is similar, and the FreeBSD 8.0 installer seems to pick up my drive (though I do have other problems installing to it). Note that the SATA controller is detected, however my drive (should be ad4 or da4, one of those) isn't. As I have plans to use this as a testbox anyway, I'm happy to give someone root access so that they can run tests on this machine. I'm a hobbyist coder myself, I'd love to be able to debug this, however I'm not too familiar with kernel programming and wouldn't know where to start! I guess that which is stopping me in reality is a whole lot of laziness. You can find verbose dmesg at http://pastebin.com/KQ9C1cxe. At http://pastebin.com/ztUFftvp you'll find some output from dmesg (non-verbose), pciconf and atacontrol. Regards, Seb Ramadan. From: Bob Willcox immure.com> Subject: Re: svn commit: r218347 - stable/8/sys/dev/ata/chipsets - still fails Newsgroups: gmane.os.freebsd.devel.cvs.src Date: 2011-06-05 12:42:49 GMT (16 weeks, 4 days, 2 hours and 39 minutes ago) On Sun, Mar 20, 2011 at 10:06:08AM -0700, Charlie Kester wrote: > On Sun 20 Mar 2011 at 09:30:20 PDT Bob Willcox wrote: > >On Sun, Mar 20, 2011 at 04:18:02PM +0200, Alexander Motin wrote: > >> Bob Willcox wrote: > >> > On Thu, Mar 17, 2011 at 01:41:30AM +0200, Alexander Motin wrote: > >> >> On 16.03.2011 15:51, Bob Willcox wrote: > >> >>> This change has broken SATA disk support on my Intel Atom D525 ITX system. By > >> >>> reverting this change 8.2-STABLE works again on this system. > >> >>> > >> >>> My 'uname -a' output is: > >> >>> > >> >>> FreeBSD maul.immure.com 8.2-STABLE FreeBSD 8.2-STABLE #6: Wed Mar 16 08:15:43 CDT 2011 bob maul.immure.com:/usr/obj/usr/src/sys/MAUL amd64 > >> >>> > >> >>> When booting the system I get tons of these messages: > >> >>> > >> >>> Mar 16 07:38:19 maul kernel: ad4: WARNING - SETFEATURES ENABLE RCACHE requeued due to channel reset > >> >>> Mar 16 07:38:19 maul kernel: ad4: interrupt on idle channel ignored > >> >> As I can see, it means that channel has some active request, but it is > >> >> in IDLE state. It is strange, but I won't be surprised much if it is the > >> >> result of some locking problem in ata(4) in non-CAM mode. > >> >> > >> >>> repeated over and over, and then lots of these: > >> >>> > >> >>> Mar 16 07:38:21 maul kernel: ad4: WARNING - READ_DMA48 requeued due to channel reset LBA=617964479 > >> >>> Mar 16 07:38:21 maul kernel: ata2: FAILURE - already active DMA on this device > >> >>> Mar 16 07:38:21 maul kernel: ata2: setting up DMA failed > >> >>> > >> >>> for different LBA values. > >> >>> > >> >>> As one might expect, I then start seeing I/O errors on the disk and programs > >> >>> failing > >> >>> > >> >>> I've attached the 'pciconf -lv' output. > >> >> Send me please full verbose log, if you can save it. I am especially > >> >> interested in place around first errors. > >> >> > >> >> You may try to build kernel with `options ATA_CAM` to see if it helps. > >> >> I've mostly tested this patch in that mode. > >> > > >> > I tried setting `options ATA_CAM` but that didn't fix the problem. I still got > >> > continuous ATA error messages spewed out while probing the ATA devices. I'm > >> > not able to capture the verbose output as the system never successfully boots > >> > and I don't have a serial console attached to the system. > >> > >> It's strange. Can you at least show errors you received in that case? I > >> suppose they should be different from the original. > > > >They were similar, though this time there was mention of CAM in them (which I > >assumed was the result of using the CAM interface). The trouble is they roll > >by quite fast and I'm unable to stop them from scrolling. > > > >If this wasn't my most critical system I'd try debugging it more, but I really > >can't afford for this machine to be out of service. I was hoping that someone > >with one of these same motherboards: > > > >http://www.intel.com/Products/Desktop/Motherboards/db-d525mw/D525MW-overview.htm > > > >in a less critical situation might have also seen the problem and been able to > >do more debugging of it than I am inclined to. > > > >Bob > > FWIW, this problem isn't confined to the D525's. I saw the same problem > on my D510MO sometime between 8.2-RC3 and -RELEASE. My mobo has the > NM10 chipset, which is also used on the D525. > > I've since reverted to RC3 and have been postponing an upgrade to > -STABLE until this issue is resolved. Like Bob, I can't afford to have > this machine disabled. > > Nor am I able to gather any logs, etc., because I don't have a serial > terminal and the problem makes any disk io unreliable. Against my better judgement, I decided to give the latest version of ata-intel.c another try on my gateway system yesterday. Unfortunately, the problem still persists. To complicate matters upon installing the new kernel for some reason my old (working) kernel was NOT saved in /boot/kernel.old. I have no idea why, and didn't notice this till after attempting to reboot the old kernel (when the new kernel failed). Several hours of frantic recovery later I finally got my system back up with a new kernel and the old version of ata-intel.c that still works (had some minor adjustments to make on it due to the removal of a symbol that it used, ATA_I82801IB_AH2). I do find it hard to believe that Charlie and I are the only ones out there with systems that fail with this newer version of the driver. I wish I could help debug it more than I've been able to, but this is the only system I have with this hardware and it's my most critical one to be up and running. Bob > _______________________________________________ > svn-src-all freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-all > To unsubscribe, send any mail to "svn-src-all-unsubscribe freebsd.org" -- Bob Willcox "In the age of the internet attaching a famous name to bob immure.com your personal opinion to give more weight to it is a very Austin, TX valid strategy." -- Benjamin Franklin _______________________________________________ svn-src-all freebsd.org mailing listhttp://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe freebsd.org" From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 18:12:40 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E5211065676; Thu, 29 Sep 2011 18:12:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8B3C28FC13; Thu, 29 Sep 2011 18:12:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TICeAV033852; Thu, 29 Sep 2011 18:12:40 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8TICeZS033844; Thu, 29 Sep 2011 18:12:40 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201109291812.p8TICeZS033844@svn.freebsd.org> From: Dimitry Andric Date: Thu, 29 Sep 2011 18:12:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225880 - in head: contrib/llvm contrib/llvm/lib/Support contrib/llvm/tools/clang etc/mtree share/doc share/doc/llvm share/doc/llvm/clang X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 18:12:40 -0000 Author: dim Date: Thu Sep 29 18:12:40 2011 New Revision: 225880 URL: http://svn.freebsd.org/changeset/base/225880 Log: Revive the LLVM and Clang license files, which were removed in my too-thorough cleanup of unused files, in r213695. Also make sure these get installed under /usr/share/doc. Submitted by: rwatson, brooks Pointy hat to: dim MFC after: 3 days Added: head/contrib/llvm/LICENSE.TXT - copied unchanged from r225844, vendor/llvm/dist/LICENSE.TXT head/contrib/llvm/lib/Support/COPYRIGHT.regex - copied unchanged from r225844, vendor/llvm/dist/lib/Support/COPYRIGHT.regex head/contrib/llvm/tools/clang/LICENSE.TXT - copied unchanged from r225870, vendor/clang/dist/LICENSE.TXT head/share/doc/llvm/ head/share/doc/llvm/Makefile (contents, props changed) head/share/doc/llvm/clang/ head/share/doc/llvm/clang/Makefile (contents, props changed) Modified: head/etc/mtree/BSD.usr.dist head/share/doc/Makefile Copied: head/contrib/llvm/LICENSE.TXT (from r225844, vendor/llvm/dist/LICENSE.TXT) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/contrib/llvm/LICENSE.TXT Thu Sep 29 18:12:40 2011 (r225880, copy of r225844, vendor/llvm/dist/LICENSE.TXT) @@ -0,0 +1,69 @@ +============================================================================== +LLVM Release License +============================================================================== +University of Illinois/NCSA +Open Source License + +Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== +Copyrights and Licenses for Third Party Software Distributed with LLVM: +============================================================================== +The LLVM software contains code written by third parties. Such software will +have its own individual LICENSE.TXT file in the directory in which it appears. +This file will describe the copyrights, license, and restrictions which apply +to that code. + +The disclaimer of warranty in the University of Illinois Open Source License +applies to all code in the LLVM Distribution, and nothing in any of the +other licenses gives permission to use the names of the LLVM Team or the +University of Illinois to endorse or promote products derived from this +Software. + +The following pieces of software have additional or alternate copyrights, +licenses, and/or restrictions: + +Program Directory +------- --------- +Autoconf llvm/autoconf + llvm/projects/ModuleMaker/autoconf + llvm/projects/sample/autoconf +CellSPU backend llvm/lib/Target/CellSPU/README.txt +Google Test llvm/utils/unittest/googletest +OpenBSD regex llvm/lib/Support/{reg*, COPYRIGHT.regex} Copied: head/contrib/llvm/lib/Support/COPYRIGHT.regex (from r225844, vendor/llvm/dist/lib/Support/COPYRIGHT.regex) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/contrib/llvm/lib/Support/COPYRIGHT.regex Thu Sep 29 18:12:40 2011 (r225880, copy of r225844, vendor/llvm/dist/lib/Support/COPYRIGHT.regex) @@ -0,0 +1,54 @@ +$OpenBSD: COPYRIGHT,v 1.3 2003/06/02 20:18:36 millert Exp $ + +Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved. +This software is not subject to any license of the American Telephone +and Telegraph Company or of the Regents of the University of California. + +Permission is granted to anyone to use this software for any purpose on +any computer system, and to alter it and redistribute it, subject +to the following restrictions: + +1. The author is not responsible for the consequences of use of this + software, no matter how awful, even if they arise from flaws in it. + +2. The origin of this software must not be misrepresented, either by + explicit claim or by omission. Since few users ever read sources, + credits must appear in the documentation. + +3. Altered versions must be plainly marked as such, and must not be + misrepresented as being the original software. Since few users + ever read sources, credits must appear in the documentation. + +4. This notice may not be removed or altered. + +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +/*- + * Copyright (c) 1994 + * The Regents of the University of California. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @(#)COPYRIGHT 8.1 (Berkeley) 3/16/94 + */ Copied: head/contrib/llvm/tools/clang/LICENSE.TXT (from r225870, vendor/clang/dist/LICENSE.TXT) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/contrib/llvm/tools/clang/LICENSE.TXT Thu Sep 29 18:12:40 2011 (r225880, copy of r225870, vendor/clang/dist/LICENSE.TXT) @@ -0,0 +1,63 @@ +============================================================================== +LLVM Release License +============================================================================== +University of Illinois/NCSA +Open Source License + +Copyright (c) 2007-2011 University of Illinois at Urbana-Champaign. +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== +The LLVM software contains code written by third parties. Such software will +have its own individual LICENSE.TXT file in the directory in which it appears. +This file will describe the copyrights, license, and restrictions which apply +to that code. + +The disclaimer of warranty in the University of Illinois Open Source License +applies to all code in the LLVM Distribution, and nothing in any of the +other licenses gives permission to use the names of the LLVM Team or the +University of Illinois to endorse or promote products derived from this +Software. + +The following pieces of software have additional or alternate copyrights, +licenses, and/or restrictions: + +Program Directory +------- --------- + + Modified: head/etc/mtree/BSD.usr.dist ============================================================================== --- head/etc/mtree/BSD.usr.dist Thu Sep 29 17:13:23 2011 (r225879) +++ head/etc/mtree/BSD.usr.dist Thu Sep 29 18:12:40 2011 (r225880) @@ -93,6 +93,10 @@ intel_wpi .. .. + llvm + clang + .. + .. ncurses .. ntp Modified: head/share/doc/Makefile ============================================================================== --- head/share/doc/Makefile Thu Sep 29 17:13:23 2011 (r225879) +++ head/share/doc/Makefile Thu Sep 29 18:12:40 2011 (r225880) @@ -3,12 +3,16 @@ .include -SUBDIR= ${_bind9} IPv6 legal ${_roffdocs} +SUBDIR= ${_bind9} IPv6 legal ${_llvm} ${_roffdocs} .if ${MK_BIND} != "no" _bind9= bind9 .endif +.if ${MK_CLANG} != "no" +_llvm= llvm +.endif + # FIXME this is not a real solution ... .if ${MK_GROFF} != "no" _roffdocs= papers psd smm usd Added: head/share/doc/llvm/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/doc/llvm/Makefile Thu Sep 29 18:12:40 2011 (r225880) @@ -0,0 +1,15 @@ +# $FreeBSD$ + +SUBDIR= clang + +SRCDIR= ${.CURDIR}/../../../contrib/llvm + +.PATH: ${SRCDIR} ${SRCDIR}/lib/Support + +NO_OBJ= + +FILESGROUPS= TOP +TOP= LICENSE.TXT COPYRIGHT.regex +TOPDIR= ${DOCDIR}/llvm + +.include Added: head/share/doc/llvm/clang/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/doc/llvm/clang/Makefile Thu Sep 29 18:12:40 2011 (r225880) @@ -0,0 +1,13 @@ +# $FreeBSD$ + +SRCDIR= ${.CURDIR}/../../../../contrib/llvm/tools/clang + +.PATH: ${SRCDIR} + +NO_OBJ= + +FILESGROUPS= TOP +TOP= LICENSE.TXT +TOPDIR= ${DOCDIR}/llvm/clang + +.include From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 18:42:44 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 916BE106567F; Thu, 29 Sep 2011 18:42:44 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7F7C58FC1B; Thu, 29 Sep 2011 18:42:44 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8TIgiYO034836; Thu, 29 Sep 2011 18:42:44 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8TIgihh034832; Thu, 29 Sep 2011 18:42:44 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201109291842.p8TIgihh034832@svn.freebsd.org> From: Alexander Motin Date: Thu, 29 Sep 2011 18:42:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225881 - in stable/7: sbin/geom/class/mirror sys/geom/mirror X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 18:42:44 -0000 Author: mav Date: Thu Sep 29 18:42:44 2011 New Revision: 225881 URL: http://svn.freebsd.org/changeset/base/225881 Log: MFC r196879: Add support for changing providers priority. PR: kern/160811 Modified: stable/7/sbin/geom/class/mirror/geom_mirror.c stable/7/sbin/geom/class/mirror/gmirror.8 stable/7/sys/geom/mirror/g_mirror_ctl.c Directory Properties: stable/7/sbin/geom/ (props changed) stable/7/sbin/geom/class/journal/ (props changed) stable/7/sbin/geom/class/label/ (props changed) stable/7/sbin/geom/class/part/ (props changed) stable/7/sbin/geom/class/stripe/ (props changed) stable/7/sbin/geom/misc/ (props changed) stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sbin/geom/class/mirror/geom_mirror.c ============================================================================== --- stable/7/sbin/geom/class/mirror/geom_mirror.c Thu Sep 29 18:12:40 2011 (r225880) +++ stable/7/sbin/geom/class/mirror/geom_mirror.c Thu Sep 29 18:42:44 2011 (r225881) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2004-2005 Pawel Jakub Dawidek + * Copyright (c) 2004-2009 Pawel Jakub Dawidek * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -41,13 +41,12 @@ __FBSDID("$FreeBSD$"); #include #include - uint32_t lib_version = G_LIB_VERSION; uint32_t version = G_MIRROR_VERSION; static char label_balance[] = "load", configure_balance[] = "none"; static intmax_t label_slice = 4096, configure_slice = -1; -static intmax_t insert_priority = 0; +static intmax_t insert_priority = 0, configure_priority = -1; static void mirror_main(struct gctl_req *req, unsigned flags); static void mirror_activate(struct gctl_req *req); @@ -71,10 +70,12 @@ struct g_command class_commands[] = { { 'F', "nofailsync", NULL, G_TYPE_BOOL }, { 'h', "hardcode", NULL, G_TYPE_BOOL }, { 'n', "noautosync", NULL, G_TYPE_BOOL }, + { 'p', "priority", &configure_priority, G_TYPE_NUMBER }, { 's', "slice", &configure_slice, G_TYPE_NUMBER }, G_OPT_SENTINEL }, - NULL, "[-adfFhnv] [-b balance] [-s slice] name" + NULL, "[-adfFhnv] [-b balance] [-s slice] name\n" + "[-v] -p priority name prov" }, { "deactivate", G_FLAG_VERBOSE, NULL, G_NULL_OPTS, NULL, "[-v] name prov ..." Modified: stable/7/sbin/geom/class/mirror/gmirror.8 ============================================================================== --- stable/7/sbin/geom/class/mirror/gmirror.8 Thu Sep 29 18:12:40 2011 (r225880) +++ stable/7/sbin/geom/class/mirror/gmirror.8 Thu Sep 29 18:42:44 2011 (r225881) @@ -1,4 +1,4 @@ -.\" Copyright (c) 2004-2005 Pawel Jakub Dawidek +.\" Copyright (c) 2004-2009 Pawel Jakub Dawidek .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 1, 2006 +.Dd August 1, 2009 .Dt GMIRROR 8 .Os .Sh NAME @@ -49,6 +49,12 @@ .Op Fl s Ar slice .Ar name .Nm +.Cm configure +.Op Fl v +.Fl p Ar priority +.Ar name +.Ar prov +.Nm .Cm rebuild .Op Fl v .Ar name @@ -115,8 +121,8 @@ indicates an action to be performed: .It Cm label Create a mirror. The order of components is important, because a component's priority is based on its position -(starting from 0). -The component with the biggest priority is used by the +(starting from 0 to 255). +The component with the biggest priority (the lowest number) is used by the .Cm prefer balance algorithm and is also used as a master component when resynchronization is needed, @@ -159,7 +165,7 @@ Clear metadata on the given providers. Configure the given device. .Pp Additional options include: -.Bl -tag -width ".Fl b Ar balance" +.Bl -tag -width ".Fl p Ar priority" .It Fl a Turn on autosynchronization of stale components. .It Fl b Ar balance @@ -175,6 +181,9 @@ Assumes device is in consistent state. Hardcode providers' names in metadata. .It Fl n Turn off autosynchronization of stale components. +.It Fl p Ar priority +Specifies priority for the given component +.Ar prov . .It Fl s Ar slice Specifies slice size for .Cm split Modified: stable/7/sys/geom/mirror/g_mirror_ctl.c ============================================================================== --- stable/7/sys/geom/mirror/g_mirror_ctl.c Thu Sep 29 18:12:40 2011 (r225880) +++ stable/7/sys/geom/mirror/g_mirror_ctl.c Thu Sep 29 18:42:44 2011 (r225881) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2004-2006 Pawel Jakub Dawidek + * Copyright (c) 2004-2009 Pawel Jakub Dawidek * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -93,19 +93,19 @@ g_mirror_ctl_configure(struct gctl_req * { struct g_mirror_softc *sc; struct g_mirror_disk *disk; - const char *name, *balancep; - intmax_t *slicep; + const char *name, *balancep, *prov; + intmax_t *slicep, *priority; uint32_t slice; uint8_t balance; int *autosync, *noautosync, *failsync, *nofailsync, *hardcode, *dynamic; - int *nargs, do_sync = 0, dirty = 1; + int *nargs, do_sync = 0, dirty = 1, do_priority = 0; nargs = gctl_get_paraml(req, "nargs", sizeof(*nargs)); if (nargs == NULL) { gctl_error(req, "No '%s' argument.", "nargs"); return; } - if (*nargs != 1) { + if (*nargs != 1 && *nargs != 2) { gctl_error(req, "Invalid number of arguments."); return; } @@ -149,6 +149,29 @@ g_mirror_ctl_configure(struct gctl_req * gctl_error(req, "No '%s' argument.", "dynamic"); return; } + priority = gctl_get_paraml(req, "priority", sizeof(*priority)); + if (priority == NULL) { + gctl_error(req, "No '%s' argument.", "priority"); + return; + } + if (*priority < -1 || *priority > 255) { + gctl_error(req, "Priority range is 0 to 255, %jd given", + *priority); + return; + } + /* + * Since we have a priority, we also need a provider now. + * Note: be WARNS safe, by always assigning prov and only throw an + * error if *priority != -1. + */ + prov = gctl_get_asciiparam(req, "arg1"); + if (*priority > -1) { + if (prov == NULL) { + gctl_error(req, "Priority needs a disk name"); + return; + } + do_priority = 1; + } if (*autosync && *noautosync) { gctl_error(req, "'%s' and '%s' specified.", "autosync", "noautosync"); @@ -189,19 +212,32 @@ g_mirror_ctl_configure(struct gctl_req * slice = sc->sc_slice; else slice = *slicep; - if (g_mirror_ndisks(sc, -1) < sc->sc_ndisks) { + /* Enforce usage() of -p not allowing any other options. */ + if (do_priority && (*autosync || *noautosync || *failsync || + *nofailsync || *hardcode || *dynamic || *slicep != -1 || + strcmp(balancep, "none") != 0)) { sx_xunlock(&sc->sc_lock); - gctl_error(req, "Not all disks connected. Try 'forget' command " - "first."); + gctl_error(req, "only -p accepted when setting priority"); return; } if (sc->sc_balance == balance && sc->sc_slice == slice && !*autosync && !*noautosync && !*failsync && !*nofailsync && !*hardcode && - !*dynamic) { + !*dynamic && !do_priority) { sx_xunlock(&sc->sc_lock); gctl_error(req, "Nothing has changed."); return; } + if ((!do_priority && *nargs != 1) || (do_priority && *nargs != 2)) { + sx_xunlock(&sc->sc_lock); + gctl_error(req, "Invalid number of arguments."); + return; + } + if (g_mirror_ndisks(sc, -1) < sc->sc_ndisks) { + sx_xunlock(&sc->sc_lock); + gctl_error(req, "Not all disks connected. Try 'forget' command " + "first."); + return; + } sc->sc_balance = balance; sc->sc_slice = slice; if ((sc->sc_flags & G_MIRROR_DEVICE_FLAG_NOAUTOSYNC) != 0) { @@ -223,6 +259,23 @@ g_mirror_ctl_configure(struct gctl_req * } } LIST_FOREACH(disk, &sc->sc_disks, d_next) { + /* + * Handle priority first, since we only need one disk, do one + * operation on it and then we're done. No need to check other + * flags, as usage doesn't allow it. + */ + if (do_priority) { + if (strcmp(disk->d_name, prov) == 0) { + if (disk->d_priority == *priority) + gctl_error(req, "Nothing has changed."); + else { + disk->d_priority = *priority; + g_mirror_update_metadata(disk); + } + break; + } + continue; + } if (do_sync) { if (disk->d_state == G_MIRROR_DISK_STATE_SYNCHRONIZING) disk->d_flags &= ~G_MIRROR_DISK_FLAG_FORCE_SYNC; From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 18:43:06 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 9CB6B106567A; Thu, 29 Sep 2011 18:43:06 +0000 (UTC) Date: Thu, 29 Sep 2011 18:43:06 +0000 From: Alexander Best To: Edward Tomasz Napiera?a Message-ID: <20110929184306.GB15859@freebsd.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <11B87D92-4C1E-4AD9-BEC5-13D28B022FB1@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11B87D92-4C1E-4AD9-BEC5-13D28B022FB1@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 18:43:06 -0000 On Thu Sep 29 11, Edward Tomasz Napiera?a wrote: > Wiadomo?? napisana przez Alexander Best w dniu 29 wrz 2011, o godz. 14:14: > > On Thu Sep 29 11, Edward Tomasz Napierala wrote: > >> Author: trasz > >> Date: Thu Sep 29 06:31:42 2011 > >> New Revision: 225868 > >> URL: http://svn.freebsd.org/changeset/base/225868 > >> > >> Log: > >> Make ps(1) automatically size its column widths. > > > > cool to see this committed. :) > > > > i think i wrote you about the two spaces between the "TT" and "TIME" field > > some time ago. you said that the "TT" entry can contain a postfix "-". can > > you describe a situation, where this can occur? i've never seen the "TT" field > > contain an entry larger than 2 chars. > > Login via ssh, run "nohup sleep 1000 &", then logout. ahh thanks. maybe, since ps needs to iterate through the whole output at first anyway, it can check if a "TT" entry is postfixed with "-", and if it isn't get rid of the trailing space. cheers. alex > > -- > If you cut off my head, what would I say? Me and my head, or me and my body? From owner-svn-src-all@FreeBSD.ORG Thu Sep 29 18:57:00 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 681CE1065679; Thu, 29 Sep 2011 18:57:00 +0000 (UTC) Date: Thu, 29 Sep 2011 18:57:00 +0000 From: Alexander Best To: Edward Tomasz Napiera?a Message-ID: <20110929185700.GA18684@freebsd.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <11B87D92-4C1E-4AD9-BEC5-13D28B022FB1@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11B87D92-4C1E-4AD9-BEC5-13D28B022FB1@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 18:57:00 -0000 On Thu Sep 29 11, Edward Tomasz Napiera?a wrote: > Wiadomo?? napisana przez Alexander Best w dniu 29 wrz 2011, o godz. 14:14: > > On Thu Sep 29 11, Edward Tomasz Napierala wrote: > >> Author: trasz > >> Date: Thu Sep 29 06:31:42 2011 > >> New Revision: 225868 > >> URL: http://svn.freebsd.org/changeset/base/225868 > >> > >> Log: > >> Make ps(1) automatically size its column widths. > > > > cool to see this committed. :) > > > > i think i wrote you about the two spaces between the "TT" and "TIME" field > > some time ago. you said that the "TT" entry can contain a postfix "-". can > > you describe a situation, where this can occur? i've never seen the "TT" field > > contain an entry larger than 2 chars. > > Login via ssh, run "nohup sleep 1000 &", then logout. maybe it would also be possible to introduce unit symbols for the "vsz" and "rss" fields. they are getting really huge on systems with a long uptime (*cough* mem leaks) and kilobyte granularity isn't really that great when those fields are nearing 1GB. cheers. alex > > -- > If you cut off my head, what would I say? Me and my head, or me and my body? From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 04:55:24 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F289106566C; Fri, 30 Sep 2011 04:55:24 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0579E8FC0A; Fri, 30 Sep 2011 04:55:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8U4tNxF053364; Fri, 30 Sep 2011 04:55:23 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8U4tNoP053355; Fri, 30 Sep 2011 04:55:23 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201109300455.p8U4tNoP053355@svn.freebsd.org> From: Kevin Lo Date: Fri, 30 Sep 2011 04:55:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225882 - in head/sys/arm: at91 econa X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 04:55:24 -0000 Author: kevlo Date: Fri Sep 30 04:55:23 2011 New Revision: 225882 URL: http://svn.freebsd.org/changeset/base/225882 Log: Remove pointless semicolons after label Modified: head/sys/arm/at91/at91_mci.c head/sys/arm/at91/at91_pio.c head/sys/arm/at91/at91_rtc.c head/sys/arm/at91/at91_spi.c head/sys/arm/at91/at91_ssc.c head/sys/arm/at91/at91_twi.c head/sys/arm/at91/uart_dev_at91usart.c head/sys/arm/econa/if_ece.c Modified: head/sys/arm/at91/at91_mci.c ============================================================================== --- head/sys/arm/at91/at91_mci.c Thu Sep 29 18:42:44 2011 (r225881) +++ head/sys/arm/at91/at91_mci.c Fri Sep 30 04:55:23 2011 (r225882) @@ -243,7 +243,7 @@ at91_mci_attach(device_t dev) child = device_add_child(dev, "mmc", 0); device_set_ivars(dev, &sc->host); err = bus_generic_attach(dev); -out:; +out: if (err) at91_mci_deactivate(dev); return (err); Modified: head/sys/arm/at91/at91_pio.c ============================================================================== --- head/sys/arm/at91/at91_pio.c Thu Sep 29 18:42:44 2011 (r225881) +++ head/sys/arm/at91/at91_pio.c Fri Sep 30 04:55:23 2011 (r225882) @@ -162,7 +162,7 @@ at91_pio_attach(device_t dev) goto out; } sc->cdev->si_drv1 = sc; -out:; +out: if (err) at91_pio_deactivate(dev); return (err); Modified: head/sys/arm/at91/at91_rtc.c ============================================================================== --- head/sys/arm/at91/at91_rtc.c Thu Sep 29 18:42:44 2011 (r225881) +++ head/sys/arm/at91/at91_rtc.c Fri Sep 30 04:55:23 2011 (r225882) @@ -118,7 +118,7 @@ at91_rtc_attach(device_t dev) goto out; } clock_register(dev, 1000000); -out:; +out: if (err) at91_rtc_deactivate(dev); return (err); Modified: head/sys/arm/at91/at91_spi.c ============================================================================== --- head/sys/arm/at91/at91_spi.c Thu Sep 29 18:42:44 2011 (r225881) +++ head/sys/arm/at91/at91_spi.c Fri Sep 30 04:55:23 2011 (r225882) @@ -134,7 +134,7 @@ at91_spi_attach(device_t dev) device_add_child(dev, "spibus", -1); bus_generic_attach(dev); -out:; +out: if (err) at91_spi_deactivate(dev); return (err); @@ -259,7 +259,7 @@ at91_spi_transfer(device_t dev, device_t for (j = 0; j < i; j++) bus_dmamap_unload(sc->dmatag, sc->map[j]); return (err); -out:; +out: for (j = 0; j < i; j++) bus_dmamap_unload(sc->dmatag, sc->map[j]); return (EIO); Modified: head/sys/arm/at91/at91_ssc.c ============================================================================== --- head/sys/arm/at91/at91_ssc.c Thu Sep 29 18:42:44 2011 (r225881) +++ head/sys/arm/at91/at91_ssc.c Fri Sep 30 04:55:23 2011 (r225882) @@ -150,7 +150,7 @@ at91_ssc_attach(device_t dev) WR4(sc, SSC_TFMR, 0x1f | SSC_TFMR_DATDEF | SSC_TFMR_MSFBF | SSC_TFMR_FSOS_NEG_PULSE); -out:; +out: if (err) at91_ssc_deactivate(dev); return (err); Modified: head/sys/arm/at91/at91_twi.c ============================================================================== --- head/sys/arm/at91/at91_twi.c Thu Sep 29 18:42:44 2011 (r225881) +++ head/sys/arm/at91/at91_twi.c Fri Sep 30 04:55:23 2011 (r225882) @@ -139,7 +139,7 @@ at91_twi_attach(device_t dev) device_printf(dev, "could not allocate iicbus instance\n"); /* probe and attach the iicbus */ bus_generic_attach(dev); -out:; +out: if (err) at91_twi_deactivate(dev); return (err); @@ -365,7 +365,7 @@ at91_twi_transfer(device_t dev, struct i if ((err = at91_twi_wait(sc, TWI_SR_TXCOMP))) break; } -out:; +out: if (err) { WR4(sc, TWI_CR, TWI_CR_SWRST); WR4(sc, TWI_CR, TWI_CR_MSEN | TWI_CR_SVDIS); Modified: head/sys/arm/at91/uart_dev_at91usart.c ============================================================================== --- head/sys/arm/at91/uart_dev_at91usart.c Thu Sep 29 18:42:44 2011 (r225881) +++ head/sys/arm/at91/uart_dev_at91usart.c Fri Sep 30 04:55:23 2011 (r225882) @@ -406,7 +406,7 @@ at91_usart_bus_attach(struct uart_softc WR4(&sc->sc_bas, USART_IER, USART_CSR_RXRDY); } WR4(&sc->sc_bas, USART_IER, USART_CSR_RXBRK); -errout:; +errout: // XXX bad return (err); } Modified: head/sys/arm/econa/if_ece.c ============================================================================== --- head/sys/arm/econa/if_ece.c Thu Sep 29 18:42:44 2011 (r225881) +++ head/sys/arm/econa/if_ece.c Fri Sep 30 04:55:23 2011 (r225882) @@ -441,7 +441,7 @@ ece_attach(device_t dev) taskqueue_start_threads(&sc->sc_tq, 1, PI_NET, "%s taskq", device_get_nameunit(sc->dev)); -out:; +out: if (err) ece_deactivate(dev); if (err && ifp) From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 05:17:58 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32050106566C; Fri, 30 Sep 2011 05:17:57 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D460B8FC08; Fri, 30 Sep 2011 05:17:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8U5Hv8p054059; Fri, 30 Sep 2011 05:17:57 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8U5Hvom054044; Fri, 30 Sep 2011 05:17:57 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109300517.p8U5Hvom054044@svn.freebsd.org> From: Adrian Chadd Date: Fri, 30 Sep 2011 05:17:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225883 - in head/sys/dev/ath: . ath_hal ath_hal/ar5210 ath_hal/ar5211 ath_hal/ar5212 ath_hal/ar5312 ath_hal/ar5416 ath_hal/ar9001 ath_hal/ar9002 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 05:17:58 -0000 Author: adrian Date: Fri Sep 30 05:17:57 2011 New Revision: 225883 URL: http://svn.freebsd.org/changeset/base/225883 Log: Fix a corner case in the HAL debugging changes, where ah was NULL. Although I tried to fix this earlier by introducing HALDEBUG_G(), it turns out there seem to be other cases where the pointer value is still NULL. * Fix DO_HALDEBUG() and the HALDEBUG macro to check whether ah is NULL before deferencing it * Remove HALDEBUG_G() as it's no longer needed This is hopefully a merge candidate for 9.0-RELEASE as enabling debugging at startup could result in a kernel panic. Modified: head/sys/dev/ath/ah_osdep.c head/sys/dev/ath/ath_hal/ah_internal.h head/sys/dev/ath/ath_hal/ah_regdomain.c head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c head/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c head/sys/dev/ath/ath_hal/ar5212/ar5112.c head/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c head/sys/dev/ath/ath_hal/ar5312/ar5312_attach.c head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c head/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c head/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c Modified: head/sys/dev/ath/ah_osdep.c ============================================================================== --- head/sys/dev/ath/ah_osdep.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ah_osdep.c Fri Sep 30 05:17:57 2011 (r225883) @@ -128,7 +128,7 @@ void DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) { if ((mask == HAL_DEBUG_UNMASKABLE) || - (ah->ah_config.ah_debug & mask) || + (ah != NULL && ah->ah_config.ah_debug & mask) || (ath_hal_debug & mask)) { __va_list ap; va_start(ap, fmt); Modified: head/sys/dev/ath/ath_hal/ah_internal.h ============================================================================== --- head/sys/dev/ath/ath_hal/ah_internal.h Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ah_internal.h Fri Sep 30 05:17:57 2011 (r225883) @@ -503,26 +503,15 @@ extern void ath_hal_free(void *); extern int ath_hal_debug; /* Global debug flags */ /* - * This is used for global debugging, when ahp doesn't yet have the - * related debugging state. For example, during probe/attach. - */ -#define HALDEBUG_G(_ah, __m, ...) \ - do { \ - if ((__m) == HAL_DEBUG_UNMASKABLE || \ - ath_hal_debug & (__m)) { \ - DO_HALDEBUG((_ah), (__m), __VA_ARGS__); \ - } \ - } while (0); - -/* - * This is used for local debugging, when ahp isn't NULL and - * thus may have debug flags set. + * The typecast is purely because some callers will pass in + * AH_NULL directly rather than using a NULL ath_hal pointer. */ #define HALDEBUG(_ah, __m, ...) \ do { \ if ((__m) == HAL_DEBUG_UNMASKABLE || \ ath_hal_debug & (__m) || \ - (_ah)->ah_config.ah_debug & (__m)) { \ + ((_ah) != NULL && \ + ((struct ath_hal *) (_ah))->ah_config.ah_debug & (__m))) { \ DO_HALDEBUG((_ah), (__m), __VA_ARGS__); \ } \ } while(0); @@ -531,7 +520,6 @@ extern void DO_HALDEBUG(struct ath_hal * __printflike(3,4); #else #define HALDEBUG(_ah, __m, ...) -#define HALDEBUG_G(_ah, __m, ...) #endif /* AH_DEBUG */ /* Modified: head/sys/dev/ath/ath_hal/ah_regdomain.c ============================================================================== --- head/sys/dev/ath/ath_hal/ah_regdomain.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ah_regdomain.c Fri Sep 30 05:17:57 2011 (r225883) @@ -169,7 +169,7 @@ isEepromValid(struct ath_hal *ah) if (regDomainPairs[i].regDmnEnum == rd) return AH_TRUE; } - HALDEBUG_G(ah, HAL_DEBUG_REGDOMAIN, + HALDEBUG(ah, HAL_DEBUG_REGDOMAIN, "%s: invalid regulatory domain/country code 0x%x\n", __func__, rd); return AH_FALSE; } @@ -613,7 +613,7 @@ ath_hal_mapgsm(int sku, int freq) return 1544 + freq; if (sku == SKU_SR9) return 3344 - freq; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot map freq %u unknown gsm sku %u\n", __func__, freq, sku); return freq; Modified: head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -182,14 +182,14 @@ ar5210Attach(uint16_t devid, HAL_SOFTC s HAL_STATUS ecode; int i; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: devid 0x%x sc %p st %p sh %p\n", __func__, devid, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp = ath_hal_malloc(sizeof (struct ath_hal_5210)); if (ahp == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: no memory for state block\n", __func__); ecode = HAL_ENOMEM; goto bad; Modified: head/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -201,13 +201,13 @@ ar5211Attach(uint16_t devid, HAL_SOFTC s uint16_t eeval; HAL_STATUS ecode; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp = ath_hal_malloc(sizeof (struct ath_hal_5211)); if (ahp == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); ecode = HAL_ENOMEM; goto bad; Modified: head/sys/dev/ath/ath_hal/ar5212/ar5112.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5212/ar5112.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar5212/ar5112.c Fri Sep 30 05:17:57 2011 (r225883) @@ -611,7 +611,7 @@ getFullPwrTable(uint16_t numPcdacs, uint uint16_t idxR = 1; if (numPcdacs < 2) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: at least 2 pcdac values needed [%d]\n", __func__, numPcdacs); return AH_FALSE; Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -319,13 +319,13 @@ ar5212Attach(uint16_t devid, HAL_SOFTC s uint16_t eeval; HAL_STATUS ecode; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp = ath_hal_malloc(sizeof (struct ath_hal_5212)); if (ahp == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; Modified: head/sys/dev/ath/ath_hal/ar5312/ar5312_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5312/ar5312_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar5312/ar5312_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -71,13 +71,13 @@ ar5312Attach(uint16_t devid, HAL_SOFTC s uint16_t eeval; HAL_STATUS ecode; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, st, (void*) sh); /* NB: memory is returned zero'd */ ahp = ath_hal_malloc(sizeof (struct ath_hal_5212)); if (ahp == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -246,7 +246,7 @@ ar5416Attach(uint16_t devid, HAL_SOFTC s HAL_STATUS ecode; HAL_BOOL rfStatus; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ @@ -255,7 +255,7 @@ ar5416Attach(uint16_t devid, HAL_SOFTC s sizeof(ar5416Addac) ); if (ahp5416 == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; Modified: head/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -78,13 +78,13 @@ ar9130Attach(uint16_t devid, HAL_SOFTC s HAL_STATUS ecode; HAL_BOOL rfStatus; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp5416 = ath_hal_malloc(sizeof (struct ath_hal_5416)); if (ahp5416 == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; Modified: head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -123,13 +123,13 @@ ar9160Attach(uint16_t devid, HAL_SOFTC s HAL_STATUS ecode; HAL_BOOL rfStatus; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp5416 = ath_hal_malloc(sizeof (struct ath_hal_5416)); if (ahp5416 == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; Modified: head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -153,13 +153,13 @@ ar9280Attach(uint16_t devid, HAL_SOFTC s int8_t pwr_table_offset; uint8_t pwr; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp9280 = ath_hal_malloc(sizeof (struct ath_hal_9280)); if (ahp9280 == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; Modified: head/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -118,13 +118,13 @@ ar9285Attach(uint16_t devid, HAL_SOFTC s HAL_STATUS ecode; HAL_BOOL rfStatus; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp9285 = ath_hal_malloc(sizeof (struct ath_hal_9285)); if (ahp9285 == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; Modified: head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c Fri Sep 30 04:55:23 2011 (r225882) +++ head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c Fri Sep 30 05:17:57 2011 (r225883) @@ -119,13 +119,13 @@ ar9287Attach(uint16_t devid, HAL_SOFTC s HAL_BOOL rfStatus; int8_t pwr_table_offset; - HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp9287 = ath_hal_malloc(sizeof (struct ath_hal_9287)); if (ahp9287 == AH_NULL) { - HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 08:06:00 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DA67106566C; Fri, 30 Sep 2011 08:06:00 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4E8318FC0A; Fri, 30 Sep 2011 08:06:00 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8U860aq059248; Fri, 30 Sep 2011 08:06:00 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8U860Kx059246; Fri, 30 Sep 2011 08:06:00 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109300806.p8U860Kx059246@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Fri, 30 Sep 2011 08:06:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-svnadmin@freebsd.org X-SVN-Group: svnadmin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225884 - svnadmin/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 08:06:00 -0000 Author: bz Date: Fri Sep 30 08:05:58 2011 New Revision: 225884 URL: http://svn.freebsd.org/changeset/base/225884 Log: Add the stable-9 block so that commits to stable/9 will also get a proper X-SVN-Group: header to filter and are archived to their own list as well. It might be worth mentioning that postmaster informed me that the per-stable-branch lists are not having many subscribers so we might want to re-consider if we want/need the dedicated per-stable-branch list for archiving in the future. Reviewed by: simon Modified: svnadmin/conf/mailer.conf Modified: svnadmin/conf/mailer.conf ============================================================================== --- svnadmin/conf/mailer.conf Fri Sep 30 05:17:57 2011 (r225883) +++ svnadmin/conf/mailer.conf Fri Sep 30 08:05:58 2011 (r225884) @@ -342,6 +342,10 @@ to_addr = src-committers@freebsd.org svn for_paths = ^head(/[^/]+)*$ to_addr = src-committers@freebsd.org svn-src-all@freebsd.org svn-src-head@freebsd.org +[stable-9] +for_paths = ^stable/9(/[^/]+)*$ +to_addr = src-committers@freebsd.org svn-src-all@freebsd.org svn-src-stable@freebsd.org svn-src-stable-9@freebsd.org + [stable-8] for_paths = ^stable/8(/[^/]+)*$ to_addr = src-committers@freebsd.org svn-src-all@freebsd.org svn-src-stable@freebsd.org svn-src-stable-8@freebsd.org @@ -355,7 +359,7 @@ for_paths = ^stable/6(/[^/]+)*$ to_addr = src-committers@freebsd.org svn-src-all@freebsd.org svn-src-stable@freebsd.org svn-src-stable-6@freebsd.org [stable-other] -for_paths = ^stable/[^678](/[^/]+)*$ +for_paths = ^stable/[^6789](/[^/]+)*$ to_addr = src-committers@freebsd.org svn-src-all@freebsd.org svn-src-stable@freebsd.org svn-src-stable-other@freebsd.org [projects] From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 08:16:31 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 834FA1065670; Fri, 30 Sep 2011 08:16:31 +0000 (UTC) Date: Fri, 30 Sep 2011 08:16:31 +0000 From: Alexander Best To: "Bjoern A. Zeeb" Message-ID: <20110930081631.GA2005@freebsd.org> References: <201109280847.p8S8lIHV063682@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201109280847.p8S8lIHV063682@svn.freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 08:16:31 -0000 On Wed Sep 28 11, Bjoern A. Zeeb wrote: > Author: bz > Date: Wed Sep 28 08:47:17 2011 > New Revision: 225827 > URL: http://svn.freebsd.org/changeset/base/225827 > > Log: > Fix handling of corrupt compress(1)ed data. [11:04] a thread on freebsd-questions@ indicates that the changes to uipc_usrreq.c broke support for flash. the thread's subject line is "FreeBSD 9-Beta3 and FlashPlayer". cheers. alex > > Add missing length checks on unix socket addresses. [11:05] > > Approved by: so (cperciva) > Approved by: re (kensmith) > Security: FreeBSD-SA-11:04.compress > Security: CVE-2011-2895 [11:04] > Security: FreeBSD-SA-11:05.unix > > Modified: > head/sys/kern/uipc_usrreq.c > head/usr.bin/compress/zopen.c > head/usr.bin/gzip/zuncompress.c > > Changes in other areas also in this revision: > Modified: > releng/7.3/UPDATING > releng/7.3/sys/conf/newvers.sh > releng/7.3/sys/kern/uipc_usrreq.c > releng/7.3/usr.bin/compress/zopen.c > releng/7.3/usr.bin/gzip/zuncompress.c > releng/7.4/UPDATING > releng/7.4/sys/conf/newvers.sh > releng/7.4/sys/kern/uipc_usrreq.c > releng/7.4/usr.bin/compress/zopen.c > releng/7.4/usr.bin/gzip/zuncompress.c > releng/8.1/UPDATING > releng/8.1/sys/conf/newvers.sh > releng/8.1/sys/kern/uipc_usrreq.c > releng/8.1/usr.bin/compress/zopen.c > releng/8.1/usr.bin/gzip/zuncompress.c > releng/8.2/UPDATING > releng/8.2/sys/conf/newvers.sh > releng/8.2/sys/kern/uipc_usrreq.c > releng/8.2/usr.bin/compress/zopen.c > releng/8.2/usr.bin/gzip/zuncompress.c > stable/7/sys/kern/uipc_usrreq.c > stable/7/usr.bin/compress/zopen.c > stable/7/usr.bin/gzip/zuncompress.c > stable/8/sys/kern/uipc_usrreq.c > stable/8/usr.bin/compress/zopen.c > stable/8/usr.bin/gzip/zuncompress.c > stable/9/sys/kern/uipc_usrreq.c > stable/9/usr.bin/compress/zopen.c > stable/9/usr.bin/gzip/zuncompress.c > > Modified: head/sys/kern/uipc_usrreq.c > ============================================================================== > --- head/sys/kern/uipc_usrreq.c Wed Sep 28 08:19:45 2011 (r225826) > +++ head/sys/kern/uipc_usrreq.c Wed Sep 28 08:47:17 2011 (r225827) > @@ -462,6 +462,8 @@ uipc_bind(struct socket *so, struct sock > unp = sotounpcb(so); > KASSERT(unp != NULL, ("uipc_bind: unp == NULL")); > > + if (soun->sun_len > sizeof(struct sockaddr_un)) > + return (EINVAL); > namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path); > if (namelen <= 0) > return (EINVAL); > @@ -1252,6 +1254,8 @@ unp_connect(struct socket *so, struct so > unp = sotounpcb(so); > KASSERT(unp != NULL, ("unp_connect: unp == NULL")); > > + if (nam->sa_len > sizeof(struct sockaddr_un)) > + return (EINVAL); > len = nam->sa_len - offsetof(struct sockaddr_un, sun_path); > if (len <= 0) > return (EINVAL); > > Modified: head/usr.bin/compress/zopen.c > ============================================================================== > --- head/usr.bin/compress/zopen.c Wed Sep 28 08:19:45 2011 (r225826) > +++ head/usr.bin/compress/zopen.c Wed Sep 28 08:47:17 2011 (r225827) > @@ -486,7 +486,7 @@ zread(void *cookie, char *rbp, int num) > block_compress = maxbits & BLOCK_MASK; > maxbits &= BIT_MASK; > maxmaxcode = 1L << maxbits; > - if (maxbits > BITS) { > + if (maxbits > BITS || maxbits < 12) { > errno = EFTYPE; > return (-1); > } > @@ -513,17 +513,28 @@ zread(void *cookie, char *rbp, int num) > for (code = 255; code >= 0; code--) > tab_prefixof(code) = 0; > clear_flg = 1; > - free_ent = FIRST - 1; > - if ((code = getcode(zs)) == -1) /* O, untimely death! */ > - break; > + free_ent = FIRST; > + oldcode = -1; > + continue; > } > incode = code; > > - /* Special case for KwKwK string. */ > + /* Special case for kWkWk string. */ > if (code >= free_ent) { > + if (code > free_ent || oldcode == -1) { > + /* Bad stream. */ > + errno = EINVAL; > + return (-1); > + } > *stackp++ = finchar; > code = oldcode; > } > + /* > + * The above condition ensures that code < free_ent. > + * The construction of tab_prefixof in turn guarantees that > + * each iteration decreases code and therefore stack usage is > + * bound by 1 << BITS - 256. > + */ > > /* Generate output characters in reverse order. */ > while (code >= 256) { > @@ -540,7 +551,7 @@ middle: do { > } while (stackp > de_stack); > > /* Generate the new entry. */ > - if ((code = free_ent) < maxmaxcode) { > + if ((code = free_ent) < maxmaxcode && oldcode != -1) { > tab_prefixof(code) = (u_short) oldcode; > tab_suffixof(code) = finchar; > free_ent = code + 1; > > Modified: head/usr.bin/gzip/zuncompress.c > ============================================================================== > --- head/usr.bin/gzip/zuncompress.c Wed Sep 28 08:19:45 2011 (r225826) > +++ head/usr.bin/gzip/zuncompress.c Wed Sep 28 08:47:17 2011 (r225827) > @@ -247,7 +247,7 @@ zread(void *cookie, char *rbp, int num) > zs->zs_block_compress = zs->zs_maxbits & BLOCK_MASK; > zs->zs_maxbits &= BIT_MASK; > zs->zs_maxmaxcode = 1L << zs->zs_maxbits; > - if (zs->zs_maxbits > BITS) { > + if (zs->zs_maxbits > BITS || zs->zs_maxbits < 12) { > errno = EFTYPE; > return (-1); > } > @@ -259,13 +259,7 @@ zread(void *cookie, char *rbp, int num) > } > zs->zs_free_ent = zs->zs_block_compress ? FIRST : 256; > > - zs->u.r.zs_finchar = zs->u.r.zs_oldcode = getcode(zs); > - if (zs->u.r.zs_oldcode == -1) /* EOF already? */ > - return (0); /* Get out of here */ > - > - /* First code must be 8 bits = char. */ > - *bp++ = (u_char)zs->u.r.zs_finchar; > - count--; > + zs->u.r.zs_oldcode = -1; > zs->u.r.zs_stackp = de_stack; > > while ((zs->u.r.zs_code = getcode(zs)) > -1) { > @@ -275,17 +269,29 @@ zread(void *cookie, char *rbp, int num) > zs->u.r.zs_code--) > tab_prefixof(zs->u.r.zs_code) = 0; > zs->zs_clear_flg = 1; > - zs->zs_free_ent = FIRST - 1; > - if ((zs->u.r.zs_code = getcode(zs)) == -1) /* O, untimely death! */ > - break; > + zs->zs_free_ent = FIRST; > + zs->u.r.zs_oldcode = -1; > + continue; > } > zs->u.r.zs_incode = zs->u.r.zs_code; > > /* Special case for KwKwK string. */ > if (zs->u.r.zs_code >= zs->zs_free_ent) { > + if (zs->u.r.zs_code > zs->zs_free_ent || > + zs->u.r.zs_oldcode == -1) { > + /* Bad stream. */ > + errno = EINVAL; > + return (-1); > + } > *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; > zs->u.r.zs_code = zs->u.r.zs_oldcode; > } > + /* > + * The above condition ensures that code < free_ent. > + * The construction of tab_prefixof in turn guarantees that > + * each iteration decreases code and therefore stack usage is > + * bound by 1 << BITS - 256. > + */ > > /* Generate output characters in reverse order. */ > while (zs->u.r.zs_code >= 256) { > @@ -302,7 +308,8 @@ middle: do { > } while (zs->u.r.zs_stackp > de_stack); > > /* Generate the new entry. */ > - if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode) { > + if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && > + zs->u.r.zs_oldcode != -1) { > tab_prefixof(zs->u.r.zs_code) = (u_short) zs->u.r.zs_oldcode; > tab_suffixof(zs->u.r.zs_code) = zs->u.r.zs_finchar; > zs->zs_free_ent = zs->u.r.zs_code + 1; From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 08:19:54 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A960A106566C; Fri, 30 Sep 2011 08:19:54 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id B43498FC08; Fri, 30 Sep 2011 08:19:53 +0000 (UTC) Received: by fxg9 with SMTP id 9so3547527fxg.13 for ; Fri, 30 Sep 2011 01:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=gRsmBN0n7CgSSJnNye4bbBijc/T1o6AagFBzWKyXgAg=; b=AocSCwOxVEg3uCjOTxwUt766rN2ps3yfHoLHzDxhcA8MYbI+htW5yLSNZcxMFs4qbq kNJulWBLuJFhCvASHU1phgj5RSPytB6aTpX58gneIEGwEkWYnyjb2WVwYZoBtPiB1tpc fdWGvt2BDwJJKztiwlw+B5Wms5EJxvVX/3MiU= Received: by 10.223.44.90 with SMTP id z26mr3578946fae.28.1317370792676; Fri, 30 Sep 2011 01:19:52 -0700 (PDT) Received: from enapierala.whl (58.wheelsystems.com. [83.12.187.58]) by mx.google.com with ESMTPS id c5sm5719528fai.2.2011.09.30.01.19.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Sep 2011 01:19:51 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=iso-8859-2 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: <20110929185700.GA18684@freebsd.org> Date: Fri, 30 Sep 2011 10:19:49 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <11B87D92-4C1E-4AD9-BEC5-13D28B022FB1@FreeBSD.org> <20110929185700.GA18684@freebsd.org> To: Alexander Best X-Mailer: Apple Mail (2.1244.3) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 08:19:54 -0000 Wiadomo=B6=E6 napisana przez Alexander Best w dniu 29 wrz 2011, o godz. = 20:57: > On Thu Sep 29 11, Edward Tomasz Napiera?a wrote: >> Wiadomo?? napisana przez Alexander Best w dniu 29 wrz 2011, o godz. = 14:14: >>> On Thu Sep 29 11, Edward Tomasz Napierala wrote: >>>> Author: trasz >>>> Date: Thu Sep 29 06:31:42 2011 >>>> New Revision: 225868 >>>> URL: http://svn.freebsd.org/changeset/base/225868 >>>>=20 >>>> Log: >>>> Make ps(1) automatically size its column widths. >>>=20 >>> cool to see this committed. :) >>>=20 >>> i think i wrote you about the two spaces between the "TT" and "TIME" = field >>> some time ago. you said that the "TT" entry can contain a postfix = "-". can >>> you describe a situation, where this can occur? i've never seen the = "TT" field >>> contain an entry larger than 2 chars. >>=20 >> Login via ssh, run "nohup sleep 1000 &", then logout. >=20 > maybe it would also be possible to introduce unit symbols for the = "vsz" and > "rss" fields. they are getting really huge on systems with a long = uptime > (*cough* mem leaks) and kilobyte granularity isn't really that great = when > those fields are nearing 1GB. I thought about it, but the "-h" option is already taken. -- If you cut off my head, what would I say? Me and my head, or me and my = body? From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 08:21:38 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA2CD1065673; Fri, 30 Sep 2011 08:21:38 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 6FAF18FC17; Fri, 30 Sep 2011 08:21:38 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 872F425D3872; Fri, 30 Sep 2011 08:21:37 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id AD3D7BD3C84; Fri, 30 Sep 2011 08:21:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id R1p76kZFLEZ3; Fri, 30 Sep 2011 08:21:35 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 8788CBD3C22; Fri, 30 Sep 2011 08:21:35 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <20110930081631.GA2005@freebsd.org> Date: Fri, 30 Sep 2011 08:21:34 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <2A9D712D-6152-45A2-80D2-8E1E04760150@FreeBSD.org> References: <201109280847.p8S8lIHV063682@svn.freebsd.org> <20110930081631.GA2005@freebsd.org> To: Alexander Best X-Mailer: Apple Mail (2.1084) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 08:21:38 -0000 On Sep 30, 2011, at 8:16 AM, Alexander Best wrote: > On Wed Sep 28 11, Bjoern A. Zeeb wrote: >> Author: bz >> Date: Wed Sep 28 08:47:17 2011 >> New Revision: 225827 >> URL: http://svn.freebsd.org/changeset/base/225827 >>=20 >> Log: >> Fix handling of corrupt compress(1)ed data. [11:04] >=20 That's the wrong line to cite;-) You mean 11:05. > a thread on freebsd-questions@ indicates that the changes to = uipc_usrreq.c > broke support for flash. >=20 > the thread's subject line is "FreeBSD 9-Beta3 and FlashPlayer". And so does an email to security@, etc. already. Colin is aware of the = fact and looking into the changes needed. We obviously all missed that part. As far as I understood him there's a mix of "linux is different" and "the linuxolator was always buggy there and we luckily caught that now" = involved. Assume it will be handled some way properly. /bz --=20 Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family. From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 10:10:27 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id D441C106566B; Fri, 30 Sep 2011 10:10:27 +0000 (UTC) Date: Fri, 30 Sep 2011 10:10:27 +0000 From: Alexander Best To: "Bjoern A. Zeeb" Message-ID: <20110930101027.GA15019@freebsd.org> References: <201109280847.p8S8lIHV063682@svn.freebsd.org> <20110930081631.GA2005@freebsd.org> <2A9D712D-6152-45A2-80D2-8E1E04760150@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2A9D712D-6152-45A2-80D2-8E1E04760150@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 10:10:27 -0000 On Fri Sep 30 11, Bjoern A. Zeeb wrote: > > On Sep 30, 2011, at 8:16 AM, Alexander Best wrote: > > > On Wed Sep 28 11, Bjoern A. Zeeb wrote: > >> Author: bz > >> Date: Wed Sep 28 08:47:17 2011 > >> New Revision: 225827 > >> URL: http://svn.freebsd.org/changeset/base/225827 > >> > >> Log: > >> Fix handling of corrupt compress(1)ed data. [11:04] > > > > That's the wrong line to cite;-) You mean 11:05. oops. sorry. > > > a thread on freebsd-questions@ indicates that the changes to uipc_usrreq.c > > broke support for flash. > > > > the thread's subject line is "FreeBSD 9-Beta3 and FlashPlayer". > > And so does an email to security@, etc. already. Colin is aware of the fact > and looking into the changes needed. We obviously all missed that part. > As far as I understood him there's a mix of "linux is different" and > "the linuxolator was always buggy there and we luckily caught that now" involved. > > Assume it will be handled some way properly. thanks for the info. good to know people are working on it. :) cheers. alex > > /bz > > -- > Bjoern A. Zeeb You have to have visions! > Stop bit received. Insert coin for new address family. From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 10:20:41 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8759106564A for ; Fri, 30 Sep 2011 10:20:41 +0000 (UTC) (envelope-from bounces+73574-8822-svn-src-all=freebsd.org@sendgrid.info) Received: from o3.sendgrid.info (o3.sendgrid.info [67.228.50.51]) by mx1.freebsd.org (Postfix) with SMTP id AD1998FC13 for ; Fri, 30 Sep 2011 10:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=aRjfKzWkRbqLC2gGGv3sg414amE=; b=SByRJL+ZzLPWGtii90wH80xqP42+ VZd/1w+ku35uM2IBw6Y7NsUWcTY4Q75veFmcJIc3J4+ie8yV4PRjWDC8eyZ06MCN gGfj0VDdbb10OTJU+3rUEaI5wagAf/agVVY0A7nG5r+lcW8lknQ/h0fzLhp8xTnF rguOmSXOB2Twp4Y= Received: by 10.16.69.86 with SMTP id mf21.23337.4E857BDB1 Fri, 30 Sep 2011 03:20:43 -0500 (CDT) Received: from mail.tarsnap.com (unknown [10.9.180.5]) by mi11 (SG) with ESMTP id 4e857bdb.53cd.2389264 for ; Fri, 30 Sep 2011 03:20:43 -0500 (CST) Received: (qmail 76937 invoked from network); 30 Sep 2011 08:19:06 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by mail.tarsnap.com with ESMTP; 30 Sep 2011 08:19:06 -0000 Received: (qmail 31124 invoked from network); 30 Sep 2011 08:18:59 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 30 Sep 2011 08:18:59 -0000 Message-ID: <4E857B73.2050501@freebsd.org> Date: Fri, 30 Sep 2011 01:18:59 -0700 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110914 Thunderbird/6.0.2 MIME-Version: 1.0 To: Alexander Best References: <201109280847.p8S8lIHV063682@svn.freebsd.org> <20110930081631.GA2005@freebsd.org> In-Reply-To: <20110930081631.GA2005@freebsd.org> X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Sendgrid-EID: A6W2xSVPHetogaU8rnzccWwgBYtN+QvIzXyjfe/10PEwfW7PZgPG6jf+jlAveTQmvuRM8iIF/GaNovZooO2tq3ojtW6qdP1r2wxGhdYkgHSE1hTvkmvT/yQt5BCduoEZwTnRRwU2wnnCyFLg/Wu0+RVnmnyTdtkasYgBtJhT/lc= Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, "Bjoern A. Zeeb" , src-committers@freebsd.org Subject: Re: svn commit: r225827 - head/sys/kern head/usr.bin/compress head/usr.bin/gzip releng/7.3 releng/7.3/sys/conf releng/7.3/sys/kern releng/7.3/usr.bin/compress releng/7.3/usr.bin/gzip releng/7.4 releng/... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 10:20:42 -0000 On 09/30/11 01:16, Alexander Best wrote: > a thread on freebsd-questions@ indicates that the changes to uipc_usrreq.c > broke support for flash. Correct. I just sent an email to -security and -emulation about this -- we accidentally exposed a long-standing linux emulation bug. A fix will be coming soon. -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 18:20:16 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88977106566B; Fri, 30 Sep 2011 18:20:16 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 78B058FC0C; Fri, 30 Sep 2011 18:20:16 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8UIKGXN081344; Fri, 30 Sep 2011 18:20:16 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8UIKGZH081342; Fri, 30 Sep 2011 18:20:16 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201109301820.p8UIKGZH081342@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Fri, 30 Sep 2011 18:20:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225885 - head/sys/netinet6 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 18:20:16 -0000 Author: bz Date: Fri Sep 30 18:20:16 2011 New Revision: 225885 URL: http://svn.freebsd.org/changeset/base/225885 Log: Fix an obvious bug from r186196 shadowing a variable, not correctly appending the new mbuf to the chain reference but possibly causing an mbuf nextpkt loop leading to a memory used after handoff (or having been freed) and leaking an mbuf here. Reviewed by: rwatson, brooks MFC after: 3 days Modified: head/sys/netinet6/nd6.c Modified: head/sys/netinet6/nd6.c ============================================================================== --- head/sys/netinet6/nd6.c Fri Sep 30 08:05:58 2011 (r225884) +++ head/sys/netinet6/nd6.c Fri Sep 30 18:20:16 2011 (r225885) @@ -2042,14 +2042,15 @@ nd6_output_lle(struct ifnet *ifp, struct if (*chain == NULL) *chain = m; else { - struct mbuf *m = *chain; + struct mbuf *mb; /* * append mbuf to end of deferred chain */ - while (m->m_nextpkt != NULL) - m = m->m_nextpkt; - m->m_nextpkt = m; + mb = *chain; + while (mb->m_nextpkt != NULL) + mb = mb->m_nextpkt; + mb->m_nextpkt = m; } return (error); } From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 20:06:24 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E26B71065672; Fri, 30 Sep 2011 20:06:23 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C79BA8FC12; Fri, 30 Sep 2011 20:06:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8UK6N5j084668; Fri, 30 Sep 2011 20:06:23 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8UK6Nvd084666; Fri, 30 Sep 2011 20:06:23 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201109302006.p8UK6Nvd084666@svn.freebsd.org> From: Marius Strobl Date: Fri, 30 Sep 2011 20:06:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225886 - head/sys/sparc64/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 20:06:24 -0000 Author: marius Date: Fri Sep 30 20:06:23 2011 New Revision: 225886 URL: http://svn.freebsd.org/changeset/base/225886 Log: - Right-justify backslashes as suggested by style(9). - Rename ATOMIC_INC_ULONG to ATOMIC_INC_LONG in order to be consistent with the names of the other macros in this file an adjust accordingly. Modified: head/sys/sparc64/include/asmacros.h Modified: head/sys/sparc64/include/asmacros.h ============================================================================== --- head/sys/sparc64/include/asmacros.h Fri Sep 30 18:20:16 2011 (r225885) +++ head/sys/sparc64/include/asmacros.h Fri Sep 30 20:06:23 2011 (r225886) @@ -49,98 +49,98 @@ /* * Atomically decrement an integer in memory. */ -#define ATOMIC_DEC_INT(r1, r2, r3) \ - lduw [r1], r2 ; \ -9: sub r2, 1, r3 ; \ - casa [r1] ASI_N, r2, r3 ; \ - cmp r2, r3 ; \ - bne,pn %icc, 9b ; \ +#define ATOMIC_DEC_INT(r1, r2, r3) \ + lduw [r1], r2 ; \ +9: sub r2, 1, r3 ; \ + casa [r1] ASI_N, r2, r3 ; \ + cmp r2, r3 ; \ + bne,pn %icc, 9b ; \ mov r3, r2 /* * Atomically increment an integer in memory. */ -#define ATOMIC_INC_INT(r1, r2, r3) \ - lduw [r1], r2 ; \ -9: add r2, 1, r3 ; \ - casa [r1] ASI_N, r2, r3 ; \ - cmp r2, r3 ; \ - bne,pn %icc, 9b ; \ +#define ATOMIC_INC_INT(r1, r2, r3) \ + lduw [r1], r2 ; \ +9: add r2, 1, r3 ; \ + casa [r1] ASI_N, r2, r3 ; \ + cmp r2, r3 ; \ + bne,pn %icc, 9b ; \ mov r3, r2 /* - * Atomically increment an u_long in memory. + * Atomically increment a long in memory. */ -#define ATOMIC_INC_ULONG(r1, r2, r3) \ - ldx [r1], r2 ; \ -9: add r2, 1, r3 ; \ - casxa [r1] ASI_N, r2, r3 ; \ - cmp r2, r3 ; \ - bne,pn %icc, 9b ; \ +#define ATOMIC_INC_LONG(r1, r2, r3) \ + ldx [r1], r2 ; \ +9: add r2, 1, r3 ; \ + casxa [r1] ASI_N, r2, r3 ; \ + cmp r2, r3 ; \ + bne,pn %icc, 9b ; \ mov r3, r2 /* * Atomically clear a number of bits of an integer in memory. */ -#define ATOMIC_CLEAR_INT(r1, r2, r3, bits) \ - lduw [r1], r2 ; \ -9: andn r2, bits, r3 ; \ - casa [r1] ASI_N, r2, r3 ; \ - cmp r2, r3 ; \ - bne,pn %icc, 9b ; \ +#define ATOMIC_CLEAR_INT(r1, r2, r3, bits) \ + lduw [r1], r2 ; \ +9: andn r2, bits, r3 ; \ + casa [r1] ASI_N, r2, r3 ; \ + cmp r2, r3 ; \ + bne,pn %icc, 9b ; \ mov r3, r2 /* - * Atomically clear a number of bits of an u_long in memory. + * Atomically clear a number of bits of a long in memory. */ -#define ATOMIC_CLEAR_LONG(r1, r2, r3, bits) \ - ldx [r1], r2 ; \ -9: andn r2, bits, r3 ; \ - casxa [r1] ASI_N, r2, r3 ; \ - cmp r2, r3 ; \ - bne,pn %icc, 9b ; \ +#define ATOMIC_CLEAR_LONG(r1, r2, r3, bits) \ + ldx [r1], r2 ; \ +9: andn r2, bits, r3 ; \ + casxa [r1] ASI_N, r2, r3 ; \ + cmp r2, r3 ; \ + bne,pn %icc, 9b ; \ mov r3, r2 #define PCPU(member) PCPU_REG + PC_ ## member -#define PCPU_ADDR(member, reg) \ +#define PCPU_ADDR(member, reg) \ add PCPU_REG, PC_ ## member, reg -#define DEBUGGER() \ +#define DEBUGGER() \ ta %xcc, 1 -#define PANIC(msg, r1) \ - .sect .rodata ; \ -9: .asciz msg ; \ - .previous ; \ - SET(9b, r1, %o0) ; \ - call panic ; \ +#define PANIC(msg, r1) \ + .sect .rodata ; \ +9: .asciz msg ; \ + .previous ; \ + SET(9b, r1, %o0) ; \ + call panic ; \ nop #ifdef INVARIANTS -#define KASSERT(r1, msg) \ - brnz,pt r1, 8f ; \ - nop ; \ - PANIC(msg, r1) ; \ +#define KASSERT(r1, msg) \ + brnz,pt r1, 8f ; \ + nop ; \ + PANIC(msg, r1) ; \ 8: #else #define KASSERT(r1, msg) #endif -#define PUTS(msg, r1) \ - .sect .rodata ; \ -9: .asciz msg ; \ - .previous ; \ - SET(9b, r1, %o0) ; \ - call printf ; \ +#define PUTS(msg, r1) \ + .sect .rodata ; \ +9: .asciz msg ; \ + .previous ; \ + SET(9b, r1, %o0) ; \ + call printf ; \ nop #define _ALIGN_DATA .align 8 -#define DATA(name) \ - .data ; \ - _ALIGN_DATA ; \ - .globl name ; \ - .type name, @object ; \ +#define DATA(name) \ + .data ; \ + _ALIGN_DATA ; \ + .globl name ; \ + .type name, @object ; \ name: #define EMPTY From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 20:13:51 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED2A9106566C; Fri, 30 Sep 2011 20:13:51 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DCD7C8FC0A; Fri, 30 Sep 2011 20:13:51 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8UKDpV2084916; Fri, 30 Sep 2011 20:13:51 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8UKDpaL084914; Fri, 30 Sep 2011 20:13:51 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201109302013.p8UKDpaL084914@svn.freebsd.org> From: Marius Strobl Date: Fri, 30 Sep 2011 20:13:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225887 - head/sys/sparc64/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 20:13:52 -0000 Author: marius Date: Fri Sep 30 20:13:51 2011 New Revision: 225887 URL: http://svn.freebsd.org/changeset/base/225887 Log: Use the extended integer condition code when comparing 64-bit values. Given that ATOMIC_INC_LONG currently is unused this happened to not be fatal. Modified: head/sys/sparc64/include/asmacros.h Modified: head/sys/sparc64/include/asmacros.h ============================================================================== --- head/sys/sparc64/include/asmacros.h Fri Sep 30 20:06:23 2011 (r225886) +++ head/sys/sparc64/include/asmacros.h Fri Sep 30 20:13:51 2011 (r225887) @@ -76,7 +76,7 @@ 9: add r2, 1, r3 ; \ casxa [r1] ASI_N, r2, r3 ; \ cmp r2, r3 ; \ - bne,pn %icc, 9b ; \ + bne,pn %xcc, 9b ; \ mov r3, r2 /* From owner-svn-src-all@FreeBSD.ORG Fri Sep 30 20:23:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6AC4106566B; Fri, 30 Sep 2011 20:23:18 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B67FE8FC15; Fri, 30 Sep 2011 20:23:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8UKNIiC085307; Fri, 30 Sep 2011 20:23:18 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8UKNIvp085305; Fri, 30 Sep 2011 20:23:18 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201109302023.p8UKNIvp085305@svn.freebsd.org> From: Marius Strobl Date: Fri, 30 Sep 2011 20:23:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225888 - head/sys/sparc64/sparc64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 20:23:18 -0000 Author: marius Date: Fri Sep 30 20:23:18 2011 New Revision: 225888 URL: http://svn.freebsd.org/changeset/base/225888 Log: Add a comment about why contrary to what once would think running all of userland with total store order actually is appropriate. Modified: head/sys/sparc64/sparc64/machdep.c Modified: head/sys/sparc64/sparc64/machdep.c ============================================================================== --- head/sys/sparc64/sparc64/machdep.c Fri Sep 30 20:13:51 2011 (r225887) +++ head/sys/sparc64/sparc64/machdep.c Fri Sep 30 20:23:18 2011 (r225888) @@ -1015,6 +1015,10 @@ exec_setregs(struct thread *td, struct i tf->tf_out[6] = sp - SPOFF - sizeof(struct frame); tf->tf_tnpc = imgp->entry_addr + 4; tf->tf_tpc = imgp->entry_addr; + /* + * While we could adhere to the memory model indicated in the ELF + * header, it turns out that just always using TSO performs best. + */ tf->tf_tstate = TSTATE_IE | TSTATE_PEF | TSTATE_MM_TSO; td->td_retval[0] = tf->tf_out[0]; From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 00:11:04 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 220541065670; Sat, 1 Oct 2011 00:11:04 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ECA7E8FC08; Sat, 1 Oct 2011 00:11:03 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p910B3C8092089; Sat, 1 Oct 2011 00:11:03 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p910B31Y092087; Sat, 1 Oct 2011 00:11:03 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201110010011.p910B31Y092087@svn.freebsd.org> From: Marius Strobl Date: Sat, 1 Oct 2011 00:11:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225889 - head/sys/sparc64/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 00:11:04 -0000 Author: marius Date: Sat Oct 1 00:11:03 2011 New Revision: 225889 URL: http://svn.freebsd.org/changeset/base/225889 Log: In total store which we use for running the kernel and all of the userland atomic operations behave as if the were followed by a memory barrier so there's no need to include ones in the acquire variants of atomic(9). Removing these results a small performance improvement, specifically this is sufficient to compensate the performance loss seen in the worldstone benchmark seen when using SCHED_ULE instead of SCHED_4BSD. This change is inspired by Linux even more radically doing the equivalent thing some time ago. Thanks go to Peter Jeremy for additional testing. Modified: head/sys/sparc64/include/atomic.h Modified: head/sys/sparc64/include/atomic.h ============================================================================== --- head/sys/sparc64/include/atomic.h Fri Sep 30 20:23:18 2011 (r225888) +++ head/sys/sparc64/include/atomic.h Sat Oct 1 00:11:03 2011 (r225889) @@ -74,12 +74,16 @@ * * the return value of cas is used to avoid the extra reload. * - * The memory barriers provided by the acq and rel variants are intended - * to be sufficient for use of relaxed memory ordering. Due to the - * suggested assembly syntax of the membar operands containing a # - * character, they cannot be used in macros. The cmask and mmask bits + * We only include a memory barrier in the rel variants as in total store + * order which we use for running the kernel and all of the userland atomic + * loads and stores behave as if the were followed by a membar with a mask + * of #LoadLoad | #LoadStore | #StoreStore. In order to be also sufficient + * for use of relaxed memory ordering, the atomic_cas() in the acq variants + * additionally would have to be followed by a membar #LoadLoad | #LoadStore. + * Due to the suggested assembly syntax of the membar operands containing a + * # character, they cannot be used in macros. The cmask and mmask bits thus * are hard coded in machine/cpufunc.h and used here through macros. - * Hopefully sun will choose not to change the bit numbers. + * Hopefully the bit numbers won't change in the future. */ #define itype(sz) uint ## sz ## _t @@ -93,7 +97,6 @@ #define atomic_cas_acq(p, e, s, sz) ({ \ itype(sz) v; \ v = atomic_cas(p, e, s, sz); \ - membar(LoadLoad | LoadStore); \ v; \ }) @@ -118,7 +121,6 @@ #define atomic_op_acq(p, op, v, sz) ({ \ itype(sz) t; \ t = atomic_op(p, op, v, sz); \ - membar(LoadLoad | LoadStore); \ t; \ }) @@ -135,7 +137,6 @@ #define atomic_load_acq(p, sz) ({ \ itype(sz) v; \ v = atomic_load(p, sz); \ - membar(LoadLoad | LoadStore); \ v; \ }) From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 00:22:24 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1FE3106564A; Sat, 1 Oct 2011 00:22:24 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C13378FC08; Sat, 1 Oct 2011 00:22:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p910MO4W092531; Sat, 1 Oct 2011 00:22:24 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p910MOsr092529; Sat, 1 Oct 2011 00:22:24 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201110010022.p910MOsr092529@svn.freebsd.org> From: Marius Strobl Date: Sat, 1 Oct 2011 00:22:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225890 - head/sys/sparc64/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 00:22:24 -0000 Author: marius Date: Sat Oct 1 00:22:24 2011 New Revision: 225890 URL: http://svn.freebsd.org/changeset/base/225890 Log: - Add protective parentheses to macros as far as possible. - Move {r,w,}mb() to the top of this file where they live on most of the other architectures. Modified: head/sys/sparc64/include/atomic.h Modified: head/sys/sparc64/include/atomic.h ============================================================================== --- head/sys/sparc64/include/atomic.h Sat Oct 1 00:11:03 2011 (r225889) +++ head/sys/sparc64/include/atomic.h Sat Oct 1 00:22:24 2011 (r225890) @@ -33,6 +33,10 @@ #include +#define mb() __asm__ __volatile__ ("membar #MemIssue": : :"memory") +#define wmb() mb() +#define rmb() mb() + /* Userland needs different ASI's. */ #ifdef _KERNEL #define __ASI_ATOMIC ASI_N @@ -40,10 +44,6 @@ #define __ASI_ATOMIC ASI_P #endif -#define mb() __asm__ __volatile__ ("membar #MemIssue": : :"memory") -#define wmb() mb() -#define rmb() mb() - /* * Various simple arithmetic on memory which is atomic in the presence * of interrupts and multiple processors. See atomic(9) for details. @@ -88,30 +88,30 @@ #define itype(sz) uint ## sz ## _t -#define atomic_cas_32(p, e, s) casa(p, e, s, __ASI_ATOMIC) -#define atomic_cas_64(p, e, s) casxa(p, e, s, __ASI_ATOMIC) +#define atomic_cas_32(p, e, s) casa((p), (e), (s), __ASI_ATOMIC) +#define atomic_cas_64(p, e, s) casxa((p), (e), (s), __ASI_ATOMIC) #define atomic_cas(p, e, s, sz) \ - atomic_cas_ ## sz(p, e, s) + atomic_cas_ ## sz((p), (e), (s)) #define atomic_cas_acq(p, e, s, sz) ({ \ itype(sz) v; \ - v = atomic_cas(p, e, s, sz); \ + v = atomic_cas((p), (e), (s), sz); \ v; \ }) #define atomic_cas_rel(p, e, s, sz) ({ \ itype(sz) v; \ membar(LoadStore | StoreStore); \ - v = atomic_cas(p, e, s, sz); \ + v = atomic_cas((p), (e), (s), sz); \ v; \ }) #define atomic_op(p, op, v, sz) ({ \ itype(sz) e, r, s; \ - for (e = *(volatile itype(sz) *)p;; e = r) { \ - s = e op v; \ - r = atomic_cas_ ## sz(p, e, s); \ + for (e = *(volatile itype(sz) *)(p);; e = r) { \ + s = e op (v); \ + r = atomic_cas_ ## sz((p), e, s); \ if (r == e) \ break; \ } \ @@ -120,30 +120,30 @@ #define atomic_op_acq(p, op, v, sz) ({ \ itype(sz) t; \ - t = atomic_op(p, op, v, sz); \ + t = atomic_op((p), op, (v), sz); \ t; \ }) #define atomic_op_rel(p, op, v, sz) ({ \ itype(sz) t; \ membar(LoadStore | StoreStore); \ - t = atomic_op(p, op, v, sz); \ + t = atomic_op((p), op, (v), sz); \ t; \ }) #define atomic_load(p, sz) \ - atomic_cas(p, 0, 0, sz) + atomic_cas((p), 0, 0, sz) #define atomic_load_acq(p, sz) ({ \ itype(sz) v; \ - v = atomic_load(p, sz); \ + v = atomic_load((p), sz); \ v; \ }) #define atomic_load_clear(p, sz) ({ \ itype(sz) e, r; \ - for (e = *(volatile itype(sz) *)p;; e = r) { \ - r = atomic_cas(p, e, 0, sz); \ + for (e = *(volatile itype(sz) *)(p);; e = r) { \ + r = atomic_cas((p), e, 0, sz); \ if (r == e) \ break; \ } \ @@ -152,8 +152,8 @@ #define atomic_store(p, v, sz) do { \ itype(sz) e, r; \ - for (e = *(volatile itype(sz) *)p;; e = r) { \ - r = atomic_cas(p, e, v, sz); \ + for (e = *(volatile itype(sz) *)(p);; e = r) { \ + r = atomic_cas((p), e, (v), sz); \ if (r == e) \ break; \ } \ @@ -161,7 +161,7 @@ #define atomic_store_rel(p, v, sz) do { \ membar(LoadStore | StoreStore); \ - atomic_store(p, v, sz); \ + atomic_store((p), (v), sz); \ } while (0) #define ATOMIC_GEN(name, ptype, vtype, atype, sz) \ @@ -169,109 +169,109 @@ static __inline vtype \ atomic_add_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op(p, +, v, sz)); \ + return ((vtype)atomic_op((p), +, (v), sz)); \ } \ static __inline vtype \ atomic_add_acq_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op_acq(p, +, v, sz)); \ + return ((vtype)atomic_op_acq((p), +, (v), sz)); \ } \ static __inline vtype \ atomic_add_rel_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op_rel(p, +, v, sz)); \ + return ((vtype)atomic_op_rel((p), +, (v), sz)); \ } \ \ static __inline vtype \ atomic_clear_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op(p, &, ~v, sz)); \ + return ((vtype)atomic_op((p), &, ~(v), sz)); \ } \ static __inline vtype \ atomic_clear_acq_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op_acq(p, &, ~v, sz)); \ + return ((vtype)atomic_op_acq((p), &, ~(v), sz)); \ } \ static __inline vtype \ atomic_clear_rel_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op_rel(p, &, ~v, sz)); \ + return ((vtype)atomic_op_rel((p), &, ~(v), sz)); \ } \ \ static __inline int \ atomic_cmpset_ ## name(volatile ptype p, vtype e, vtype s) \ { \ - return (((vtype)atomic_cas(p, e, s, sz)) == e); \ + return (((vtype)atomic_cas((p), (e), (s), sz)) == (e)); \ } \ static __inline int \ atomic_cmpset_acq_ ## name(volatile ptype p, vtype e, vtype s) \ { \ - return (((vtype)atomic_cas_acq(p, e, s, sz)) == e); \ + return (((vtype)atomic_cas_acq((p), (e), (s), sz)) == (e)); \ } \ static __inline int \ atomic_cmpset_rel_ ## name(volatile ptype p, vtype e, vtype s) \ { \ - return (((vtype)atomic_cas_rel(p, e, s, sz)) == e); \ + return (((vtype)atomic_cas_rel((p), (e), (s), sz)) == (e)); \ } \ \ static __inline vtype \ atomic_load_ ## name(volatile ptype p) \ { \ - return ((vtype)atomic_cas(p, 0, 0, sz)); \ + return ((vtype)atomic_cas((p), 0, 0, sz)); \ } \ static __inline vtype \ atomic_load_acq_ ## name(volatile ptype p) \ { \ - return ((vtype)atomic_cas_acq(p, 0, 0, sz)); \ + return ((vtype)atomic_cas_acq((p), 0, 0, sz)); \ } \ \ static __inline vtype \ atomic_readandclear_ ## name(volatile ptype p) \ { \ - return ((vtype)atomic_load_clear(p, sz)); \ + return ((vtype)atomic_load_clear((p), sz)); \ } \ \ static __inline vtype \ atomic_set_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op(p, |, v, sz)); \ + return ((vtype)atomic_op((p), |, (v), sz)); \ } \ static __inline vtype \ atomic_set_acq_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op_acq(p, |, v, sz)); \ + return ((vtype)atomic_op_acq((p), |, (v), sz)); \ } \ static __inline vtype \ atomic_set_rel_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op_rel(p, |, v, sz)); \ + return ((vtype)atomic_op_rel((p), |, (v), sz)); \ } \ \ static __inline vtype \ atomic_subtract_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op(p, -, v, sz)); \ + return ((vtype)atomic_op((p), -, (v), sz)); \ } \ static __inline vtype \ atomic_subtract_acq_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op_acq(p, -, v, sz)); \ + return ((vtype)atomic_op_acq((p), -, (v), sz)); \ } \ static __inline vtype \ atomic_subtract_rel_ ## name(volatile ptype p, atype v) \ { \ - return ((vtype)atomic_op_rel(p, -, v, sz)); \ + return ((vtype)atomic_op_rel((p), -, (v), sz)); \ } \ \ static __inline void \ atomic_store_ ## name(volatile ptype p, vtype v) \ { \ - atomic_store(p, v, sz); \ + atomic_store((p), (v), sz); \ } \ static __inline void \ atomic_store_rel_ ## name(volatile ptype p, vtype v) \ { \ - atomic_store_rel(p, v, sz); \ + atomic_store_rel((p), (v), sz); \ } ATOMIC_GEN(int, u_int *, u_int, u_int, 32); From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 00:31:31 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C934106564A; Sat, 1 Oct 2011 00:31:31 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1D0248FC17; Sat, 1 Oct 2011 00:31:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p910VVFO092826; Sat, 1 Oct 2011 00:31:31 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p910VU8N092824; Sat, 1 Oct 2011 00:31:30 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201110010031.p910VU8N092824@svn.freebsd.org> From: Marius Strobl Date: Sat, 1 Oct 2011 00:31:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225891 - head/sys/sparc64/pci X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 00:31:31 -0000 Author: marius Date: Sat Oct 1 00:31:30 2011 New Revision: 225891 URL: http://svn.freebsd.org/changeset/base/225891 Log: Re-reading the Schizo errata suggests that it's actually tolerable to also use the streaming buffer of pre version 5/revision 2.3 hardware as long as we stay away from context flushes (which iommu(4) so far doesn't take advantage of). OpenSolaris does the same. Modified: head/sys/sparc64/pci/schizo.c Modified: head/sys/sparc64/pci/schizo.c ============================================================================== --- head/sys/sparc64/pci/schizo.c Sat Oct 1 00:22:24 2011 (r225890) +++ head/sys/sparc64/pci/schizo.c Sat Oct 1 00:31:30 2011 (r225891) @@ -501,7 +501,8 @@ schizo_attach(device_t dev) * Set up the IOMMU. Schizo, Tomatillo and XMITS all have * one per PBM. Schizo and XMITS additionally have a streaming * buffer, in Schizo version < 5 (i.e. revision < 2.3) it's - * affected by several errata and basically unusable though. + * affected by several errata though. However, except for context + * flushes, taking advantage of it should be okay even with those. */ memcpy(&sc->sc_dma_methods, &iommu_dma_methods, sizeof(sc->sc_dma_methods)); @@ -509,8 +510,7 @@ schizo_attach(device_t dev) sc->sc_is.sis_is.is_flags = IOMMU_PRESERVE_PROM; sc->sc_is.sis_is.is_pmaxaddr = IOMMU_MAXADDR(STX_IOMMU_BITS); sc->sc_is.sis_is.is_sb[0] = sc->sc_is.sis_is.is_sb[1] = 0; - if (OF_getproplen(node, "no-streaming-cache") < 0 && - !(sc->sc_mode == SCHIZO_MODE_SCZ && sc->sc_ver < 5)) + if (OF_getproplen(node, "no-streaming-cache") < 0) sc->sc_is.sis_is.is_sb[0] = STX_PCI_STRBUF; #define TSBCASE(x) \ From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 05:56:26 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 408741065922; Sat, 1 Oct 2011 05:56:26 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 302BA8FC2B; Sat, 1 Oct 2011 05:56:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p915uQId003018; Sat, 1 Oct 2011 05:56:26 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p915uQH6003016; Sat, 1 Oct 2011 05:56:26 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201110010556.p915uQH6003016@svn.freebsd.org> From: Adrian Chadd Date: Sat, 1 Oct 2011 05:56:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225892 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 05:56:26 -0000 Author: adrian Date: Sat Oct 1 05:56:25 2011 New Revision: 225892 URL: http://svn.freebsd.org/changeset/base/225892 Log: Disable using wait in cpu_idle() until a better solution to timer and interrupt handling can be implemented. Modified: head/sys/mips/mips/machdep.c Modified: head/sys/mips/mips/machdep.c ============================================================================== --- head/sys/mips/mips/machdep.c Sat Oct 1 00:31:30 2011 (r225891) +++ head/sys/mips/mips/machdep.c Sat Oct 1 05:56:25 2011 (r225892) @@ -485,9 +485,24 @@ spinlock_exit(void) /* * call platform specific code to halt (until next interrupt) for the idle loop */ +/* + * This is disabled because of three issues: + * + * + By calling critical_enter(), any interrupt which occurs after that but + * before the wait instruction will be handled but not serviced (in the case + * of a netisr) because preemption is not allowed at this point; + * + Any fast interrupt handler which schedules an immediate or fast callout + * will not occur until the wait instruction is interrupted, as the clock + * has already been set by cpu_idleclock(); + * + There is currently no known way to atomically enable interrupts and call + * wait, which is how the i386/amd64 code gets around (1). Thus even if + * interrupts were disabled and reenabled just before the wait call, any + * interrupt that did occur may not interrupt wait. + */ void cpu_idle(int busy) { +#if 0 KASSERT((mips_rd_status() & MIPS_SR_INT_IE) != 0, ("interrupts disabled in idle process.")); KASSERT((mips_rd_status() & MIPS_INT_MASK) != 0, @@ -502,6 +517,7 @@ cpu_idle(int busy) cpu_activeclock(); critical_exit(); } +#endif } int From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 06:58:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7084D1065670; Sat, 1 Oct 2011 06:58:37 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id A7FAC8FC19; Sat, 1 Oct 2011 06:58:36 +0000 (UTC) Received: by wwe3 with SMTP id 3so3386843wwe.31 for ; Fri, 30 Sep 2011 23:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OqEWCpKFty6Ae25hv3Rmm66PZJBydYXSJrpTFzy4cUk=; b=M2EHf6BSVjSEYxts/FNiaaJSKqZ7DF4s4jkUcvE7M5lywehJyFJpXS1wC7V5Dp/4tC sDemUNY+22hDOwrQ2arLr3UWXU8Wq0W1d9AlNxWOj4MY8CreZTL6XvKDMcc3qkjVEY63 OVZer1ZI/wcOZsJVeMcmUy7jrXfG61lJtj5ac= MIME-Version: 1.0 Received: by 10.216.131.67 with SMTP id l45mr10342207wei.26.1317450629095; Fri, 30 Sep 2011 23:30:29 -0700 (PDT) Sender: c.jayachandran@gmail.com Received: by 10.216.154.5 with HTTP; Fri, 30 Sep 2011 23:30:29 -0700 (PDT) In-Reply-To: <201110010556.p915uQH6003016@svn.freebsd.org> References: <201110010556.p915uQH6003016@svn.freebsd.org> Date: Sat, 1 Oct 2011 12:00:29 +0530 X-Google-Sender-Auth: 5HfVmas3awecmU9_aedZ6Urq9-M Message-ID: From: "Jayachandran C." To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225892 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 06:58:37 -0000 Hi Adrian, On Sat, Oct 1, 2011 at 11:26 AM, Adrian Chadd wrote: > Author: adrian > Date: Sat Oct =A01 05:56:25 2011 > New Revision: 225892 > URL: http://svn.freebsd.org/changeset/base/225892 > > Log: > =A0Disable using wait in cpu_idle() until a better solution to timer and > =A0interrupt handling can be implemented. Taking out the whole thing looks like an overkill here - this is especially bad on XLR where busy wait on a hardware thread will take away cycles from the other hardware threads. The better workaround would be to revert to the version before r216862, which does not have the critical_enter/cpu_idleclock. JC. From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 07:09:18 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEFAB106564A; Sat, 1 Oct 2011 07:09:18 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3755D8FC14; Sat, 1 Oct 2011 07:09:17 +0000 (UTC) Received: by ywp17 with SMTP id 17so2679230ywp.13 for ; Sat, 01 Oct 2011 00:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=PSGxS5gT+W8SuRT5l8qBmw4epbm1DdO3/lfjYyfw1uA=; b=eJ7WqAYk20akEYVkXeRhj0ooYoEhZ93vwB0c/1QfWzMLxbVCiMQR2lKufOAMsuKskM P+fvRqlAVUkdgPxxAU1A6jfkiwwwSNv3wh0LOH+weOmYGyWYT6R7eEt0vck4AlbhdItq 4lgZoAO5d1XAtb8NMu/OxOovzegLJRQ3Iijpk= MIME-Version: 1.0 Received: by 10.236.129.165 with SMTP id h25mr19951029yhi.38.1317452957546; Sat, 01 Oct 2011 00:09:17 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.111.42 with HTTP; Sat, 1 Oct 2011 00:09:17 -0700 (PDT) In-Reply-To: References: <201110010556.p915uQH6003016@svn.freebsd.org> Date: Sat, 1 Oct 2011 15:09:17 +0800 X-Google-Sender-Auth: USs0jpW0mdDTdhFb-1Tq3N_G4Rc Message-ID: From: Adrian Chadd To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225892 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 07:09:18 -0000 Reverting it unfortunately doesn't help; it messes up the event timer stuff. I'd like to see a more permanent solution. What I suggest we do moving forward is: * create a function pointer setup, like what i386 does * override it per-platform and per-chipset, once we know what the correct behaviour should be. Are you able to figure out how to achieve correct timer/interrupt/wait handling on XLR? Adrian From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 07:21:23 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0ECF8106566C; Sat, 1 Oct 2011 07:21:23 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 24F738FC08; Sat, 1 Oct 2011 07:21:21 +0000 (UTC) Received: by wyj26 with SMTP id 26so2358498wyj.13 for ; Sat, 01 Oct 2011 00:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=fJJqvSsWjQc48JiU1eI+Zu+sW7vBeQODqjuACWQJfTc=; b=WXM3Uu6M0idKYOeCXESlTSMDGxvvTuwpc34ds3Y6AA0Cnu4DLKyJOAR8N1bL6qrjk6 5nP120AiH/jOeLllXDhFk7ZIb8TlDVNc/C7Tv0xdvfOZU0dVWWO+TzNN12rYaCdzeqqz UxpA32e9oCnzRWX0kCZG8+pRBsKD/T4hSaabE= MIME-Version: 1.0 Received: by 10.216.230.67 with SMTP id i45mr715447weq.56.1317453681056; Sat, 01 Oct 2011 00:21:21 -0700 (PDT) Sender: c.jayachandran@gmail.com Received: by 10.216.154.5 with HTTP; Sat, 1 Oct 2011 00:21:20 -0700 (PDT) In-Reply-To: References: <201110010556.p915uQH6003016@svn.freebsd.org> Date: Sat, 1 Oct 2011 12:51:20 +0530 X-Google-Sender-Auth: bGXSU-waAlAVlUdJMcDH6qA5F5Q Message-ID: From: "Jayachandran C." To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225892 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 07:21:23 -0000 On Sat, Oct 1, 2011 at 12:39 PM, Adrian Chadd wrote: > Reverting it unfortunately doesn't help; it messes up the event timer stuff. I would like to understand this, reverting r216862 would take out the critical_enter() and cpu_idleclock() which would keep the timer interrupts coming is as usual, this should not affect the event timer. > I'd like to see a more permanent solution. What I suggest we do moving > forward is: > > * create a function pointer setup, like what i386 does > * override it per-platform and per-chipset, once we know what the > correct behaviour should be. > > Are you able to figure out how to achieve correct timer/interrupt/wait > handling on XLR? I'm not aware of any platforms which provide an equivalent of 'sti', so going for an implementation per platform may not help. JC. From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 08:50:56 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF0E81065672; Sat, 1 Oct 2011 08:50:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4D60B8FC18; Sat, 1 Oct 2011 08:50:56 +0000 (UTC) Received: by vws11 with SMTP id 11so2637804vws.13 for ; Sat, 01 Oct 2011 01:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=j1Ow5aVxc4AG8vCbipX2HAlssnLILNYmvTH0r+tocqQ=; b=Kx2TYauz8fu9aMVpV+juOKxsDLHT4zVdZtKCArdTSCxx2ZoxSLblfvhFH/HG5PcYaM MEHJI2sHOqNU2WCL7gJWrYu/kaLPbrI8BvWs9qXvLPkIB1P1vze+PA/HG+3BoY1lW/4j 8Wsh/Q0l8/7ReTWa8p/GroQ0KQol7pswLUh5Y= MIME-Version: 1.0 Received: by 10.52.68.203 with SMTP id y11mr2901300vdt.462.1317459055567; Sat, 01 Oct 2011 01:50:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.161.138 with HTTP; Sat, 1 Oct 2011 01:50:55 -0700 (PDT) In-Reply-To: References: <201110010556.p915uQH6003016@svn.freebsd.org> Date: Sat, 1 Oct 2011 16:50:55 +0800 X-Google-Sender-Auth: rDBbFlgcRf85jmXUkq0yopvpp6g Message-ID: From: Adrian Chadd To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225892 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 08:50:56 -0000 On 1 October 2011 15:21, Jayachandran C. wrote: > I would like to understand this, reverting r216862 would take out the > critical_enter() and cpu_idleclock() which would keep the timer > interrupts coming is as usual, this should not affect the event timer. Because the fundamental problem still exists w/out preemption - netisr/taskqueue scheduling doesn't happen if it happens just before the wait call. I haven't verified that mav's timer stuff does the correct thing by configuring the clock timer to occur every 1000hz in this instance. I kinda hope so. If I flip on preemption, then this may be fixed, but flipping on preemption causes other issues on the single-core MIPS boards that I've used when doing high-throughput 11n NIC testing. I don't (yet) know why. In any case, I think it's worth writing per-platform/per-chip cpu_idle() functions and set it up at boot/probe time. I'll happy do it if you're happy to do the digging with XLR to ensure this is all handled accurately in that instance. I just don't have the deep MIPS clue needed to ensure this is all correct and noone really piped up to come up with a better solution. I really want to see this all work correctly. :) Adrian From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 08:54:55 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21214106564A; Sat, 1 Oct 2011 08:54:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 895D08FC1C; Sat, 1 Oct 2011 08:54:54 +0000 (UTC) Received: by vcbf13 with SMTP id f13so2630836vcb.13 for ; Sat, 01 Oct 2011 01:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=y8L1U2w3rK/oMROABPCkl5ap26qgV1aI7Zl0387MpRg=; b=voyzUV9CJudyLS2He/4+glEZlyV/qxgGbLjzwe7tjfC7ogFHzTfaNU3GzW6jw3NkqB WdnzdfaM79yWYhKOjY0KHkcUY0LDr+OhVh/DmzqNlSMwe+G0IbF/5RLFNi/ZQDlA331J aioyA8C4HsiK2rbVBdXVWPldP28WfvDkFXmfw= MIME-Version: 1.0 Received: by 10.52.98.167 with SMTP id ej7mr2366992vdb.529.1317459293713; Sat, 01 Oct 2011 01:54:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.161.138 with HTTP; Sat, 1 Oct 2011 01:54:53 -0700 (PDT) In-Reply-To: References: <201110010556.p915uQH6003016@svn.freebsd.org> Date: Sat, 1 Oct 2011 16:54:53 +0800 X-Google-Sender-Auth: PxoeIInuPAZFKHE6FlwEeY2UoLQ Message-ID: From: Adrian Chadd To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225892 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 08:54:55 -0000 .. and somehow linux mips code does do a variety of WAIT-y things; how is it they don't have the interrupt handling issues we do? Is it because they're doing preemption? If so, how do they accurately handle hz clock pulses when an interrupt may preempt things just before that wait instruction occurs? Adrian From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 09:16:07 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 638C0106566B; Sat, 1 Oct 2011 09:16:07 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 53F608FC13; Sat, 1 Oct 2011 09:16:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p919G7sT008933; Sat, 1 Oct 2011 09:16:07 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p919G7f2008931; Sat, 1 Oct 2011 09:16:07 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201110010916.p919G7f2008931@svn.freebsd.org> From: Ed Schouten Date: Sat, 1 Oct 2011 09:16:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225893 - head/usr.bin/fstat X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 09:16:07 -0000 Author: ed Date: Sat Oct 1 09:16:07 2011 New Revision: 225893 URL: http://svn.freebsd.org/changeset/base/225893 Log: Correct column with for device numbers made in previous change. The device number should be displayed using only five columns -- not eight. Modified: head/usr.bin/fstat/fstat.c Modified: head/usr.bin/fstat/fstat.c ============================================================================== --- head/usr.bin/fstat/fstat.c Sat Oct 1 05:56:25 2011 (r225892) +++ head/usr.bin/fstat/fstat.c Sat Oct 1 09:16:07 2011 (r225893) @@ -441,7 +441,7 @@ print_vnode_info(struct procstat *procst } if (nflg) - printf(" %#8jx", (uintmax_t)vn.vn_fsid); + printf(" %#5jx", (uintmax_t)vn.vn_fsid); else if (vn.vn_mntdir != NULL) (void)printf(" %-8s", vn.vn_mntdir); From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 10:18:55 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA51B1065674; Sat, 1 Oct 2011 10:18:55 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AA74A8FC17; Sat, 1 Oct 2011 10:18:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91AItcq010924; Sat, 1 Oct 2011 10:18:55 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91AItDp010921; Sat, 1 Oct 2011 10:18:55 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201110011018.p91AItDp010921@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 1 Oct 2011 10:18:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225894 - in head/sys: kern sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 10:18:55 -0000 Author: kib Date: Sat Oct 1 10:18:55 2011 New Revision: 225894 URL: http://svn.freebsd.org/changeset/base/225894 Log: The sigwait(3) function shall not return EINTR, according to the POSIX/SUSvN. The sigwait(2) syscall does return EINTR, and libc.so.7 contains the wrapper sigwait(3) which hides EINTR from callers. The EINTR return is used by libthr to handle required cancellation point in the sigwait(3). To help the binaries linked against pre-libc.so.7, i.e. RELENG_6 and earlier, to have right ABI for sigwait(3), transform EINTR return from sigwait(2) into ERESTART. Discussed with: davidxu MFC after: 1 week Modified: head/sys/kern/kern_sig.c head/sys/sys/param.h Modified: head/sys/kern/kern_sig.c ============================================================================== --- head/sys/kern/kern_sig.c Sat Oct 1 09:16:07 2011 (r225893) +++ head/sys/kern/kern_sig.c Sat Oct 1 10:18:55 2011 (r225894) @@ -1094,6 +1094,8 @@ sys_sigwait(struct thread *td, struct si error = kern_sigtimedwait(td, set, &ksi, NULL); if (error) { + if (error == EINTR && td->td_proc->p_osrel < P_OSREL_SIGWAIT) + error = ERESTART; if (error == ERESTART) return (error); td->td_retval[0] = error; Modified: head/sys/sys/param.h ============================================================================== --- head/sys/sys/param.h Sat Oct 1 09:16:07 2011 (r225893) +++ head/sys/sys/param.h Sat Oct 1 10:18:55 2011 (r225894) @@ -61,6 +61,7 @@ #define __FreeBSD_version 1000000 /* Master, propagated to newvers */ #ifdef _KERNEL +#define P_OSREL_SIGWAIT 700000 #define P_OSREL_SIGSEGV 700004 #define P_OSREL_MAP_ANON 800104 #endif From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 10:23:01 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C00CB106564A; Sat, 1 Oct 2011 10:23:01 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 1F80A8FC08; Sat, 1 Oct 2011 10:23:00 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p91AMtjh050054 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 1 Oct 2011 13:22:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p91AMttS064248; Sat, 1 Oct 2011 13:22:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p91AMtmU064247; Sat, 1 Oct 2011 13:22:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 1 Oct 2011 13:22:55 +0300 From: Kostik Belousov To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: <20111001102255.GC1511@deviant.kiev.zoral.com.ua> References: <201110011018.p91AItDp010921@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CYvw4a70jcGnzNfi" Content-Disposition: inline In-Reply-To: <201110011018.p91AItDp010921@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Subject: Re: svn commit: r225894 - in head/sys: kern sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 10:23:01 -0000 --CYvw4a70jcGnzNfi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 01, 2011 at 10:18:55AM +0000, Konstantin Belousov wrote: > Author: kib > Date: Sat Oct 1 10:18:55 2011 > New Revision: 225894 > URL: http://svn.freebsd.org/changeset/base/225894 >=20 > Log: > The sigwait(3) function shall not return EINTR, according to the > POSIX/SUSvN. The sigwait(2) syscall does return EINTR, and libc.so.7 > contains the wrapper sigwait(3) which hides EINTR from callers. The r212405 will be merged to stable/8 shortly. > EINTR return is used by libthr to handle required cancellation point > in the sigwait(3). > =20 > To help the binaries linked against pre-libc.so.7, i.e. RELENG_6 and > earlier, to have right ABI for sigwait(3), transform EINTR return from > sigwait(2) into ERESTART. This leaves the static binaries linked against libc.a from a system with libc.so.N, where N < 7 or N =3D=3D 7 and does not contain r212405, with the broken sigwait(). More intrusive change is to allocate new syscall number for sigwait(2), and change old sigwait(2) to never return EINTR. Then, the static binaries linked on HEAD and stable/9 prior to introduction of the new sigwait syscall numbers will have broken cancellation at sigwait. I had this done, but sort of agreement we reached is to go with less intrusive commit you see. And before you ask, the story started from the real user report of a broken binary-only program that is not prepared to handle EINTR there. --CYvw4a70jcGnzNfi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6G6f8ACgkQC3+MBN1Mb4iJ5wCcD2XQJUtLmnDu00Su3uP1Hpud NyoAn3qAcKbac+hPO70tgtGoKBQhwCI3 =N9TP -----END PGP SIGNATURE----- --CYvw4a70jcGnzNfi-- From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 11:13:15 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19D7F106566B; Sat, 1 Oct 2011 11:13:15 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3D3BD8FC13; Sat, 1 Oct 2011 11:13:13 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so3355444bkb.13 for ; Sat, 01 Oct 2011 04:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=ZDVQxfn2RQK6EipuEbyj1H1vzyLotzIWlKgu0zfkUrI=; b=T1vTeaGw6Z7aQx5PuXKMclztqaGU5qsy0Sb6fm0j0B6RogX+Qytqv2YBfZMiT/7cQ7 KU0ddv33YoAWJa7pgZ4SRelVwIQogVk/mxEsfR54E77fCngmaHJc2vOMgd294mbYahc1 2Js2ImkPgtwQ65ZePq5mSfHOjWE2OzFoMRPvw= Received: by 10.223.29.69 with SMTP id p5mr3530445fac.35.1317466178985; Sat, 01 Oct 2011 03:49:38 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id k26sm10976612fab.12.2011.10.01.03.49.37 (version=SSLv3 cipher=OTHER); Sat, 01 Oct 2011 03:49:38 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E86F033.9040305@FreeBSD.org> Date: Sat, 01 Oct 2011 13:49:23 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Adrian Chadd References: <201110010556.p915uQH6003016@svn.freebsd.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Jayachandran C." , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225892 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 11:13:15 -0000 Adrian Chadd wrote: > .. and somehow linux mips code does do a variety of WAIT-y things; how > is it they don't have the interrupt handling issues we do? > Is it because they're doing preemption? If so, how do they accurately > handle hz clock pulses when an interrupt may preempt things just > before that wait instruction occurs? I may be wrong, it was time ago, but I think I've seen they doing some timer stuff within each interrupt handler. FreeBSD neither has unified place to do it now, nor I much like to add some overhead to every possible interrupt in a system. Present implementation supposed to be a compromise. -- Alexander Motin From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 11:21:01 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B61D106566B; Sat, 1 Oct 2011 11:21:01 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 044638FC15; Sat, 1 Oct 2011 11:20:59 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so3362797bkb.13 for ; Sat, 01 Oct 2011 04:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=DtQJeCY9P9QbUsi6IK/VIbu4kg00+FPwPy7mTdHkJQI=; b=gG076iB8U1kNgOYlyTPl0RHuyL5AnbTdmcPLKYIUL+ezydAbjMfqzQpmVXwK/CrPRb iDNzeY+A+BuJ9IU+/cYKHaurLeKsVVdBaqS8PVe595cwePSUO1hJO0LvyX0lp7jODGCf LCEkPp307dSxuhOupY4y0ko7i5XR9sL+N2NTU= Received: by 10.223.46.89 with SMTP id i25mr20162849faf.34.1317468058768; Sat, 01 Oct 2011 04:20:58 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id k26sm11092788fab.12.2011.10.01.04.20.57 (version=SSLv3 cipher=OTHER); Sat, 01 Oct 2011 04:20:58 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E86F78B.7050707@FreeBSD.org> Date: Sat, 01 Oct 2011 14:20:43 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Adrian Chadd References: <201110010556.p915uQH6003016@svn.freebsd.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Jayachandran C." , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225892 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 11:21:01 -0000 Adrian Chadd wrote: > On 1 October 2011 15:21, Jayachandran C. wrote: > >> I would like to understand this, reverting r216862 would take out the >> critical_enter() and cpu_idleclock() which would keep the timer >> interrupts coming is as usual, this should not affect the event timer. > > I haven't verified that mav's timer stuff does the correct thing by > configuring the clock timer to occur every 1000hz in this instance. I > kinda hope so. When setting kern.eventtimer.idletick=1, you were effectively disabling cpu_idleclock()/cpu_activeclock() and you've properly received about 1127 timer interrupts per second (mix of 1000 of hz and 127 of stathz). Also when CPU is busy or has high interrupt/context switch rate, that happen automatically, so it definitely works. If you are talking about programming hardware timer for periodic 1000Hz rate, it doesn't happen automatically, because I doubt benefits it gives worth strict aliasing of hardclock() and statclock() it causes. If you like, you can do it manually via kern.eventtimer.periodic=1. -- Alexander Motin From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 11:49:25 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42D8F106566B; Sat, 1 Oct 2011 11:49:25 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 28ED78FC0A; Sat, 1 Oct 2011 11:49:25 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91BnPLV015804; Sat, 1 Oct 2011 11:49:25 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91BnP96015802; Sat, 1 Oct 2011 11:49:25 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201110011149.p91BnP96015802@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 1 Oct 2011 11:49:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225895 - stable/8/lib/libthr/thread X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 11:49:25 -0000 Author: kib Date: Sat Oct 1 11:49:24 2011 New Revision: 225895 URL: http://svn.freebsd.org/changeset/base/225895 Log: MFC r211526: Reduce redundant code. Modified: stable/8/lib/libthr/thread/thr_sig.c Directory Properties: stable/8/lib/libthr/ (props changed) Modified: stable/8/lib/libthr/thread/thr_sig.c ============================================================================== --- stable/8/lib/libthr/thread/thr_sig.c Sat Oct 1 10:18:55 2011 (r225894) +++ stable/8/lib/libthr/thread/thr_sig.c Sat Oct 1 11:49:24 2011 (r225895) @@ -233,23 +233,26 @@ _pthread_sigmask(int how, const sigset_t __weak_reference(__sigsuspend, sigsuspend); -int -_sigsuspend(const sigset_t * set) +static const sigset_t * +thr_remove_thr_signals(const sigset_t *set, sigset_t *newset) { - sigset_t newset; const sigset_t *pset; - int ret; if (SIGISMEMBER(*set, SIGCANCEL)) { - newset = *set; - SIGDELSET(newset, SIGCANCEL); - pset = &newset; + *newset = *set; + SIGDELSET(*newset, SIGCANCEL); + pset = newset; } else pset = set; + return (pset); +} - ret = __sys_sigsuspend(pset); +int +_sigsuspend(const sigset_t * set) +{ + sigset_t newset; - return (ret); + return (__sys_sigsuspend(thr_remove_thr_signals(set, &newset))); } int @@ -257,18 +260,10 @@ __sigsuspend(const sigset_t * set) { struct pthread *curthread = _get_curthread(); sigset_t newset; - const sigset_t *pset; int ret; - if (SIGISMEMBER(*set, SIGCANCEL)) { - newset = *set; - SIGDELSET(newset, SIGCANCEL); - pset = &newset; - } else - pset = set; - _thr_cancel_enter(curthread); - ret = __sys_sigsuspend(pset); + ret = __sys_sigsuspend(thr_remove_thr_signals(set, &newset)); _thr_cancel_leave(curthread); return (ret); @@ -283,17 +278,9 @@ _sigtimedwait(const sigset_t *set, sigin const struct timespec * timeout) { sigset_t newset; - const sigset_t *pset; - int ret; - if (SIGISMEMBER(*set, SIGCANCEL)) { - newset = *set; - SIGDELSET(newset, SIGCANCEL); - pset = &newset; - } else - pset = set; - ret = __sys_sigtimedwait(pset, info, timeout); - return (ret); + return (__sys_sigtimedwait(thr_remove_thr_signals(set, &newset), info, + timeout)); } int @@ -302,17 +289,11 @@ __sigtimedwait(const sigset_t *set, sigi { struct pthread *curthread = _get_curthread(); sigset_t newset; - const sigset_t *pset; int ret; - if (SIGISMEMBER(*set, SIGCANCEL)) { - newset = *set; - SIGDELSET(newset, SIGCANCEL); - pset = &newset; - } else - pset = set; _thr_cancel_enter(curthread); - ret = __sys_sigtimedwait(pset, info, timeout); + ret = __sys_sigtimedwait(thr_remove_thr_signals(set, &newset), info, + timeout); _thr_cancel_leave(curthread); return (ret); } @@ -321,18 +302,8 @@ int _sigwaitinfo(const sigset_t *set, siginfo_t *info) { sigset_t newset; - const sigset_t *pset; - int ret; - - if (SIGISMEMBER(*set, SIGCANCEL)) { - newset = *set; - SIGDELSET(newset, SIGCANCEL); - pset = &newset; - } else - pset = set; - ret = __sys_sigwaitinfo(pset, info); - return (ret); + return (__sys_sigwaitinfo(thr_remove_thr_signals(set, &newset), info)); } int @@ -340,18 +311,10 @@ __sigwaitinfo(const sigset_t *set, sigin { struct pthread *curthread = _get_curthread(); sigset_t newset; - const sigset_t *pset; int ret; - if (SIGISMEMBER(*set, SIGCANCEL)) { - newset = *set; - SIGDELSET(newset, SIGCANCEL); - pset = &newset; - } else - pset = set; - _thr_cancel_enter(curthread); - ret = __sys_sigwaitinfo(pset, info); + ret = __sys_sigwaitinfo(thr_remove_thr_signals(set, &newset), info); _thr_cancel_leave(curthread); return (ret); } @@ -360,18 +323,8 @@ int _sigwait(const sigset_t *set, int *sig) { sigset_t newset; - const sigset_t *pset; - int ret; - - if (SIGISMEMBER(*set, SIGCANCEL)) { - newset = *set; - SIGDELSET(newset, SIGCANCEL); - pset = &newset; - } else - pset = set; - ret = __sys_sigwait(pset, sig); - return (ret); + return (__sys_sigwait(thr_remove_thr_signals(set, &newset), sig)); } int @@ -379,18 +332,10 @@ __sigwait(const sigset_t *set, int *sig) { struct pthread *curthread = _get_curthread(); sigset_t newset; - const sigset_t *pset; int ret; - if (SIGISMEMBER(*set, SIGCANCEL)) { - newset = *set; - SIGDELSET(newset, SIGCANCEL); - pset = &newset; - } else - pset = set; - _thr_cancel_enter(curthread); - ret = __sys_sigwait(pset, sig); + ret = __sys_sigwait(thr_remove_thr_signals(set, &newset), sig); _thr_cancel_leave(curthread); return (ret); } From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 11:59:45 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4FD9106566C; Sat, 1 Oct 2011 11:59:45 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 932A98FC17; Sat, 1 Oct 2011 11:59:45 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91BxjqG016153; Sat, 1 Oct 2011 11:59:45 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91Bxj1N016147; Sat, 1 Oct 2011 11:59:45 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201110011159.p91Bxj1N016147@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 1 Oct 2011 11:59:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225896 - in stable/8/lib: libc/stdlib libc/sys libthr/thread X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 11:59:45 -0000 Author: kib Date: Sat Oct 1 11:59:45 2011 New Revision: 225896 URL: http://svn.freebsd.org/changeset/base/225896 Log: MFC r212405 (by davidxu): Because POSIX does not allow EINTR to be returned from sigwait(), add a wrapper for it in libc and rework the code in libthr, the system call still can return EINTR, we keep this feature. Discussed with: davidxu Added: stable/8/lib/libc/sys/sigwait.c - copied unchanged from r212405, head/lib/libc/sys/sigwait.c Modified: stable/8/lib/libc/stdlib/Makefile.inc stable/8/lib/libc/sys/Makefile.inc stable/8/lib/libc/sys/Symbol.map stable/8/lib/libthr/thread/thr_sig.c Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/stdtime/ (props changed) stable/8/lib/libthr/ (props changed) Modified: stable/8/lib/libc/stdlib/Makefile.inc ============================================================================== --- stable/8/lib/libc/stdlib/Makefile.inc Sat Oct 1 11:49:24 2011 (r225895) +++ stable/8/lib/libc/stdlib/Makefile.inc Sat Oct 1 11:59:45 2011 (r225896) @@ -9,7 +9,7 @@ MISRCS+=_Exit.c a64l.c abort.c abs.c ate getsubopt.c hcreate.c heapsort.c imaxabs.c imaxdiv.c \ insque.c l64a.c labs.c ldiv.c llabs.c lldiv.c lsearch.c malloc.c \ merge.c ptsname.c qsort.c qsort_r.c radixsort.c rand.c random.c \ - reallocf.c realpath.c remque.c strfmon.c strtoimax.c \ + reallocf.c realpath.c remque.c sigwait.c strfmon.c strtoimax.c \ strtol.c strtoll.c strtoq.c strtoul.c strtonum.c strtoull.c \ strtoumax.c strtouq.c system.c tdelete.c tfind.c tsearch.c twalk.c Modified: stable/8/lib/libc/sys/Makefile.inc ============================================================================== --- stable/8/lib/libc/sys/Makefile.inc Sat Oct 1 11:49:24 2011 (r225895) +++ stable/8/lib/libc/sys/Makefile.inc Sat Oct 1 11:59:45 2011 (r225896) @@ -23,6 +23,9 @@ SRCS+= stack_protector.c stack_protector SRCS+= fcntl.c ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c PSEUDO+= _fcntl.o .endif +SRCS+= sigwait.c +NOASM+= sigwait.o +PSEUDO+= _sigwait.o # Add machine dependent asm sources: SRCS+=${MDASM} Modified: stable/8/lib/libc/sys/Symbol.map ============================================================================== --- stable/8/lib/libc/sys/Symbol.map Sat Oct 1 11:49:24 2011 (r225895) +++ stable/8/lib/libc/sys/Symbol.map Sat Oct 1 11:59:45 2011 (r225896) @@ -917,6 +917,7 @@ FBSDprivate_1.0 { _sigtimedwait; __sys_sigtimedwait; _sigwait; + __sigwait; __sys_sigwait; _sigwaitinfo; __sys_sigwaitinfo; Copied: stable/8/lib/libc/sys/sigwait.c (from r212405, head/lib/libc/sys/sigwait.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/8/lib/libc/sys/sigwait.c Sat Oct 1 11:59:45 2011 (r225896, copy of r212405, head/lib/libc/sys/sigwait.c) @@ -0,0 +1,46 @@ +/*- + * Copyright (c) 2010 davidxu@freebsd.org + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include + +int __sys_sigwait(const sigset_t * restrict, int * restrict); + +__weak_reference(__sigwait, sigwait); + +int +__sigwait(const sigset_t * restrict set, int * restrict sig) +{ + int ret; + + /* POSIX does not allow EINTR to be returned */ + do { + ret = __sys_sigwait(set, sig); + } while (ret == EINTR); + return (ret); +} Modified: stable/8/lib/libthr/thread/thr_sig.c ============================================================================== --- stable/8/lib/libthr/thread/thr_sig.c Sat Oct 1 11:49:24 2011 (r225895) +++ stable/8/lib/libthr/thread/thr_sig.c Sat Oct 1 11:59:45 2011 (r225896) @@ -56,7 +56,7 @@ int _sigtimedwait(const sigset_t *set, s const struct timespec * timeout); int __sigwaitinfo(const sigset_t *set, siginfo_t *info); int _sigwaitinfo(const sigset_t *set, siginfo_t *info); -int __sigwait(const sigset_t *set, int *sig); +int ___sigwait(const sigset_t *set, int *sig); int _sigwait(const sigset_t *set, int *sig); int __sigsuspend(const sigset_t *sigmask); @@ -269,7 +269,7 @@ __sigsuspend(const sigset_t * set) return (ret); } -__weak_reference(__sigwait, sigwait); +__weak_reference(___sigwait, sigwait); __weak_reference(__sigtimedwait, sigtimedwait); __weak_reference(__sigwaitinfo, sigwaitinfo); @@ -328,14 +328,16 @@ _sigwait(const sigset_t *set, int *sig) } int -__sigwait(const sigset_t *set, int *sig) +___sigwait(const sigset_t *set, int *sig) { struct pthread *curthread = _get_curthread(); sigset_t newset; int ret; - _thr_cancel_enter(curthread); - ret = __sys_sigwait(thr_remove_thr_signals(set, &newset), sig); - _thr_cancel_leave(curthread); + do { + _thr_cancel_enter(curthread); + ret = __sys_sigwait(thr_remove_thr_signals(set, &newset), sig); + _thr_cancel_leave(curthread); + } while (ret == EINTR); return (ret); } From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 12:19:48 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A790A106566B; Sat, 1 Oct 2011 12:19:48 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8C64C8FC13; Sat, 1 Oct 2011 12:19:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91CJmTh016770; Sat, 1 Oct 2011 12:19:48 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91CJmTc016767; Sat, 1 Oct 2011 12:19:48 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201110011219.p91CJmTc016767@svn.freebsd.org> From: Ed Schouten Date: Sat, 1 Oct 2011 12:19:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225897 - head/lib/libc/gen X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 12:19:48 -0000 Author: ed Date: Sat Oct 1 12:19:48 2011 New Revision: 225897 URL: http://svn.freebsd.org/changeset/base/225897 Log: Reimplement ctermid(). Even though POSIX allows us to return simply /dev/tty as a pathname identifying the controlling terminal of the running process, it is nicer if this function were actually useful, by returning the actual pathname of the controlling terminal. Implement ctermid() by using the kern.devname sysctl to resolve the actual name of /dev/tty. Don't use devname(3), since it may return bogus strings like #C:0x123. Modified: head/lib/libc/gen/ctermid.3 head/lib/libc/gen/ctermid.c Modified: head/lib/libc/gen/ctermid.3 ============================================================================== --- head/lib/libc/gen/ctermid.3 Sat Oct 1 11:59:45 2011 (r225896) +++ head/lib/libc/gen/ctermid.3 Sat Oct 1 12:19:48 2011 (r225897) @@ -28,7 +28,7 @@ .\" @(#)ctermid.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd October 1, 2011 .Dt CTERMID 3 .Os .Sh NAME @@ -77,7 +77,8 @@ pointer, .Dv NULL is returned. .Pp -The current implementation simply returns +If no suitable lookup of the controlling terminal name can be performed, +this implementation returns .Ql /dev/tty . .Sh RETURN VALUES Upon successful completion, a Modified: head/lib/libc/gen/ctermid.c ============================================================================== --- head/lib/libc/gen/ctermid.c Sat Oct 1 11:59:45 2011 (r225896) +++ head/lib/libc/gen/ctermid.c Sat Oct 1 12:19:48 2011 (r225897) @@ -1,6 +1,6 @@ /*- - * Copyright (c) 1990, 1993 - * The Regents of the University of California. All rights reserved. + * Copyright (c) 2011 Ed Schouten + * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -10,14 +10,11 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) @@ -27,31 +24,47 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)ctermid.c 8.1 (Berkeley) 6/4/93"; -#endif /* LIBC_SCCS and not lint */ #include __FBSDID("$FreeBSD$"); -#include +#include +#include +#include + +#include #include +#include #include +#define LEN_PATH_DEV (sizeof(_PATH_DEV) - 1) + char * ctermid(char *s) { - static char def[] = _PATH_TTY; - - if (s) { - bcopy(def, s, sizeof(_PATH_TTY)); - return(s); - } - return(def); + static char def[sizeof(_PATH_DEV) + SPECNAMELEN]; + struct stat sb; + size_t dlen; + int sverrno; + + if (s == NULL) { + s = def; + dlen = sizeof(def) - LEN_PATH_DEV; + } else + dlen = L_ctermid - LEN_PATH_DEV; + strcpy(s, _PATH_TTY); + + /* Attempt to perform a lookup of the actual TTY pathname. */ + sverrno = errno; + if (stat(_PATH_TTY, &sb) == 0 && S_ISCHR(sb.st_mode)) + (void)sysctlbyname("kern.devname", s + LEN_PATH_DEV, + &dlen, &sb.st_rdev, sizeof(sb.st_rdev)); + errno = sverrno; + return (s); } - char * ctermid_r(char *s) { - return (s) ? ctermid(s) : NULL; + + return (s != NULL ? ctermid(s) : NULL); } From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 12:35:10 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72F78106566C; Sat, 1 Oct 2011 12:35:10 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 48CC78FC08; Sat, 1 Oct 2011 12:35:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91CZABQ017275; Sat, 1 Oct 2011 12:35:10 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91CZAoQ017272; Sat, 1 Oct 2011 12:35:10 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201110011235.p91CZAoQ017272@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 1 Oct 2011 12:35:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225898 - stable/8/lib/libc/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 12:35:10 -0000 Author: kib Date: Sat Oct 1 12:35:09 2011 New Revision: 225898 URL: http://svn.freebsd.org/changeset/base/225898 Log: MFC r225172: Clarify the behaviour of sigwait() on signal interruption, and note the difference between sigwait() and sigtimedwait()/sigwaitinfo(). Modified: stable/8/lib/libc/sys/sigwait.2 stable/8/lib/libc/sys/sigwaitinfo.2 Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/stdtime/ (props changed) Modified: stable/8/lib/libc/sys/sigwait.2 ============================================================================== --- stable/8/lib/libc/sys/sigwait.2 Sat Oct 1 12:19:48 2011 (r225897) +++ stable/8/lib/libc/sys/sigwait.2 Sat Oct 1 12:35:09 2011 (r225898) @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 11, 2005 +.Dd August 24, 2011 .Dt SIGWAIT 2 .Os .Sh NAME @@ -82,6 +82,14 @@ selected, it will be the lowest numbered The selection order between realtime and non-realtime signals, or between multiple pending non-realtime signals, is unspecified. +.Sh IMPLEMENTATION NOTES +The +.Fn sigwait +function is implemented as a wrapper around the +.Fn __sys_sigwait +system call, which retries the call on +.Er EINTR +error. .Sh RETURN VALUES If successful, .Fn sigwait Modified: stable/8/lib/libc/sys/sigwaitinfo.2 ============================================================================== --- stable/8/lib/libc/sys/sigwaitinfo.2 Sat Oct 1 12:19:48 2011 (r225897) +++ stable/8/lib/libc/sys/sigwaitinfo.2 Sat Oct 1 12:35:09 2011 (r225898) @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 11, 2005 +.Dd August 24, 2011 .Dt SIGTIMEDWAIT 2 .Os .Sh NAME @@ -116,6 +116,16 @@ except that the selected signal number s member, and the cause of the signal shall be stored in the .Va si_code member. +Besides this, the +.Fn sigwaitinfo +and +.Fn sigtimedwait +system calls may return +.Er EINTR +if interrupted by signal, which is not allowed for the +.Fn sigwait +function. +.Pp If any value is queued to the selected signal, the first such queued value is dequeued and, if the info argument is .Pf non- Dv NULL , From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 12:43:23 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id A7D19106566C; Sat, 1 Oct 2011 12:43:23 +0000 (UTC) Date: Sat, 1 Oct 2011 12:43:23 +0000 From: Alexander Best To: Edward Tomasz Napiera?a Message-ID: <20111001124323.GA14050@freebsd.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <11B87D92-4C1E-4AD9-BEC5-13D28B022FB1@FreeBSD.org> <20110929185700.GA18684@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 12:43:23 -0000 On Fri Sep 30 11, Edward Tomasz Napiera?a wrote: > Wiadomo?? napisana przez Alexander Best w dniu 29 wrz 2011, o godz. 20:57: > > On Thu Sep 29 11, Edward Tomasz Napiera?a wrote: > >> Wiadomo?? napisana przez Alexander Best w dniu 29 wrz 2011, o godz. 14:14: > >>> On Thu Sep 29 11, Edward Tomasz Napierala wrote: > >>>> Author: trasz > >>>> Date: Thu Sep 29 06:31:42 2011 > >>>> New Revision: 225868 > >>>> URL: http://svn.freebsd.org/changeset/base/225868 > >>>> > >>>> Log: > >>>> Make ps(1) automatically size its column widths. > >>> > >>> cool to see this committed. :) > >>> > >>> i think i wrote you about the two spaces between the "TT" and "TIME" field > >>> some time ago. you said that the "TT" entry can contain a postfix "-". can > >>> you describe a situation, where this can occur? i've never seen the "TT" field > >>> contain an entry larger than 2 chars. > >> > >> Login via ssh, run "nohup sleep 1000 &", then logout. > > > > maybe it would also be possible to introduce unit symbols for the "vsz" and > > "rss" fields. they are getting really huge on systems with a long uptime > > (*cough* mem leaks) and kilobyte granularity isn't really that great when > > those fields are nearing 1GB. > > I thought about it, but the "-h" option is already taken. maybe making unit symbols the default behavior and introducing a -k flag, which toggles between the unit symbol mode and the traditional kilobyte mode? we could then add an envar $PS, so users can set PS=-k to restore the historic ps(1) behavior. a note to the BUGS section could then be added, similar to the note in top(1)'s BUGS section regarding the -I flag, which explains that ps(1)es semantics were changed, but can be restored via PS=-k. cheers. alex > > -- > If you cut off my head, what would I say? Me and my head, or me and my body? From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 13:06:44 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8634106564A; Sat, 1 Oct 2011 13:06:44 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 8D19F8FC0C; Sat, 1 Oct 2011 13:06:44 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id F41342A28CE3; Sat, 1 Oct 2011 15:06:43 +0200 (CEST) Date: Sat, 1 Oct 2011 15:06:43 +0200 From: Ed Schouten To: Alexander Best Message-ID: <20111001130643.GC91943@hoeg.nl> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JGq01gMRpXZxBGpH" Content-Disposition: inline In-Reply-To: <20110929121457.GA53600@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Edward Tomasz Napierala Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 13:06:44 -0000 --JGq01gMRpXZxBGpH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alexander Best , 20110929 14:14: > i think i wrote you about the two spaces between the "TT" and "TIME" field > some time ago. you said that the "TT" entry can contain a postfix "-". can > you describe a situation, where this can occur? i've never seen the "TT" = field > contain an entry larger than 2 chars. Also, it would be better if we replaced the "??" string with "-". When we print "??", it actually means: this process has no controlling terminal, not that we don't know which TTY it is. --=20 Ed Schouten WWW: http://80386.nl/ --JGq01gMRpXZxBGpH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOhxBjAAoJEG5e2P40kaK7gHwP/149fbKOPo8BG0pHMNZE9ozN 1MxGcDk5GrY/5jFcPaUqpppAbv6K4uL2pA36aDgAIJNGwwiRUAIczDFM/vmEpAtb VTcqNqWdZ1eeDgaryc82F/C3oJyKJQAMcGHHoiKx4elL9yG522vh7GTiLmyl3fUB eryiYrbmk5TlZGQG7+8NUK9wM5f0Hpm3XyppoyeKGJR+xhFxpI85NU/djVUdOBtc Ko57VMpz/0POO3KRWGRbZKavFaj7wAdqW0tLnDRkZrbrW110R/ZbmlekmSnIz5M+ i6jRb2BkHf6rvk1XhSjGKidGJzWJTxZFdsxTFm86bJPISpDwrsbMqgN7/z4+kLKJ SjlrQQBE1eLzYW4pR94Ks9NZoUnJVuSOj9gKlLabk5jcX5TffpMGN9CnySnK/lwe nGMCK5EAExM65NT7OxQJqAyJzreqxo+NTiEg2AzpI64gBY3Ec/WWqYt3Diw/hywI TkSLB+qjJtPbpUMytR/LqvqFfIESqN3HsmbMcVa3EbqbBvn4+Np3KKj23acfUMZz G35fkUXpZeZOUsFxodKMOleN+3FjF+ZTgUUvDJWreNMuMcmFWlOm8XO/zABZKx3U 2ZtJkjqLbflAzz+I8uon53kIoizd0FUpZEfbf1tmMk7rhFLmMsR9C5tiYdDa0xsp edgjyuXC93BjpnbNhYvO =/NvX -----END PGP SIGNATURE----- --JGq01gMRpXZxBGpH-- From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 13:11:29 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE60D1065677; Sat, 1 Oct 2011 13:11:29 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AE5938FC22; Sat, 1 Oct 2011 13:11:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91DBTLb018421; Sat, 1 Oct 2011 13:11:29 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91DBTIx018419; Sat, 1 Oct 2011 13:11:29 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201110011311.p91DBTIx018419@svn.freebsd.org> From: Marius Strobl Date: Sat, 1 Oct 2011 13:11:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225899 - head/sys/sparc64/sparc64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 13:11:29 -0000 Author: marius Date: Sat Oct 1 13:11:29 2011 New Revision: 225899 URL: http://svn.freebsd.org/changeset/base/225899 Log: Also allocate space for the PIL counters. Given that no machine actually uses IV_MAX interrupt vectors this wasn't a problem in practice though. Modified: head/sys/sparc64/sparc64/exception.S Modified: head/sys/sparc64/sparc64/exception.S ============================================================================== --- head/sys/sparc64/sparc64/exception.S Sat Oct 1 12:35:09 2011 (r225898) +++ head/sys/sparc64/sparc64/exception.S Sat Oct 1 13:11:29 2011 (r225899) @@ -373,15 +373,15 @@ END(rsf_fatal) _ALIGN_DATA .globl intrnames, sintrnames intrnames: - .space IV_MAX * (MAXCOMLEN + 1) + .space (IV_MAX + PIL_MAX) * (MAXCOMLEN + 1) sintrnames: - .quad IV_MAX * (MAXCOMLEN + 1) + .quad (IV_MAX + PIL_MAX) * (MAXCOMLEN + 1) .globl intrcnt, sintrcnt intrcnt: - .space IV_MAX * 8 + .space (IV_MAX + PIL_MAX) * 8 sintrcnt: - .quad IV_MAX * 8 + .quad (IV_MAX + PIL_MAX) * 8 .text From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 13:16:01 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5705106566B; Sat, 1 Oct 2011 13:16:01 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AA7B38FC14; Sat, 1 Oct 2011 13:16:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91DG1KT018598; Sat, 1 Oct 2011 13:16:01 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91DG1o5018596; Sat, 1 Oct 2011 13:16:01 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201110011316.p91DG1o5018596@svn.freebsd.org> From: Marius Strobl Date: Sat, 1 Oct 2011 13:16:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225900 - head/sys/sparc64/sparc64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 13:16:02 -0000 Author: marius Date: Sat Oct 1 13:16:01 2011 New Revision: 225900 URL: http://svn.freebsd.org/changeset/base/225900 Log: Nuke SUN4U #ifdef's which with the demise of sun4v no longer serve any purpose. Modified: head/sys/sparc64/sparc64/genassym.c Modified: head/sys/sparc64/sparc64/genassym.c ============================================================================== --- head/sys/sparc64/sparc64/genassym.c Sat Oct 1 13:11:29 2011 (r225899) +++ head/sys/sparc64/sparc64/genassym.c Sat Oct 1 13:16:01 2011 (r225900) @@ -43,9 +43,7 @@ __FBSDID("$FreeBSD$"); #include #include -#ifdef SUN4U #include -#endif #include #include #include @@ -62,9 +60,7 @@ ASSYM(TAR_VPN_SHIFT, TAR_VPN_SHIFT); ASSYM(_NCPUBITS, _NCPUBITS); -#ifdef SUN4U ASSYM(TLB_DEMAP_ALL, TLB_DEMAP_ALL); -#endif ASSYM(TLB_DEMAP_CONTEXT, TLB_DEMAP_CONTEXT); ASSYM(TLB_DEMAP_NUCLEUS, TLB_DEMAP_NUCLEUS); ASSYM(TLB_DEMAP_PAGE, TLB_DEMAP_PAGE); @@ -82,21 +78,17 @@ ASSYM(PAGE_SIZE_4M, PAGE_SIZE_4M); #ifdef SMP ASSYM(CSA_PCPU, offsetof(struct cpu_start_args, csa_pcpu)); ASSYM(CSA_STATE, offsetof(struct cpu_start_args, csa_state)); -#ifdef SUN4U ASSYM(CSA_MID, offsetof(struct cpu_start_args, csa_mid)); ASSYM(CSA_STICK, offsetof(struct cpu_start_args, csa_stick)); ASSYM(CSA_TICK, offsetof(struct cpu_start_args, csa_tick)); ASSYM(CSA_TTES, offsetof(struct cpu_start_args, csa_ttes)); ASSYM(CSA_VER, offsetof(struct cpu_start_args, csa_ver)); #endif -#endif -#ifdef SUN4U ASSYM(DC_SIZE, offsetof(struct cacheinfo, dc_size)); ASSYM(DC_LINESIZE, offsetof(struct cacheinfo, dc_linesize)); ASSYM(IC_SIZE, offsetof(struct cacheinfo, ic_size)); ASSYM(IC_LINESIZE, offsetof(struct cacheinfo, ic_linesize)); -#endif ASSYM(KTR_SIZEOF, sizeof(struct ktr_entry)); ASSYM(KTR_LINE, offsetof(struct ktr_entry, ktr_line)); @@ -112,7 +104,6 @@ ASSYM(KTR_PARM5, offsetof(struct ktr_ent ASSYM(KTR_PARM6, offsetof(struct ktr_entry, ktr_parms[5])); ASSYM(TTE_SHIFT, TTE_SHIFT); -#ifdef SUN4U ASSYM(TTE_VPN, offsetof(struct tte, tte_vpn)); ASSYM(TTE_DATA, offsetof(struct tte, tte_data)); @@ -132,7 +123,6 @@ ASSYM(TLB_CXR_PGSZ_MASK, TLB_CXR_PGSZ_MA ASSYM(TLB_DIRECT_ADDRESS_MASK, TLB_DIRECT_ADDRESS_MASK); ASSYM(TLB_DIRECT_TO_TTE_MASK, TLB_DIRECT_TO_TTE_MASK); ASSYM(TV_SIZE_BITS, TV_SIZE_BITS); -#endif ASSYM(V_INTR, offsetof(struct vmmeter, v_intr)); @@ -146,14 +136,12 @@ ASSYM(PC_IRFREE, offsetof(struct pcpu, p ASSYM(PC_CNT, offsetof(struct pcpu, pc_cnt)); ASSYM(PC_SIZEOF, sizeof(struct pcpu)); -#ifdef SUN4U ASSYM(PC_CACHE, offsetof(struct pcpu, pc_cache)); ASSYM(PC_MID, offsetof(struct pcpu, pc_mid)); ASSYM(PC_PMAP, offsetof(struct pcpu, pc_pmap)); ASSYM(PC_TLB_CTX, offsetof(struct pcpu, pc_tlb_ctx)); ASSYM(PC_TLB_CTX_MAX, offsetof(struct pcpu, pc_tlb_ctx_max)); ASSYM(PC_TLB_CTX_MIN, offsetof(struct pcpu, pc_tlb_ctx_min)); -#endif ASSYM(IR_NEXT, offsetof(struct intr_request, ir_next)); ASSYM(IR_FUNC, offsetof(struct intr_request, ir_func)); @@ -161,7 +149,7 @@ ASSYM(IR_ARG, offsetof(struct intr_reque ASSYM(IR_PRI, offsetof(struct intr_request, ir_pri)); ASSYM(IR_VEC, offsetof(struct intr_request, ir_vec)); -#if defined(SUN4U) && defined(SMP) +#ifdef SMP ASSYM(ICA_PA, offsetof(struct ipi_cache_args, ica_pa)); ASSYM(IRA_MASK, offsetof(struct ipi_rd_args, ira_mask)); @@ -239,14 +227,12 @@ ASSYM(TF_FPRS, offsetof(struct trapframe ASSYM(TF_FSR, offsetof(struct trapframe, tf_fsr)); ASSYM(TF_GSR, offsetof(struct trapframe, tf_gsr)); ASSYM(TF_PIL, offsetof(struct trapframe, tf_pil)); -#ifdef SUN4U ASSYM(TF_LEVEL, offsetof(struct trapframe, tf_level)); ASSYM(TF_SFAR, offsetof(struct trapframe, tf_sfar)); ASSYM(TF_SFSR, offsetof(struct trapframe, tf_sfsr)); ASSYM(TF_TAR, offsetof(struct trapframe, tf_tar)); ASSYM(TF_TYPE, offsetof(struct trapframe, tf_type)); ASSYM(TF_Y, offsetof(struct trapframe, tf_y)); -#endif ASSYM(TF_TNPC, offsetof(struct trapframe, tf_tnpc)); ASSYM(TF_TPC, offsetof(struct trapframe, tf_tpc)); ASSYM(TF_TSTATE, offsetof(struct trapframe, tf_tstate)); From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 13:33:15 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 988F8106570B; Sat, 1 Oct 2011 13:33:15 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4D09D8FC1B; Sat, 1 Oct 2011 13:33:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91DXFJg019445; Sat, 1 Oct 2011 13:33:15 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91DXFwq019443; Sat, 1 Oct 2011 13:33:15 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201110011333.p91DXFwq019443@svn.freebsd.org> From: Marius Strobl Date: Sat, 1 Oct 2011 13:33:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225901 - head/sys/sparc64/sparc64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 13:33:15 -0000 Author: marius Date: Sat Oct 1 13:33:14 2011 New Revision: 225901 URL: http://svn.freebsd.org/changeset/base/225901 Log: Remove obsolete macros. Modified: head/sys/sparc64/sparc64/pmap.c Modified: head/sys/sparc64/sparc64/pmap.c ============================================================================== --- head/sys/sparc64/sparc64/pmap.c Sat Oct 1 13:16:01 2011 (r225900) +++ head/sys/sparc64/sparc64/pmap.c Sat Oct 1 13:33:14 2011 (r225901) @@ -100,12 +100,6 @@ __FBSDID("$FreeBSD$"); #include #include -#define PMAP_DEBUG - -#ifndef PMAP_SHPGPERPROC -#define PMAP_SHPGPERPROC 200 -#endif - /* XXX */ #include "opt_sched.h" #ifndef SCHED_4BSD From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 13:47:50 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75699106566B; Sat, 1 Oct 2011 13:47:50 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 647178FC16; Sat, 1 Oct 2011 13:47:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91DloRc019982; Sat, 1 Oct 2011 13:47:50 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91DloAl019980; Sat, 1 Oct 2011 13:47:50 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201110011347.p91DloAl019980@svn.freebsd.org> From: Gabor Kovesdan Date: Sat, 1 Oct 2011 13:47:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225902 - stable/9/share/man/man4 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 13:47:50 -0000 Author: gabor Date: Sat Oct 1 13:47:50 2011 New Revision: 225902 URL: http://svn.freebsd.org/changeset/base/225902 Log: MFC: r225775 - Move misplaced reference - Sort references - s/Since/Because/ Approved by: re (kib) Modified: stable/9/share/man/man4/smp.4 Directory Properties: stable/9/share/man/man4/ (props changed) Modified: stable/9/share/man/man4/smp.4 ============================================================================== --- stable/9/share/man/man4/smp.4 Sat Oct 1 13:33:14 2011 (r225901) +++ stable/9/share/man/man4/smp.4 Sat Oct 1 13:47:50 2011 (r225902) @@ -120,25 +120,24 @@ tasks on CPUs that are closely grouped t .Pp .Fx supports hyperthreading on Intel CPU's on the i386 and AMD64 platforms. -Since using logical CPUs can cause performance penalties under certain loads, +Because using logical CPUs can cause performance penalties under certain loads, the logical CPUs can be disabled by setting the .Va machdep.hyperthreading_allowed tunable to zero. -.Xr cpuset 1 . .Sh SEE ALSO +.Xr cpuset 1 , .Xr mptable 1 , +.Xr sched_4bsd 4 , +.Xr sched_ule 4 , .Xr loader 8 , .Xr sysctl 8 , .Xr condvar 9 , .Xr msleep 9 , .Xr mtx_pool 9 , .Xr mutex 9 , -.Xr sema 9 , -.Xr sx 9 , .Xr rwlock 9 , -.Xr sched_4bsd 4 , -.Xr sched_ule 4 , -.Xr cpuset 1 +.Xr sema 9 , +.Xr sx 9 .Sh HISTORY The .Nm From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 13:54:49 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BD03106566C; Sat, 1 Oct 2011 13:54:49 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1AD568FC08; Sat, 1 Oct 2011 13:54:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91DsmV0020398; Sat, 1 Oct 2011 13:54:48 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91Dsm58020396; Sat, 1 Oct 2011 13:54:48 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201110011354.p91Dsm58020396@svn.freebsd.org> From: Gabor Kovesdan Date: Sat, 1 Oct 2011 13:54:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225903 - stable/8/share/man/man4 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 13:54:49 -0000 Author: gabor Date: Sat Oct 1 13:54:48 2011 New Revision: 225903 URL: http://svn.freebsd.org/changeset/base/225903 Log: MFC: r225775 - Move misplaced reference - Sort references - s/Since/Because/ Modified: stable/8/share/man/man4/smp.4 Directory Properties: stable/8/share/man/man4/ (props changed) Modified: stable/8/share/man/man4/smp.4 ============================================================================== --- stable/8/share/man/man4/smp.4 Sat Oct 1 13:47:50 2011 (r225902) +++ stable/8/share/man/man4/smp.4 Sat Oct 1 13:54:48 2011 (r225903) @@ -120,25 +120,25 @@ tasks on CPUs that are closely grouped t .Pp .Fx supports hyperthreading on Intel CPU's on the i386 and AMD64 platforms. -Since using logical CPUs can cause performance penalties under certain loads, +Because using logical CPUs can cause performance penalties under certain loads, the logical CPUs can be disabled by setting the .Va machdep.hlt_logical_cpus sysctl to one. Note that this operation is different from the mechanism used by the -.Xr cpuset 1 . .Sh SEE ALSO +.Xr cpuset 1 , .Xr mptable 1 , +.Xr sched_4bsd 4 , +.Xr sched_ule 4 , +.Xr loader 8 , .Xr sysctl 8 , .Xr condvar 9 , .Xr msleep 9 , .Xr mtx_pool 9 , .Xr mutex 9 , -.Xr sema 9 , -.Xr sx 9 , .Xr rwlock 9 , -.Xr sched_4bsd 4 , -.Xr sched_ule 4 , -.Xr cpuset 1 +.Xr sema 9 , +.Xr sx 9 .Sh HISTORY The .Nm From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 15:32:54 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 836B41065673; Sat, 1 Oct 2011 15:32:54 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 08C728FC08; Sat, 1 Oct 2011 15:32:53 +0000 (UTC) Received: by ywp17 with SMTP id 17so2937174ywp.13 for ; Sat, 01 Oct 2011 08:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=kNzumgCM8bi5u40iTBGFo6njY6BS+ktTxzgM4Fv6t1M=; b=u64cXPe0FZNjHpefC+pC9hlRDhK50C9rfpuTqhLXPNED8LA4BN33J6MWhxKxvbIK73 Yww9knJsbfvKGoyN4e12HD9ituMS7R2PHwQ42MVHQaYkieOijjSW0vlqXaSpgY8OSDOO vslNLqV4/Jus3a5ALYnpgFyVdGgZ0yRcEgghQ= MIME-Version: 1.0 Received: by 10.236.103.102 with SMTP id e66mr27283026yhg.1.1317481534999; Sat, 01 Oct 2011 08:05:34 -0700 (PDT) Received: by 10.236.103.130 with HTTP; Sat, 1 Oct 2011 08:05:34 -0700 (PDT) In-Reply-To: <201110011235.p91CZAoQ017272@svn.freebsd.org> References: <201110011235.p91CZAoQ017272@svn.freebsd.org> Date: Sat, 1 Oct 2011 11:05:34 -0400 Message-ID: From: Ben Kaduk To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org Subject: Re: svn commit: r225898 - stable/8/lib/libc/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 15:32:54 -0000 On Sat, Oct 1, 2011 at 8:35 AM, Konstantin Belousov wrote= : > Author: kib > Date: Sat Oct =A01 12:35:09 2011 > New Revision: 225898 > URL: http://svn.freebsd.org/changeset/base/225898 > > Log: > =A0MFC r225172: > =A0Clarify the behaviour of sigwait() on signal interruption, and note > =A0the difference between sigwait() and sigtimedwait()/sigwaitinfo(). > > Modified: > =A0stable/8/lib/libc/sys/sigwait.2 > =A0stable/8/lib/libc/sys/sigwaitinfo.2 > Directory Properties: > =A0stable/8/lib/libc/ =A0 (props changed) > =A0stable/8/lib/libc/stdtime/ =A0 (props changed) > > Modified: stable/8/lib/libc/sys/sigwait.2 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- stable/8/lib/libc/sys/sigwait.2 =A0 =A0 Sat Oct =A01 12:19:48 2011 = =A0 =A0 =A0 =A0(r225897) > +++ stable/8/lib/libc/sys/sigwait.2 =A0 =A0 Sat Oct =A01 12:35:09 2011 = =A0 =A0 =A0 =A0(r225898) > @@ -27,7 +27,7 @@ > =A0.\" > =A0.\" $FreeBSD$ > =A0.\" > -.Dd November 11, 2005 > +.Dd August 24, 2011 > =A0.Dt SIGWAIT 2 > =A0.Os > =A0.Sh NAME > @@ -82,6 +82,14 @@ selected, it will be the lowest numbered > =A0The selection order between realtime > =A0and non-realtime signals, or between multiple pending non-realtime sig= nals, > =A0is unspecified. > +.Sh IMPLEMENTATION NOTES > +The > +.Fn sigwait > +function is implemented as a wrapper around the > +.Fn __sys_sigwait I thought the sys_sigwait rename was only on head/stable-9? -Ben Kaduk > +system call, which retries the call on > +.Er EINTR > +error. > =A0.Sh RETURN VALUES > =A0If successful, > =A0.Fn sigwait > From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 17:14:01 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 27A4C1065677; Sat, 1 Oct 2011 17:14:01 +0000 (UTC) Date: Sat, 1 Oct 2011 17:14:01 +0000 From: Alexander Best To: Ed Schouten Message-ID: <20111001171401.GA47100@freebsd.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <20111001130643.GC91943@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111001130643.GC91943@hoeg.nl> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Edward Tomasz Napierala Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 17:14:01 -0000 On Sat Oct 1 11, Ed Schouten wrote: > * Alexander Best , 20110929 14:14: > > i think i wrote you about the two spaces between the "TT" and "TIME" field > > some time ago. you said that the "TT" entry can contain a postfix "-". can > > you describe a situation, where this can occur? i've never seen the "TT" field > > contain an entry larger than 2 chars. > > Also, it would be better if we replaced the "??" string with "-". When > we print "??", it actually means: this process has no controlling > terminal, not that we don't know which TTY it is. good point. also i was thinking: if a process had a controlling terminal, but that terminal has been revoked, are users really interested to know what the name of that revoked terminal was? can't we just use "-"? is it important to know whether a process never had a controlling terminal, or had one at some point, but not anymore? also the ps(1) man page claims that a process running on console has a "TT" entry of "con". i've never seen such an entry. is this still correct? and the last point i'd like to make: looking at 'ps alx' on freebsd 7.x makes it easy to distinguish between ttys and pts'es, because they are names ttyvX and ttypX. looking at the same output under HEAD, all pts terminal descriptors have moved to /dev/pts/X. so they will not show up as pX, but merely as X. can't we tell ps to prefix anything coming from /dev/pts with a "p"? in this output: 1001 1780 1778 1 16 0 15956 3136 pause Is 0 0:00,02 /usr/local/bin/zsh users are supposed to know that the "0" stands for /dev/pts/0. imho 1001 1780 1778 1 16 0 15956 3136 pause Is p0 0:00,02 /usr/local/bin/zsh would be much better here (like under freebsd 7.x). cheers. alex > > -- > Ed Schouten > WWW: http://80386.nl/ From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 17:46:45 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7937F1065670; Sat, 1 Oct 2011 17:46:45 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 125DC8FC14; Sat, 1 Oct 2011 17:46:44 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p91HkZWl073972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 1 Oct 2011 20:46:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p91HkZ0m066411; Sat, 1 Oct 2011 20:46:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p91HkZWO066410; Sat, 1 Oct 2011 20:46:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 1 Oct 2011 20:46:35 +0300 From: Kostik Belousov To: Ben Kaduk Message-ID: <20111001174634.GD1511@deviant.kiev.zoral.com.ua> References: <201110011235.p91CZAoQ017272@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tJ6vydIQpqz6Mizf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org Subject: Re: svn commit: r225898 - stable/8/lib/libc/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 17:46:45 -0000 --tJ6vydIQpqz6Mizf Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 01, 2011 at 11:05:34AM -0400, Ben Kaduk wrote: > On Sat, Oct 1, 2011 at 8:35 AM, Konstantin Belousov wro= te: > > Author: kib > > Date: Sat Oct =9A1 12:35:09 2011 > > New Revision: 225898 > > URL: http://svn.freebsd.org/changeset/base/225898 > > > > Log: > > =9AMFC r225172: > > =9AClarify the behaviour of sigwait() on signal interruption, and note > > =9Athe difference between sigwait() and sigtimedwait()/sigwaitinfo(). > > > > Modified: > > =9Astable/8/lib/libc/sys/sigwait.2 > > =9Astable/8/lib/libc/sys/sigwaitinfo.2 > > Directory Properties: > > =9Astable/8/lib/libc/ =9A (props changed) > > =9Astable/8/lib/libc/stdtime/ =9A (props changed) > > > > Modified: stable/8/lib/libc/sys/sigwait.2 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > --- stable/8/lib/libc/sys/sigwait.2 =9A =9A Sat Oct =9A1 12:19:48 2011 = =9A =9A =9A =9A(r225897) > > +++ stable/8/lib/libc/sys/sigwait.2 =9A =9A Sat Oct =9A1 12:35:09 2011 = =9A =9A =9A =9A(r225898) > > @@ -27,7 +27,7 @@ > > =9A.\" > > =9A.\" $FreeBSD$ > > =9A.\" > > -.Dd November 11, 2005 > > +.Dd August 24, 2011 > > =9A.Dt SIGWAIT 2 > > =9A.Os > > =9A.Sh NAME > > @@ -82,6 +82,14 @@ selected, it will be the lowest numbered > > =9AThe selection order between realtime > > =9Aand non-realtime signals, or between multiple pending non-realtime s= ignals, > > =9Ais unspecified. > > +.Sh IMPLEMENTATION NOTES > > +The > > +.Fn sigwait > > +function is implemented as a wrapper around the > > +.Fn __sys_sigwait >=20 > I thought the sys_sigwait rename was only on head/stable-9? I merged the wrapper sigwait(3) several commits earlier, see r225896. --tJ6vydIQpqz6Mizf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEUEARECAAYFAk6HUfoACgkQC3+MBN1Mb4iowwCXXSGVFpGyrFktUhkJEJykq8j+ cACg4owwP7H9+4a4clrNTaommbWi2N0= =ig1t -----END PGP SIGNATURE----- --tJ6vydIQpqz6Mizf-- From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 18:20:11 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0881F106564A; Sat, 1 Oct 2011 18:20:11 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D39058FC13; Sat, 1 Oct 2011 18:20:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91IKA7s028723; Sat, 1 Oct 2011 18:20:10 GMT (envelope-from ume@svn.freebsd.org) Received: (from ume@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91IKAm8028719; Sat, 1 Oct 2011 18:20:10 GMT (envelope-from ume@svn.freebsd.org) Message-Id: <201110011820.p91IKAm8028719@svn.freebsd.org> From: Hajimu UMEMOTO Date: Sat, 1 Oct 2011 18:20:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225906 - head/contrib/sendmail/src X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 18:20:11 -0000 Author: ume Date: Sat Oct 1 18:20:10 2011 New Revision: 225906 URL: http://svn.freebsd.org/changeset/base/225906 Log: Shut up warnings with Cyrus SASL 2.1.25. Spotted by: ache Tested by: ache Modified: head/contrib/sendmail/src/main.c head/contrib/sendmail/src/sendmail.h head/contrib/sendmail/src/usersmtp.c Modified: head/contrib/sendmail/src/main.c ============================================================================== --- head/contrib/sendmail/src/main.c Sat Oct 1 16:08:03 2011 (r225905) +++ head/contrib/sendmail/src/main.c Sat Oct 1 18:20:10 2011 (r225906) @@ -109,8 +109,8 @@ GIDSET_T InitialGidSet[NGROUPS_MAX]; #if SASL static sasl_callback_t srvcallbacks[] = { - { SASL_CB_VERIFYFILE, &safesaslfile, NULL }, - { SASL_CB_PROXY_POLICY, &proxy_policy, NULL }, + { SASL_CB_VERIFYFILE, (sasl_callback_ft)&safesaslfile, NULL }, + { SASL_CB_PROXY_POLICY, (sasl_callback_ft)&proxy_policy, NULL }, { SASL_CB_LIST_END, NULL, NULL } }; #endif /* SASL */ Modified: head/contrib/sendmail/src/sendmail.h ============================================================================== --- head/contrib/sendmail/src/sendmail.h Sat Oct 1 16:08:03 2011 (r225905) +++ head/contrib/sendmail/src/sendmail.h Sat Oct 1 18:20:10 2011 (r225906) @@ -133,10 +133,15 @@ SM_UNUSED(static char SmailId[]) = "@(#) # if SASL == 2 || SASL >= 20000 # include +# include # include +# if SASL_VERSION_FULL < 0x020119 +typedef int (*sasl_callback_ft)(void); +# endif # else /* SASL == 2 || SASL >= 20000 */ # include # include +typedef int (*sasl_callback_ft)(void); # endif /* SASL == 2 || SASL >= 20000 */ # if defined(SASL_VERSION_MAJOR) && defined(SASL_VERSION_MINOR) && defined(SASL_VERSION_STEP) # define SASL_VERSION (SASL_VERSION_MAJOR * 10000) + (SASL_VERSION_MINOR * 100) + SASL_VERSION_STEP Modified: head/contrib/sendmail/src/usersmtp.c ============================================================================== --- head/contrib/sendmail/src/usersmtp.c Sat Oct 1 16:08:03 2011 (r225905) +++ head/contrib/sendmail/src/usersmtp.c Sat Oct 1 18:20:10 2011 (r225906) @@ -524,15 +524,15 @@ static int attemptauth __P((MAILER *, MC static sasl_callback_t callbacks[] = { - { SASL_CB_GETREALM, &saslgetrealm, NULL }, + { SASL_CB_GETREALM, (sasl_callback_ft)&saslgetrealm, NULL }, #define CB_GETREALM_IDX 0 - { SASL_CB_PASS, &getsecret, NULL }, + { SASL_CB_PASS, (sasl_callback_ft)&getsecret, NULL }, #define CB_PASS_IDX 1 - { SASL_CB_USER, &getsimple, NULL }, + { SASL_CB_USER, (sasl_callback_ft)&getsimple, NULL }, #define CB_USER_IDX 2 - { SASL_CB_AUTHNAME, &getsimple, NULL }, + { SASL_CB_AUTHNAME, (sasl_callback_ft)&getsimple, NULL }, #define CB_AUTHNAME_IDX 3 - { SASL_CB_VERIFYFILE, &safesaslfile, NULL }, + { SASL_CB_VERIFYFILE, (sasl_callback_ft)&safesaslfile, NULL }, #define CB_SAFESASL_IDX 4 { SASL_CB_LIST_END, NULL, NULL } }; From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 19:43:15 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B32E81065743; Sat, 1 Oct 2011 19:43:15 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 37EC98FC14; Sat, 1 Oct 2011 19:43:15 +0000 (UTC) Received: by qadz30 with SMTP id z30so1212654qad.13 for ; Sat, 01 Oct 2011 12:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2fw5u97E/sVU7m75jU+CQ8MmIVFROyi9QjlxEx1DnQ0=; b=NUpz4CvH76FsTX+cCAyuOCQhvJWIi5md24yGyF+WbOYoMhzbJj6jYfipKwr+QUrgRW jLbCzYFqFhfiEZI4miJVixYeSmULZnIQJGSxZ42FgEm1m8xq2e8GxNvUoYX+vbFfBUqr TbpfnExLw0w0nwd4GY/6lVncRp6l2bdCJalYc= MIME-Version: 1.0 Received: by 10.224.215.2 with SMTP id hc2mr9832703qab.324.1317498193710; Sat, 01 Oct 2011 12:43:13 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Sat, 1 Oct 2011 12:43:13 -0700 (PDT) In-Reply-To: <201110011219.p91CJmTc016767@svn.freebsd.org> References: <201110011219.p91CJmTc016767@svn.freebsd.org> Date: Sat, 1 Oct 2011 12:43:13 -0700 Message-ID: From: Garrett Cooper To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225897 - head/lib/libc/gen X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 19:43:15 -0000 On Sat, Oct 1, 2011 at 5:19 AM, Ed Schouten wrote: > Author: ed > Date: Sat Oct =A01 12:19:48 2011 > New Revision: 225897 > URL: http://svn.freebsd.org/changeset/base/225897 ... > + =A0 =A0 =A0 if (s =3D=3D NULL) { > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 s =3D def; > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 dlen =3D sizeof(def) - LEN_PATH_DEV; > + =A0 =A0 =A0 } else > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 dlen =3D L_ctermid - LEN_PATH_DEV; > + =A0 =A0 =A0 strcpy(s, _PATH_TTY); Why not use strlcpy, etc with dlen? -Garrett From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 19:58:36 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B5BA106566C; Sat, 1 Oct 2011 19:58:36 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 413B48FC13; Sat, 1 Oct 2011 19:58:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91JwaP6031689; Sat, 1 Oct 2011 19:58:36 GMT (envelope-from ume@svn.freebsd.org) Received: (from ume@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91JwaBl031685; Sat, 1 Oct 2011 19:58:36 GMT (envelope-from ume@svn.freebsd.org) Message-Id: <201110011958.p91JwaBl031685@svn.freebsd.org> From: Hajimu UMEMOTO Date: Sat, 1 Oct 2011 19:58:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225907 - stable/9/contrib/sendmail/src X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 19:58:36 -0000 Author: ume Date: Sat Oct 1 19:58:35 2011 New Revision: 225907 URL: http://svn.freebsd.org/changeset/base/225907 Log: MFC r225906: Shut up warnings with Cyrus SASL 2.1.25. Approved by: re (kib) Modified: stable/9/contrib/sendmail/src/main.c stable/9/contrib/sendmail/src/sendmail.h stable/9/contrib/sendmail/src/usersmtp.c Directory Properties: stable/9/contrib/sendmail/ (props changed) Modified: stable/9/contrib/sendmail/src/main.c ============================================================================== --- stable/9/contrib/sendmail/src/main.c Sat Oct 1 18:20:10 2011 (r225906) +++ stable/9/contrib/sendmail/src/main.c Sat Oct 1 19:58:35 2011 (r225907) @@ -109,8 +109,8 @@ GIDSET_T InitialGidSet[NGROUPS_MAX]; #if SASL static sasl_callback_t srvcallbacks[] = { - { SASL_CB_VERIFYFILE, &safesaslfile, NULL }, - { SASL_CB_PROXY_POLICY, &proxy_policy, NULL }, + { SASL_CB_VERIFYFILE, (sasl_callback_ft)&safesaslfile, NULL }, + { SASL_CB_PROXY_POLICY, (sasl_callback_ft)&proxy_policy, NULL }, { SASL_CB_LIST_END, NULL, NULL } }; #endif /* SASL */ Modified: stable/9/contrib/sendmail/src/sendmail.h ============================================================================== --- stable/9/contrib/sendmail/src/sendmail.h Sat Oct 1 18:20:10 2011 (r225906) +++ stable/9/contrib/sendmail/src/sendmail.h Sat Oct 1 19:58:35 2011 (r225907) @@ -133,10 +133,15 @@ SM_UNUSED(static char SmailId[]) = "@(#) # if SASL == 2 || SASL >= 20000 # include +# include # include +# if SASL_VERSION_FULL < 0x020119 +typedef int (*sasl_callback_ft)(void); +# endif # else /* SASL == 2 || SASL >= 20000 */ # include # include +typedef int (*sasl_callback_ft)(void); # endif /* SASL == 2 || SASL >= 20000 */ # if defined(SASL_VERSION_MAJOR) && defined(SASL_VERSION_MINOR) && defined(SASL_VERSION_STEP) # define SASL_VERSION (SASL_VERSION_MAJOR * 10000) + (SASL_VERSION_MINOR * 100) + SASL_VERSION_STEP Modified: stable/9/contrib/sendmail/src/usersmtp.c ============================================================================== --- stable/9/contrib/sendmail/src/usersmtp.c Sat Oct 1 18:20:10 2011 (r225906) +++ stable/9/contrib/sendmail/src/usersmtp.c Sat Oct 1 19:58:35 2011 (r225907) @@ -524,15 +524,15 @@ static int attemptauth __P((MAILER *, MC static sasl_callback_t callbacks[] = { - { SASL_CB_GETREALM, &saslgetrealm, NULL }, + { SASL_CB_GETREALM, (sasl_callback_ft)&saslgetrealm, NULL }, #define CB_GETREALM_IDX 0 - { SASL_CB_PASS, &getsecret, NULL }, + { SASL_CB_PASS, (sasl_callback_ft)&getsecret, NULL }, #define CB_PASS_IDX 1 - { SASL_CB_USER, &getsimple, NULL }, + { SASL_CB_USER, (sasl_callback_ft)&getsimple, NULL }, #define CB_USER_IDX 2 - { SASL_CB_AUTHNAME, &getsimple, NULL }, + { SASL_CB_AUTHNAME, (sasl_callback_ft)&getsimple, NULL }, #define CB_AUTHNAME_IDX 3 - { SASL_CB_VERIFYFILE, &safesaslfile, NULL }, + { SASL_CB_VERIFYFILE, (sasl_callback_ft)&safesaslfile, NULL }, #define CB_SAFESASL_IDX 4 { SASL_CB_LIST_END, NULL, NULL } }; From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 20:34:43 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A3F3106566B; Sat, 1 Oct 2011 20:34:43 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id B606E8FC0A; Sat, 1 Oct 2011 20:34:42 +0000 (UTC) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132]) by mx1.stack.nl (Postfix) with ESMTP id 9A1D91DD74B; Sat, 1 Oct 2011 22:34:41 +0200 (CEST) Received: by turtle.stack.nl (Postfix, from userid 1677) id 8054917512; Sat, 1 Oct 2011 22:34:41 +0200 (CEST) Date: Sat, 1 Oct 2011 22:34:41 +0200 From: Jilles Tjoelker To: Alexander Best Message-ID: <20111001203441.GA88035@stack.nl> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <20111001130643.GC91943@hoeg.nl> <20111001171401.GA47100@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111001171401.GA47100@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, Ed Schouten , svn-src-all@freebsd.org, src-committers@freebsd.org, Edward Tomasz Napierala Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 20:34:43 -0000 On Sat, Oct 01, 2011 at 05:14:01PM +0000, Alexander Best wrote: > On Sat Oct 1 11, Ed Schouten wrote: > > Also, it would be better if we replaced the "??" string with "-". When > > we print "??", it actually means: this process has no controlling > > terminal, not that we don't know which TTY it is. > good point. also i was thinking: if a process had a controlling > terminal, but that terminal has been revoked, are users really > interested to know what the name of that revoked terminal was? can't > we just use "-"? is it important to know whether a process never had a > controlling terminal, or had one at some point, but not anymore? I think this is potentially useful, because it shows that the process did not explicitly detach from the terminal (such as via setsid(2)). Particularly if the terminal is real (not a pseudo-terminal), its name may be useful in recognition. When asking for processes attached to a specific terminal with ps's t option, ps will also show processes that used to be attached ("-"), possibly allowing users to keep track of processes better. It appears that even if a terminal is "revoked" in this way, it still prevents reuse of the pts number. > also the ps(1) man page claims that a process running on console has a "TT" > entry of "con". i've never seen such an entry. is this still correct? This may indeed be no longer the case, although it was never common to see "con". With syscons in multi-user mode, you cannot log in on /dev/console, only on /dev/ttyv*. With syscons in single-user mode, ps(1) says "v0" or "ttyv0" but tty(1) says /dev/console. > and the last point i'd like to make: looking at 'ps alx' on freebsd > 7.x makes it easy to distinguish between ttys and pts'es, because they > are names ttyvX and ttypX. looking at the same output under HEAD, all > pts terminal descriptors have moved to /dev/pts/X. so they will not > show up as pX, but merely as X. > can't we tell ps to prefix anything coming from /dev/pts with a "p"? > in this output: > 1001 1780 1778 1 16 0 15956 3136 pause Is 0 0:00,02 /usr/local/bin/zsh > users are supposed to know that the "0" stands for /dev/pts/0. imho > 1001 1780 1778 1 16 0 15956 3136 pause Is p0 0:00,02 /usr/local/bin/zsh > would be much better here (like under freebsd 7.x). I rather like the new output. Pseudo-terminals are by far the most common kind of terminal and there may be many of them, so it makes sense not to have a prefix. The t option in ps also accepts these short names, like 'ps lt0'. All other terminal names start with a letter. In FreeBSD 7, the first 256 pseudo-terminals are named /dev/tty[pqrsPQRS][0-9a-v]. A few more letters can be used to provide a few more pseudo-terminals but even then two characters suffice. The TTY keyword shows the full pathname relative to /dev. -- Jilles Tjoelker From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 20:54:05 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 9C09A1065672; Sat, 1 Oct 2011 20:54:05 +0000 (UTC) Date: Sat, 1 Oct 2011 20:54:05 +0000 From: Alexander Best To: Jilles Tjoelker Message-ID: <20111001205405.GA72884@freebsd.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <20111001130643.GC91943@hoeg.nl> <20111001171401.GA47100@freebsd.org> <20111001203441.GA88035@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111001203441.GA88035@stack.nl> Cc: svn-src-head@freebsd.org, Ed Schouten , svn-src-all@freebsd.org, src-committers@freebsd.org, Edward Tomasz Napierala Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 20:54:05 -0000 On Sat Oct 1 11, Jilles Tjoelker wrote: > On Sat, Oct 01, 2011 at 05:14:01PM +0000, Alexander Best wrote: > > On Sat Oct 1 11, Ed Schouten wrote: > > > Also, it would be better if we replaced the "??" string with "-". When > > > we print "??", it actually means: this process has no controlling > > > terminal, not that we don't know which TTY it is. > > > good point. also i was thinking: if a process had a controlling > > terminal, but that terminal has been revoked, are users really > > interested to know what the name of that revoked terminal was? can't > > we just use "-"? is it important to know whether a process never had a > > controlling terminal, or had one at some point, but not anymore? > > I think this is potentially useful, because it shows that the process > did not explicitly detach from the terminal (such as via setsid(2)). > > Particularly if the terminal is real (not a pseudo-terminal), its name > may be useful in recognition. > > When asking for processes attached to a specific terminal with ps's t > option, ps will also show processes that used to be attached ("-"), > possibly allowing users to keep track of processes better. > > It appears that even if a terminal is "revoked" in this way, it still > prevents reuse of the pts number. that's a very good explanation. :) so yeah...let's keep it the way it is. > > > also the ps(1) man page claims that a process running on console has a "TT" > > entry of "con". i've never seen such an entry. is this still correct? > > This may indeed be no longer the case, although it was never common to > see "con". With syscons in multi-user mode, you cannot log in on > /dev/console, only on /dev/ttyv*. With syscons in single-user mode, > ps(1) says "v0" or "ttyv0" but tty(1) says /dev/console. > > > and the last point i'd like to make: looking at 'ps alx' on freebsd > > 7.x makes it easy to distinguish between ttys and pts'es, because they > > are names ttyvX and ttypX. looking at the same output under HEAD, all > > pts terminal descriptors have moved to /dev/pts/X. so they will not > > show up as pX, but merely as X. > > > can't we tell ps to prefix anything coming from /dev/pts with a "p"? > > > in this output: > > > 1001 1780 1778 1 16 0 15956 3136 pause Is 0 0:00,02 /usr/local/bin/zsh > > > users are supposed to know that the "0" stands for /dev/pts/0. imho > > > 1001 1780 1778 1 16 0 15956 3136 pause Is p0 0:00,02 /usr/local/bin/zsh > > > would be much better here (like under freebsd 7.x). > > I rather like the new output. Pseudo-terminals are by far the most > common kind of terminal and there may be many of them, so it makes sense > not to have a prefix. The t option in ps also accepts these short names, > like 'ps lt0'. All other terminal names start with a letter. > > In FreeBSD 7, the first 256 pseudo-terminals are named > /dev/tty[pqrsPQRS][0-9a-v]. A few more letters can be used to provide a > few more pseudo-terminals but even then two characters suffice. > > The TTY keyword shows the full pathname relative to /dev. i think we should adjust the following paragraph " tt An abbreviation for the pathname of the controlling terminal, if any. The abbreviation consists of the three letters follow- ing /dev/tty, or, for the console, ``con''. This is followed by a `-' if the process can no longer reach that controlling terminal (i.e., it has been revoked). " to something like this then " tt An abbreviation for the pathname of the controlling terminal, if any. The abbreviation consists of the three letters follow- ing /dev/tty, or, for pseudo-terminals, the entry in /dev/pts. This is followed by a `-' if the process can no longer reach that controlling terminal (i.e., it has been revoked). The full pathname of the controlling terminal is available via the tty keyword. " cheers. alex ps: i am also wondering, why -o and -O aren't mutually exclusive. this would make more sense to me. > > -- > Jilles Tjoelker From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 20:56:58 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C9C41065672; Sat, 1 Oct 2011 20:56:58 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6D3858FC08; Sat, 1 Oct 2011 20:56:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91Kuw4S033483; Sat, 1 Oct 2011 20:56:58 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91KuwwX033481; Sat, 1 Oct 2011 20:56:58 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201110012056.p91KuwwX033481@svn.freebsd.org> From: Glen Barber Date: Sat, 1 Oct 2011 20:56:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225908 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 20:56:58 -0000 Author: gjb (doc committer) Date: Sat Oct 1 20:56:58 2011 New Revision: 225908 URL: http://svn.freebsd.org/changeset/base/225908 Log: Reorder default ps(1) output according to reality. Submitted by: arundel (via docs@) MFC after: 1 week Modified: head/bin/ps/ps.1 Modified: head/bin/ps/ps.1 ============================================================================== --- head/bin/ps/ps.1 Sat Oct 1 19:58:35 2011 (r225907) +++ head/bin/ps/ps.1 Sat Oct 1 20:56:58 2011 (r225908) @@ -90,8 +90,8 @@ and .Fl o options). The default output format includes, for each process, the process' ID, -controlling terminal, CPU time (including both user and system time), -state, and associated command. +controlling terminal, state, CPU time (including both user and system time) +and associated command. .Pp The process file system (see .Xr procfs 5 ) From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 21:10:03 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 141731065670; Sat, 1 Oct 2011 21:10:03 +0000 (UTC) Date: Sat, 1 Oct 2011 21:10:03 +0000 From: Alexander Best To: Jilles Tjoelker Message-ID: <20111001211003.GA76629@freebsd.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <20111001130643.GC91943@hoeg.nl> <20111001171401.GA47100@freebsd.org> <20111001203441.GA88035@stack.nl> <20111001205405.GA72884@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20111001205405.GA72884@freebsd.org> Cc: svn-src-head@freebsd.org, Ed Schouten , svn-src-all@freebsd.org, src-committers@freebsd.org, Edward Tomasz Napierala Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 21:10:03 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat Oct 1 11, Alexander Best wrote: > On Sat Oct 1 11, Jilles Tjoelker wrote: > > On Sat, Oct 01, 2011 at 05:14:01PM +0000, Alexander Best wrote: > > > On Sat Oct 1 11, Ed Schouten wrote: > > > > Also, it would be better if we replaced the "??" string with "-". When > > > > we print "??", it actually means: this process has no controlling > > > > terminal, not that we don't know which TTY it is. > > > > > good point. also i was thinking: if a process had a controlling > > > terminal, but that terminal has been revoked, are users really > > > interested to know what the name of that revoked terminal was? can't > > > we just use "-"? is it important to know whether a process never had a > > > controlling terminal, or had one at some point, but not anymore? > > > > I think this is potentially useful, because it shows that the process > > did not explicitly detach from the terminal (such as via setsid(2)). > > > > Particularly if the terminal is real (not a pseudo-terminal), its name > > may be useful in recognition. > > > > When asking for processes attached to a specific terminal with ps's t > > option, ps will also show processes that used to be attached ("-"), > > possibly allowing users to keep track of processes better. > > > > It appears that even if a terminal is "revoked" in this way, it still > > prevents reuse of the pts number. > > that's a very good explanation. :) so yeah...let's keep it the way it is. > > > > > > also the ps(1) man page claims that a process running on console has a "TT" > > > entry of "con". i've never seen such an entry. is this still correct? > > > > This may indeed be no longer the case, although it was never common to > > see "con". With syscons in multi-user mode, you cannot log in on > > /dev/console, only on /dev/ttyv*. With syscons in single-user mode, > > ps(1) says "v0" or "ttyv0" but tty(1) says /dev/console. > > > > > and the last point i'd like to make: looking at 'ps alx' on freebsd > > > 7.x makes it easy to distinguish between ttys and pts'es, because they > > > are names ttyvX and ttypX. looking at the same output under HEAD, all > > > pts terminal descriptors have moved to /dev/pts/X. so they will not > > > show up as pX, but merely as X. > > > > > can't we tell ps to prefix anything coming from /dev/pts with a "p"? > > > > > in this output: > > > > > 1001 1780 1778 1 16 0 15956 3136 pause Is 0 0:00,02 /usr/local/bin/zsh > > > > > users are supposed to know that the "0" stands for /dev/pts/0. imho > > > > > 1001 1780 1778 1 16 0 15956 3136 pause Is p0 0:00,02 /usr/local/bin/zsh > > > > > would be much better here (like under freebsd 7.x). > > > > I rather like the new output. Pseudo-terminals are by far the most > > common kind of terminal and there may be many of them, so it makes sense > > not to have a prefix. The t option in ps also accepts these short names, > > like 'ps lt0'. All other terminal names start with a letter. > > > > In FreeBSD 7, the first 256 pseudo-terminals are named > > /dev/tty[pqrsPQRS][0-9a-v]. A few more letters can be used to provide a > > few more pseudo-terminals but even then two characters suffice. > > > > The TTY keyword shows the full pathname relative to /dev. > > i think we should adjust the following paragraph > > " tt An abbreviation for the pathname of the controlling terminal, > if any. The abbreviation consists of the three letters follow- > ing /dev/tty, or, for the console, ``con''. This is followed > by a `-' if the process can no longer reach that controlling > terminal (i.e., it has been revoked). > " > > to something like this then > > " tt An abbreviation for the pathname of the controlling terminal, > if any. The abbreviation consists of the three letters follow- > ing /dev/tty, or, for pseudo-terminals, the entry in /dev/pts. > This is followed by a `-' if the process can no longer reach > that controlling terminal (i.e., it has been revoked). > The full pathname of the controlling terminal is available via > the tty keyword. > " i'd like to propose the following patch. any objections? cheers. alex > > cheers. > alex > > ps: i am also wondering, why -o and -O aren't mutually exclusive. this would > make more sense to me. > > > > > -- > > Jilles Tjoelker --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ps.1.diff2" diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index 8c27186..44a8d0e 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -29,7 +29,7 @@ .\" @(#)ps.1 8.3 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd July 1, 2011 +.Dd October 1, 2011 .Dt PS 1 .Os .Sh NAME @@ -427,12 +427,15 @@ The process is being traced or debugged. An abbreviation for the pathname of the controlling terminal, if any. The abbreviation consists of the three letters following .Pa /dev/tty , -or, for the console, -.Dq Li con . +or, for psuedo-terminals, the corresponding entry in +.Pa /dev/pts . This is followed by a .Ql - if the process can no longer reach that controlling terminal (i.e., it has been revoked). +The full pathname of the controlling terminal is available via the +.Cm tty +keyword. .It Cm wchan The event (an address in the system) on which a process waits. When printed numerically, the initial part of the address is --SUOF0GtieIMvvwua-- From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 22:08:58 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0531C106566B; Sat, 1 Oct 2011 22:08:58 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 94A2B8FC0A; Sat, 1 Oct 2011 22:08:57 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id A2D332A28CE3; Sun, 2 Oct 2011 00:08:56 +0200 (CEST) Date: Sun, 2 Oct 2011 00:08:56 +0200 From: Ed Schouten To: Garrett Cooper Message-ID: <20111001220856.GD91943@hoeg.nl> References: <201110011219.p91CJmTc016767@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BtLpl2nkGUzqmEOn" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225897 - head/lib/libc/gen X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 22:08:58 -0000 --BtLpl2nkGUzqmEOn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Garrett Cooper , 20111001 21:43: > Why not use strlcpy, etc with dlen? Well, I could, but it wouldn't change anything. In both cases, the size of the buffer exceeds the size of _PATH_TTY. --=20 Ed Schouten WWW: http://80386.nl/ --BtLpl2nkGUzqmEOn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOh494AAoJEG5e2P40kaK73OYP/3rqefb9/V+eHarzs3+2phBO UQr5ywH5G5vW/CqeSwwFfdV7UFvDIhEUzuK4d/W7ztxNiuXeQR6kLKMG/RqKXBdW P65LBPGRo1B5X0tIdpIkiqtUZB9dsatljxzxovh/3cvdXxt5QHiXwujgCE48MrfY U1e1jkbouKzHGuQ8jQVYLgxtf21cqJ8ti+QsHA0+2lMyY7WUDNCmo7s9Fs/g4xye M5lJq8R7uNg6SkvH2yKdGEPgKsqjObBWcULB0eUk99EPh9HNehh2AH4H/lDaSexG kdLvrH5w+GUMiSuF3Ht8YGajfHZAJ6VY8WrW95DCBszIW6Ja8AU+rFiF/9bWqptj /V1FiSPaNrrtYlLe8QV3TfpnQ6P6JfS1hAAg406/5361SbYkZV3JgrLgnXzldBYN G0SSOKht0LFNC/nBWBRKmK5dqaPIsxNkujfbM7A6xUKv+DX0ZPsoM9wAkXU+vyqz iEdF0+WxvYtq35o9rSySP0H+ewbAOAnMRErHW4wvSLhcJAnC6pkbzxnsSLyYDl2E vLxamUPxoLo33+fZex4HIO32N3/huYToqm5tFchNamzE4ca7DeE+aYwiwcMyO1yf FFaUt5qjICx/ogF89Q14JzcehzP+BKXUsT6yTzRX+KHgZLV4BiLDnmPtmuayTryI +c08igcxtJiI6uqO5xZg =GQud -----END PGP SIGNATURE----- --BtLpl2nkGUzqmEOn-- From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 22:10:44 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D89641065670; Sat, 1 Oct 2011 22:10:44 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 990438FC14; Sat, 1 Oct 2011 22:10:44 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 0B8BD2A28CE3; Sun, 2 Oct 2011 00:10:44 +0200 (CEST) Date: Sun, 2 Oct 2011 00:10:44 +0200 From: Ed Schouten To: Alexander Best Message-ID: <20111001221044.GE91943@hoeg.nl> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <20111001130643.GC91943@hoeg.nl> <20111001171401.GA47100@freebsd.org> <20111001203441.GA88035@stack.nl> <20111001205405.GA72884@freebsd.org> <20111001211003.GA76629@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y18yPE/eBgOv3N1p" Content-Disposition: inline In-Reply-To: <20111001211003.GA76629@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Edward Tomasz Napierala , Jilles Tjoelker Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 22:10:44 -0000 --Y18yPE/eBgOv3N1p Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alexander Best , 20111001 23:10: > i'd like to propose the following patch. any objections? Looks good! Thanks, --=20 Ed Schouten WWW: http://80386.nl/ --Y18yPE/eBgOv3N1p Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOh4/jAAoJEG5e2P40kaK7Tg4P/jwPaQZY1BejyBPJClv4kkdi Re+UYIsQIMb/g2XJlkBET2AkJ/SlvSImK3atA0GoZB8o+D1tB9B9/vYQuc6ZGSw6 gwSInTu+0t8mYzJXmk1EaoNuSui4o7ULE1QfolNUGyf47e63QpSwjWEkLM6lQrhV RZFiUQZLNiKVDrsmWLvMCua8YRzWy/7hCnHTkeQ+i88rYbE9NN98DK6H4ETq5ptA FaiSqqtAEDHrPu3CJIBMnkHt5pVqtVuYgYQINMAD8EOpW6/tJ9n3lDabbJUV0pXB n0+0DJ2DaXOcDAIgyFN3Z4FL3wRNzmCkN2N57E1mz3kVvA5O46pIqStubHJoWBbN MZ4DLWkZxYvlFWKQcNHqM2qLlqfq1JI0N1Gbjz40mc5EoStZaYQGYgV6cw5RbBEV eYjVTMMA5ZZ7iKU+Pbsvr07PRvqomRU0JKb1XNVxWRlAgXnWmu9yacNuZ9OHiLqN MnQ+IGqHx/S9KCz4ob2FyXcbS9Dkv7R6K/WxQsl6i20LOOcLPKI3wnFhnIIfH6xQ 8d62sLEX+Z3klpV1b48dTnpnP8BI40pQWwF1L1vtjjv3XbMLrIlLRjtExbeewaNj FRzBK8KSOiwc5ZdzSLtprLW57ibpd1U/oqzVwDomPfFRS/xWJYAPu33kH6GeRUOk 6vYDDsCNZRfy6idn9FA0 =lMzh -----END PGP SIGNATURE----- --Y18yPE/eBgOv3N1p-- From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 22:32:48 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id BD6931065676; Sat, 1 Oct 2011 22:32:48 +0000 (UTC) Date: Sat, 1 Oct 2011 22:32:48 +0000 From: Alexander Best To: Ed Schouten Message-ID: <20111001223248.GA86103@freebsd.org> References: <201109290631.p8T6VgJ3008377@svn.freebsd.org> <20110929121457.GA53600@freebsd.org> <20111001130643.GC91943@hoeg.nl> <20111001171401.GA47100@freebsd.org> <20111001203441.GA88035@stack.nl> <20111001205405.GA72884@freebsd.org> <20111001211003.GA76629@freebsd.org> <20111001221044.GE91943@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111001221044.GE91943@hoeg.nl> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Edward Tomasz Napierala , Jilles Tjoelker Subject: Re: svn commit: r225868 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 22:32:48 -0000 On Sun Oct 2 11, Ed Schouten wrote: > * Alexander Best , 20111001 23:10: > > i'd like to propose the following patch. any objections? > > Looks good! here's an updated patch, which fixes another few issues imo: http://lists.freebsd.org/pipermail/freebsd-doc/2011-October/018910.html cheers. alex > > Thanks, > -- > Ed Schouten > WWW: http://80386.nl/ From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 23:47:37 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A98FB1065670; Sat, 1 Oct 2011 23:47:37 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7F12A8FC16; Sat, 1 Oct 2011 23:47:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p91NlbaN038752; Sat, 1 Oct 2011 23:47:37 GMT (envelope-from gjb@svn.freebsd.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p91NlbkK038750; Sat, 1 Oct 2011 23:47:37 GMT (envelope-from gjb@svn.freebsd.org) Message-Id: <201110012347.p91NlbkK038750@svn.freebsd.org> From: Glen Barber Date: Sat, 1 Oct 2011 23:47:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225912 - head/bin/ps X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 23:47:37 -0000 Author: gjb (doc committer) Date: Sat Oct 1 23:47:37 2011 New Revision: 225912 URL: http://svn.freebsd.org/changeset/base/225912 Log: Tweaks to ps(1): - there's no reason the semantics of the -x flag are being explained in the -a flag description - be more precise regarding the relation between the -a flag and the security.bsd.see_other_uids sysctl - describe the format of the -t flag's argument - 'con' no longer is a possible entry in the 'TT' column - explain that the 'TT' column refers to pseudo-terminals via mere numbers - add a hint in the 'tt' keyword description that a keyword 'tty' exists, which will give the full terminal pathname Submitted by: arundel (via docs@) (original) MFC after: 1 week With-MFC: 225908 Modified: head/bin/ps/ps.1 Modified: head/bin/ps/ps.1 ============================================================================== --- head/bin/ps/ps.1 Sat Oct 1 22:19:22 2011 (r225911) +++ head/bin/ps/ps.1 Sat Oct 1 23:47:37 2011 (r225912) @@ -29,7 +29,7 @@ .\" @(#)ps.1 8.3 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd July 1, 2011 +.Dd October 1, 2011 .Dt PS 1 .Os .Sh NAME @@ -54,6 +54,11 @@ utility displays a header line, followed by lines containing information about all of your processes that have controlling terminals. +If the +.Fl x +options is specified, +.Nm +will also display processes that do not have controlling terminals. .Pp A different set of processes can be selected for display by using any combination of the @@ -103,13 +108,9 @@ The options are as follows: .Bl -tag -width indent .It Fl a Display information about other users' processes as well as your own. -This will skip any processes which do not have a controlling terminal, -unless the -.Fl x -option is also specified. -This can be disabled by setting the +If the .Va security.bsd.see_other_uids -sysctl to zero. +sysctl is set to zero, this option is honored only if the UID of the user is 0. .It Fl c Change the .Dq command @@ -216,6 +217,9 @@ with the standard input. .It Fl t Display information about processes attached to the specified terminal devices. +Full pathnames, as well as abbreviations (see explanation of the +.Cm tt +keyword) can be specified. .It Fl U Display the processes belonging to the specified usernames. .It Fl u @@ -427,12 +431,15 @@ The process is being traced or debugged. An abbreviation for the pathname of the controlling terminal, if any. The abbreviation consists of the three letters following .Pa /dev/tty , -or, for the console, -.Dq Li con . +or, for psuedo-terminals, the corresponding entry in +.Pa /dev/pts . This is followed by a .Ql - if the process can no longer reach that controlling terminal (i.e., it has been revoked). +The full pathname of the controlling terminal is available via the +.Cm tty +keyword. .It Cm wchan The event (an address in the system) on which a process waits. When printed numerically, the initial part of the address is