From 403d3b6c026812d82647eabf9370722f3f1e7893 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 16 Dec 2005 01:18:01 +0000 Subject: Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back --- libc/stdlib/unix_grantpt.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libc/stdlib/unix_grantpt.c') diff --git a/libc/stdlib/unix_grantpt.c b/libc/stdlib/unix_grantpt.c index c8dbf3cb3..0e7d50a99 100644 --- a/libc/stdlib/unix_grantpt.c +++ b/libc/stdlib/unix_grantpt.c @@ -24,6 +24,8 @@ #define waitpid __waitpid #define dup2 __dup2 #define chmod __chmod +#define vfork __vfork +#define fork __fork #include #include @@ -42,7 +44,7 @@ /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ #include #if ! defined __NR_vfork -#define vfork fork +#define vfork fork #endif extern int __ptsname_r (int fd, char *buf, size_t buflen) attribute_hidden; @@ -166,10 +168,10 @@ grantpt (int fd) /* We pase the master pseudo terminal as file descriptor PTY_FILENO. */ if (fd != PTY_FILENO) if (dup2 (fd, PTY_FILENO) < 0) - _exit (FAIL_EBADF); + _exit_internal (FAIL_EBADF); execle (_PATH_PT_CHOWN, _PATH_PT_CHOWN, NULL, NULL); - _exit (FAIL_EXEC); + _exit_internal (FAIL_EXEC); } else { -- cgit v1.2.3