From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13117 invoked by alias); 26 Jul 2012 19:00:08 -0000 Received: (qmail 13057 invoked by uid 22791); 26 Jul 2012 19:00:05 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,TW_TP X-Spam-Check-By: sourceware.org Received: from toast.topped-with-meat.com (HELO topped-with-meat.com) (204.197.218.159) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 Jul 2012 18:59:51 +0000 Received: by topped-with-meat.com (Postfix, from userid 5281) id D07662C064; Thu, 26 Jul 2012 11:59:50 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Andreas Jaeger Cc: libc-alpha@sourceware.org, libc-ports@sourceware.org Subject: [PATCH roland/getrlimit] Re: Bug 14138 - Move some functions to syscalls.list In-Reply-To: Andreas Jaeger's message of Thursday, 26 July 2012 13:40:19 +0200 <5296462.88fGOZ3lSr@byrd> References: <50103612.3050308@suse.com> <20120725203222.AF6452C0E2@topped-with-meat.com> <5296462.88fGOZ3lSr@byrd> Message-Id: <20120726185950.D07662C064@topped-with-meat.com> Date: Thu, 26 Jul 2012 19:00:00 -0000 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=e8d9udV/ c=1 sm=1 a=DHhxvg2d5AEA:10 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=14OXPxybAAAA:8 a=L5w-kpg1Y5JgjPo_njYA:9 a=CjuIK1q_8ugA:10 a=WkljmVdYkabdwxfqvArNOQ==:117 X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00060.txt.bz2 > Adding this line to linux/syscalls.list: > > getrlimit - ugetrlimit i:ip __new_getrlimit __getrlimit getrlimit@@GLIBC_2.2 > > The unix/syscalls.list takes precendence of the linux one. So, this did > not work out for x86 ;( Or did I made an error? What exactly does that mean? What getrlimit-related lines appear in the sysd-syscalls generated after the change? > Btw. I removed the linux/i386/getrlimit.c file for this as well, Yes, that's necessary. Anyway, you must have made some error, because it worked for me. The change below is on the roland/getrlimit branch. It needs testing and sign-off from powerpc, sh, am33, arm, and m68k maintainers. Thanks, Roland 2012-07-26 Roland McGrath [BZ #14138] * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line. * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed. * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed. * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed. ports/ChangeLog.am33 2012-07-26 Roland McGrath [BZ #14138] * sysdeps/unix/sysv/linux/am33/getrlimit.c: File removed. ports/ChangeLog.arm 2012-07-26 Roland McGrath [BZ #14138] * sysdeps/unix/sysv/linux/arm/getrlimit.c: File removed. ports/ChangeLog.m68k 2012-07-26 Roland McGrath [BZ #14138] * sysdeps/unix/sysv/linux/m68k/getrlimit.c: File removed. diff --git a/ports/sysdeps/unix/sysv/linux/am33/getrlimit.c b/ports/sysdeps/unix/sysv/linux/am33/getrlimit.c deleted file mode 100644 index fc06dbd..0000000 diff --git a/ports/sysdeps/unix/sysv/linux/arm/getrlimit.c b/ports/sysdeps/unix/sysv/linux/arm/getrlimit.c deleted file mode 100644 index fc06dbd..0000000 diff --git a/ports/sysdeps/unix/sysv/linux/m68k/getrlimit.c b/ports/sysdeps/unix/sysv/linux/m68k/getrlimit.c deleted file mode 100644 index fc06dbd..0000000 diff --git a/sysdeps/unix/sysv/linux/i386/getrlimit.c b/sysdeps/unix/sysv/linux/i386/getrlimit.c deleted file mode 100644 index e18f9de..0000000 diff --git a/sysdeps/unix/sysv/linux/powerpc/getrlimit.c b/sysdeps/unix/sysv/linux/powerpc/getrlimit.c deleted file mode 100644 index fc06dbd..0000000 diff --git a/sysdeps/unix/sysv/linux/sh/getrlimit.c b/sysdeps/unix/sysv/linux/sh/getrlimit.c deleted file mode 100644 index fc06dbd..0000000 diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list index 9ec0028..6343272 100644 --- a/sysdeps/unix/sysv/linux/syscalls.list +++ b/sysdeps/unix/sysv/linux/syscalls.list @@ -25,6 +25,7 @@ getpmsg - getpmsg i:ipppp getpmsg getppid - getppid Ei: __getppid getppid getresuid - getresuid i:ppp getresuid getresgid - getresgid i:ppp getresgid +getrlimit - ugetrlimit i:ip __new_getrlimit __getrlimit getrlimit@@GLIBC_2.2 getsid - getsid i:i getsid init_module EXTRA init_module 5 init_module inotify_add_watch EXTRA inotify_add_watch i:isi inotify_add_watch