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/system.c


The file sysdeps/unix/system.c is unused: Linux has its own system.c
(which includes sysdeps/posix/system.c) and Hurd will use the more
specific sysdeps/unix/bsd/bsd4.4/system.c (which also includes
sysdeps/posix/system.c).  sysdeps/unix/system.c is also particularly
useless because all it does is define NO_WAITPID then include
sysdeps/posix/system.c - but neither sysdeps/posix/system.c, nor
anything else in the source tree, tests NO_WAITPID at all (it appears
NO_WAITPID support was removed by

2007-01-16  Ulrich Drepper  <drepper@redhat.com>

        * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
        really work anyway.

).

I propose this patch to remove sysdeps/unix/system.c as unused - and
with it sysdeps/unix/bsd/bsd4.4/system.c which becomes redundant.
Tested x86_64.

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

	* sysdeps/unix/system.c: Remove file.
	* sysdeps/unix/bsd/bsd4.4/system.c: Likewise.

diff --git a/sysdeps/unix/bsd/bsd4.4/system.c b/sysdeps/unix/bsd/bsd4.4/system.c
deleted file mode 100644
index 9283f74..0000000
--- a/sysdeps/unix/bsd/bsd4.4/system.c
+++ /dev/null
@@ -1,2 +0,0 @@
-/* BSD 4.4 does have `waitpid'.  Avoid unix/system.c, which says we don't.  */
-#include <sysdeps/posix/system.c>
diff --git a/sysdeps/unix/system.c b/sysdeps/unix/system.c
deleted file mode 100644
index 2c52ec8..0000000
--- a/sysdeps/unix/system.c
+++ /dev/null
@@ -1,2 +0,0 @@
-#define	NO_WAITPID
-#include <sysdeps/posix/system.c>

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