mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-09 01:31:11 +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:
@@ -55,6 +55,7 @@ static char *id = "$Id: main.c,v 1.4 2001/12/26 22:17:03 sybalsky Exp $ Copyrigh
|
||||
|
||||
#ifndef DOS
|
||||
#include <sys/file.h>
|
||||
#include <sys/select.h>
|
||||
#endif /* DOS */
|
||||
|
||||
#include <setjmp.h>
|
||||
@@ -358,7 +359,7 @@ int main(int argc, char *argv[])
|
||||
char *envname;
|
||||
extern int TIMER_INTERVAL;
|
||||
char keytyped[255];
|
||||
|
||||
extern fd_set LispReadFds;
|
||||
#ifndef NOFORN
|
||||
if (dld_find_executable(argv[0]) == 0) {
|
||||
perror("Name of executable not found.");
|
||||
@@ -532,6 +533,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
strcpy(keytyped, keystring);
|
||||
|
||||
FD_ZERO(&LispReadFds);
|
||||
|
||||
#ifndef NOETHER
|
||||
init_ether(); /* modified by kiuchi Nov. 4 */
|
||||
#endif /* NOETHER */
|
||||
|
||||
Reference in New Issue
Block a user