summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/unix_grantpt.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 01:18:01 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 01:18:01 +0000
commit403d3b6c026812d82647eabf9370722f3f1e7893 (patch)
treef4300320d7a7739990ad6b13aaf3918e65d94c2a /libc/stdlib/unix_grantpt.c
parent6a6ae6e1a26f32fd896b0a7b740129161bfb008b (diff)
downloaduClibc-alpine-403d3b6c026812d82647eabf9370722f3f1e7893.tar.bz2
uClibc-alpine-403d3b6c026812d82647eabf9370722f3f1e7893.tar.xz
Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back
Diffstat (limited to 'libc/stdlib/unix_grantpt.c')
-rw-r--r--libc/stdlib/unix_grantpt.c8
1 files changed, 5 insertions, 3 deletions
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 <assert.h>
#include <errno.h>
@@ -42,7 +44,7 @@
/* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
#include <sys/syscall.h>
#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
{