summaryrefslogtreecommitdiff
path: root/libc/stdlib/bsd_getpt.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-20 11:38:31 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-20 11:38:31 +0000
commit42dfe0465e03b819a3508d653ce6e7cc39b40cff (patch)
treeb51cc30260d9232d208d0cf724d8f883d63258b4 /libc/stdlib/bsd_getpt.c
parent46755f4c22f38d503c4dfac90d09e78062ff7f80 (diff)
Correction if UNIX98PTY_ONLY is not enabled
Diffstat (limited to 'libc/stdlib/bsd_getpt.c')
-rw-r--r--libc/stdlib/bsd_getpt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/stdlib/bsd_getpt.c b/libc/stdlib/bsd_getpt.c
index aec0ca4bc..9b885c4e5 100644
--- a/libc/stdlib/bsd_getpt.c
+++ b/libc/stdlib/bsd_getpt.c
@@ -22,6 +22,8 @@
#include <string.h>
#include <unistd.h>
+libc_hidden_proto(open)
+libc_hidden_proto(mempcpy)
/* Prefix for master pseudo terminal nodes. */
#define _PATH_PTY "/dev/pty"
@@ -48,7 +50,7 @@ __getpt (void)
const char *p, *q;
char *s;
- s = __mempcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) - 1);
+ s = mempcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) - 1);
/* s[0] and s[1] will be filled in the loop. */
s[2] = '\0';
@@ -62,7 +64,7 @@ __getpt (void)
s[1] = *q;
- fd = __open (buf, O_RDWR);
+ fd = open (buf, O_RDWR);
if (fd != -1)
return fd;