Mercurial > emacs
changeset 822:c6e94e13926c
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 19 Jul 1992 17:48:44 +0000 |
parents | cee415e2dae8 |
children | 746ebe6cc4c8 |
files | src/process.c |
diffstat | 1 files changed, 6 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Sun Jul 19 16:46:51 1992 +0000 +++ b/src/process.c Sun Jul 19 17:48:44 1992 +0000 @@ -406,17 +406,12 @@ #ifdef PTY_NAME_SPRINTF PTY_NAME_SPRINTF #else -#ifdef HPUX - sprintf (pty_name, "/dev/ptym/pty%c%x", c, i); -#else -#ifdef RTU - sprintf (pty_name, "/dev/pty%x", i); -#else sprintf (pty_name, "/dev/pty%c%x", c, i); -#endif /* not RTU */ -#endif /* not HPUX */ #endif /* no PTY_NAME_SPRINTF */ +#ifdef PTY_OPEN + PTY_OPEN; +#else /* no PTY_OPEN */ #ifdef IRIS /* Unusual IRIS code */ *ptyv = open ("/dev/ptc", O_RDWR | O_NDELAY, 0); @@ -424,7 +419,7 @@ return -1; if (fstat (fd, &stb) < 0) return -1; -#else +#else /* not IRIS */ if (stat (pty_name, &stb) < 0) { failed_count++; @@ -438,7 +433,8 @@ #else fd = open (pty_name, O_RDWR | O_NDELAY, 0); #endif -#endif /* IRIS */ +#endif /* not IRIS */ +#endif /* no PTY_OPEN */ if (fd >= 0) { @@ -447,20 +443,7 @@ #ifdef PTY_TTY_NAME_SPRINTF PTY_TTY_NAME_SPRINTF #else - /* TODO: In version 19, make these special cases use the macro above. */ -#ifdef HPUX - sprintf (pty_name, "/dev/pty/tty%c%x", c, i); -#else -#ifdef RTU - sprintf (pty_name, "/dev/ttyp%x", i); -#else -#ifdef IRIS - sprintf (pty_name, "/dev/ttyq%d", minor (stb.st_rdev)); -#else sprintf (pty_name, "/dev/tty%c%x", c, i); -#endif /* not IRIS */ -#endif /* not RTU */ -#endif /* not HPUX */ #endif /* no PTY_TTY_NAME_SPRINTF */ #ifndef UNIPLUS if (access (pty_name, 6) != 0)