[fpc-devel]adding the poll() call

Marco van de Voort marcov at stack.nl
Sat Nov 15 13:51:47 CET 2003


> On Sun, 9 Nov 2003, Johannes Berg wrote:
> 
> > This is probably not a very nice patch to add fpPoll(), but I really do
> > not know anything about the layout of all the files.
> 
> poll() is not part of the POSIX interface, so I'm not sure we'll include this.
> The idea is that the interface is POSIX compliant, to ease porting.
> Non-POSIX calls must therefore be moved to other (platform-specific) units.

unit Unix is for common unix calls that are not POSIX. I'm still wondering
if I should prefix unit unix too. (e.g. to avoid name clashes with similar
units like Kylix' libc)

> Marco, what do you think ? 

It could be in unit Unix. The BSD's have it, and Solaris (and probably most
commercial SysV derivates) too.

I also could move ioperm and iopl to unit x86, but that means unit x86 would
get platform dependant. And clone goes to systemdependant too as soon as
it isn't used anymore for threads.

P.s. I'm currently cleaning up unit unix. I eliminated linuxerror,
introducing more typing typing etc. I also committed the 1.0.x linux unit as
"oldlinux", for linux/i386 only with everything (*.inc's) inlined.






More information about the fpc-devel mailing list