Errno.swift 313 B

12345678910111213141516171819
  1. //
  2. // Errno.swift
  3. // Swifter
  4. //
  5. // Copyright © 2016 Damian Kołakowski. All rights reserved.
  6. //
  7. #if os(Linux)
  8. import Glibc
  9. #else
  10. import Foundation
  11. #endif
  12. public class Errno {
  13. public class func description() -> String {
  14. return String(cString: UnsafePointer(strerror(errno)))
  15. }
  16. }