> On Dec 17, 2015, at 1:47 PM, Daniel Eggert via swift-users 
> <swift-users@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


_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to