[Mono-list] Why no ioctl call in Mono.Unix.Native

Robert Jordan robertj at gmx.net
Tue Jul 4 12:14:31 EDT 2006


Johannes Fortner wrote:
> Im looking for ioctl call in Mono but I can't find it in mono.
> Why Mono have no wrapper for ioctl?

Because it would be useless. Look at the ioctl declaration
(man 2 ioctl):

int ioctl(int d, int request, ...);

The param list highly depends on the request param. It's easier
to declare a new DllImport for every request type you want to
invoke.

More about DllImport & friends:

http://mono-project.com/Interop_with_Native_Libraries

Robert



More information about the Mono-list mailing list