changeset 1374:3d87587ddc4e

(PTY_ITERATION, etc.): Defined. (FIRST_PTY_LETTER): Deleted.
author Richard M. Stallman <rms@gnu.org>
date Fri, 09 Oct 1992 21:47:10 +0000
parents 7fc9bbcae71b
children 577493baf266
files src/s/aix3-1.h
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/aix3-1.h	Fri Oct 09 21:06:02 1992 +0000
+++ b/src/s/aix3-1.h	Fri Oct 09 21:47:10 1992 +0000
@@ -65,10 +65,12 @@
 
 /* #define INTERRUPT_INPUT */
 
-/* Letter to use in finding device name of first pty,
-  if system supports pty's.  'p' means it is /dev/ptyp0  */
+/* In AIX, you allocate a pty by opening /dev/ptc to get the master side.
+   To get the name of the slave side, you just ttyname() the master side.  */
 
-#define FIRST_PTY_LETTER 'p'
+#define PTY_ITERATION for (c = 0; !c ; c++)
+#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
+#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
 
 /*
  *	Define HAVE_TERMIO if the system provides sysV-style ioctls