From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3933 Path: news.gmane.org!not-for-mail From: =?ISO-2022-JP?B?GyRCPi5OU00qGyhC?= Newsgroups: gmane.linux.lib.musl.general Subject: SUN_LEN Date: Wed, 21 Aug 2013 18:57:35 +0900 Message-ID: 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 1377079067 20998 80.91.229.3 (21 Aug 2013 09:57:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2013 09:57:47 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3937-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 21 11:57:50 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 1VC5Aj-0002XU-Bb for gllmg-musl@plane.gmane.org; Wed, 21 Aug 2013 11:57:49 +0200 Original-Received: (qmail 28032 invoked by uid 550); 21 Aug 2013 09:57:48 -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 28022 invoked from network); 21 Aug 2013 09:57:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=dqcBmpbSjiI/ZL+FSGg8qz08JcEye8jBfffVOQ3yGWA=; b=Ab74ogeTA/w4Z7xqOP4RUFsxqPsTVGrVyGdZncWqbv+tsbH2Qo72ehz9APHIM9+32o GK0Ocjo3WrZ+ULRGoEPSgzDupa6cwyYiVkMriFXv8zdT5e4xxUuG6eqtnJGzALypj8CC +zpFQzI9KaUsm2hLL+JuTYJqxheh6es4ZE3EP4GH2wsBIIS3dKv/5yzW9P2b8mso+hRx dlONXSmoSv2xC8qGxu6ZF/tcdAKs/EOWIU787Jm9y5o/sBpjAyHp/Z7CBga0Kbz3cStx GyX7bA4FxY3aS99wS2HJ+Me/7eX8JO4Zai5PFwtY0LzYKm5zaVlhn7XBHHqE0O3nkeZA rq6Q== X-Received: by 10.50.171.229 with SMTP id ax5mr519981igc.16.1377079055893; Wed, 21 Aug 2013 02:57:35 -0700 (PDT) Original-Reply-To: yukoba@accelart.jp Xref: news.gmane.org gmane.linux.lib.musl.general:3933 Archived-At: Hello. Could you please add SUN_LEN() to sys/un.h? diff --git a/include/sys/un.h b/include/sys/un.h index 769dac6..5289227 100644 --- a/include/sys/un.h +++ b/include/sys/un.h @@ -10,4 +10,9 @@ struct sockaddr_un char sun_path[108]; }; +#ifndef SUN_LEN +#include +#define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen((ptr)->sun_path)) +#endif + #endif -- Yu Kobayashi