extern int __libc_system (const char *line);
+extern __typeof (getpt) __getpt;
+extern __typeof (ptsname_r) __ptsname_r;
+libc_hidden_proto (__getpt)
+libc_hidden_proto (__ptsname_r)
+libc_hidden_proto (grantpt)
+libc_hidden_proto (unlockpt)
extern double __strtod_internal (const char *__restrict __nptr,
char **__restrict __endptr, int __group)
__set_errno (ENOSYS);
return -1;
}
+libc_hidden_def (__getpt)
weak_alias (__getpt, getpt)
/* We cannot define posix_openpt in general for BSD systems. */
__set_errno (ENOSYS);
return -1;
}
-
+libc_hidden_def (grantpt)
stub_warning (grantpt)
__set_errno (ENOSYS);
return ENOSYS;
}
+libc_hidden_def (__ptsname_r)
weak_alias (__ptsname_r, ptsname_r)
stub_warning(ptsname)
{
return __ptsname_internal (fd, buf, buflen, NULL);
}
+libc_hidden_def (__ptsname_r)
weak_alias (__ptsname_r, ptsname_r)
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
-
+#include <stdlib.h>
/* Prefix for master pseudo terminal nodes. */
#define _PATH_PTY "/dev/pty"
{
return __bsd_openpt (O_RDWR);
}
+libc_hidden_def (__getpt)
weak_alias (__getpt, getpt)
int
}
return __revoke (buf);
}
+libc_hidden_def (unlockpt)
return retval;
}
+libc_hidden_def (grantpt)
#include <fcntl.h>
#include <unistd.h>
#include <paths.h>
+#include <stdlib.h>
/* Path to the master pseudo terminal cloning device. */
#define _PATH_DEVPTMX _PATH_DEV "ptmx"
{
return __posix_openpt (O_RDWR);
}
+libc_hidden_def (__getpt)
weak_alias (__getpt, getpt)
__set_errno (EINVAL);
return ret;
}
+libc_hidden_def (grantpt)
__set_errno (save_errno);
return 0;
}
+libc_hidden_def (__ptsname_r)
weak_alias (__ptsname_r, ptsname_r)
__set_errno (EINVAL);
return ret;
}
+libc_hidden_def (unlockpt)