{-# LINE 1 "Z/IO/UV/Errno.hsc" #-}
module Z.IO.UV.Errno where
import Foreign.C.Types
import Foreign.C.String
import Z.Data.Text (Text)
import Z.Data.CBytes as CB
uvStdError :: CInt -> IO Text
{-# INLINABLE uvStdError #-}
uvStdError errno = toText <$> (fromCString =<< uv_strerror errno)
foreign import ccall unsafe uv_strerror :: CInt -> IO CString
uvErrName :: CInt -> IO Text
{-# INLINABLE uvErrName #-}
uvErrName errno = toText <$> (fromCString =<< uv_err_name errno)
foreign import ccall unsafe uv_err_name :: CInt -> IO CString
pattern UV_E2BIG :: CInt
pattern UV_E2BIG = -7
{-# LINE 40 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EACCES :: CInt
pattern UV_EACCES = -13
{-# LINE 43 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EADDRINUSE :: CInt
pattern UV_EADDRINUSE = -98
{-# LINE 46 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EADDRNOTAVAIL :: CInt
pattern UV_EADDRNOTAVAIL = -99
{-# LINE 49 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAFNOSUPPORT :: CInt
pattern UV_EAFNOSUPPORT = -97
{-# LINE 52 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAGAIN :: CInt
pattern UV_EAGAIN = -11
{-# LINE 55 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_ADDRFAMILY :: CInt
pattern UV_EAI_ADDRFAMILY = -3000
{-# LINE 58 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_AGAIN :: CInt
pattern UV_EAI_AGAIN = -3001
{-# LINE 61 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_BADFLAGS :: CInt
pattern UV_EAI_BADFLAGS = -3002
{-# LINE 64 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_BADHINTS :: CInt
pattern UV_EAI_BADHINTS = -3013
{-# LINE 67 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_CANCELED :: CInt
pattern UV_EAI_CANCELED = -3003
{-# LINE 70 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_FAIL :: CInt
pattern UV_EAI_FAIL = -3004
{-# LINE 73 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_FAMILY :: CInt
pattern UV_EAI_FAMILY = -3005
{-# LINE 76 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_MEMORY :: CInt
pattern UV_EAI_MEMORY = -3006
{-# LINE 79 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_NODATA :: CInt
pattern UV_EAI_NODATA = -3007
{-# LINE 82 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_NONAME :: CInt
pattern UV_EAI_NONAME = -3008
{-# LINE 85 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_OVERFLOW :: CInt
pattern UV_EAI_OVERFLOW = -3009
{-# LINE 88 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_PROTOCOL :: CInt
pattern UV_EAI_PROTOCOL = -3014
{-# LINE 91 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_SERVICE :: CInt
pattern UV_EAI_SERVICE = -3010
{-# LINE 94 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EAI_SOCKTYPE :: CInt
pattern UV_EAI_SOCKTYPE = -3011
{-# LINE 97 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EALREADY :: CInt
pattern UV_EALREADY = -114
{-# LINE 100 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EBADF :: CInt
pattern UV_EBADF = -9
{-# LINE 103 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EBUSY :: CInt
pattern UV_EBUSY = -16
{-# LINE 106 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ECANCELED :: CInt
pattern UV_ECANCELED = -125
{-# LINE 109 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ECHARSET :: CInt
pattern UV_ECHARSET = -4080
{-# LINE 112 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ECONNABORTED :: CInt
pattern UV_ECONNABORTED = -103
{-# LINE 115 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ECONNREFUSED :: CInt
pattern UV_ECONNREFUSED = -111
{-# LINE 118 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ECONNRESET :: CInt
pattern UV_ECONNRESET = -104
{-# LINE 121 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EDESTADDRREQ :: CInt
pattern UV_EDESTADDRREQ = -89
{-# LINE 124 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EEXIST :: CInt
pattern UV_EEXIST = -17
{-# LINE 127 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EFAULT :: CInt
pattern UV_EFAULT = -14
{-# LINE 130 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EFBIG :: CInt
pattern UV_EFBIG = -27
{-# LINE 133 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EHOSTUNREACH :: CInt
pattern UV_EHOSTUNREACH = -113
{-# LINE 136 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EINTR :: CInt
pattern UV_EINTR = -4
{-# LINE 139 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EINVAL :: CInt
pattern UV_EINVAL = -22
{-# LINE 142 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EIO :: CInt
pattern UV_EIO = -5
{-# LINE 145 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EISCONN :: CInt
pattern UV_EISCONN = -106
{-# LINE 148 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EISDIR :: CInt
pattern UV_EISDIR = -21
{-# LINE 151 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ELOOP :: CInt
pattern UV_ELOOP = -40
{-# LINE 154 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EMFILE :: CInt
pattern UV_EMFILE = -24
{-# LINE 157 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EMSGSIZE :: CInt
pattern UV_EMSGSIZE = -90
{-# LINE 160 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENAMETOOLONG :: CInt
pattern UV_ENAMETOOLONG = -36
{-# LINE 163 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENETDOWN :: CInt
pattern UV_ENETDOWN = -100
{-# LINE 166 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENETUNREACH :: CInt
pattern UV_ENETUNREACH = -101
{-# LINE 169 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENFILE :: CInt
pattern UV_ENFILE = -23
{-# LINE 172 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOBUFS :: CInt
pattern UV_ENOBUFS = -105
{-# LINE 175 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENODEV :: CInt
pattern UV_ENODEV = -19
{-# LINE 178 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOENT :: CInt
pattern UV_ENOENT = -2
{-# LINE 181 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOMEM :: CInt
pattern UV_ENOMEM = -12
{-# LINE 184 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENONET :: CInt
pattern UV_ENONET = -64
{-# LINE 187 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOPROTOOPT :: CInt
pattern UV_ENOPROTOOPT = -92
{-# LINE 190 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOSPC :: CInt
pattern UV_ENOSPC = -28
{-# LINE 193 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOSYS :: CInt
pattern UV_ENOSYS = -38
{-# LINE 196 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOTCONN :: CInt
pattern UV_ENOTCONN = -107
{-# LINE 199 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOTDIR :: CInt
pattern UV_ENOTDIR = -20
{-# LINE 202 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOTEMPTY :: CInt
pattern UV_ENOTEMPTY = -39
{-# LINE 205 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOTSOCK :: CInt
pattern UV_ENOTSOCK = -88
{-# LINE 208 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENOTSUP :: CInt
pattern UV_ENOTSUP = -95
{-# LINE 211 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EPERM :: CInt
pattern UV_EPERM = -1
{-# LINE 214 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EPIPE :: CInt
pattern UV_EPIPE = -32
{-# LINE 217 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EPROTO :: CInt
pattern UV_EPROTO = -71
{-# LINE 220 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EPROTONOSUPPORT :: CInt
pattern UV_EPROTONOSUPPORT = -93
{-# LINE 223 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EPROTOTYPE :: CInt
pattern UV_EPROTOTYPE = -91
{-# LINE 226 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ERANGE :: CInt
pattern UV_ERANGE = -34
{-# LINE 229 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EROFS :: CInt
pattern UV_EROFS = -30
{-# LINE 232 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ESHUTDOWN :: CInt
pattern UV_ESHUTDOWN = -108
{-# LINE 235 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ESPIPE :: CInt
pattern UV_ESPIPE = -29
{-# LINE 238 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ESRCH :: CInt
pattern UV_ESRCH = -3
{-# LINE 241 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ETIMEDOUT :: CInt
pattern UV_ETIMEDOUT = -110
{-# LINE 244 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ETXTBSY :: CInt
pattern UV_ETXTBSY = -26
{-# LINE 247 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EXDEV :: CInt
pattern UV_EXDEV = -18
{-# LINE 250 "Z/IO/UV/Errno.hsc" #-}
pattern UV_UNKNOWN :: CInt
pattern UV_UNKNOWN = -4094
{-# LINE 253 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EOF :: CInt
pattern UV_EOF = -4095
{-# LINE 256 "Z/IO/UV/Errno.hsc" #-}
pattern UV_ENXIO :: CInt
pattern UV_ENXIO = -6
{-# LINE 259 "Z/IO/UV/Errno.hsc" #-}
pattern UV_EMLINK :: CInt
pattern UV_EMLINK = -31
{-# LINE 262 "Z/IO/UV/Errno.hsc" #-}