diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-10-01 20:58:20 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-10-01 20:58:20 +0000 |
commit | 6268f532b6c6be7971cb57883d042bd771966548 (patch) | |
tree | 265c862f1a4ec239f9192de67ff6510ef370657e /sysdeps/unix/sysv/linux/execve.c | |
parent | 7a34129911093dac61d6f2927cd8125f8e6d9945 (diff) | |
download | glibc-6268f532b6c6be7971cb57883d042bd771966548.tar glibc-6268f532b6c6be7971cb57883d042bd771966548.tar.gz glibc-6268f532b6c6be7971cb57883d042bd771966548.tar.bz2 glibc-6268f532b6c6be7971cb57883d042bd771966548.zip |
Move execve to syscalls.list (bug 14138).
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.
[BZ #14138]
* sysdeps/unix/sysv/linux/execve.c: Remove file.
* sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
Diffstat (limited to 'sysdeps/unix/sysv/linux/execve.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/execve.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sysdeps/unix/sysv/linux/execve.c b/sysdeps/unix/sysv/linux/execve.c deleted file mode 100644 index db96226f65..0000000000 --- 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 - <http://www.gnu.org/licenses/>. */ - -#include <errno.h> -#include <unistd.h> - -#include <sysdep.h> -#include <alloca.h> -#include <sys/syscall.h> - -/* 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) |