From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1974 Path: news.gmane.org!not-for-mail From: Jens Newsgroups: gmane.linux.lib.musl.general Subject: semtcl for x86_64 Date: Sat, 22 Sep 2012 10:26:54 +0200 (CEST) Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1348302431 3811 80.91.229.3 (22 Sep 2012 08:27:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 08:27:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1975-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 22 10:27:12 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 1TFL3Q-0005ru-FV for gllmg-musl@plane.gmane.org; Sat, 22 Sep 2012 10:27:12 +0200 Original-Received: (qmail 13791 invoked by uid 550); 22 Sep 2012 08:27:06 -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 13783 invoked from network); 22 Sep 2012 08:27:06 -0000 User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) Xref: news.gmane.org gmane.linux.lib.musl.general:1974 Archived-At: Hello I have some trouble getting semctl working: Tried in both musl and uclibc to compare. See below. The only difference I can see is the IPC_64 flag. (I haven't tried 32-bit). Regards, Jens program: bash-4.1# cat t.c #include #include #include main() { int sem; // semget(IPC_PRIVATE, 1, IPC_CREAT|0600) = 131076 sem = semget(IPC_PRIVATE, 1, IPC_CREAT); semctl(sem, 0, SETVAL, 0x1); } musl: bash-4.1# /bin64/strace ./m execve("./m", ["./m"], [/* 19 vars */]) = 0 semget(IPC_PRIVATE, 1, IPC_CREAT|0) = 327688 semctl(327688, 0, IPC_64|SETVAL, 0x1) = -1 EINVAL (Invalid argument) exit_group(-1) = ? bash-4.1# uclibc: semget(IPC_PRIVATE, 1, IPC_CREAT|0) = 262150 semctl(262150, 0, SETVAL, 0x1) = 0 _exit(0) = ? bash-4.1#