aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/i386/setfsuid.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-10-27 12:24:42 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-10-27 12:24:42 +0000
commita4b3624d20e90e8255fb82a83ff40e9e178e0aef (patch)
tree0db6fe2edbe28b657e41e7f8b7a106453ff2fa64 /sysdeps/unix/sysv/linux/i386/setfsuid.c
parent3574f2fdf3827d4953d19a89063e517263b5df85 (diff)
downloadglibc-a4b3624d20e90e8255fb82a83ff40e9e178e0aef.tar
glibc-a4b3624d20e90e8255fb82a83ff40e9e178e0aef.tar.gz
glibc-a4b3624d20e90e8255fb82a83ff40e9e178e0aef.tar.bz2
glibc-a4b3624d20e90e8255fb82a83ff40e9e178e0aef.zip
Move setfsgid/setfsuid definitions to syscalls.list (bug 14138).
Continuing the move of syscall definitions to syscalls.list, where the removal of support for old kernel versions has made this possible, this patch moves various definitions of setfsgid and setfsuid. Tested for x86. [BZ #14138] * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file. * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add syscall. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid): Likewise. (setfsuid): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/setfsuid.c')
-rw-r--r--sysdeps/unix/sysv/linux/i386/setfsuid.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/setfsuid.c b/sysdeps/unix/sysv/linux/i386/setfsuid.c
deleted file mode 100644
index 1fd330cd0c..0000000000
--- a/sysdeps/unix/sysv/linux/i386/setfsuid.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* Copyright (C) 1998-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 <sys/types.h>
-#include <sys/fsuid.h>
-
-#include <sysdep.h>
-#include <sys/syscall.h>
-
-#include <linux/posix_types.h>
-
-/* Consider moving to syscalls.list. */
-
-int
-setfsuid (uid_t uid)
-{
- INTERNAL_SYSCALL_DECL (err);
- return INTERNAL_SYSCALL (setfsuid32, err, 1, uid);
-}