From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22956 invoked from network); 7 Jul 1998 23:45:00 -0000 Received: from stefan.sime.com (193.228.80.247) by mail2.redhat.com with SMTP; 7 Jul 1998 23:45:00 -0000 Received: (from stefan@localhost) by stefan.sime.com (8.8.7/8.8.7) id BAA01190; Wed, 8 Jul 1998 01:20:44 +0200 Date: Wed, 8 Jul 1998 01:20:44 +0200 Message-Id: <199807072320.BAA01190@stefan.sime.com> From: Quant-X Alpha Linux Support To: axp-list@redhat.com In-reply-to: (message from Francesco Callari on Tue, 7 Jul 1998 12:24:31 -0400 (EDT)) Subject: Re: poll(2) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: Quant-X Alpha Linux Support Reply-To: Quant-X Alpha Linux Support Organization: Quant-X Service & Consulting Ges.m.b.H. X-Mailer: GNU Emacs 20.2.1 C-x m (X11 ; I; Linux 2.0.34 i586) References: Hi Franco ! > sorry if this is a FAQ, but can someone update me on the status > of poll(2) in the 2.0.x kernels? What I see is that: > > o It's not implemented as a syscall. That's quite true. 2.0.x kernels only have select, and by design poll can't be emulated by select... > > o The glibc emulation of it is broken: stracing an application > calling poll() shows that it attempts to call the syscall 94, > which is not defined in asm/unistd.h, thus getting EPERM. > > o The emulation is defined in libc-2.0.7: > % nm /lib/libc-2.0.7.so | grep poll > 00000000000922f8 t __emulate_poll > 000000000009bfc0 T __syscall_poll > 0000000000092220 T poll Yes syscall 94 is correct; that's poll on 2.1.xxx kernels. 2.1.xx brought us native poll, and internally select gets emulated (this direction works). It's also a bit easier when writing device-drivers... -- Quant-X Service & Ph: (+43) 4212 6004-0 Consulting Ges.m.b.H. Fax: (+43) 4212 600420 http://www.quant-x.com Email: support@quant-x.com