[swift-server-dev] Posix Module

Helge Heß me at helgehess.eu
Fri Oct 28 10:51:15 CDT 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.swift.org/pipermail/swift-server-dev/attachments/20161028/b6f6bbd7/attachment.sig>


More information about the swift-server-dev mailing list