From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3316 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: High-priority library replacements? Date: Thu, 16 May 2013 17:12:04 +0100 Message-ID: References: <20130509144528.GK20323@brightrain.aerifal.cx> <1368398543.43199.YahooMailClassic@web160405.mail.bf1.yahoo.com> <20130515201700.GV20323@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1368720739 28016 80.91.229.3 (16 May 2013 16:12:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 May 2013 16:12:19 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3320-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 16 18:12:20 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 1Ud0mw-0002l4-LP for gllmg-musl@plane.gmane.org; Thu, 16 May 2013 18:12:18 +0200 Original-Received: (qmail 2040 invoked by uid 550); 16 May 2013 16:12:17 -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 2029 invoked from network); 16 May 2013 16:12:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=tEkTqNaEQzhuWp+YXaR/vBgFOM4fie0uk5vgo9zMcyc=; b=ImAkD3VlgOg4eB+p3aXTNG8HHVF87U+3m+WWJ4NGGUNhNzlR6GohMZtKAN9owlbN1H Uk1segEhP+pkYLaKreG+aUHZ+jpPi+7l+XLKtlsSwsR7o4Yl82f5Hws0ugeRw01RwhhM 9O93+EyyXxIXtBhsKRD1l/Dc4RI+J4JjVbWL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=tEkTqNaEQzhuWp+YXaR/vBgFOM4fie0uk5vgo9zMcyc=; b=E9FAWixCpddYXbhLC8qxKKR6kFkuoilLiR4odbLKz4noVMo89Qw5RZ6Eok6YZMcYn9 efE5t45ymtUINzpvIiWpR70mg5JGXYsrChAAMPe+heUn4JkIW9DTpBDQsvwIxDM+Q/mb QUOc9SsrgwzpoQxCj/jTAm82BCKJOoN5XFp1LeiylD8Y2Vye1Ab5RhbGhN3jo78FGPkV h88Dz66x1jbY5uWXTCsRRjc+VpEu1HmTpux2XG2dNdl2MnrDVSQu2GfSgJt3e8nUigir QTWhkCJ8WseGhz+0QskGhyWXlJaUnya032bA8MDIcwuilsNkHVY4mKPgaN5oNGOXpMNE wS6g== X-Received: by 10.68.180.132 with SMTP id do4mr44114902pbc.96.1368720724841; Thu, 16 May 2013 09:12:04 -0700 (PDT) In-Reply-To: <20130515201700.GV20323@brightrain.aerifal.cx> X-Gm-Message-State: ALoCoQmK0A/7vGHmX4kVsJZHhIq+lXLG8WukZL/4u96Loqm91u+TR3xDWM8KW/vLlnFzqq6qX5gY Xref: news.gmane.org gmane.linux.lib.musl.general:3316 Archived-At: On Wed, May 15, 2013 at 9:17 PM, Rich Felker wrote: > On Sun, May 12, 2013 at 03:42:23PM -0700, Brad Conroy wrote: >> In case I don't get around to fully researching it, the kernel spews >> out major and minor numbers in /sys that are greater than 255, so >> the makedev in /sys/sysmacros.h is insufficient (also major() and >> minor()???) I noticed because I wrote a shell script that populates >> /dev from /sys in <0.2 seconds but failed for large major/minor >> numbers when I built busybox with musl. At first glance, it looks >> like dev_t needs to be uint and have the extra bits from major and >> minor prepended as in the kernel's dev_t? > > Should be fixed in git. Let me know if it doesn't work right. mknod/mknodat still does return syscall(SYS_mknod, path, mode, dev & 0xffff); - I believe it should pass the full 32 bits. Also the top 32 bits are only for compatibility with glibc I think, not sure the macros should touch or use them, as the kernel has 32 bit dev_t and no plans to change. Justin