Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753671AbdCBAFx (ORCPT ); Wed, 1 Mar 2017 19:05:53 -0500 Received: from mail-co1nam03on0040.outbound.protection.outlook.com ([104.47.40.40]:54304 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753375AbdCBAFt (ORCPT ); Wed, 1 Mar 2017 19:05:49 -0500 Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=caviumnetworks.com; From: Yury Norov To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann , Catalin Marinas Cc: Yury Norov , Andrew Pinski , Andrew Pinski , Adam Borowski , Chris Metcalf , Steve Ellcey , Maxim Kuvyrkov , Ramana Radhakrishnan , Florian Weimer , Bamvor Zhangjian , Andreas Schwab , Chris Metcalf , Heiko Carstens , schwidefsky@de.ibm.com, broonie@kernel.org, Joseph Myers , christoph.muellner@theobroma-systems.com, szabolcs.nagy@arm.com, klimov.linux@gmail.com, Nathan_Lynch@mentor.com, agraf@suse.de, Prasun.Kapoor@caviumnetworks.com, geert@linux-m68k.org, philipp.tomsich@theobroma-systems.com, manuel.montezelo@gmail.com, linyongting@huawei.com, davem@davemloft.net, zhouchengming1@huawei.com, James Hogan , linux-arch@vger.kernel.org, linux-snps-arc@lists.infradead.org, Will Deacon , Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org, Richard Kuo , linux-hexagon@vger.kernel.org, linux-metag@vger.kernel.org, Jonas Bonn , linux@lists.openrisc.net, Chen Liqin , Lennox Wu , Guan Xuetao , Ley Foon Tan , nios2-dev@lists.rocketboards.org, Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp Subject: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Date: Thu, 2 Mar 2017 00:49:11 +0530 Message-Id: <1488395968-14313-4-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488395968-14313-1-git-send-email-ynorov@caviumnetworks.com> References: <1488395968-14313-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [27.97.135.110] X-ClientProxiedBy: HE1PR02CA0057.eurprd02.prod.outlook.com (10.163.170.25) To SN1PR07MB2254.namprd07.prod.outlook.com (10.164.47.148) X-MS-Office365-Filtering-Correlation-Id: 8f4fcdda-9f0a-47bb-2104-08d460d7ff83 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SN1PR07MB2254; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2254;3:01TKOZho1iAs9EMk+8qWSADXPSoOBlBrNcY69KTFxP0DAttMa0JcA/4tBiaQ1N5wbtwULi/nO5PwlTYHWW1orLRWCfH+5e4kbJlLfMf6rAVmLza5OMEYC1ig2uu9M3lavMimTzzpWJWR3Iyvg/zxYK9GmAe/d0d03dv+Xr/6qftzxO6sMjjfftVQQEu3v211QPh+wwxyTE6q2g0YmluVNw61aqiC7/9AqI7fRmz3yhdRIwnk6t0mzL3MRwEJ3wniu/n20ej9jAnLsve9Rd+hbQ==;25:ediwKYHnrvZVqqClYeUjvveAM9hQq7qF2Sdkw4/UK6qAfIe1Jvqki3f3AvopChHYO2n7+HxBtEoCrH/s1YYndXbo+3NEvtZWWUcjN3/SD0TGYvgJJOKxeSw91qkxk688h0EO8aLnNhuKG9oPhcId2Dhhp4V7Ft6JH2mO/xYiUTjvZvblMKSm7qZnyv0dujHcORGLjUyvmEBSiM48rf47nNNRMsiGGJ2m6DBLRXvicErqFwHfzAPgU2fgtI3RnytMwq2F2jocY+orsakedjKDYc8AzaqrfHoGGLqJxRneZ/Aa4njjHvcMcWCUISiA/39LyOob1Cs42B/pTmU0rUKGbC0vZbo0EByMYfb7qtK8+J7h4IGONBjDHRJHDBeQ58su++suPEw1oWnr5cZ3vF3BYL2n9Ih6x6wiy08LCK3cdt/ygyNQGYxqTuM1XLme6XG0md+2AaNND8677GAc6g9sqA== X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2254;31:3Kq6K30DtGHKvHvAeF9eRMKhW4kD+FXKi1Wg1b1kVhmnlmeRuQOC96Wxl9R4eOm/kkNz72rlWWTWc1E1EcSLnA7cUzy4emBcQew7Jskibs+VPdmRaGk1P+Iw08imqdLOol10Nb9k943UkjJl+MCwjIYThqCN/gZNpvY1Y6UKadwYdd8N++dQZX8fkfxW9zWPbPJh+dkvnQVYtuwsw+uRwzuYEREGnwiulAav4YBUxfs=;20:F4t6BXT8ZkRk2XW+HIuXhvqiHp3P4hSZpqi241cZmnUviza9ZE0Zw8OZW5kvF4nt29WOW59EyLEXeXn/7UwnsIsCcQMs0liol7KQNJ/SZhJahhmsMLtKRfkeeTN0ebmVSMs2dxtIhCVOGxhBV2BQGtuT0RNoMwU+h+aznCVK1a8XyEZ2h9G/5K1nS71G9Dvks4SiuTXKeF/GdrltSlhXpMtNi3qVplQsEGR4B8r7uXnhTICWeFWfLs1VTkpxSShd3B5lS6VbdGcCJjvuttlIsrqZ8bBL060gnSUaDopPyKRftkK9CNa7Wfz08B2WWveYw31WKqRIlHErSd5VBiEJPFRDN1NRG8tndVh944Qlw+/KrLkkewJHa1w4NQ6IezITehFb5VdFdwKPpDPSs1GKhF2/7QKzZhGHie8DF6+exNB8SzqhoOcm7xtr/c+e43CFjsDRJE9UCRRE1f06W77AOpg1gwufXs0jiGfh4sRZHShjYlOvUWcH0ThqxpZprmCYGj7LXD+dcNpisShcpuvaDDC/Zr12jXD409IJlGF8FXNtPpAsQYnavThTd3/2E4tCVokSD5cOayfj72XYDnnbG4aslXhm3zP5s2S+vt6dpwI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(31051911155226)(9452136761055)(80048183373757)(258649278758335); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123564025)(20161123558025)(20161123562025)(20161123560025)(6072148);SRVR:SN1PR07MB2254;BCL:0;PCL:0;RULEID:;SRVR:SN1PR07MB2254; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2254;4:FoC7GLqXtY0XcwCXEyrXSlDYOV9G7r9FwEcgWt8ER2lFP3KSJWXpPUrqVUy/7jRgi6ISLMRlWAF6hBnIxPavnwGl8d6AtUebqFAWSH35wRsyvzA9LVcc5JPJWGe5RzoG6qZGsq6NlLo++IeM/qZKyX2iSjWQuFYLnCRyhVpRonDx84gCOttYsAoTT+lU8NuHzpp+74Rb3UwTzg3qUIj47mAxWod3ytpRxnHE3Hy1VxbexZOOuRmwVRORHmkLDsGEN1AgShsSQBxKagYJ0+r5PlYec/aelo6F8j0d73Y3VsdxHzjsuW3ybRy1srzh85BJn+n4fVRFW34+2964hckzP7eHm27yX37EZGtd/g8IwGUCWQMjs9kSo/oi2cZQFHtMXMyiQAzgkKlNs45IjWvGj/5MJW19VZV6WS1CHCvIH/xomW/6SevUyyl3dHVTtlFeg+oY5aDCQfROgJkY9AiSFr7grPVvV9YQnyn7fXmMiH5fi+9C64oODeNbMNND+RqE+aS2KSjvZExgXPiwHKP4FE+wAboqCia4yr3TabMaBX1e9yimHoFr83QrjhyahFsKr6AXC2d8/DOqL+uL5awtp9lJZaxdZ9ZLxj58wG3D+1ypzj3TeyABOztM42+1nr6u5Pm5ZPm+ouHLSY5XJvNsy8phLrYnvWvYqVZaWVFffxT+hFbph5EpA5FBhJUm6X/dntOowxaSAVZR2FT4WEiTn5DaHFvXmV99Lker9Qanim/9n1m2Iwhtm+Ql68lVjwBsX3YJXECp74/bVLa1SJpjXrBmOtH9dOXLUG0LWMGA4Hk= X-Forefront-PRVS: 0233768B38 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(66066001)(2906002)(54906002)(5009440100003)(36756003)(7406005)(7416002)(4326008)(305945005)(7736002)(2950100002)(6666003)(5660300001)(92566002)(38730400002)(53936002)(76176999)(76506005)(575784001)(6116002)(3846002)(50986999)(33646002)(6496005)(8666007)(81166006)(189998001)(8676002)(50226002)(48376002)(25786008)(42186005)(50466002)(5003940100001)(6486002)(41533002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB2254;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR07MB2254;23:TVHdwmidFEEDwX1w9UQUM9MKWAkjg4My3CzONBz4P?= =?us-ascii?Q?8kcJY1lFj4ey2Df0CQ3hW3KNhoRqYhgS/w064QmFrr3H3IAGgODAbQHNs0Q3?= =?us-ascii?Q?SEORDT3veEw8BaGCmb9Jp3+osekQfxbeo0tVxF3TriTYOZ4DLaR7qxYL+Eze?= =?us-ascii?Q?SFeAG8wvChFBwnwa0mGNFxwI07akpxAqoXxdb+/HTvl7WMjVj88K1QYQZWg7?= =?us-ascii?Q?w84B4tLk+gWsTnvanxZcKngn3NwPwsIoshsVmw4QEKJQ6ZeOLGCM5RTQFXLm?= =?us-ascii?Q?/IQN96utSBE0+K+kQ6R0ft9Q+S1kQb5BY38TXtIN+9HWEZxbyETMXZwztLcv?= =?us-ascii?Q?QNBtwMnBK1WtouLjHyOXURKqkic10LkqLB+HGJqfsnwLIX4MgEQOVsFERAtt?= =?us-ascii?Q?YIKWXuqdEzlYk5hpGh2ye2CMQsWxgfZGyzWmzObIGWfpPREfEJ/ANREfQrso?= =?us-ascii?Q?RAfTZLFFc1EuWXG+GQy6SSUR5AmLANwFyXg5t7QaZujw/SHl4oh6xSw+jWLu?= =?us-ascii?Q?69aoa8ZdT4I7IJ36wuomS+vKPJVltiA+nRwUnBQlbJJ5l8pVqjVNxQXdBQ7T?= =?us-ascii?Q?q62D7/1mO55MRePyHm80FhdDr5pGHnWGKl9GwziRWqwrRv67TsSa731i7qO2?= =?us-ascii?Q?3MBMy7ozOyA7ps5jNYIBTWgemgv5K29/pWrx21Rvx8OIWXZFDPDciL/axRnZ?= =?us-ascii?Q?2z0NTrsenLhZZ25sppvNaUFvz0RmGc4UwvYoVT+xWIg/2uz9jZim6V0yR33U?= =?us-ascii?Q?WtKp1L11hInaC7Ujx9XpeZcD6tAS1DhS2V7WNCcvfrw0GhOvlq1hKLG9ydTg?= =?us-ascii?Q?A5prd/LwnOeUYAAv35DuIsqTqvoxQTkIO7lXl2STrYP+iQS5D3Opnd/D6z++?= =?us-ascii?Q?IRmNFKhElZOZ1+6LM2wGI6Q57jOqPwPebgKZEi5gHovS6MuGjkv6aGngm4t+?= =?us-ascii?Q?ZXG53gT8UopBDDUdgFmAhUETYIJ8zdQAGm0/L2owixeIJt4GtlLl8mDbYums?= =?us-ascii?Q?SonzU0nDbVsTffNFUIKKZ9XJn15/6cSgKoqFalq4ABWTw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2254;6:E0JpysVS0W8Zaa5c+9rmnzTLKFY3ztZGnJm2P1OvkRcC4HWMbWryIqsD33U/q1cWfLZoFG6CmoVzGFY0FoJeuBrs0lhLkzkeBlIeGOzWxPsE7Fzb3tKwYvRWDbI2pPql91sUeBGJHiCrMTvIVjD2+ORuPC1zDzzgw5BcQsazMFe9C43OUU9tuog0mGbNZgamH3jM41rkSUWcgEc5KWNcwyowONt1vYBjkpGY1eV7ZRXX4KpR9M/b0AZp+uc42LGk8/cDs9J+dq1/21RExJUNtHfmMp2nmxPfNATCU0PZDnUnIkgV9XZtCONgh6+9nYVXzygj9otiB2B7o0Q6OUTwMkK8qEN60id2hhpz62+GnxZSapGVg+wZwTj+GPASAvaCKtoa5ef5hm170makAMukrw==;5:t2h00kAcLY0aH49AX5im3JYsgP2XFiJbf7VxAlTe6FtS/4DFAiMpHrKbGRwxPWoMts9V3HM5GYo+x1Yvf6O4H2jIxV/bRasPQzOgb8BvbqW9ZKHHRvo09OQQJfRp4SBhYb8tKd+sCj0uBx84WmN/uPHCTji7Z3V1muIrNdyX85U=;24:A814mjvALSc1HwlqypJT6f48qE0jKmIg814O4Hcgov9ABJsb0fKbnAFzKhwBnjiqdk25B40q1guSv0gfSfGZ54mn8S/x5wo9skScchEyXE8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2254;7:vpK4MymWw/xM5mXOBBGLiHqJg/OnRMdKxBP4Gv6E8JBiEIFl7SMyW42U6dwo/2s8qicZz+pcWBzmGnQFvmr5Cw3u0OPGplovm0ecvHHOxan4wsGfhSSlGzPKHKIWzh+Qa1wXui4IBTz2O+68yuxLI6mtMscNztsApDxNEiZab5B7YOS6UyLNFbaLPkHiIM6li3t4sIBPM/BOnm/f0c1p5COTzUjA1Ak7/MwZJJsNMvKY1OisohwA7uOTPNmCxEFUM5Eer/NJV7Z9julhSNHamDAvmMeTTcIsYO2PYn4IsQgYexrnAafPwjNyWWtRjWurwwz0F0q7V4FkyYMhROSoHQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2017 19:20:17.8507 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2254 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7458 Lines: 207 The newer prlimit64 syscall provides all the functionality provided by the getrlimit and setrlimit syscalls and adds the pid of target process, so future architectures won't need to include getrlimit and setrlimit. Therefore drop getrlimit and setrlimit syscalls from the generic syscall list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's unistd.h prior to including asm-generic/unistd.h, and adjust all architectures using the generic syscall list to define it so that no in-tree architectures are affected. Cc: Arnd Bergmann Cc: James Hogan Cc: linux-arch@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-dev@linux-c6x.org Cc: Richard Kuo Cc: linux-hexagon@vger.kernel.org Cc: linux-metag@vger.kernel.org Cc: Jonas Bonn Cc: linux@lists.openrisc.net Cc: Chen Liqin Cc: Lennox Wu Cc: Chris Metcalf Cc: Guan Xuetao Cc: Ley Foon Tan Cc: nios2-dev@lists.rocketboards.org Cc: Yoshinori Sato Cc: uclinux-h8-devel@lists.sourceforge.jp Acked-by: Arnd Bergmann Acked-by: Mark Salter [c6x] Acked-by: James Hogan [metag] Acked-by: Ley Foon Tan [nios2] Acked-by: Stafford Horne [openrisc] Acked-by: Vineet Gupta #arch/arc bits Signed-off-by: Yury Norov --- arch/arc/include/uapi/asm/unistd.h | 1 + arch/arm64/include/uapi/asm/unistd.h | 1 + arch/c6x/include/uapi/asm/unistd.h | 1 + arch/h8300/include/uapi/asm/unistd.h | 1 + arch/hexagon/include/uapi/asm/unistd.h | 1 + arch/metag/include/uapi/asm/unistd.h | 1 + arch/nios2/include/uapi/asm/unistd.h | 1 + arch/openrisc/include/uapi/asm/unistd.h | 1 + arch/score/include/uapi/asm/unistd.h | 1 + arch/tile/include/uapi/asm/unistd.h | 1 + arch/unicore32/include/uapi/asm/unistd.h | 1 + include/uapi/asm-generic/unistd.h | 5 +++++ 12 files changed, 16 insertions(+) diff --git a/arch/arc/include/uapi/asm/unistd.h b/arch/arc/include/uapi/asm/unistd.h index 9a34136..ac64965 100644 --- a/arch/arc/include/uapi/asm/unistd.h +++ b/arch/arc/include/uapi/asm/unistd.h @@ -16,6 +16,7 @@ #define _UAPI_ASM_ARC_UNISTD_H #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 043d17a..48355a6 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -15,5 +15,6 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/c6x/include/uapi/asm/unistd.h b/arch/c6x/include/uapi/asm/unistd.h index 12d73d9..f676231 100644 --- a/arch/c6x/include/uapi/asm/unistd.h +++ b/arch/c6x/include/uapi/asm/unistd.h @@ -15,6 +15,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_CLONE /* Use the standard ABI for syscalls. */ diff --git a/arch/h8300/include/uapi/asm/unistd.h b/arch/h8300/include/uapi/asm/unistd.h index 7dd20ef..2f98394 100644 --- a/arch/h8300/include/uapi/asm/unistd.h +++ b/arch/h8300/include/uapi/asm/unistd.h @@ -1,5 +1,6 @@ #define __ARCH_NOMMU #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/hexagon/include/uapi/asm/unistd.h b/arch/hexagon/include/uapi/asm/unistd.h index 2151760..52d585c 100644 --- a/arch/hexagon/include/uapi/asm/unistd.h +++ b/arch/hexagon/include/uapi/asm/unistd.h @@ -28,6 +28,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/metag/include/uapi/asm/unistd.h b/arch/metag/include/uapi/asm/unistd.h index 459b6ec..16b5cb3 100644 --- a/arch/metag/include/uapi/asm/unistd.h +++ b/arch/metag/include/uapi/asm/unistd.h @@ -8,6 +8,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT /* Use the standard ABI for syscalls. */ #include diff --git a/arch/nios2/include/uapi/asm/unistd.h b/arch/nios2/include/uapi/asm/unistd.h index 51a32c7..b0dda4d 100644 --- a/arch/nios2/include/uapi/asm/unistd.h +++ b/arch/nios2/include/uapi/asm/unistd.h @@ -18,6 +18,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT /* Use the standard ABI for syscalls */ #include diff --git a/arch/openrisc/include/uapi/asm/unistd.h b/arch/openrisc/include/uapi/asm/unistd.h index 471905b..6812d81 100644 --- a/arch/openrisc/include/uapi/asm/unistd.h +++ b/arch/openrisc/include/uapi/asm/unistd.h @@ -21,6 +21,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_CLONE diff --git a/arch/score/include/uapi/asm/unistd.h b/arch/score/include/uapi/asm/unistd.h index d4008c3..7ad1bdc 100644 --- a/arch/score/include/uapi/asm/unistd.h +++ b/arch/score/include/uapi/asm/unistd.h @@ -1,6 +1,7 @@ #define __ARCH_HAVE_MMU #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYSCALL_NO_AT #define __ARCH_WANT_SYSCALL_NO_FLAGS #define __ARCH_WANT_SYSCALL_OFF_T diff --git a/arch/tile/include/uapi/asm/unistd.h b/arch/tile/include/uapi/asm/unistd.h index 24e9187..cf0505f 100644 --- a/arch/tile/include/uapi/asm/unistd.h +++ b/arch/tile/include/uapi/asm/unistd.h @@ -13,6 +13,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #if !defined(__LP64__) || defined(__SYSCALL_COMPAT) /* Use the flavor of this syscall that matches the 32-bit API better. */ #define __ARCH_WANT_SYNC_FILE_RANGE2 diff --git a/arch/unicore32/include/uapi/asm/unistd.h b/arch/unicore32/include/uapi/asm/unistd.h index 9cf71c7..76ece52 100644 --- a/arch/unicore32/include/uapi/asm/unistd.h +++ b/arch/unicore32/include/uapi/asm/unistd.h @@ -11,6 +11,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #ifndef CONFIG_UNICORE32_OLDABI diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index a6062be..d65e232 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -465,10 +465,15 @@ __SYSCALL(__NR_uname, sys_newuname) __SYSCALL(__NR_sethostname, sys_sethostname) #define __NR_setdomainname 162 __SYSCALL(__NR_setdomainname, sys_setdomainname) + +#ifdef __ARCH_WANT_SET_GET_RLIMIT +/* getrlimit and setrlimit are superseded with prlimit64 */ #define __NR_getrlimit 163 __SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit) #define __NR_setrlimit 164 __SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit) +#endif + #define __NR_getrusage 165 __SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage) #define __NR_umask 166 -- 2.7.4