summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-06-05 18:25:30 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-06-05 18:25:30 -0700
commit1dad4492bf1a6668de2b6ef56fd16ef4fc0e380d (patch)
tree5e9e3e9194b358bff06b6f8b89495165aea896eb
parentada6e8761138d3e7af42726de15e88204bed1686 (diff)
unifdef CRAY
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xconsole.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/xconsole.c b/xconsole.c
index 4c0074a..adbc298 100644
--- a/xconsole.c
+++ b/xconsole.c
@@ -868,25 +868,6 @@ get_pty(int *pty, int *tty, char *ttydev, char *ptydev)
#else
static int devindex, letter = 0;
-#ifdef CRAY
- for (; devindex < 256; devindex++) {
- sprintf (ttydev, "/dev/ttyp%03d", devindex);
- sprintf (ptydev, "/dev/pty/%03d", devindex);
-
- if ((*pty = open (ptydev, O_RDWR)) >= 0 &&
- (*tty = open (ttydev, O_RDWR)) >= 0)
- {
- /*
- * We need to set things up for our next entry
- * into this function!
- */
- (void) devindex++;
- return(0);
- }
- if (*pty >= 0)
- close (*pty);
- }
-#else /* !CRAY */
#ifdef sgi
{
char *slave;
@@ -922,7 +903,6 @@ get_pty(int *pty, int *tty, char *ttydev, char *ptydev)
(void) letter++;
}
#endif /* sgi else not sgi */
-#endif /* CRAY else not CRAY */
#endif /* USE_GET_PSEUDOTTY */
#endif /* SVR4 */
/*