[swift-users] C vararg: Swift Package Manager and System Modules
Chris Lattner
clattner at apple.com
Fri Dec 18 13:42:05 CST 2015
> 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
More information about the swift-users
mailing list