[fpc-pascal] porting fpIoctl() to windows

Jonas Maebe jonas.maebe at elis.ugent.be
Mon May 29 23:13:24 CEST 2006

On 29 May 2006, at 23:09, Alain Michaud wrote:

> In the mean time, I calculate the function number "by hand",  
> knowing the
> device number, function number, IO_RW, etc... Or if I use a  
> precedure do
> do this, then this will slow the program down.

It should be no problem to use (inline or not)functions. The cost of  
a system call dwarfs the time that may be needed to shift and "or" a  
few numbers together (even if you add in the cost of a regular call).


More information about the fpc-pascal mailing list