]> git.eshelyaron.com Git - emacs.git/commitdiff
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN)
authorRichard M. Stallman <rms@gnu.org>
Fri, 30 Jun 1995 21:04:38 +0000 (21:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 30 Jun 1995 21:04:38 +0000 (21:04 +0000)
(PTY_TTY_NAME_SPRINTF): New definitions.

src/m/alpha.h

index 5ee92e43ad15f102e395953081bbbf8d205439b7..0d257b3c24524e424b83e871ede47cef19d7c1c4 100644 (file)
@@ -259,3 +259,16 @@ extern void r_alloc_free ();
 
 #endif /* not THIS_IS_YMAKEFILE */
 #endif /* not NOT_C_CODE */
+
+#define PTY_ITERATION          for (i = 0; i < 1; i++) /* ick */
+#define PTY_NAME_SPRINTF       /* none */
+#define PTY_TTY_NAME_SPRINTF   /* none */
+#define PTY_OPEN                                       \
+  do                                                   \
+    {                                                  \
+      int dummy;                                       \
+      if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
+       fd = -1;                                        \
+      close (dummy);                                   \
+    }                                                  \
+  while (0)