char *line;
/* IRIX-style dynamic ptys (may fork) */
- line = _getpty(master, O_RDWR, IRUSR|S_IWUSR|S_IWGRP, 0);
+ line = _getpty(master, O_RDWR, S_IRUSR|S_IWUSR|S_IWGRP, 0);
if (line == NULL)
return (0);
*slave = open(line, O_RDWR|O_NOCTTY, 0);
close(*master);
return(0);
}
-# ifdef I_PUSH
+# if defined(I_PUSH) && !defined(_AIX)
ioctl(*slave, I_PUSH, "ptem"); /* pseudo tty emulation module */
ioctl(*slave, I_PUSH, "ldterm"); /* line discipline module */
# endif