summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/unix_grantpt.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-08 04:31:05 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-08 04:31:05 +0000
commitc5ad60615407d6f54807ed52656d962d1dcbbe3e (patch)
tree5ef0a9f39d02d46f8b8f4895e2deada7a1b72340 /libc/stdlib/unix_grantpt.c
parentdc92cc5ad2d89036502585cf05426012b1f8647e (diff)
downloaduClibc-alpine-c5ad60615407d6f54807ed52656d962d1dcbbe3e.tar.bz2
uClibc-alpine-c5ad60615407d6f54807ed52656d962d1dcbbe3e.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/stdlib/unix_grantpt.c')
-rw-r--r--libc/stdlib/unix_grantpt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/stdlib/unix_grantpt.c b/libc/stdlib/unix_grantpt.c
index 1f1c4df5c..e087d18c8 100644
--- a/libc/stdlib/unix_grantpt.c
+++ b/libc/stdlib/unix_grantpt.c
@@ -22,6 +22,7 @@
#define getuid __getuid
#define setrlimit __setrlimit
#define waitpid __waitpid
+#define dup2 __dup2
#include <assert.h>
#include <errno.h>
@@ -43,7 +44,7 @@
#define vfork fork
#endif
-extern int ptsname_r (int fd, char *buf, size_t buflen);
+extern int __ptsname_r (int fd, char *buf, size_t buflen) attribute_hidden;
/* 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
@@ -61,7 +62,7 @@ pts_name (int fd, char **pts, size_t buf_len)
if (buf_len)
{
- rv = ptsname_r (fd, buf, buf_len);
+ rv = __ptsname_r (fd, buf, buf_len);
if (rv != 0 || memchr (buf, '\0', buf_len))
/* We either got an error, or we succeeded and the