From patchwork Wed Oct 1 13:39:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 3054 Received: (qmail 21236 invoked by alias); 1 Oct 2014 13:39:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 21223 invoked by uid 89); 1 Oct 2014 13:39:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Wed, 1 Oct 2014 13:39:23 +0000 From: "Joseph S. Myers" To: Subject: Move execve to syscalls.list (bug 14138) Message-ID: MIME-Version: 1.0 Continuing the move of syscall definitions to syscalls.list, where previous cleanups have made this possible, this patch moves the definition of execve. (In this case, it was the removal of bounded pointers support, rather than old kernel support, which made the move possible.) Tested for x86_64. (This patch is independent of my other pending patches for such moves, and .) 2014-10-01 Joseph Myers [BZ #14138] * sysdeps/unix/sysv/linux/execve.c: Remove file. * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall. diff --git a/sysdeps/unix/sysv/linux/execve.c b/sysdeps/unix/sysv/linux/execve.c deleted file mode 100644 index db96226..0000000 --- a/sysdeps/unix/sysv/linux/execve.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (C) 1999-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include - -#include -#include -#include - -/* Consider moving to syscalls.list. */ - -int -__execve (file, argv, envp) - const char *file; - char *const argv[]; - char *const envp[]; -{ - return INLINE_SYSCALL (execve, 3, file, argv, envp); -} -weak_alias (__execve, execve) diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list index 5e3968a..ddec198 100644 --- a/sysdeps/unix/sysv/linux/syscalls.list +++ b/sysdeps/unix/sysv/linux/syscalls.list @@ -13,6 +13,7 @@ epoll_create EXTRA epoll_create i:i epoll_create epoll_create1 EXTRA epoll_create1 i:i epoll_create1 epoll_ctl EXTRA epoll_ctl i:iiip epoll_ctl epoll_wait EXTRA epoll_wait Ci:ipii epoll_wait +execve - execve i:spp __execve execve fdatasync - fdatasync Ci:i fdatasync flock - flock i:ii __flock flock get_kernel_syms EXTRA get_kernel_syms i:p get_kernel_syms