Is there a Swift function for the _IOW macro?

_IOW and friends, defined in <sys/ioccom.h>, help build ioctl() calls. Is there an equivalent function in Swift?

Is there an equivalent function in Swift?

No.

I’ve never actually filed a bug about this, because I’ve always kinda hoped that the Swift importer will get smart enough to handle it. Sadly, that’s not panned out yet.

I generally get around this by doing the ioctl in C code and then calling that C code from Swift.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is there a Swift function for the _IOW macro?
 
 
Q