summaryrefslogtreecommitdiff
path: root/src/systty.h
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-07-30 15:14:07 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-07-30 15:14:07 +0000
commit9d9a7716e5d1a34804a30773476893b7509d2fab (patch)
tree2ca56be1536dfed7b96f802bf35f4e220eacc946 /src/systty.h
parent9b9b76556abef6cec7cd0a50b35828b42ba5ac07 (diff)
downloademacs-9d9a7716e5d1a34804a30773476893b7509d2fab.tar.gz
* systty.h (sensemode): Remove empty #if. Remove reference to
BSD_TERMIOS, unused. * sysdep.c: Remove reference to DGUX. (closedir): Remove reference to BROKEN_CLOSEDIR, unused. * config.in: Regenerate. * configure.in (DO_BLOCK_INPUT): Remove, unused.
Diffstat (limited to 'src/systty.h')
-rw-r--r--src/systty.h22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/systty.h b/src/systty.h
index 580513a1080..98f6ad493e6 100644
--- a/src/systty.h
+++ b/src/systty.h
@@ -174,42 +174,34 @@ static struct sensemode {
EMACS_SET_TTY_PGRP(int FD, int *PGID) sets the terminal FD's
current process group to *PGID. Return -1 if there is an error. */
-#ifdef HPUX
/* HPUX tty process group stuff doesn't work, says the anonymous voice
from the past. */
-#else
+#ifndef HPUX
#ifdef TIOCGPGRP
#define EMACS_HAVE_TTY_PGRP
#else
#ifdef HAVE_TERMIOS
#define EMACS_HAVE_TTY_PGRP
-#endif
-#endif
-#endif
+#endif /* HAVE_TERMIOS */
+#endif /* TIOCGPGRP */
+#endif /* not HPUX */
#ifdef EMACS_HAVE_TTY_PGRP
-#if defined (HAVE_TERMIOS) && ! defined (BSD_TERMIOS)
-
-#define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd)))
-#define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid)))
-
-#else
#ifdef TIOCSPGRP
#define EMACS_GET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCGPGRP, (pgid)))
#define EMACS_SET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCSPGRP, (pgid)))
-#endif
-#endif
+#endif /* TIOCSPGRP */
-#else
+#else /* not EMACS_SET_TTY_PGRP */
/* Just ignore this for now and hope for the best */
#define EMACS_GET_TTY_PGRP(fd, pgid) 0
#define EMACS_SET_TTY_PGRP(fd, pgif) 0
-#endif
+#endif /* not EMACS_SET_TTY_PGRP */
/* EMACS_GETPGRP (arg) returns the process group of the process. */