• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Calling fcntl() and friends from Swift?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Calling fcntl() and friends from Swift?
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Passing a swift function to objective-c
  • Next by Date: Re: Table of TextViews
  • Previous by thread: Creating a new OS X document in Swift
  • Next by thread: Re: Calling fcntl() and friends from Swift?
  • Index(es):
    • Date
    • Thread