Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Quant-X Alpha Linux Support <stefan@sime.com>
To: axp-list@redhat.com
Subject: Re: poll(2)
Date: Wed, 8 Jul 1998 01:20:44 +0200	[thread overview]
Message-ID: <199807072320.BAA01190@stefan.sime.com> (raw)
In-Reply-To: <Pine.SGI.3.91.980707120650.4198A-100000@Poptart.McRCIM.McGill.EDU> (message from Francesco Callari on Tue, 7 Jul 1998 12:24:31 -0400 (EDT))

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


      parent reply	other threads:[~1998-07-07 23:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-24  5:27 fsck.nfs??? Keith Baker
1998-06-24  9:05 ` fsck.nfs??? Maciej W. Rozycki
1998-06-24  9:11 ` fsck.nfs??? David Alan Gilbert
1998-06-24  9:38   ` fsck.nfs??? Maciej W. Rozycki
1998-06-24 13:58 ` fsck.nfs??? Robert L. Millner
1998-07-24 21:31   ` fsck.nfs??? Keith Baker
1998-06-25  1:33     ` fsck.nfs??? Maciej W. Rozycki
1998-06-25  3:00     ` fsck.nfs??? Robert L. Millner
1998-07-07 16:24 ` poll(2) Francesco Callari
1998-07-07 21:46   ` poll(2) Uncle George
1998-07-07 23:20   ` Quant-X Alpha Linux Support [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox