From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3939 Path: news.gmane.org!not-for-mail From: =?ISO-2022-JP?B?GyRCPi5OU00qGyhC?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: SUN_LEN Date: Thu, 22 Aug 2013 00:25:45 +0900 Message-ID: References: <5214AC94.9090408@barfooze.de> <5214B4CF.4090202@barfooze.de> <20130821144552.GD30088@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1377098758 26488 80.91.229.3 (21 Aug 2013 15:25:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2013 15:25:58 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3943-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 21 17:25:59 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VCAII-0006K8-Ng for gllmg-musl@plane.gmane.org; Wed, 21 Aug 2013 17:25:58 +0200 Original-Received: (qmail 5335 invoked by uid 550); 21 Aug 2013 15:25:58 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5327 invoked from network); 21 Aug 2013 15:25:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=KXpqGOkMUQc2dr3x+7zkN+plEnZl4hfv0aFFyt7WqPM=; b=Y7x5INp0Q5hUrrLyEGYIKkYQk6b0X2FBW2Y52WwwIUHUU7nyInrRO2CnTq5T9N6jwg 6yCvPXCHF2Q06FoW1YAmUxY9lDYrxr7k7VpbE1Eg+F7sOBFMWJn1xtwMSonAyhe0XB1a OueC4n6T6B63uRmOdCgStx8z+CoMctO1gYl8o6vjxATXdm9gRiJw/2hYuB2+nGPRKjcf iLWOY+DZY2FwO/L5nY92MWjGYu2cA2qINZVhALFUl5eP2TrsD8TZmuHmMko2yP+mdgvS d6rT4xN/sVtqAF52sGoxb6IYlGgEkKXp9wu3UUyG9yCtVgFbg0VMwujQ9w68MoFRRHX2 Y/bQ== X-Received: by 10.50.129.38 with SMTP id nt6mr6325857igb.16.1377098745795; Wed, 21 Aug 2013 08:25:45 -0700 (PDT) Original-Reply-To: yukoba@accelart.jp In-Reply-To: <20130821144552.GD30088@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:3939 Archived-At: > i think SUN_LEN can be added, but it should be under > _BSD_SOURCE because it violates the posix namespace > > #if defined(_BSD_SOURCE) || defined(_GNU_SOURCE) > #define SUN_LEN(s) (sizeof *(s) - sizeof (s)->sun_path + strlen((s)->sun_path)) > #endif OK. I tested and I think this is correct. So it is 110 - 108 + strlen. -- Yu Kobayashi