From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1980 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: semtcl for x86_64 Date: Sat, 22 Sep 2012 08:25:29 -0400 Message-ID: <20120922122529.GU254@brightrain.aerifal.cx> References: <20120922120453.GT254@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1348317250 9955 80.91.229.3 (22 Sep 2012 12:34:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 12:34:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1981-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 22 14:34:15 2012 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 1TFOuV-000566-0G for gllmg-musl@plane.gmane.org; Sat, 22 Sep 2012 14:34:15 +0200 Original-Received: (qmail 14241 invoked by uid 550); 22 Sep 2012 12:34:10 -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 14231 invoked from network); 22 Sep 2012 12:34:10 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1980 Archived-At: On Sat, Sep 22, 2012 at 02:17:08PM +0200, Jens wrote: > > > On Sat, 22 Sep 2012, Rich Felker wrote: > > >On Sat, Sep 22, 2012 at 11:17:14AM +0200, Jens wrote: > >> > >> > >>On Sat, 22 Sep 2012, Jens wrote: > >> > >>> > >>>Hello I have some trouble getting semctl working: > >>> > >>>Tried in both musl and uclibc to compare. > >> > >>Forgot to mention its musl 0.9.6. > >> > >>Cheers, > >>Jens > > > >Should be fixed now... Please let me know if it's still broken. > > Ah. great! And I just finished the analysis.. :-) Basically, some archs (approximately the 32-bit ones) have ancient legacy versions of the IPC structures that only support 16-bit uid/gid, etc. musl does not support using these, and always uses the modern structures, which requires the IPC_64 flag (0x100) when making the syscall. I assumed this flag would be a no-op on systems where it's not needed, but for some reason the kernel rejects it, so we have to go to the trouble of omitting it.. Rich