This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Remove unused sysdeps/unix/getegid.S and sysdeps/unix/geteuid.S


The files sysdeps/unix/getegid.S and sysdeps/unix/geteuid.S are
unused: Linux uses syscalls defined in
sysdeps/unix/sysv/linux/syscalls.list (and on some architectures C
versions to allow for old and new syscall variants) and Hurd also has
its own implementations of these functions.

I propose this patch to remove these unused files.  Tested x86_64.

2012-04-24  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/getegid.S: Remove file.
	* sysdeps/unix/geteuid.S: Likewise.

diff --git a/sysdeps/unix/getegid.S b/sysdeps/unix/getegid.S
deleted file mode 100644
index a887633..0000000
--- a/sysdeps/unix/getegid.S
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright (C) 1991, 1992, 1995, 1997 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 <sysdep.h>
-
-#ifdef	SYS_getegid
-SYSCALL__ (getegid, 0)
-#else
-PSEUDO (__getegid, getgid, 0)
-	MOVE(r1, r0)
-#endif
-	ret
-PSEUDO_END(__getegid)
-
-weak_alias (__getegid, getegid)
diff --git a/sysdeps/unix/geteuid.S b/sysdeps/unix/geteuid.S
deleted file mode 100644
index b2b6e3a..0000000
--- a/sysdeps/unix/geteuid.S
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright (C) 1991, 1992, 1995, 1997 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 <sysdep.h>
-
-#ifdef	SYS_geteuid
-SYSCALL__ (geteuid, 0)
-#else
-PSEUDO (__geteuid, getuid, 0)
-	MOVE(r1, r0)
-#endif
-	ret
-PSEUDO_END(__geteuid)
-
-weak_alias (__geteuid, geteuid)

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]