I m trying to port some code from FreeBSD to OS X. The code is fairly low-level and it creates a number of special device files using make_dev()
and controls functionality using functions like ioctl()
.
Ideally I d like to keep my code as close to the original as possible so I can more easily merge upstream changes in the future: my question is, is there a way to create such device files on OS X? According to wikipedia the idiom is supported on the platform. Can someone point me in the right direction?