Mono does not contain a wrapper for ioctl in Mono.Unix, since the parameters of the ioctl call are very different, and such a shell will be almost useless. You must declare DllImport for every ioctl you need.
, , , C, , , C. , C:
#define FE_GET_INFO _IOR('o', 61, struct dvb_frontend_info)
:
#include <linux/dvb/frontend.h>
#include <stdio.h>
int main()
{
printf("const int FE_GET_INFO = %d;\n", FE_GET_INFO);
return 0;
}
- .