blob: c04dfd7646d65eefcf9f17dac9d9b1da51cf864a [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Code generated by third_party/go/regen-fidl; DO NOT EDIT.
package posix
import (
_bindings "syscall/zx/fidl"
)
const (
// `EWOULDBLOCK` is aliased to `EAGAIN`.
Ewouldblock Errno = ErrnoEagain
// `EDEADLOCK` is aliased to `EDEADLK`.
Edeadlock Errno = ErrnoEdeadlk
// `ENOTSUP` is aliased to `EOPNOTSUPP`.
Enotsup Errno = ErrnoEopnotsupp
)
var _ _bindings.Enum = Errno(0)
// POSIX style errnos.
//
// See https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html for more information.
type Errno int32
const (
ErrnoEperm Errno = 1
ErrnoEnoent Errno = 2
ErrnoEsrch Errno = 3
ErrnoEintr Errno = 4
ErrnoEio Errno = 5
ErrnoEnxio Errno = 6
ErrnoE2Big Errno = 7
ErrnoEnoexec Errno = 8
ErrnoEbadf Errno = 9
ErrnoEchild Errno = 10
ErrnoEagain Errno = 11
ErrnoEnomem Errno = 12
ErrnoEacces Errno = 13
ErrnoEfault Errno = 14
ErrnoEnotblk Errno = 15
ErrnoEbusy Errno = 16
ErrnoEexist Errno = 17
ErrnoExdev Errno = 18
ErrnoEnodev Errno = 19
ErrnoEnotdir Errno = 20
ErrnoEisdir Errno = 21
ErrnoEinval Errno = 22
ErrnoEnfile Errno = 23
ErrnoEmfile Errno = 24
ErrnoEnotty Errno = 25
ErrnoEtxtbsy Errno = 26
ErrnoEfbig Errno = 27
ErrnoEnospc Errno = 28
ErrnoEspipe Errno = 29
ErrnoErofs Errno = 30
ErrnoEmlink Errno = 31
ErrnoEpipe Errno = 32
ErrnoEdom Errno = 33
ErrnoErange Errno = 34
ErrnoEdeadlk Errno = 35
ErrnoEnametoolong Errno = 36
ErrnoEnolck Errno = 37
ErrnoEnosys Errno = 38
ErrnoEnotempty Errno = 39
ErrnoEloop Errno = 40
ErrnoEnomsg Errno = 42
ErrnoEidrm Errno = 43
ErrnoEchrng Errno = 44
ErrnoEl2Nsync Errno = 45
ErrnoEl3Hlt Errno = 46
ErrnoEl3Rst Errno = 47
ErrnoElnrng Errno = 48
ErrnoEunatch Errno = 49
ErrnoEnocsi Errno = 50
ErrnoEl2Hlt Errno = 51
ErrnoEbade Errno = 52
ErrnoEbadr Errno = 53
ErrnoExfull Errno = 54
ErrnoEnoano Errno = 55
ErrnoEbadrqc Errno = 56
ErrnoEbadslt Errno = 57
ErrnoEbfont Errno = 59
ErrnoEnostr Errno = 60
ErrnoEnodata Errno = 61
ErrnoEtime Errno = 62
ErrnoEnosr Errno = 63
ErrnoEnonet Errno = 64
ErrnoEnopkg Errno = 65
ErrnoEremote Errno = 66
ErrnoEnolink Errno = 67
ErrnoEadv Errno = 68
ErrnoEsrmnt Errno = 69
ErrnoEcomm Errno = 70
ErrnoEproto Errno = 71
ErrnoEmultihop Errno = 72
ErrnoEdotdot Errno = 73
ErrnoEbadmsg Errno = 74
ErrnoEoverflow Errno = 75
ErrnoEnotuniq Errno = 76
ErrnoEbadfd Errno = 77
ErrnoEremchg Errno = 78
ErrnoElibacc Errno = 79
ErrnoElibbad Errno = 80
ErrnoElibscn Errno = 81
ErrnoElibmax Errno = 82
ErrnoElibexec Errno = 83
ErrnoEilseq Errno = 84
ErrnoErestart Errno = 85
ErrnoEstrpipe Errno = 86
ErrnoEusers Errno = 87
ErrnoEnotsock Errno = 88
ErrnoEdestaddrreq Errno = 89
ErrnoEmsgsize Errno = 90
ErrnoEprototype Errno = 91
ErrnoEnoprotoopt Errno = 92
ErrnoEprotonosupport Errno = 93
ErrnoEsocktnosupport Errno = 94
ErrnoEopnotsupp Errno = 95
ErrnoEpfnosupport Errno = 96
ErrnoEafnosupport Errno = 97
ErrnoEaddrinuse Errno = 98
ErrnoEaddrnotavail Errno = 99
ErrnoEnetdown Errno = 100
ErrnoEnetunreach Errno = 101
ErrnoEnetreset Errno = 102
ErrnoEconnaborted Errno = 103
ErrnoEconnreset Errno = 104
ErrnoEnobufs Errno = 105
ErrnoEisconn Errno = 106
ErrnoEnotconn Errno = 107
ErrnoEshutdown Errno = 108
ErrnoEtoomanyrefs Errno = 109
ErrnoEtimedout Errno = 110
ErrnoEconnrefused Errno = 111
ErrnoEhostdown Errno = 112
ErrnoEhostunreach Errno = 113
ErrnoEalready Errno = 114
ErrnoEinprogress Errno = 115
ErrnoEstale Errno = 116
ErrnoEuclean Errno = 117
ErrnoEnotnam Errno = 118
ErrnoEnavail Errno = 119
ErrnoEisnam Errno = 120
ErrnoEremoteio Errno = 121
ErrnoEdquot Errno = 122
ErrnoEnomedium Errno = 123
ErrnoEmediumtype Errno = 124
ErrnoEcanceled Errno = 125
ErrnoEnokey Errno = 126
ErrnoEkeyexpired Errno = 127
ErrnoEkeyrevoked Errno = 128
ErrnoEkeyrejected Errno = 129
ErrnoEownerdead Errno = 130
ErrnoEnotrecoverable Errno = 131
ErrnoErfkill Errno = 132
ErrnoEhwpoison Errno = 133
)
func (_ Errno) I_EnumValues() []Errno {
return []Errno{
ErrnoEperm,
ErrnoEnoent,
ErrnoEsrch,
ErrnoEintr,
ErrnoEio,
ErrnoEnxio,
ErrnoE2Big,
ErrnoEnoexec,
ErrnoEbadf,
ErrnoEchild,
ErrnoEagain,
ErrnoEnomem,
ErrnoEacces,
ErrnoEfault,
ErrnoEnotblk,
ErrnoEbusy,
ErrnoEexist,
ErrnoExdev,
ErrnoEnodev,
ErrnoEnotdir,
ErrnoEisdir,
ErrnoEinval,
ErrnoEnfile,
ErrnoEmfile,
ErrnoEnotty,
ErrnoEtxtbsy,
ErrnoEfbig,
ErrnoEnospc,
ErrnoEspipe,
ErrnoErofs,
ErrnoEmlink,
ErrnoEpipe,
ErrnoEdom,
ErrnoErange,
ErrnoEdeadlk,
ErrnoEnametoolong,
ErrnoEnolck,
ErrnoEnosys,
ErrnoEnotempty,
ErrnoEloop,
ErrnoEnomsg,
ErrnoEidrm,
ErrnoEchrng,
ErrnoEl2Nsync,
ErrnoEl3Hlt,
ErrnoEl3Rst,
ErrnoElnrng,
ErrnoEunatch,
ErrnoEnocsi,
ErrnoEl2Hlt,
ErrnoEbade,
ErrnoEbadr,
ErrnoExfull,
ErrnoEnoano,
ErrnoEbadrqc,
ErrnoEbadslt,
ErrnoEbfont,
ErrnoEnostr,
ErrnoEnodata,
ErrnoEtime,
ErrnoEnosr,
ErrnoEnonet,
ErrnoEnopkg,
ErrnoEremote,
ErrnoEnolink,
ErrnoEadv,
ErrnoEsrmnt,
ErrnoEcomm,
ErrnoEproto,
ErrnoEmultihop,
ErrnoEdotdot,
ErrnoEbadmsg,
ErrnoEoverflow,
ErrnoEnotuniq,
ErrnoEbadfd,
ErrnoEremchg,
ErrnoElibacc,
ErrnoElibbad,
ErrnoElibscn,
ErrnoElibmax,
ErrnoElibexec,
ErrnoEilseq,
ErrnoErestart,
ErrnoEstrpipe,
ErrnoEusers,
ErrnoEnotsock,
ErrnoEdestaddrreq,
ErrnoEmsgsize,
ErrnoEprototype,
ErrnoEnoprotoopt,
ErrnoEprotonosupport,
ErrnoEsocktnosupport,
ErrnoEopnotsupp,
ErrnoEpfnosupport,
ErrnoEafnosupport,
ErrnoEaddrinuse,
ErrnoEaddrnotavail,
ErrnoEnetdown,
ErrnoEnetunreach,
ErrnoEnetreset,
ErrnoEconnaborted,
ErrnoEconnreset,
ErrnoEnobufs,
ErrnoEisconn,
ErrnoEnotconn,
ErrnoEshutdown,
ErrnoEtoomanyrefs,
ErrnoEtimedout,
ErrnoEconnrefused,
ErrnoEhostdown,
ErrnoEhostunreach,
ErrnoEalready,
ErrnoEinprogress,
ErrnoEstale,
ErrnoEuclean,
ErrnoEnotnam,
ErrnoEnavail,
ErrnoEisnam,
ErrnoEremoteio,
ErrnoEdquot,
ErrnoEnomedium,
ErrnoEmediumtype,
ErrnoEcanceled,
ErrnoEnokey,
ErrnoEkeyexpired,
ErrnoEkeyrevoked,
ErrnoEkeyrejected,
ErrnoEownerdead,
ErrnoEnotrecoverable,
ErrnoErfkill,
ErrnoEhwpoison,
}
}
func (_ Errno) I_EnumIsStrict() bool {
return true
}
func (x Errno) IsUnknown() bool {
switch x {
case 1:
return false
case 2:
return false
case 3:
return false
case 4:
return false
case 5:
return false
case 6:
return false
case 7:
return false
case 8:
return false
case 9:
return false
case 10:
return false
case 11:
return false
case 12:
return false
case 13:
return false
case 14:
return false
case 15:
return false
case 16:
return false
case 17:
return false
case 18:
return false
case 19:
return false
case 20:
return false
case 21:
return false
case 22:
return false
case 23:
return false
case 24:
return false
case 25:
return false
case 26:
return false
case 27:
return false
case 28:
return false
case 29:
return false
case 30:
return false
case 31:
return false
case 32:
return false
case 33:
return false
case 34:
return false
case 35:
return false
case 36:
return false
case 37:
return false
case 38:
return false
case 39:
return false
case 40:
return false
case 42:
return false
case 43:
return false
case 44:
return false
case 45:
return false
case 46:
return false
case 47:
return false
case 48:
return false
case 49:
return false
case 50:
return false
case 51:
return false
case 52:
return false
case 53:
return false
case 54:
return false
case 55:
return false
case 56:
return false
case 57:
return false
case 59:
return false
case 60:
return false
case 61:
return false
case 62:
return false
case 63:
return false
case 64:
return false
case 65:
return false
case 66:
return false
case 67:
return false
case 68:
return false
case 69:
return false
case 70:
return false
case 71:
return false
case 72:
return false
case 73:
return false
case 74:
return false
case 75:
return false
case 76:
return false
case 77:
return false
case 78:
return false
case 79:
return false
case 80:
return false
case 81:
return false
case 82:
return false
case 83:
return false
case 84:
return false
case 85:
return false
case 86:
return false
case 87:
return false
case 88:
return false
case 89:
return false
case 90:
return false
case 91:
return false
case 92:
return false
case 93:
return false
case 94:
return false
case 95:
return false
case 96:
return false
case 97:
return false
case 98:
return false
case 99:
return false
case 100:
return false
case 101:
return false
case 102:
return false
case 103:
return false
case 104:
return false
case 105:
return false
case 106:
return false
case 107:
return false
case 108:
return false
case 109:
return false
case 110:
return false
case 111:
return false
case 112:
return false
case 113:
return false
case 114:
return false
case 115:
return false
case 116:
return false
case 117:
return false
case 118:
return false
case 119:
return false
case 120:
return false
case 121:
return false
case 122:
return false
case 123:
return false
case 124:
return false
case 125:
return false
case 126:
return false
case 127:
return false
case 128:
return false
case 129:
return false
case 130:
return false
case 131:
return false
case 132:
return false
case 133:
return false
default:
return true
}
}
func (x Errno) String() string {
switch x {
case 1:
return "Eperm"
case 2:
return "Enoent"
case 3:
return "Esrch"
case 4:
return "Eintr"
case 5:
return "Eio"
case 6:
return "Enxio"
case 7:
return "E2Big"
case 8:
return "Enoexec"
case 9:
return "Ebadf"
case 10:
return "Echild"
case 11:
return "Eagain"
case 12:
return "Enomem"
case 13:
return "Eacces"
case 14:
return "Efault"
case 15:
return "Enotblk"
case 16:
return "Ebusy"
case 17:
return "Eexist"
case 18:
return "Exdev"
case 19:
return "Enodev"
case 20:
return "Enotdir"
case 21:
return "Eisdir"
case 22:
return "Einval"
case 23:
return "Enfile"
case 24:
return "Emfile"
case 25:
return "Enotty"
case 26:
return "Etxtbsy"
case 27:
return "Efbig"
case 28:
return "Enospc"
case 29:
return "Espipe"
case 30:
return "Erofs"
case 31:
return "Emlink"
case 32:
return "Epipe"
case 33:
return "Edom"
case 34:
return "Erange"
case 35:
return "Edeadlk"
case 36:
return "Enametoolong"
case 37:
return "Enolck"
case 38:
return "Enosys"
case 39:
return "Enotempty"
case 40:
return "Eloop"
case 42:
return "Enomsg"
case 43:
return "Eidrm"
case 44:
return "Echrng"
case 45:
return "El2Nsync"
case 46:
return "El3Hlt"
case 47:
return "El3Rst"
case 48:
return "Elnrng"
case 49:
return "Eunatch"
case 50:
return "Enocsi"
case 51:
return "El2Hlt"
case 52:
return "Ebade"
case 53:
return "Ebadr"
case 54:
return "Exfull"
case 55:
return "Enoano"
case 56:
return "Ebadrqc"
case 57:
return "Ebadslt"
case 59:
return "Ebfont"
case 60:
return "Enostr"
case 61:
return "Enodata"
case 62:
return "Etime"
case 63:
return "Enosr"
case 64:
return "Enonet"
case 65:
return "Enopkg"
case 66:
return "Eremote"
case 67:
return "Enolink"
case 68:
return "Eadv"
case 69:
return "Esrmnt"
case 70:
return "Ecomm"
case 71:
return "Eproto"
case 72:
return "Emultihop"
case 73:
return "Edotdot"
case 74:
return "Ebadmsg"
case 75:
return "Eoverflow"
case 76:
return "Enotuniq"
case 77:
return "Ebadfd"
case 78:
return "Eremchg"
case 79:
return "Elibacc"
case 80:
return "Elibbad"
case 81:
return "Elibscn"
case 82:
return "Elibmax"
case 83:
return "Elibexec"
case 84:
return "Eilseq"
case 85:
return "Erestart"
case 86:
return "Estrpipe"
case 87:
return "Eusers"
case 88:
return "Enotsock"
case 89:
return "Edestaddrreq"
case 90:
return "Emsgsize"
case 91:
return "Eprototype"
case 92:
return "Enoprotoopt"
case 93:
return "Eprotonosupport"
case 94:
return "Esocktnosupport"
case 95:
return "Eopnotsupp"
case 96:
return "Epfnosupport"
case 97:
return "Eafnosupport"
case 98:
return "Eaddrinuse"
case 99:
return "Eaddrnotavail"
case 100:
return "Enetdown"
case 101:
return "Enetunreach"
case 102:
return "Enetreset"
case 103:
return "Econnaborted"
case 104:
return "Econnreset"
case 105:
return "Enobufs"
case 106:
return "Eisconn"
case 107:
return "Enotconn"
case 108:
return "Eshutdown"
case 109:
return "Etoomanyrefs"
case 110:
return "Etimedout"
case 111:
return "Econnrefused"
case 112:
return "Ehostdown"
case 113:
return "Ehostunreach"
case 114:
return "Ealready"
case 115:
return "Einprogress"
case 116:
return "Estale"
case 117:
return "Euclean"
case 118:
return "Enotnam"
case 119:
return "Enavail"
case 120:
return "Eisnam"
case 121:
return "Eremoteio"
case 122:
return "Edquot"
case 123:
return "Enomedium"
case 124:
return "Emediumtype"
case 125:
return "Ecanceled"
case 126:
return "Enokey"
case 127:
return "Ekeyexpired"
case 128:
return "Ekeyrevoked"
case 129:
return "Ekeyrejected"
case 130:
return "Eownerdead"
case 131:
return "Enotrecoverable"
case 132:
return "Erfkill"
case 133:
return "Ehwpoison"
}
return "Unknown"
}