aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-03-26 11:37:51 +0000
committerEli Zaretskii <eliz@gnu.org>2001-03-26 11:37:51 +0000
commitb78a4f26bab8588fae7b42fe423b95e95255009d (patch)
treeb1d5d198e9e21b6afafb4d400de9cdae362d7072
parent3d67e040a54572c66014440d2ea9d33d62a6f1cf (diff)
downloadgdb-b78a4f26bab8588fae7b42fe423b95e95255009d.zip
gdb-b78a4f26bab8588fae7b42fe423b95e95255009d.tar.gz
gdb-b78a4f26bab8588fae7b42fe423b95e95255009d.tar.bz2
* event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/event-loop.c46
2 files changed, 3 insertions, 46 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d9d637b..2e7b9ca 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
+ * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
+ definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
+
* config/djgpp/djconfig.sh: Add copyright notice.
* ser-go32.c (rawclock): Remove prototype; include time.h instead.
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index 5c30cf1..285cea4 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -37,52 +37,6 @@
#include <errno.h>
#include <sys/time.h>
-/* Type of the mask arguments to select. */
-
-#ifndef HAVE_POLL
-#ifdef NO_FD_SET
-/* All this stuff below is not required if select is used as God(tm)
- intended, with the FD_* macros. Are there any implementations of
- select which don't have FD_SET and other standard FD_* macros? I
- don't think there are, but if I'm wrong, we need to catch them. */
-#error FD_SET must be defined if select function is to be used!
-
-#ifndef _AIX
-typedef long fd_mask;
-#endif
-#if defined(_IBMR2)
-#define SELECT_MASK void
-#else
-#define SELECT_MASK int
-#endif /* !_IBMR2 */
-
-/* Define "NBBY" (number of bits per byte) if it's not already defined. */
-
-#ifndef NBBY
-#define NBBY 8
-#endif
-
-/* Define the number of fd_masks in an fd_set */
-
-#ifndef FD_SETSIZE
-#ifdef OPEN_MAX
-#define FD_SETSIZE OPEN_MAX
-#else
-#define FD_SETSIZE 256
-#endif
-#endif
-#if !defined(howmany)
-#define howmany(x, y) (((x)+((y)-1))/(y))
-#endif
-#ifndef NFDBITS
-#define NFDBITS NBBY*sizeof(fd_mask)
-#endif
-#define MASK_SIZE howmany(FD_SETSIZE, NFDBITS)
-
-#endif /* NO_FD_SET */
-#endif /* !HAVE_POLL */
-
-
typedef struct gdb_event gdb_event;
typedef void (event_handler_func) (int);