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/getppid.S


The file sysdeps/unix/getppid.S is unused.  Linux systems use the
getppid syscall, listed in sysdeps/unix/sysv/linux/syscalls.list, and
Hurd also has its own implementation; nothing uses this version via
#include either.  (I don't know what caused the build problem Carlos
had with this file being wrongly used
<http://sourceware.org/ml/libc-ports/2012-04/msg00034.html>, but it
seems clear anyway that this file is not of current use.)

I propose this patch to remove this unused file.  Tested x86_64.

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

	* sysdeps/unix/getppid.S: Remove file.

diff --git a/sysdeps/unix/getppid.S b/sysdeps/unix/getppid.S
deleted file mode 100644
index e53f313..0000000
--- a/sysdeps/unix/getppid.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_getppid
-SYSCALL__ (getppid, 0)
-#else
-PSEUDO (__getppid, getpid, 0)
-	MOVE(r1, r0)
-#endif
-	ret
-PSEUDO_END(__getppid)
-
-weak_alias (__getppid, getppid)

-- 
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]