[swift-users] C vararg: Swift Package Manager and System Modules

Daniel Eggert danieleggert at me.com
Wed Dec 23 17:27:16 CST 2015


On 18 Dec 2015, at 20:42, Chris Lattner <clattner at apple.com> wrote:
> 
> 
>> On Dec 17, 2015, at 1:47 PM, Daniel Eggert via swift-users <swift-users at swift.org> wrote:
>> 
>> If I need access to the C fcntl(2):
>> 
>> int fcntl(int, int, ...)
>> 
>> can I get the swift-package-manager or swift-build-tool to compile C code that wraps this into a non-vararg version:
> 
> Hi Daniel,
> 
> I’m pretty sure that Swift 2.2 master supports fcntl on both linux and darwin platforms.  What version are you using?
> 
> This support is done with “overlays” that you can see here:
> https://github.com/apple/swift/blob/master/stdlib/public/Glibc/Glibc.swift
> https://github.com/apple/swift/blob/master/stdlib/public/SDK/Darwin/Darwin.swift
> 
> -Chris

Indeed. Thanks!

/Daniel



More information about the swift-users mailing list