aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1992-07-19 17:48:44 +0000
committerRichard M. Stallman1992-07-19 17:48:44 +0000
commit4d7c105e5d642dd4d63028d82f6660958ef0b3bd (patch)
tree487799f675cdf020cb52d430a592fec24c10ffb3 /src
parentb9c7647e50e3c3fdd618dc4eb2930462c6df480a (diff)
downloademacs-4d7c105e5d642dd4d63028d82f6660958ef0b3bd.tar.gz
emacs-4d7c105e5d642dd4d63028d82f6660958ef0b3bd.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/process.c29
1 files changed, 6 insertions, 23 deletions
diff --git a/src/process.c b/src/process.c
index fd0ba22cd9a..0d187bd59fe 100644
--- a/src/process.c
+++ b/src/process.c
@@ -406,17 +406,12 @@ allocate_pty ()
406#ifdef PTY_NAME_SPRINTF 406#ifdef PTY_NAME_SPRINTF
407 PTY_NAME_SPRINTF 407 PTY_NAME_SPRINTF
408#else 408#else
409#ifdef HPUX
410 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
411#else
412#ifdef RTU
413 sprintf (pty_name, "/dev/pty%x", i);
414#else
415 sprintf (pty_name, "/dev/pty%c%x", c, i); 409 sprintf (pty_name, "/dev/pty%c%x", c, i);
416#endif /* not RTU */
417#endif /* not HPUX */
418#endif /* no PTY_NAME_SPRINTF */ 410#endif /* no PTY_NAME_SPRINTF */
419 411
412#ifdef PTY_OPEN
413 PTY_OPEN;
414#else /* no PTY_OPEN */
420#ifdef IRIS 415#ifdef IRIS
421 /* Unusual IRIS code */ 416 /* Unusual IRIS code */
422 *ptyv = open ("/dev/ptc", O_RDWR | O_NDELAY, 0); 417 *ptyv = open ("/dev/ptc", O_RDWR | O_NDELAY, 0);
@@ -424,7 +419,7 @@ allocate_pty ()
424 return -1; 419 return -1;
425 if (fstat (fd, &stb) < 0) 420 if (fstat (fd, &stb) < 0)
426 return -1; 421 return -1;
427#else 422#else /* not IRIS */
428 if (stat (pty_name, &stb) < 0) 423 if (stat (pty_name, &stb) < 0)
429 { 424 {
430 failed_count++; 425 failed_count++;
@@ -438,7 +433,8 @@ allocate_pty ()
438#else 433#else
439 fd = open (pty_name, O_RDWR | O_NDELAY, 0); 434 fd = open (pty_name, O_RDWR | O_NDELAY, 0);
440#endif 435#endif
441#endif /* IRIS */ 436#endif /* not IRIS */
437#endif /* no PTY_OPEN */
442 438
443 if (fd >= 0) 439 if (fd >= 0)
444 { 440 {
@@ -447,20 +443,7 @@ allocate_pty ()
447#ifdef PTY_TTY_NAME_SPRINTF 443#ifdef PTY_TTY_NAME_SPRINTF
448 PTY_TTY_NAME_SPRINTF 444 PTY_TTY_NAME_SPRINTF
449#else 445#else
450 /* TODO: In version 19, make these special cases use the macro above. */
451#ifdef HPUX
452 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
453#else
454#ifdef RTU
455 sprintf (pty_name, "/dev/ttyp%x", i);
456#else
457#ifdef IRIS
458 sprintf (pty_name, "/dev/ttyq%d", minor (stb.st_rdev));
459#else
460 sprintf (pty_name, "/dev/tty%c%x", c, i); 446 sprintf (pty_name, "/dev/tty%c%x", c, i);
461#endif /* not IRIS */
462#endif /* not RTU */
463#endif /* not HPUX */
464#endif /* no PTY_TTY_NAME_SPRINTF */ 447#endif /* no PTY_TTY_NAME_SPRINTF */
465#ifndef UNIPLUS 448#ifndef UNIPLUS
466 if (access (pty_name, 6) != 0) 449 if (access (pty_name, 6) != 0)