summaryrefslogtreecommitdiff
path: root/src/lib/syscall
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/syscall')
-rw-r--r--src/lib/syscall/errstr_darwin.go206
-rw-r--r--src/lib/syscall/file_darwin.go2
-rw-r--r--src/lib/syscall/file_linux.go2
-rw-r--r--src/lib/syscall/socket_darwin.go6
-rw-r--r--src/lib/syscall/socket_linux.go10
5 files changed, 113 insertions, 113 deletions
diff --git a/src/lib/syscall/errstr_darwin.go b/src/lib/syscall/errstr_darwin.go
index 65c525501..8d62f74e8 100644
--- a/src/lib/syscall/errstr_darwin.go
+++ b/src/lib/syscall/errstr_darwin.go
@@ -114,109 +114,109 @@ export const (
var error [ELAST]string;
func init(){
- error[ENONE] = "No error";
- error[EPERM] = "Operation not permitted";
- error[ENOENT] = "No such file or directory";
- error[ESRCH] = "No such process";
- error[EINTR] = "Interrupted system call";
- error[EIO] = "Input/output error";
- error[ENXIO] = "Device not configured";
- error[E2BIG] = "Argument list too long";
- error[ENOEXEC] = "Exec format error";
- error[EBADF] = "Bad file descriptor";
- error[ECHILD] = "No child processes";
- error[EDEADLK] = "Resource deadlock avoided";
- error[ENOMEM] = "Cannot allocate memory";
- error[EACCES] = "Permission denied";
- error[EFAULT] = "Bad address";
- error[ENOTBLK] = "Block device required";
- error[EBUSY] = "Device / Resource busy";
- error[EEXIST] = "File exists";
- error[EXDEV] = "Cross-device link";
- error[ENODEV] = "Operation not supported by device";
- error[ENOTDIR] = "Not a directory";
- error[EISDIR] = "Is a directory";
- error[EINVAL] = "Invalid argument";
- error[ENFILE] = "Too many open files in system";
- error[EMFILE] = "Too many open files";
- error[ENOTTY] = "Inappropriate ioctl for device";
- error[ETXTBSY] = "Text file busy";
- error[EFBIG] = "File too large";
- error[ENOSPC] = "No space left on device";
- error[ESPIPE] = "Illegal seek";
- error[EROFS] = "Read-only file system";
- error[EMLINK] = "Too many links";
- error[EPIPE] = "Broken pipe";
- error[EDOM] = "Numerical argument out of domain";
- error[ERANGE] = "Result too large";
- error[EAGAIN] = "Resource temporarily unavailable";
- error[EINPROGRESS] = "Operation now in progress";
- error[EALREADY] = "Operation already in progress";
- error[ENOTSOCK] = "Socket operation on non-socket";
- error[EDESTADDRREQ] = "Destination address required";
- error[EMSGSIZE] = "Message too long";
- error[EPROTOTYPE] = "Protocol wrong type for socket";
- error[ENOPROTOOPT] = "Protocol not available";
- error[EPROTONOSUPPORT] = "Protocol not supported";
- error[ESOCKTNOSUPPORT] = "Socket type not supported";
- error[ENOTSUP] = "Operation not supported";
- error[EPFNOSUPPORT] = "Protocol family not supported";
- error[EAFNOSUPPORT] = "Address family not supported by protocol family";
- error[EADDRINUSE] = "Address already in use";
- error[EADDRNOTAVAIL] = "Can't assign requested address";
- error[ENETDOWN] = "Network is down";
- error[ENETUNREACH] = "Network is unreachable";
- error[ENETRESET] = "Network dropped connection on reset";
- error[ECONNABORTED] = "Software caused connection abort";
- error[ECONNRESET] = "Connection reset by peer";
- error[ENOBUFS] = "No buffer space available";
- error[EISCONN] = "Socket is already connected";
- error[ENOTCONN] = "Socket is not connected";
- error[ESHUTDOWN] = "Can't send after socket shutdown";
- error[ETOOMANYREFS] = "Too many references: can't splice";
- error[ETIMEDOUT] = "Operation timed out";
- error[ECONNREFUSED] = "Connection refused";
- error[ELOOP] = "Too many levels of symbolic links";
- error[ENAMETOOLONG] = "File name too long";
- error[EHOSTDOWN] = "Host is down";
- error[EHOSTUNREACH] = "No route to host";
- error[ENOTEMPTY] = "Directory not empty";
- error[EPROCLIM] = "Too many processes";
- error[EUSERS] = "Too many users";
- error[EDQUOT] = "Disc quota exceeded";
- error[ESTALE] = "Stale NFS file handle";
- error[EREMOTE] = "Too many levels of remote in path";
- error[EBADRPC] = "RPC struct is bad";
- error[ERPCMISMATCH] = "RPC version wrong";
- error[EPROGUNAVAIL] = "RPC prog. not avail";
- error[EPROGMISMATCH] = "Program version wrong";
- error[EPROCUNAVAIL] = "Bad procedure for program";
- error[ENOLCK] = "No locks available";
- error[ENOSYS] = "Function not implemented";
- error[EFTYPE] = "Inappropriate file type or format";
- error[EAUTH] = "Authentication error";
- error[ENEEDAUTH] = "Need authenticator";
- error[EPWROFF] = "Device power is off";
- error[EDEVERR] = "Device error, e.g. paper out";
- error[EOVERFLOW] = "Value too large to be stored in data type";
- error[EBADEXEC] = "Bad executable";
- error[EBADARCH] = "Bad CPU type in executable";
- error[ESHLIBVERS] = "Shared library version mismatch";
- error[EBADMACHO] = "Malformed Macho file";
- error[ECANCELED] = "Operation canceled";
- error[EIDRM] = "Identifier removed";
- error[ENOMSG] = "No message of desired type";
- error[EILSEQ] = "Illegal byte sequence";
- error[ENOATTR] = "Attribute not found";
- error[EBADMSG] = "Bad message";
- error[EMULTIHOP] = "Reserved";
- error[ENODATA] = "No message available on STREAM";
- error[ENOLINK] = "Reserved";
- error[ENOSR] = "No STREAM resources";
- error[ENOSTR] = "Not a STREAM";
- error[EPROTO] = "Protocol error";
- error[ETIME] = "STREAM ioctl timeout";
- error[EOPNOTSUPP] = "Operation not supported on socket";
+ error[ENONE] = "No error";
+ error[EPERM] = "Operation not permitted";
+ error[ENOENT] = "No such file or directory";
+ error[ESRCH] = "No such process";
+ error[EINTR] = "Interrupted system call";
+ error[EIO] = "Input/output error";
+ error[ENXIO] = "Device not configured";
+ error[E2BIG] = "Argument list too long";
+ error[ENOEXEC] = "Exec format error";
+ error[EBADF] = "Bad file descriptor";
+ error[ECHILD] = "No child processes";
+ error[EDEADLK] = "Resource deadlock avoided";
+ error[ENOMEM] = "Cannot allocate memory";
+ error[EACCES] = "Permission denied";
+ error[EFAULT] = "Bad address";
+ error[ENOTBLK] = "Block device required";
+ error[EBUSY] = "Device / Resource busy";
+ error[EEXIST] = "File exists";
+ error[EXDEV] = "Cross-device link";
+ error[ENODEV] = "Operation not supported by device";
+ error[ENOTDIR] = "Not a directory";
+ error[EISDIR] = "Is a directory";
+ error[EINVAL] = "Invalid argument";
+ error[ENFILE] = "Too many open files in system";
+ error[EMFILE] = "Too many open files";
+ error[ENOTTY] = "Inappropriate ioctl for device";
+ error[ETXTBSY] = "Text file busy";
+ error[EFBIG] = "File too large";
+ error[ENOSPC] = "No space left on device";
+ error[ESPIPE] = "Illegal seek";
+ error[EROFS] = "Read-only file system";
+ error[EMLINK] = "Too many links";
+ error[EPIPE] = "Broken pipe";
+ error[EDOM] = "Numerical argument out of domain";
+ error[ERANGE] = "Result too large";
+ error[EAGAIN] = "Resource temporarily unavailable";
+ error[EINPROGRESS] = "Operation now in progress";
+ error[EALREADY] = "Operation already in progress";
+ error[ENOTSOCK] = "Socket operation on non-socket";
+ error[EDESTADDRREQ] = "Destination address required";
+ error[EMSGSIZE] = "Message too long";
+ error[EPROTOTYPE] = "Protocol wrong type for socket";
+ error[ENOPROTOOPT] = "Protocol not available";
+ error[EPROTONOSUPPORT] = "Protocol not supported";
+ error[ESOCKTNOSUPPORT] = "Socket type not supported";
+ error[ENOTSUP] = "Operation not supported";
+ error[EPFNOSUPPORT] = "Protocol family not supported";
+ error[EAFNOSUPPORT] = "Address family not supported by protocol family";
+ error[EADDRINUSE] = "Address already in use";
+ error[EADDRNOTAVAIL] = "Can't assign requested address";
+ error[ENETDOWN] = "Network is down";
+ error[ENETUNREACH] = "Network is unreachable";
+ error[ENETRESET] = "Network dropped connection on reset";
+ error[ECONNABORTED] = "Software caused connection abort";
+ error[ECONNRESET] = "Connection reset by peer";
+ error[ENOBUFS] = "No buffer space available";
+ error[EISCONN] = "Socket is already connected";
+ error[ENOTCONN] = "Socket is not connected";
+ error[ESHUTDOWN] = "Can't send after socket shutdown";
+ error[ETOOMANYREFS] = "Too many references: can't splice";
+ error[ETIMEDOUT] = "Operation timed out";
+ error[ECONNREFUSED] = "Connection refused";
+ error[ELOOP] = "Too many levels of symbolic links";
+ error[ENAMETOOLONG] = "File name too long";
+ error[EHOSTDOWN] = "Host is down";
+ error[EHOSTUNREACH] = "No route to host";
+ error[ENOTEMPTY] = "Directory not empty";
+ error[EPROCLIM] = "Too many processes";
+ error[EUSERS] = "Too many users";
+ error[EDQUOT] = "Disc quota exceeded";
+ error[ESTALE] = "Stale NFS file handle";
+ error[EREMOTE] = "Too many levels of remote in path";
+ error[EBADRPC] = "RPC struct is bad";
+ error[ERPCMISMATCH] = "RPC version wrong";
+ error[EPROGUNAVAIL] = "RPC prog. not avail";
+ error[EPROGMISMATCH] = "Program version wrong";
+ error[EPROCUNAVAIL] = "Bad procedure for program";
+ error[ENOLCK] = "No locks available";
+ error[ENOSYS] = "Function not implemented";
+ error[EFTYPE] = "Inappropriate file type or format";
+ error[EAUTH] = "Authentication error";
+ error[ENEEDAUTH] = "Need authenticator";
+ error[EPWROFF] = "Device power is off";
+ error[EDEVERR] = "Device error, e.g. paper out";
+ error[EOVERFLOW] = "Value too large to be stored in data type";
+ error[EBADEXEC] = "Bad executable";
+ error[EBADARCH] = "Bad CPU type in executable";
+ error[ESHLIBVERS] = "Shared library version mismatch";
+ error[EBADMACHO] = "Malformed Macho file";
+ error[ECANCELED] = "Operation canceled";
+ error[EIDRM] = "Identifier removed";
+ error[ENOMSG] = "No message of desired type";
+ error[EILSEQ] = "Illegal byte sequence";
+ error[ENOATTR] = "Attribute not found";
+ error[EBADMSG] = "Bad message";
+ error[EMULTIHOP] = "Reserved";
+ error[ENODATA] = "No message available on STREAM";
+ error[ENOLINK] = "Reserved";
+ error[ENOSR] = "No STREAM resources";
+ error[ENOSTR] = "Not a STREAM";
+ error[EPROTO] = "Protocol error";
+ error[ETIME] = "STREAM ioctl timeout";
+ error[EOPNOTSUPP] = "Operation not supported on socket";
}
func str(val int64) string { // do it here rather than with fmt to avoid dependency
diff --git a/src/lib/syscall/file_darwin.go b/src/lib/syscall/file_darwin.go
index c481b0d1e..120003b28 100644
--- a/src/lib/syscall/file_darwin.go
+++ b/src/lib/syscall/file_darwin.go
@@ -82,7 +82,7 @@ export func unlink(name string) (ret int64, errno int64) {
}
export func fcntl(fd, cmd, arg int64) (ret int64, errno int64) {
- r1, r2, err := Syscall(SYS_FCNTL, fd, cmd, arg)
+ r1, r2, err := Syscall(SYS_FCNTL, fd, cmd, arg);
return r1, err
}
diff --git a/src/lib/syscall/file_linux.go b/src/lib/syscall/file_linux.go
index b5120a70b..09d5379c2 100644
--- a/src/lib/syscall/file_linux.go
+++ b/src/lib/syscall/file_linux.go
@@ -83,7 +83,7 @@ export func unlink(name string) (ret int64, errno int64) {
}
export func fcntl(fd, cmd, arg int64) (ret int64, errno int64) {
- r1, r2, err := Syscall(SYS_FCNTL, fd, cmd, arg)
+ r1, r2, err := Syscall(SYS_FCNTL, fd, cmd, arg);
return r1, err
}
diff --git a/src/lib/syscall/socket_darwin.go b/src/lib/syscall/socket_darwin.go
index c8104da0b..b11ba5713 100644
--- a/src/lib/syscall/socket_darwin.go
+++ b/src/lib/syscall/socket_darwin.go
@@ -50,7 +50,7 @@ export func setsockopt(fd, level, opt, valueptr, length int64) (ret int64, err i
export func setsockopt_int(fd, level, opt int64, value int) int64 {
n := int32(opt);
- r1, e := setsockopt(fd, level, opt, Int32Ptr(&n), 4)
+ r1, e := setsockopt(fd, level, opt, Int32Ptr(&n), 4);
return e
}
@@ -59,7 +59,7 @@ export func setsockopt_tv(fd, level, opt, nsec int64) int64 {
nsec += 999;
tv.sec = int64(nsec/1000000000);
tv.usec = uint32(nsec%1000000000);
- r1, e := setsockopt(fd, level, opt, TimevalPtr(&tv), 4)
+ r1, e := setsockopt(fd, level, opt, TimevalPtr(&tv), 4);
return e
}
@@ -72,7 +72,7 @@ export func setsockopt_linger(fd, level, opt int64, sec int) int64 {
l.yes = 0;
l.sec = 0
}
- r1, err := setsockopt(fd, level, opt, LingerPtr(&l), 8)
+ r1, err := setsockopt(fd, level, opt, LingerPtr(&l), 8);
return err
}
diff --git a/src/lib/syscall/socket_linux.go b/src/lib/syscall/socket_linux.go
index be55bca7b..47f9aa768 100644
--- a/src/lib/syscall/socket_linux.go
+++ b/src/lib/syscall/socket_linux.go
@@ -17,9 +17,9 @@ export func SockaddrInet6ToSockaddr(s *SockaddrInet6) *Sockaddr;
func Len(s *Sockaddr) int64 {
switch s.family {
case AF_UNIX:
- return SizeofSockaddrUnix
+ return SizeofSockaddrUnix;
case AF_INET:
- return SizeofSockaddrInet4
+ return SizeofSockaddrInet4;
case AF_INET6:
return SizeofSockaddrInet6
}
@@ -62,7 +62,7 @@ export func setsockopt(fd, level, opt, valueptr, length int64) (ret int64, err i
export func setsockopt_int(fd, level, opt int64, value int) int64 {
n := int32(opt);
- r1, e := setsockopt(fd, level, opt, Int32Ptr(&n), 4)
+ r1, e := setsockopt(fd, level, opt, Int32Ptr(&n), 4);
return e
}
@@ -71,7 +71,7 @@ export func setsockopt_tv(fd, level, opt, nsec int64) int64 {
nsec += 999;
tv.sec = int64(nsec/1000000000);
tv.usec = uint64(nsec%1000000000);
- r1, e := setsockopt(fd, level, opt, TimevalPtr(&tv), 4)
+ r1, e := setsockopt(fd, level, opt, TimevalPtr(&tv), 4);
return e
}
@@ -84,7 +84,7 @@ export func setsockopt_linger(fd, level, opt int64, sec int) int64 {
l.yes = 0;
l.sec = 0
}
- r1, err := setsockopt(fd, level, opt, LingerPtr(&l), 8)
+ r1, err := setsockopt(fd, level, opt, LingerPtr(&l), 8);
return err
}