diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setegid.c | 35 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/seteuid.c | 35 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setgid.c | 34 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setgroups.c | 37 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setregid.c | 34 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setresgid.c | 36 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setresuid.c | 36 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setreuid.c | 35 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/setuid.c | 35 |
9 files changed, 0 insertions, 317 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/setegid.c b/sysdeps/unix/sysv/linux/i386/setegid.c deleted file mode 100644 index 5a009e7403..0000000000 --- a/sysdeps/unix/sysv/linux/i386/setegid.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (C) 1995-2017 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 <setxid.h> - - -int -setegid (gid_t gid) -{ - int result; - - if (gid == (gid_t) ~0) - return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL); - - result = INLINE_SETXID_SYSCALL (setresgid32, 3, -1, gid, -1); - - return result; -} -libc_hidden_def (setegid) diff --git a/sysdeps/unix/sysv/linux/i386/seteuid.c b/sysdeps/unix/sysv/linux/i386/seteuid.c deleted file mode 100644 index 7f5b84c869..0000000000 --- a/sysdeps/unix/sysv/linux/i386/seteuid.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (C) 1998-2017 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 <setxid.h> - - -int -seteuid (uid_t uid) -{ - int result; - - if (uid == (uid_t) ~0) - return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL); - - result = INLINE_SETXID_SYSCALL (setresuid32, 3, -1, uid, -1); - - return result; -} -libc_hidden_def (seteuid) diff --git a/sysdeps/unix/sysv/linux/i386/setgid.c b/sysdeps/unix/sysv/linux/i386/setgid.c deleted file mode 100644 index 9b58e7bb8d..0000000000 --- a/sysdeps/unix/sysv/linux/i386/setgid.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 1998-2017 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 <setxid.h> -#include <linux/posix_types.h> - -int -__setgid (gid_t gid) -{ - int result; - - result = INLINE_SETXID_SYSCALL (setgid32, 1, gid); - - return result; -} -#ifndef __setgid -weak_alias (__setgid, setgid) -#endif diff --git a/sysdeps/unix/sysv/linux/i386/setgroups.c b/sysdeps/unix/sysv/linux/i386/setgroups.c deleted file mode 100644 index 13ab4fda36..0000000000 --- a/sysdeps/unix/sysv/linux/i386/setgroups.c +++ /dev/null @@ -1,37 +0,0 @@ -/* Copyright (C) 1997-2017 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 <grp.h> -#include <unistd.h> -#include <sys/types.h> - -#include <sysdep.h> -#include <sys/syscall.h> - -#include <setxid.h> -#include <linux/posix_types.h> - -/* Set the group set for the current user to GROUPS (N of them). For - Linux we must convert the array of groups into the format that the - kernel expects. */ -int -setgroups (size_t n, const gid_t *groups) -{ - return INLINE_SETXID_SYSCALL (setgroups32, 2, n, groups); -} -libc_hidden_def (setgroups) diff --git a/sysdeps/unix/sysv/linux/i386/setregid.c b/sysdeps/unix/sysv/linux/i386/setregid.c deleted file mode 100644 index 3314f55dfd..0000000000 --- a/sysdeps/unix/sysv/linux/i386/setregid.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 1998-2017 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 <setxid.h> -#include <linux/posix_types.h> - -int -__setregid (gid_t rgid, gid_t egid) -{ - int result; - - result = INLINE_SETXID_SYSCALL (setregid32, 2, rgid, egid); - - return result; -} -#ifndef __setregid -weak_alias (__setregid, setregid) -#endif diff --git a/sysdeps/unix/sysv/linux/i386/setresgid.c b/sysdeps/unix/sysv/linux/i386/setresgid.c deleted file mode 100644 index 45d6769de1..0000000000 --- a/sysdeps/unix/sysv/linux/i386/setresgid.c +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright (C) 1998-2017 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 <setxid.h> -#include <linux/posix_types.h> - - -int -__setresgid (gid_t rgid, gid_t egid, gid_t sgid) -{ - int result; - - result = INLINE_SETXID_SYSCALL (setresgid32, 3, rgid, egid, sgid); - - return result; -} -libc_hidden_def (__setresgid) -#ifndef __setresgid -weak_alias (__setresgid, setresgid) -#endif diff --git a/sysdeps/unix/sysv/linux/i386/setresuid.c b/sysdeps/unix/sysv/linux/i386/setresuid.c deleted file mode 100644 index 94a117ea43..0000000000 --- a/sysdeps/unix/sysv/linux/i386/setresuid.c +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright (C) 1998-2017 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 <setxid.h> -#include <linux/posix_types.h> - - -int -__setresuid (uid_t ruid, uid_t euid, uid_t suid) -{ - int result; - - result = INLINE_SETXID_SYSCALL (setresuid32, 3, ruid, euid, suid); - - return result; -} -libc_hidden_def (__setresuid) -#ifndef __setresuid -weak_alias (__setresuid, setresuid) -#endif diff --git a/sysdeps/unix/sysv/linux/i386/setreuid.c b/sysdeps/unix/sysv/linux/i386/setreuid.c deleted file mode 100644 index ad18330c12..0000000000 --- a/sysdeps/unix/sysv/linux/i386/setreuid.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (C) 1998-2017 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 <setxid.h> -#include <linux/posix_types.h> - - -int -__setreuid (uid_t ruid, uid_t euid) -{ - int result; - - result = INLINE_SETXID_SYSCALL (setreuid32, 2, ruid, euid); - - return result; -} -#ifndef __setreuid -weak_alias (__setreuid, setreuid) -#endif diff --git a/sysdeps/unix/sysv/linux/i386/setuid.c b/sysdeps/unix/sysv/linux/i386/setuid.c deleted file mode 100644 index b1fc9aa930..0000000000 --- a/sysdeps/unix/sysv/linux/i386/setuid.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (C) 1998-2017 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 <setxid.h> -#include <linux/posix_types.h> - - -int -__setuid (uid_t uid) -{ - int result; - - result = INLINE_SETXID_SYSCALL (setuid32, 1, uid); - - return result; -} -#ifndef __setuid -weak_alias (__setuid, setuid) -#endif |