summaryrefslogtreecommitdiff
path: root/src/syscall/errstr_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/syscall/errstr_darwin.go')
-rw-r--r--src/syscall/errstr_darwin.go113
1 files changed, 2 insertions, 111 deletions
diff --git a/src/syscall/errstr_darwin.go b/src/syscall/errstr_darwin.go
index 9ce75ac3b..8f060c550 100644
--- a/src/syscall/errstr_darwin.go
+++ b/src/syscall/errstr_darwin.go
@@ -4,9 +4,7 @@
package syscall
-export errstr
-
-const (
+export const (
ENONE=0;
EPERM=1;
ENOENT=2;
@@ -113,113 +111,6 @@ const (
ELAST=103;
)
-export (
- ENONE,
- EPERM,
- ENOENT,
- ESRCH,
- EINTR,
- EIO,
- ENXIO,
- E2BIG,
- ENOEXEC,
- EBADF,
- ECHILD,
- EDEADLK,
- ENOMEM,
- EACCES,
- EFAULT,
- ENOTBLK,
- EBUSY,
- EEXIST,
- EXDEV,
- ENODEV,
- ENOTDIR,
- EISDIR,
- EINVAL,
- ENFILE,
- EMFILE,
- ENOTTY,
- ETXTBSY,
- EFBIG,
- ENOSPC,
- ESPIPE,
- EROFS,
- EMLINK,
- EPIPE,
- EDOM,
- ERANGE,
- EAGAIN,
- EINPROGRESS,
- EALREADY,
- ENOTSOCK,
- EDESTADDRREQ,
- EMSGSIZE,
- EPROTOTYPE,
- ENOPROTOOPT,
- EPROTONOSUPPORT,
- ESOCKTNOSUPPORT,
- ENOTSUP,
- EPFNOSUPPORT,
- EAFNOSUPPORT,
- EADDRINUSE,
- EADDRNOTAVAIL,
- ENETDOWN,
- ENETUNREACH,
- ENETRESET,
- ECONNABORTED,
- ECONNRESET,
- ENOBUFS,
- EISCONN,
- ENOTCONN,
- ESHUTDOWN,
- ETOOMANYREFS,
- ETIMEDOUT,
- ECONNREFUSED,
- ELOOP,
- ENAMETOOLONG,
- EHOSTDOWN,
- EHOSTUNREACH,
- ENOTEMPTY,
- EPROCLIM,
- EUSERS,
- EDQUOT,
- ESTALE,
- EREMOTE,
- EBADRPC,
- ERPCMISMATCH,
- EPROGUNAVAIL,
- EPROGMISMATCH,
- EPROCUNAVAIL,
- ENOLCK,
- ENOSYS,
- EFTYPE,
- EAUTH,
- ENEEDAUTH,
- EPWROFF,
- EDEVERR,
- EOVERFLOW,
- EBADEXEC,
- EBADARCH,
- ESHLIBVERS,
- EBADMACHO,
- ECANCELED,
- EIDRM,
- ENOMSG,
- EILSEQ,
- ENOATTR,
- EBADMSG,
- EMULTIHOP,
- ENODATA,
- ENOLINK,
- ENOSR,
- ENOSTR,
- EPROTO,
- ETIME,
- EOPNOTSUPP,
- ELAST
-)
-
var error [ELAST]string;
func init(){
@@ -344,7 +235,7 @@ func str(val int64) string { // do it here rather than with fmt to avoid depend
return string(buf)[i:len(buf)];
}
-func errstr(errno int64) string {
+export func errstr(errno int64) string {
if errno < 0 || errno >= len(error) {
return "Error " + str(errno)
}