Calling fcntl() and friends from Swift?
Calling fcntl() and friends from Swift?
- Subject: Calling fcntl() and friends from Swift?
- From: Rick Mann <email@hidden>
- Date: Sat, 18 Oct 2014 02:25:21 -0700
So far, my foray into Swift is going decently well. But I'm trying to re-write some code that uses IOKit and <sys/fcntl.h>, and while the IOKit calls are fine, it doesn't like me trying to call fcntl(). It says, "Use of unresolved identifier 'fcntl'".
I've tried including <sys/fcntl.h> in my bridging header, I tried a few imports like "import sys" or "import fcntl" with no luck. I also haven't found anything by googling. Even searching for "Swift printf" didn't give me good results.
Any ideas on how I can call these things? Thanks!
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden