From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4835 Path: news.gmane.org!not-for-mail From: Natanael Copa Newsgroups: gmane.linux.lib.musl.general Subject: Re: if_nameindex/getifaddrs and dhcpcd issue Date: Tue, 8 Apr 2014 16:23:10 +0200 Message-ID: <20140408162310.1ba626c8@ncopa-desktop.alpinelinux.org> References: <20140408111147.5f79729f@ncopa-desktop.alpinelinux.org> <20140408152559.124030b1@vostro> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1396967017 23698 80.91.229.3 (8 Apr 2014 14:23:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2014 14:23:37 +0000 (UTC) Cc: timo.teras@iki.fi, justin@specialbusservice.com To: musl@lists.openwall.com Original-X-From: musl-return-4839-gllmg-musl=m.gmane.org@lists.openwall.com Tue Apr 08 16:23:31 2014 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 1WXWvx-0000lC-4b for gllmg-musl@plane.gmane.org; Tue, 08 Apr 2014 16:23:29 +0200 Original-Received: (qmail 32722 invoked by uid 550); 8 Apr 2014 14:23:28 -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 32714 invoked from network); 8 Apr 2014 14:23:27 -0000 In-Reply-To: <20140408152559.124030b1@vostro> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-alpine-linux-uclibc) Xref: news.gmane.org gmane.linux.lib.musl.general:4835 Archived-At: On Tue, 8 Apr 2014 15:25:59 +0300 Timo Teras wrote: > IMHO, if someone wants to be linux compatible today, it's easier to > implement the netlink stuff; than the /proc stuff. /proc has equally > linux specific things in it and is mainly intended to be human > readable with few exceptions. /sys would be better option as it's > inteded to be machine readable, but it's still text too. But /sys is not claimed to be stable so location can move around. Not sure we can use it for network interfaces. Basically we want wants in /sys/class/net but sysfs-rules says thats kernel implementation details and might change. https://www.kernel.org/doc/Documentation/sysfs-rules.txt We could probably scan /sys/device for dirs named 'net' but that's not prettier than /proc. -nc