|
@@ -17,6 +17,7 @@
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
|
02111-1307 USA. */
|
|
|
|
|
|
+#define _GNU_SOURCE
|
|
|
#include <errno.h>
|
|
|
#include <fcntl.h>
|
|
|
#include <limits.h>
|
|
@@ -27,11 +28,6 @@
|
|
|
#include <unistd.h>
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
-extern int getpt (void);
|
|
|
-extern int grantpt (int fd);
|
|
|
-extern int ptsname_r (int fd, char *buf, size_t buflen);
|
|
|
-extern int unlockpt (int fd);
|
|
|
-
|
|
|
|
|
|
#if 0
|
|
|
|
|
@@ -90,8 +86,9 @@ pts_name (int fd, char **pts, size_t buf_len)
|
|
|
|
|
|
according to TERMP and WINP. Return handles for both ends in
|
|
|
AMASTER and ASLAVE, and return the name of the slave end in NAME. */
|
|
|
-int attribute_hidden
|
|
|
-__openpty (int *amaster, int *aslave, char *name, struct termios *termp,
|
|
|
+libutil_hidden_proto(openpty)
|
|
|
+int
|
|
|
+openpty (int *amaster, int *aslave, char *name, struct termios *termp,
|
|
|
struct winsize *winp)
|
|
|
{
|
|
|
#if 0
|
|
@@ -158,5 +155,4 @@ __openpty (int *amaster, int *aslave, char *name, struct termios *termp,
|
|
|
close (master);
|
|
|
return -1;
|
|
|
}
|
|
|
-
|
|
|
-strong_alias(__openpty,openpty)
|
|
|
+libutil_hidden_def(openpty)
|