As some of you may know, I am working on a beaglebone black library for Nim. (You can find some more information here: http://forum.nim-lang.org/t/1318#8259 ).
In the last month or so I worked on testing and improving the performance of the library (Which turned out very well, her is my NimBot battling with a doorstep https://vimeo.com/137852470 ).
I am now working on bringing i2c support (and other communication buses). To make this work I need low level control to set up the i2c drivers for the bus I want to use.
In C, ioctl ( http://man7.org/linux/man-pages/man2/ioctl.2.html ) provides this functionality, but I was wondering if there is a pure Nim way of doing it as well. As far as I know ioctl is not portable.
@Araq My concern was not to duplicate the work, if the ioctrl functionality can be reproduced at ease in nim. I guess not judging by your response. I will try c2nim see what I get, and if that does not work I will go for the "one hell of a guy" bonus.
@Varriount I was thinking about portability mostly (there are some embedded windows things out there as well, a French airport was jut taken down by a bug in Windows 3.1), but I guess MinGW will take care of that? And in my first attempt I tried to do the wrapping manually...
And my last concern, I see ioctrl as part of the Nim system library functionality. Does that make sense?