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

Johannes Fortner johannes-fortner at gmx.net
Tue Jul 4 12:28:04 EDT 2006

Am Dienstag, den 04.07.2006, 17:14 +0100 schrieb Robert Jordan:
> 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

OK, Im understand. But how can i get the request code defined in
C-Headerfile? For Example (linux/dvb/frontend.h):

#define FE_GET_INFO                _IOR('o', 61, struct

How can i port this to mono (c#)?

More information about the Mono-list mailing list