From owner-svn-src-head@freebsd.org Sun Aug 28 04:28:45 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1A99A947F4 for ; Sun, 28 Aug 2016 04:28:45 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 405BE893 for ; Sun, 28 Aug 2016 04:28:45 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f47.google.com with SMTP id g62so80541620lfe.3 for ; Sat, 27 Aug 2016 21:28:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=61YnzyjRM8vx36yND50KKoItWHOo4cko4T2EodRo98A=; b=NojYs2dZHxEjWXdVhsDFSwXeXgdNaIZtjEdHNlyVmlbzYtCmhrL1HLtbgorISwuc40 jD6ItcvbaQmiOuIBbMuWDc7+0GHv3pJ1U3bECO1u9jQQUgL9oNCejYVDTj4gO+yuZnm4 5P7LPZm0EBcQ/UhyrbkfmmPd4v7d6cZRayEwpABlOS0U4IKDbgf6WxS1GyaZCUfppyKp WzyN3dcUs7ZjVtQ8uKz65rk+SBF0yXJ6vVt/h9T25YW8bOBKokmnqqAY2YaIn8EansRs MbTX7I64MIoO1NoFRjn+I+DDxYu0Rn4LeHIM0fQNcZLqyxNFK6fAh9C1tkTe9jNcORxz FwTg== X-Gm-Message-State: AE9vXwPy74hPCG5L2mRRqDwqDqswmEJRPsGl7qGXDEsbLHGh7hH05ZisKHMmBEK1d0V0NQ== X-Received: by 10.25.145.7 with SMTP id t7mr2938742lfd.18.1472358522883; Sat, 27 Aug 2016 21:28:42 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id u186sm5518864lff.27.2016.08.27.21.28.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Aug 2016 21:28:42 -0700 (PDT) Subject: Re: svn commit: r304928 - in head/lib/libc: amd64/sys i386/sys sys To: Konstantin Belousov References: <201608272303.u7RN3N0D078505@repo.freebsd.org> <9bcf10db-de3f-33ce-e418-03ce3283ac90@freebsd.org> <20160828005637.GG83214@kib.kiev.ua> <59ac1812-7c77-b677-51c4-dcadc6b2be7f@freebsd.org> <20160828011501.GH83214@kib.kiev.ua> <80ad9e03-74bc-8c99-666f-787772bef2b9@freebsd.org> <20160828015210.GI83214@kib.kiev.ua> <70b3b052-4c29-c332-14bf-e50847636a8a@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Andrey Chernov Message-ID: <116b0fed-3502-e380-a8a1-9bf41b9862f5@freebsd.org> Date: Sun, 28 Aug 2016 07:28:41 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <70b3b052-4c29-c332-14bf-e50847636a8a@freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2016 04:28:45 -0000 On 28.08.2016 5:33, Andrey Chernov wrote: > "conforming implementation may have extensions (including additional > library functions), provided they do not alter the behavior of any > strictly conforming program.3)" > > ptrace() is extension (additional library function) so can't set errno > to 0 (it breaks strictly conforming program). Sorry for misguiding in this particular part. I confuse the "strictly conforming program" with the "conforming program" term used there too. "Strictly conforming program" can't call ptrace(). In any case our own ptrace(2) manpage suggest to set errno to 0 manually _before_ ptrace() call and do not relay on ptrace() to do it by itself: "Some requests can cause ptrace() to return -1 as a non-error value; to disambiguate, errno can be set to 0 before the call and checked afterwards." It will be better to stay common policy about errno even for extensions to not keep exclusions in the mind.