From owner-svn-src-all@FreeBSD.ORG Thu Jun 16 07:05: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 E0D4A106566C; Thu, 16 Jun 2011 07:05:57 +0000 (UTC) (envelope-from pluknet@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 661308FC08; Thu, 16 Jun 2011 07:05:57 +0000 (UTC) Received: by qwc9 with SMTP id 9so794220qwc.13 for ; Thu, 16 Jun 2011 00:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=O/PDEYf5Gmq2d9PX4zc1bT+Sq/0G1JFQkMLMe6Gju/8=; b=SExDlvGh4dY8RGjhiiBTA2FOG65zaTU4GmJPm9WQiXAv647XAXza0XISok9QI9oEYb 4lhavY/FIgotjhDcHRApwRwL/GDIizelyE61jMobdSGwDYefBLDUWTAxu6IPpehUDrHE SCNyueWJn5L+tEwWyrUoq8ejWwRBGSE0dsjnc= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=EJnmlJKytSGERcuWysvRmOics1H3xJb3pX/PqLVGriotbTTynrPDm0wEAnPlXwIEc/ MpyoyPcC9xmPDofB35n57VTzy5FxMXn1QG9C2Lttkn75Hx5Zlo2A8RfUGVN541+uaREV +Rzdg3YuqhxXjj/t4nG9qlmrs4gKfD1jCq/Ro= MIME-Version: 1.0 Received: by 10.229.35.1 with SMTP id n1mr432360qcd.84.1308207956664; Thu, 16 Jun 2011 00:05:56 -0700 (PDT) Sender: pluknet@gmail.com Received: by 10.229.99.197 with HTTP; Thu, 16 Jun 2011 00:05:56 -0700 (PDT) In-Reply-To: <201106160222.p5G2MOrQ008203@svn.freebsd.org> References: <201106160222.p5G2MOrQ008203@svn.freebsd.org> Date: Thu, 16 Jun 2011 11:05:56 +0400 X-Google-Sender-Auth: nWt26jNtGEhpn4SLLZhKK6sJPq8 Message-ID: From: Sergey Kandaurov To: David Xu 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: r223136 - 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: Thu, 16 Jun 2011 07:05:58 -0000 On 16 June 2011 06:22, David Xu wrote: > Author: davidxu > Date: Thu Jun 16 02:22:24 2011 > New Revision: 223136 > URL: http://svn.freebsd.org/changeset/base/223136 > > Log: > =A0Use size of int to fetch sysctl kern.sched.cpusetsize because it had > =A0switched from long to int type in kernel. > > =A0Fixed by: pluknet > > Modified: > =A0head/lib/libc/gen/sysconf.c > > Modified: head/lib/libc/gen/sysconf.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/lib/libc/gen/sysconf.c Thu Jun 16 02:16:53 2011 =A0 =A0 =A0 =A0(= r223135) > +++ head/lib/libc/gen/sysconf.c Thu Jun 16 02:22:24 2011 =A0 =A0 =A0 =A0(= r223136) > @@ -599,11 +599,11 @@ yesno: > > =A0#ifdef _SC_CPUSET_SIZE > =A0 =A0 =A0 =A0case _SC_CPUSET_SIZE: > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 len =3D sizeof(lvalue); > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (sysctlbyname("kern.sched.cpusetsize", &= lvalue, &len, NULL, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 len =3D sizeof(value); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (sysctlbyname("kern.sched.cpusetsize", &= value, &len, NULL, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00) =3D=3D -1) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return (-1); > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 return (lvalue); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 return ((long)value); > =A0#endif > > =A0 =A0 =A0 =A0default: > Thanks! --=20 wbr, pluknet