Basic cross Linux/Darwin/Win(?) Posix aliases for Swift

xsys

Posix wrappers and naming shims.

Instead of having to do this in all your code:

#if os(Linux)
  import Glibc
#else
  import Darwin
#endif

let h = dlopen("/blub")

You can do this:

import xsys

let h = dlopen("/blub")

timeval_any

Abstracts three different Posix types into one common protocol, and provides common
operations for all of them.

  • timeval_t
  • timespec_t
  • time_t

Links

Who

xsys is brought to you by
the
Always Right Institute
and
ZeeZide.
We like
feedback,
GitHub stars,
cool contract work,
presumably any form of praise you can think of.

There is a #microexpress channel on the
Noze.io Slack. Feel free to join!

GitHub

View Github