commit 215b243c91795a578e1524cad0fad149bef869a5
parent e264347d6359b1af95166083f913b4897d41c2a6
Author: Kyle Milz <krwmilz@gmail.com>
Date: Thu, 19 Aug 2021 20:21:31 +0000
assume we do not have STREAMS
Diffstat:
2 files changed, 0 insertions(+), 41 deletions(-)
diff --git a/events.c b/events.c
@@ -62,12 +62,6 @@ NOTE:
#define FASYNC O_ASYNC
#endif
-#if !HAVE_STREAMS && !defined(FASYNC)
-#if !defined(SIOCSPGRP) || !defined(FIOASYNC)
-#define FLAKY_SIGPOLL 1
-#endif
-#endif
-
#ifndef SIGPOLL
#define SIGPOLL SIGIO
#endif
@@ -76,26 +70,6 @@ NOTE:
#define SA_RESTART 0
#endif
-#if HAVE_STREAMS
-#include <stropts.h>
-
-#ifndef S_RDNORM
-#define S_RDNORM S_INPUT
-#endif
-
-#ifndef S_RDBAND
-#define S_RDBAND 0
-#endif
-
-#ifndef S_HANGUP
-#define S_HANGUP 0
-#endif
-
-#ifndef S_WRNORM
-#define S_WRNORM S_OUTPUT
-#endif
-#endif /* HAVE_STREAMS */
-
#include <poll.h>
#include <errno.h>
diff --git a/util.c b/util.c
@@ -52,12 +52,6 @@ NOTE:
# define FASYNC O_ASYNC
#endif
-#if !HAVE_STREAMS && !defined(FASYNC)
-# if !defined(SIOCSPGRP) || !defined(FIOASYNC)
-# define FLAKY_SIGPOLL 1
-# endif
-#endif
-
/*
* General utility routines.
@@ -805,15 +799,6 @@ prep_fd(int fd, wide_bool noblock)
/* Set file descriptor for non-blocking I/O */
if (noblock)
(void) fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK);
-
-# if HAVE_STREAMS
- if (isastream(fd) > 0) {
- if (ioctl(fd, I_SETSIG,
- S_RDNORM | S_RDBAND | S_HANGUP | S_WRNORM) == -1)
- perror("xdvi: ioctl I_SETSIG");
- }
- else
-# endif
{
# ifdef FASYNC
if (fcntl(fd, F_SETOWN, getpid()) == -1)