[swift-server-dev] Posix Module

Daniel Dunbar daniel_dunbar at apple.com
Fri Oct 28 17:56:48 CDT 2016


Given the Glibc overlay lives in Swift, this probably is more appropriate for swift-dev rather than the server APIs project specifically.

 - Daniel

> On Oct 28, 2016, at 8:51 AM, Helge Heß via swift-server-dev <swift-server-dev at swift.org> wrote:
> 
> Hi,
> 
> I guess this kinda belongs here:
> 
> I wonder whether we can have a standard Posix module with all the standard Posix stuff in it to avoid the
> 
>  #if os(Linux)
>    import Glibc
>  #else
>    import Darwin
>  #endif
> 
> for things which are standardised in Posix (and hence the same, even on Windoze). I currently have an `xsys` module to alias the definitions, but this is kinda crap :-)
> 
>  https://github.com/NozeIO/Noze.io/tree/master/Sources/xsys
> 
> Or is there a better way to do this already?
> 
> Thanks,
>  Helge
> 
> _______________________________________________
> swift-server-dev mailing list
> swift-server-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-server-dev



More information about the swift-server-dev mailing list