From 7a8b824c1eb4cc59e10abe40749eaa8f50ca2b40 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 30 Jun 1995 21:04:38 +0000 Subject: [PATCH] (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN) (PTY_TTY_NAME_SPRINTF): New definitions. --- src/m/alpha.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/m/alpha.h b/src/m/alpha.h index 5ee92e43ad1..0d257b3c245 100644 --- a/src/m/alpha.h +++ b/src/m/alpha.h @@ -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) -- 2.39.2