/* Get ioctl(), ISPTM. */
# include <sys/ioctl.h>
/* Get the major, minor macros. */
/* Get ioctl(), ISPTM. */
# include <sys/ioctl.h>
/* Get the major, minor macros. */
/* This implementation returns /dev/pts/N, like ptsname() does.
Whereas the generic implementation below returns /dev/ttypN.
Both are correct, but let's be consistent with ptsname(). */
/* This implementation returns /dev/pts/N, like ptsname() does.
Whereas the generic implementation below returns /dev/ttypN.
Both are correct, but let's be consistent with ptsname(). */
- dev = ioctl (fd, ISPTM, NULL);
+# ifdef _AIX
+ ret = ioctl (fd, ISPTM, &dev);
+# endif
+# ifdef __osf__
+ ret = ioctl (fd, ISPTM, NULL);
+ dev = ret;
+# endif