Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2011)

Side by Side Diff: src/pkg/syscall/zerrors_linux_amd64.go

Issue 5372080: code review 5372080: syscall: use error (Closed)
Patch Set: diff -r 25e37de63f5d https://go.googlecode.com/hg/ Created 13 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/syscall/zerrors_linux_386.go ('k') | src/pkg/syscall/zerrors_openbsd_386.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // mkerrors.sh -m64 1 // mkerrors.sh -m64
2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3 3
4 // Created by cgo -godefs - DO NOT EDIT 4 // Created by cgo -godefs - DO NOT EDIT
5 // cgo -godefs -- -m64 _const.go 5 // cgo -godefs -- -m64 _const.go
6 6
7 package syscall 7 package syscall
8 8
9 const ( 9 const (
10 AF_ALG = 0x26 10 AF_ALG = 0x26
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 BPF_X = 0x8 148 BPF_X = 0x8
149 DT_BLK = 0x6 149 DT_BLK = 0x6
150 DT_CHR = 0x2 150 DT_CHR = 0x2
151 DT_DIR = 0x4 151 DT_DIR = 0x4
152 DT_FIFO = 0x1 152 DT_FIFO = 0x1
153 DT_LNK = 0xa 153 DT_LNK = 0xa
154 DT_REG = 0x8 154 DT_REG = 0x8
155 DT_SOCK = 0xc 155 DT_SOCK = 0xc
156 DT_UNKNOWN = 0x0 156 DT_UNKNOWN = 0x0
157 DT_WHT = 0xe 157 DT_WHT = 0xe
158 E2BIG = 0x7
159 EACCES = 0xd
160 EADDRINUSE = 0x62
161 EADDRNOTAVAIL = 0x63
162 EADV = 0x44
163 EAFNOSUPPORT = 0x61
164 EAGAIN = 0xb
165 EALREADY = 0x72
166 EBADE = 0x34
167 EBADF = 0x9
168 EBADFD = 0x4d
169 EBADMSG = 0x4a
170 EBADR = 0x35
171 EBADRQC = 0x38
172 EBADSLT = 0x39
173 EBFONT = 0x3b
174 EBUSY = 0x10
175 ECANCELED = 0x7d
176 ECHILD = 0xa
177 ECHRNG = 0x2c
178 ECOMM = 0x46
179 ECONNABORTED = 0x67
180 ECONNREFUSED = 0x6f
181 ECONNRESET = 0x68
182 EDEADLK = 0x23
183 EDEADLOCK = 0x23
184 EDESTADDRREQ = 0x59
185 EDOM = 0x21
186 EDOTDOT = 0x49
187 EDQUOT = 0x7a
188 EEXIST = 0x11
189 EFAULT = 0xe
190 EFBIG = 0x1b
191 EHOSTDOWN = 0x70
192 EHOSTUNREACH = 0x71
193 EIDRM = 0x2b
194 EILSEQ = 0x54
195 EINPROGRESS = 0x73
196 EINTR = 0x4
197 EINVAL = 0x16
198 EIO = 0x5
199 EISCONN = 0x6a
200 EISDIR = 0x15
201 EISNAM = 0x78
202 EKEYEXPIRED = 0x7f
203 EKEYREJECTED = 0x81
204 EKEYREVOKED = 0x80
205 EL2HLT = 0x33
206 EL2NSYNC = 0x2d
207 EL3HLT = 0x2e
208 EL3RST = 0x2f
209 ELIBACC = 0x4f
210 ELIBBAD = 0x50
211 ELIBEXEC = 0x53
212 ELIBMAX = 0x52
213 ELIBSCN = 0x51
214 ELNRNG = 0x30
215 ELOOP = 0x28
216 EMEDIUMTYPE = 0x7c
217 EMFILE = 0x18
218 EMLINK = 0x1f
219 EMSGSIZE = 0x5a
220 EMULTIHOP = 0x48
221 ENAMETOOLONG = 0x24
222 ENAVAIL = 0x77
223 ENETDOWN = 0x64
224 ENETRESET = 0x66
225 ENETUNREACH = 0x65
226 ENFILE = 0x17
227 ENOANO = 0x37
228 ENOBUFS = 0x69
229 ENOCSI = 0x32
230 ENODATA = 0x3d
231 ENODEV = 0x13
232 ENOENT = 0x2
233 ENOEXEC = 0x8
234 ENOKEY = 0x7e
235 ENOLCK = 0x25
236 ENOLINK = 0x43
237 ENOMEDIUM = 0x7b
238 ENOMEM = 0xc
239 ENOMSG = 0x2a
240 ENONET = 0x40
241 ENOPKG = 0x41
242 ENOPROTOOPT = 0x5c
243 ENOSPC = 0x1c
244 ENOSR = 0x3f
245 ENOSTR = 0x3c
246 ENOSYS = 0x26
247 ENOTBLK = 0xf
248 ENOTCONN = 0x6b
249 ENOTDIR = 0x14
250 ENOTEMPTY = 0x27
251 ENOTNAM = 0x76
252 ENOTRECOVERABLE = 0x83
253 ENOTSOCK = 0x58
254 ENOTSUP = 0x5f
255 ENOTTY = 0x19
256 ENOTUNIQ = 0x4c
257 ENXIO = 0x6
258 EOPNOTSUPP = 0x5f
259 EOVERFLOW = 0x4b
260 EOWNERDEAD = 0x82
261 EPERM = 0x1
262 EPFNOSUPPORT = 0x60
263 EPIPE = 0x20
264 EPOLLERR = 0x8 158 EPOLLERR = 0x8
265 EPOLLET = -0x80000000 159 EPOLLET = -0x80000000
266 EPOLLHUP = 0x10 160 EPOLLHUP = 0x10
267 EPOLLIN = 0x1 161 EPOLLIN = 0x1
268 EPOLLMSG = 0x400 162 EPOLLMSG = 0x400
269 EPOLLONESHOT = 0x40000000 163 EPOLLONESHOT = 0x40000000
270 EPOLLOUT = 0x4 164 EPOLLOUT = 0x4
271 EPOLLPRI = 0x2 165 EPOLLPRI = 0x2
272 EPOLLRDBAND = 0x80 166 EPOLLRDBAND = 0x80
273 EPOLLRDHUP = 0x2000 167 EPOLLRDHUP = 0x2000
274 EPOLLRDNORM = 0x40 168 EPOLLRDNORM = 0x40
275 EPOLLWRBAND = 0x200 169 EPOLLWRBAND = 0x200
276 EPOLLWRNORM = 0x100 170 EPOLLWRNORM = 0x100
277 EPOLL_CLOEXEC = 0x80000 171 EPOLL_CLOEXEC = 0x80000
278 EPOLL_CTL_ADD = 0x1 172 EPOLL_CTL_ADD = 0x1
279 EPOLL_CTL_DEL = 0x2 173 EPOLL_CTL_DEL = 0x2
280 EPOLL_CTL_MOD = 0x3 174 EPOLL_CTL_MOD = 0x3
281 EPOLL_NONBLOCK = 0x800 175 EPOLL_NONBLOCK = 0x800
282 EPROTO = 0x47
283 EPROTONOSUPPORT = 0x5d
284 EPROTOTYPE = 0x5b
285 ERANGE = 0x22
286 EREMCHG = 0x4e
287 EREMOTE = 0x42
288 EREMOTEIO = 0x79
289 ERESTART = 0x55
290 ERFKILL = 0x84
291 EROFS = 0x1e
292 ESHUTDOWN = 0x6c
293 ESOCKTNOSUPPORT = 0x5e
294 ESPIPE = 0x1d
295 ESRCH = 0x3
296 ESRMNT = 0x45
297 ESTALE = 0x74
298 ESTRPIPE = 0x56
299 ETH_P_1588 = 0x88f7 176 ETH_P_1588 = 0x88f7
300 ETH_P_8021Q = 0x8100 177 ETH_P_8021Q = 0x8100
301 ETH_P_802_2 = 0x4 178 ETH_P_802_2 = 0x4
302 ETH_P_802_3 = 0x1 179 ETH_P_802_3 = 0x1
303 ETH_P_AARP = 0x80f3 180 ETH_P_AARP = 0x80f3
304 ETH_P_ALL = 0x3 181 ETH_P_ALL = 0x3
305 ETH_P_AOE = 0x88a2 182 ETH_P_AOE = 0x88a2
306 ETH_P_ARCNET = 0x1a 183 ETH_P_ARCNET = 0x1a
307 ETH_P_ARP = 0x806 184 ETH_P_ARP = 0x806
308 ETH_P_ATALK = 0x809b 185 ETH_P_ATALK = 0x809b
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 ETH_P_SCA = 0x6007 230 ETH_P_SCA = 0x6007
354 ETH_P_SLOW = 0x8809 231 ETH_P_SLOW = 0x8809
355 ETH_P_SNAP = 0x5 232 ETH_P_SNAP = 0x5
356 ETH_P_TEB = 0x6558 233 ETH_P_TEB = 0x6558
357 ETH_P_TIPC = 0x88ca 234 ETH_P_TIPC = 0x88ca
358 ETH_P_TRAILER = 0x1c 235 ETH_P_TRAILER = 0x1c
359 ETH_P_TR_802_2 = 0x11 236 ETH_P_TR_802_2 = 0x11
360 ETH_P_WAN_PPP = 0x7 237 ETH_P_WAN_PPP = 0x7
361 ETH_P_WCCP = 0x883e 238 ETH_P_WCCP = 0x883e
362 ETH_P_X25 = 0x805 239 ETH_P_X25 = 0x805
363 ETIME = 0x3e
364 ETIMEDOUT = 0x6e
365 ETOOMANYREFS = 0x6d
366 ETXTBSY = 0x1a
367 EUCLEAN = 0x75
368 EUNATCH = 0x31
369 EUSERS = 0x57
370 EWOULDBLOCK = 0xb
371 EXDEV = 0x12
372 EXFULL = 0x36
373 FD_CLOEXEC = 0x1 240 FD_CLOEXEC = 0x1
374 FD_SETSIZE = 0x400 241 FD_SETSIZE = 0x400
375 F_DUPFD = 0x0 242 F_DUPFD = 0x0
376 F_DUPFD_CLOEXEC = 0x406 243 F_DUPFD_CLOEXEC = 0x406
377 F_EXLCK = 0x4 244 F_EXLCK = 0x4
378 F_GETFD = 0x1 245 F_GETFD = 0x1
379 F_GETFL = 0x3 246 F_GETFL = 0x3
380 F_GETLEASE = 0x401 247 F_GETLEASE = 0x401
381 F_GETLK = 0x5 248 F_GETLK = 0x5
382 F_GETLK64 = 0x5 249 F_GETLK64 = 0x5
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 WCONTINUED = 0x8 1123 WCONTINUED = 0x8
1257 WEXITED = 0x4 1124 WEXITED = 0x4
1258 WNOHANG = 0x1 1125 WNOHANG = 0x1
1259 WNOTHREAD = 0x20000000 1126 WNOTHREAD = 0x20000000
1260 WNOWAIT = 0x1000000 1127 WNOWAIT = 0x1000000
1261 WORDSIZE = 0x40 1128 WORDSIZE = 0x40
1262 WSTOPPED = 0x2 1129 WSTOPPED = 0x2
1263 WUNTRACED = 0x2 1130 WUNTRACED = 0x2
1264 ) 1131 )
1265 1132
1133 // Errors
1134 const (
1135 E2BIG = Errno(0x7)
1136 EACCES = Errno(0xd)
1137 EADDRINUSE = Errno(0x62)
1138 EADDRNOTAVAIL = Errno(0x63)
1139 EADV = Errno(0x44)
1140 EAFNOSUPPORT = Errno(0x61)
1141 EAGAIN = Errno(0xb)
1142 EALREADY = Errno(0x72)
1143 EBADE = Errno(0x34)
1144 EBADF = Errno(0x9)
1145 EBADFD = Errno(0x4d)
1146 EBADMSG = Errno(0x4a)
1147 EBADR = Errno(0x35)
1148 EBADRQC = Errno(0x38)
1149 EBADSLT = Errno(0x39)
1150 EBFONT = Errno(0x3b)
1151 EBUSY = Errno(0x10)
1152 ECANCELED = Errno(0x7d)
1153 ECHILD = Errno(0xa)
1154 ECHRNG = Errno(0x2c)
1155 ECOMM = Errno(0x46)
1156 ECONNABORTED = Errno(0x67)
1157 ECONNREFUSED = Errno(0x6f)
1158 ECONNRESET = Errno(0x68)
1159 EDEADLK = Errno(0x23)
1160 EDEADLOCK = Errno(0x23)
1161 EDESTADDRREQ = Errno(0x59)
1162 EDOM = Errno(0x21)
1163 EDOTDOT = Errno(0x49)
1164 EDQUOT = Errno(0x7a)
1165 EEXIST = Errno(0x11)
1166 EFAULT = Errno(0xe)
1167 EFBIG = Errno(0x1b)
1168 EHOSTDOWN = Errno(0x70)
1169 EHOSTUNREACH = Errno(0x71)
1170 EIDRM = Errno(0x2b)
1171 EILSEQ = Errno(0x54)
1172 EINPROGRESS = Errno(0x73)
1173 EINTR = Errno(0x4)
1174 EINVAL = Errno(0x16)
1175 EIO = Errno(0x5)
1176 EISCONN = Errno(0x6a)
1177 EISDIR = Errno(0x15)
1178 EISNAM = Errno(0x78)
1179 EKEYEXPIRED = Errno(0x7f)
1180 EKEYREJECTED = Errno(0x81)
1181 EKEYREVOKED = Errno(0x80)
1182 EL2HLT = Errno(0x33)
1183 EL2NSYNC = Errno(0x2d)
1184 EL3HLT = Errno(0x2e)
1185 EL3RST = Errno(0x2f)
1186 ELIBACC = Errno(0x4f)
1187 ELIBBAD = Errno(0x50)
1188 ELIBEXEC = Errno(0x53)
1189 ELIBMAX = Errno(0x52)
1190 ELIBSCN = Errno(0x51)
1191 ELNRNG = Errno(0x30)
1192 ELOOP = Errno(0x28)
1193 EMEDIUMTYPE = Errno(0x7c)
1194 EMFILE = Errno(0x18)
1195 EMLINK = Errno(0x1f)
1196 EMSGSIZE = Errno(0x5a)
1197 EMULTIHOP = Errno(0x48)
1198 ENAMETOOLONG = Errno(0x24)
1199 ENAVAIL = Errno(0x77)
1200 ENETDOWN = Errno(0x64)
1201 ENETRESET = Errno(0x66)
1202 ENETUNREACH = Errno(0x65)
1203 ENFILE = Errno(0x17)
1204 ENOANO = Errno(0x37)
1205 ENOBUFS = Errno(0x69)
1206 ENOCSI = Errno(0x32)
1207 ENODATA = Errno(0x3d)
1208 ENODEV = Errno(0x13)
1209 ENOENT = Errno(0x2)
1210 ENOEXEC = Errno(0x8)
1211 ENOKEY = Errno(0x7e)
1212 ENOLCK = Errno(0x25)
1213 ENOLINK = Errno(0x43)
1214 ENOMEDIUM = Errno(0x7b)
1215 ENOMEM = Errno(0xc)
1216 ENOMSG = Errno(0x2a)
1217 ENONET = Errno(0x40)
1218 ENOPKG = Errno(0x41)
1219 ENOPROTOOPT = Errno(0x5c)
1220 ENOSPC = Errno(0x1c)
1221 ENOSR = Errno(0x3f)
1222 ENOSTR = Errno(0x3c)
1223 ENOSYS = Errno(0x26)
1224 ENOTBLK = Errno(0xf)
1225 ENOTCONN = Errno(0x6b)
1226 ENOTDIR = Errno(0x14)
1227 ENOTEMPTY = Errno(0x27)
1228 ENOTNAM = Errno(0x76)
1229 ENOTRECOVERABLE = Errno(0x83)
1230 ENOTSOCK = Errno(0x58)
1231 ENOTSUP = Errno(0x5f)
1232 ENOTTY = Errno(0x19)
1233 ENOTUNIQ = Errno(0x4c)
1234 ENXIO = Errno(0x6)
1235 EOPNOTSUPP = Errno(0x5f)
1236 EOVERFLOW = Errno(0x4b)
1237 EOWNERDEAD = Errno(0x82)
1238 EPERM = Errno(0x1)
1239 EPFNOSUPPORT = Errno(0x60)
1240 EPIPE = Errno(0x20)
1241 EPROTO = Errno(0x47)
1242 EPROTONOSUPPORT = Errno(0x5d)
1243 EPROTOTYPE = Errno(0x5b)
1244 ERANGE = Errno(0x22)
1245 EREMCHG = Errno(0x4e)
1246 EREMOTE = Errno(0x42)
1247 EREMOTEIO = Errno(0x79)
1248 ERESTART = Errno(0x55)
1249 ERFKILL = Errno(0x84)
1250 EROFS = Errno(0x1e)
1251 ESHUTDOWN = Errno(0x6c)
1252 ESOCKTNOSUPPORT = Errno(0x5e)
1253 ESPIPE = Errno(0x1d)
1254 ESRCH = Errno(0x3)
1255 ESRMNT = Errno(0x45)
1256 ESTALE = Errno(0x74)
1257 ESTRPIPE = Errno(0x56)
1258 ETIME = Errno(0x3e)
1259 ETIMEDOUT = Errno(0x6e)
1260 ETOOMANYREFS = Errno(0x6d)
1261 ETXTBSY = Errno(0x1a)
1262 EUCLEAN = Errno(0x75)
1263 EUNATCH = Errno(0x31)
1264 EUSERS = Errno(0x57)
1265 EWOULDBLOCK = Errno(0xb)
1266 EXDEV = Errno(0x12)
1267 EXFULL = Errno(0x36)
1268 )
1269
1266 // Error table 1270 // Error table
1267 var errors = [...]string{ 1271 var errors = [...]string{
1268 1: "operation not permitted", 1272 1: "operation not permitted",
1269 2: "no such file or directory", 1273 2: "no such file or directory",
1270 3: "no such process", 1274 3: "no such process",
1271 4: "interrupted system call", 1275 4: "interrupted system call",
1272 5: "input/output error", 1276 5: "input/output error",
1273 6: "no such device or address", 1277 6: "no such device or address",
1274 7: "argument list too long", 1278 7: "argument list too long",
1275 8: "exec format error", 1279 8: "exec format error",
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 124: "wrong medium type", 1393 124: "wrong medium type",
1390 125: "operation canceled", 1394 125: "operation canceled",
1391 126: "required key not available", 1395 126: "required key not available",
1392 127: "key has expired", 1396 127: "key has expired",
1393 128: "key has been revoked", 1397 128: "key has been revoked",
1394 129: "key was rejected by service", 1398 129: "key was rejected by service",
1395 130: "owner died", 1399 130: "owner died",
1396 131: "state not recoverable", 1400 131: "state not recoverable",
1397 132: "operation not possible due to RF-kill", 1401 132: "operation not possible due to RF-kill",
1398 } 1402 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/zerrors_linux_386.go ('k') | src/pkg/syscall/zerrors_openbsd_386.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b