summaryrefslogtreecommitdiff
path: root/xconsole.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-06-05 18:22:40 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-06-05 18:22:40 -0700
commitada6e8761138d3e7af42726de15e88204bed1686 (patch)
tree94f6f507ca5dbac5145c355e522638a62120d67a /xconsole.c
parentf9b34c2eae4c3abe40904e4274c5d82cd16fc7af (diff)
unifdef umips
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xconsole.c')
-rw-r--r--xconsole.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/xconsole.c b/xconsole.c
index 4d9c8e7..4c0074a 100644
--- a/xconsole.c
+++ b/xconsole.c
@@ -868,23 +868,6 @@ get_pty(int *pty, int *tty, char *ttydev, char *ptydev)
#else
static int devindex, letter = 0;
-#if defined(umips) && defined (SYSTYPE_SYSV)
- struct stat fstat_buf;
-
- *pty = open ("/dev/ptc", O_RDWR);
- if (*pty < 0 || (fstat (*pty, &fstat_buf)) < 0)
- {
- return(1);
- }
- sprintf (ttydev, "/dev/ttyq%d", minor(fstat_buf.st_rdev));
- sprintf (ptydev, "/dev/ptyq%d", minor(fstat_buf.st_rdev));
- if ((*tty = open (ttydev, O_RDWR)) >= 0)
- {
- /* got one! */
- return(0);
- }
- close (*pty);
-#else /* not (umips && SYSTYPE_SYSV) */
#ifdef CRAY
for (; devindex < 256; devindex++) {
sprintf (ttydev, "/dev/ttyp%03d", devindex);
@@ -940,7 +923,6 @@ get_pty(int *pty, int *tty, char *ttydev, char *ptydev)
}
#endif /* sgi else not sgi */
#endif /* CRAY else not CRAY */
-#endif /* umips && SYSTYPE_SYSV */
#endif /* USE_GET_PSEUDOTTY */
#endif /* SVR4 */
/*