From 036daaa8e143c0865ac92359396f38c0d7e2c1f2 Mon Sep 17 00:00:00 2001 From: Mark Salter Date: Fri, 4 May 2012 08:18:46 -0400 Subject: drop support for old systems lacking vfork Only really old systems (<=linux-2.0) lack a dedicated vfork system call. The code that is in place to support them is causing issues with newer arches that also don't provide a vfork system call -- instead, they do vfork by calling clone in userspace. If anyone cares about these really old systems, they can submit a patch to make the system work with them while not breaking newer systems. Signed-off-by: Mark Salter Signed-off-by: Mike Frysinger --- libc/stdlib/system.c | 5 ----- libc/stdlib/unix_grantpt.c | 6 ------ 2 files changed, 11 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c index a92c307c3..ec25ead73 100644 --- a/libc/stdlib/system.c +++ b/libc/stdlib/system.c @@ -24,11 +24,6 @@ extern __typeof(system) __libc_system; * need to figure out why still */ #if !defined __UCLIBC_HAS_THREADS_NATIVE__ || defined __sparc__ -/* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ -#include -#ifndef __NR_vfork -# define vfork fork -#endif int __libc_system(const char *command) { diff --git a/libc/stdlib/unix_grantpt.c b/libc/stdlib/unix_grantpt.c index 1be0a7ddb..527b8c928 100644 --- a/libc/stdlib/unix_grantpt.c +++ b/libc/stdlib/unix_grantpt.c @@ -31,12 +31,6 @@ #include "pty-private.h" -/* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ -#include -#if ! defined __NR_vfork -#define vfork fork -#endif - /* Return the result of ptsname_r in the buffer pointed to by PTS, which should be of length BUF_LEN. If it is too long to fit in this buffer, a sufficiently long buffer is allocated using malloc, -- cgit v1.2.3