Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!mcnc!rti!xyzzy!meissner From: meissner@xyzzy.UUCP (Michael Meissner) Newsgroups: comp.protocols.tcp-ip Subject: Re: HELP: select() under sockets Message-ID: <267@xyzzy.UUCP> Date: Mon, 21-Sep-87 11:17:25 EDT Article-I.D.: xyzzy.267 Posted: Mon Sep 21 11:17:25 1987 Date-Received: Tue, 22-Sep-87 04:24:51 EDT References: <8709091653.AA15944@topaz.rutgers.edu> Reply-To: meissner@xyzzy.UUCP (Michael Meissner) Organization: Data General (Languages @ Research Triangle Park, NC.) Lines: 16 In article <8709091653.AA15944@topaz.rutgers.edu> ron@topaz.rutgers.EDU (Ron Natalie) writes: > The other arguments to select are pointers to bit fields so assumably > > char buf[10]; > > select(80, buf, (char *) 0, (char *) 0, (char *) 0, (time_t) 0) > In 4.2 systems the three pointer arguments are pointers to INT's, not char's. In 4.3 this was changed to be the type fd_set (declared in sys/types.h), which is a structure big enough to hold 256 file descriptors, with a way to expand it further. In no case is a character array used. This may be seen as picking nits, but it becomes important on machines that have different representations for pointers to char's and other pointers. -- Michael Meissner, Data General. Uucp: ...!mcnc!rti!xyzzy!meissner Arpa/Csnet: meissner@dg-rtp.DG.COM