From owner-freebsd-chat Tue May 28 15:08:13 1996 Return-Path: owner-chat Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA05597 for chat-outgoing; Tue, 28 May 1996 15:08:13 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA05563 for ; Tue, 28 May 1996 15:08:10 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id MAA07710 for ; Tue, 28 May 1996 12:55:55 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id MAA11661; Tue, 28 May 1996 12:52:51 -0700 From: Terry Lambert Message-Id: <199605281952.MAA11661@phaeton.artisoft.com> Subject: Re: Forgiving select() call. To: kaleb@x.org (Kaleb S. KEITHLEY) Date: Tue, 28 May 1996 12:52:51 -0700 (MST) Cc: terry@lambert.org, joerg_wunsch@uriah.heep.sax.de, chat@freebsd.org In-Reply-To: <199605281913.PAA19638@exalt.x.org> from "Kaleb S. KEITHLEY" at May 28, 96 03:13:40 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-chat@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > If there's a secret undocumented select system call in Solaris, I'd > > > like to know about it, with something more than anecdotal evidence! > > > > 1) Build a static SunOS 4.1.3 binary that calls select(2). > > > Been there, done that. See my previous reply. Trussing on Solaris 2.4 > shows it calling poll. For a STATIC build? I have a hard time believing this, since SunOS 4.x doesn't *have* a poll for static 4.x libc stubs linked into the program to call. > > 2) Run it on Solaris 2.2 (watch it ENOSYS). > > 3) Run it on Solaris 2.3 (watch it work). > > What does trussing it on 2.3 show it doing? Probably calling whatever call the execution class defines for 93 on the box. It's entirely possible that it doesn't use the Solaris sysent[] vector when trapping from a 4.1.3 executable. FreeBSD certainly doesn't trap to the same sysent[] vector for Linux or IBCS2 or BSDI binaries. > poll. See my previous reply on this topic. > > >Personally, except for threading, I develop for Solaris using SunOS. > > You obviously have your reasons for doing that. For my money I develop > for Solaris on Solaris. Yes. One of the resons is it makes select() work on Solaris. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.