File tree Expand file tree Collapse file tree 1 file changed +109
-17
lines changed Expand file tree Collapse file tree 1 file changed +109
-17
lines changed Original file line number Diff line number Diff line change @@ -57,24 +57,116 @@ const (
5757 O_NONBLOCK = 0x4
5858)
5959
60- // Source: https://opensource.apple.com/source/xnu/xnu-7195.81.3 /bsd/sys/errno.h.auto.html
60+ // Source: https://opensource.apple.com/source/xnu/xnu-7195.141.2 /bsd/sys/errno.h.auto.html
6161const (
62- EPERM Errno = 1
63- ENOENT Errno = 2
64- EACCES Errno = 13
65- EEXIST Errno = 17
66- EINTR Errno = 4
67- ENOTDIR Errno = 20
68- EISDIR Errno = 21
69- EINVAL Errno = 22
70- EMFILE Errno = 24
71- EROFS Errno = 30
72- EPIPE Errno = 32
73- EAGAIN Errno = 35
74- ENOTCONN Errno = 57
75- ETIMEDOUT Errno = 60
76- ENOSYS Errno = 78
77- EWOULDBLOCK Errno = EAGAIN
62+ EPERM Errno = 1
63+ ENOENT Errno = 2
64+ ESRCH Errno = 3
65+ EINTR Errno = 4
66+ EIO Errno = 5
67+ ENXIO Errno = 6
68+ E2BIG Errno = 7
69+ ENOEXEC Errno = 8
70+ EBADF Errno = 9
71+ ECHILD Errno = 10
72+ EDEADLK Errno = 11
73+ ENOMEM Errno = 12
74+ EACCES Errno = 13
75+ EFAULT Errno = 14
76+ ENOTBLK Errno = 15
77+ EBUSY Errno = 16
78+ EEXIST Errno = 17
79+ EXDEV Errno = 18
80+ ENODEV Errno = 19
81+ ENOTDIR Errno = 20
82+ EISDIR Errno = 21
83+ EINVAL Errno = 22
84+ ENFILE Errno = 23
85+ EMFILE Errno = 24
86+ ENOTTY Errno = 25
87+ ETXTBSY Errno = 26
88+ EFBIG Errno = 27
89+ ENOSPC Errno = 28
90+ ESPIPE Errno = 29
91+ EROFS Errno = 30
92+ EMLINK Errno = 31
93+ EPIPE Errno = 32
94+ EDOM Errno = 33
95+ ERANGE Errno = 34
96+ EAGAIN Errno = 35
97+ EWOULDBLOCK Errno = EAGAIN
98+ EINPROGRESS Errno = 36
99+ EALREADY Errno = 37
100+ ENOTSOCK Errno = 38
101+ EDESTADDRREQ Errno = 39
102+ EMSGSIZE Errno = 40
103+ EPROTOTYPE Errno = 41
104+ ENOPROTOOPT Errno = 42
105+ EPROTONOSUPPORT Errno = 43
106+ ESOCKTNOSUPPORT Errno = 44
107+ ENOTSUP Errno = 45
108+ EPFNOSUPPORT Errno = 46
109+ EAFNOSUPPORT Errno = 47
110+ EADDRINUSE Errno = 48
111+ EADDRNOTAVAIL Errno = 49
112+ ENETDOWN Errno = 50
113+ ENETUNREACH Errno = 51
114+ ENETRESET Errno = 52
115+ ECONNABORTED Errno = 53
116+ ECONNRESET Errno = 54
117+ ENOBUFS Errno = 55
118+ EISCONN Errno = 56
119+ ENOTCONN Errno = 57
120+ ESHUTDOWN Errno = 58
121+ ETOOMANYREFS Errno = 59
122+ ETIMEDOUT Errno = 60
123+ ECONNREFUSED Errno = 61
124+ ELOOP Errno = 62
125+ ENAMETOOLONG Errno = 63
126+ EHOSTDOWN Errno = 64
127+ EHOSTUNREACH Errno = 65
128+ ENOTEMPTY Errno = 66
129+ EPROCLIM Errno = 67
130+ EUSERS Errno = 68
131+ EDQUOT Errno = 69
132+ ESTALE Errno = 70
133+ EREMOTE Errno = 71
134+ EBADRPC Errno = 72
135+ ERPCMISMATCH Errno = 73
136+ EPROGUNAVAIL Errno = 74
137+ EPROGMISMATCH Errno = 75
138+ EPROCUNAVAIL Errno = 76
139+ ENOLCK Errno = 77
140+ ENOSYS Errno = 78
141+ EFTYPE Errno = 79
142+ EAUTH Errno = 80
143+ ENEEDAUTH Errno = 81
144+ EPWROFF Errno = 82
145+ EDEVERR Errno = 83
146+ EOVERFLOW Errno = 84
147+ EBADEXEC Errno = 85
148+ EBADARCH Errno = 86
149+ ESHLIBVERS Errno = 87
150+ EBADMACHO Errno = 88
151+ ECANCELED Errno = 89
152+ EIDRM Errno = 90
153+ ENOMSG Errno = 91
154+ EILSEQ Errno = 92
155+ ENOATTR Errno = 93
156+ EBADMSG Errno = 94
157+ EMULTIHOP Errno = 95
158+ ENODATA Errno = 96
159+ ENOLINK Errno = 97
160+ ENOSR Errno = 98
161+ ENOSTR Errno = 99
162+ EPROTO Errno = 100
163+ ETIME Errno = 101
164+ EOPNOTSUPP Errno = 102
165+ ENOPOLICY Errno = 103
166+ ENOTRECOVERABLE Errno = 104
167+ EOWNERDEAD Errno = 105
168+ EQFULL Errno = 106
169+ ELAST Errno = 106
78170)
79171
80172type Signal int
You can’t perform that action at this time.
0 commit comments