mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-02 06:41:21 +00:00
Rework handling of I/O via select() to use correct fd_set type instead of int for fd sets.
Some code that was maintaining an fd_set with only a single fd was replaced
with just the fd as int, which can be added to the global fd_set as needed.
More testing is required for less usual configurations such as host TCP/UDP/IP
and direct ethernet (packet filter or NIT) I/O.
modified: src/common.c
modified: src/ether.c
modified: src/inet.c
modified: src/initkbd.c
modified: src/kbdsubrs.c
modified: src/keyevent.c
modified: src/main.c
modified: src/osmsg.c
modified: src/rawrs232c.c
modified: src/rpc.c
modified: src/rs232c.c
modified: src/tty.c
modified: src/uraid.c
modified: src/xinit.c
This commit is contained in:
@@ -39,6 +39,7 @@ static char *id = "$Id: xinit.c,v 1.5 2001/12/26 22:17:06 sybalsky Exp $ Copyrig
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/select.h>
|
||||
|
||||
#ifndef APOLLO
|
||||
#ifndef HPUX
|
||||
@@ -83,7 +84,7 @@ unsigned LispDisplayRequestedWidth, LispDisplayRequestedHeight;
|
||||
Colormap Colors;
|
||||
|
||||
int XLocked = 0; /* non-zero while doing X ops, to avoid signals */
|
||||
extern int LispReadFds;
|
||||
extern fd_set LispReadFds;
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
@@ -203,7 +204,7 @@ void Xevent_after_raid(DspInterface dsp)
|
||||
/************************************************************************/
|
||||
void Open_Display(DspInterface dsp)
|
||||
{
|
||||
LispReadFds |= (1 << ConnectionNumber(dsp->display_id));
|
||||
FD_SET(ConnectionNumber(dsp->display_id), &LispReadFds);
|
||||
#ifndef ISC
|
||||
#ifndef HPUX
|
||||
fcntl(ConnectionNumber(dsp->display_id), F_SETOWN, getpid());
|
||||
|
||||
Reference in New Issue
Block a user