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 protected]



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to