1
0
mirror of https://github.com/golang/go synced 2024-10-05 04:21:22 -06:00
go/src/pkg/syscall
Akshat Kumar f0a8b610e7 net, os, syscall: Plan 9: adjust error handling
syscall: Use NewError for all system errors and introduce
        some new errors for compatibility with other packages
        and proper error handling in net. Also introduce
        Temporary and Timeout methods on ErrorString.

net: Make errors from dial, accept, listen functions follow the
        OpError standard and discern whether the underlying
        error came from syscall. Since Plan 9 uses a correspondence
        between file and network operations, all system error
        reporting happens through the underlying file operation.
        In Go code, we go through package os for file operations,
        so there is another level of indirection in error types.
        This change allows us to compare the errors with those in
        package syscall, when appropriate.

os: Just use the error string already present in package os,
        instead of calling out to package syscall.

R=rsc, ality, rminnich, bradfitz
CC=golang-dev
https://golang.org/cl/7398054
2013-02-28 06:43:21 +01:00
..
asm_darwin_386.s
asm_darwin_amd64.s
asm_freebsd_386.s
asm_freebsd_amd64.s syscall, net: sendfile for FreeBSD 2012-06-25 20:26:19 -04:00
asm_freebsd_arm.s syscall: FreeBSD/ARM support 2012-10-12 16:26:42 +08:00
asm_linux_386.s
asm_linux_amd64.s runtime: add vdso support for linux/amd64. Fixes issue 1933. 2012-08-31 18:07:04 -04:00
asm_linux_arm.s
asm_netbsd_386.s
asm_netbsd_amd64.s
asm_netbsd_arm.s syscall: NetBSD/ARM support 2013-02-13 01:03:25 +08:00
asm_openbsd_386.s
asm_openbsd_amd64.s
asm_plan9_386.s syscall: cleanly exit all Go procs on Plan 9 2012-04-19 16:31:26 -07:00
asm_plan9_amd64.s syscall: Plan9, amd64: fix syscall error handling in assembly 2013-02-25 22:40:14 +01:00
asm_windows_386.s syscall: extract an ExampleLoadLibrary from comment 2012-08-29 21:44:46 +08:00
asm_windows_amd64.s syscall: extract an ExampleLoadLibrary from comment 2012-08-29 21:44:46 +08:00
bpf_bsd.go
creds_test.go syscall: fix creds_test to reliably close os.File 2012-10-26 10:31:03 -07:00
dir_plan9.go syscall: fix marshaling of stat messages on Plan 9 2013-02-04 19:47:23 -08:00
dll_windows.go syscall: (*Proc).Call should return nil error when no error occurs 2013-02-03 01:42:17 +08:00
env_plan9.go syscall: Plan 9: keep a consistent environment array 2013-02-28 06:39:02 +01:00
env_unix.go syscall: check for invalid characters in Setenv on Unix 2013-02-08 10:45:46 -08:00
env_windows.go syscall: return EINVAL when string arguments have NUL characters 2012-08-05 17:24:32 -04:00
exec_bsd.go syscall: implement Pipe2 on Linux and use it in ForkExec 2013-01-10 17:04:55 -08:00
exec_linux.go syscall: implement Pipe2 on Linux and use it in ForkExec 2013-01-10 17:04:55 -08:00
exec_plan9.go syscall: fix fork-exec/wait inconsistencies for Plan 9 2013-01-22 22:42:44 -05:00
exec_unix.go syscall: implement Pipe2 on Linux and use it in ForkExec 2013-01-10 17:04:55 -08:00
exec_windows.go syscall: return EINVAL when string arguments have NUL characters 2012-08-05 17:24:32 -04:00
lsf_linux.go
mkall.sh syscall: let mkall.sh work on multiarch systems (like Precise) 2012-12-11 12:03:18 -05:00
mkerrors_windows.sh
mkerrors.sh syscall: add MSG_FASTOPEN to Linux 2013-02-27 15:51:51 -08:00
mksyscall_windows.pl syscall: do not use int to test network syscall results (on windows) 2012-09-25 17:06:39 +10:00
mksyscall.pl pkg/syscall: Plan 9, 64-bit: Update error checks from sys calls. 2012-09-28 09:56:44 +10:00
mksysctl_openbsd.pl
mksysnum_darwin.pl
mksysnum_freebsd.pl
mksysnum_linux.pl
mksysnum_netbsd.pl
mksysnum_openbsd.pl
mksysnum_plan9.sh
netlink_linux.go syscall: simplify netlink sockets 2013-01-14 19:29:03 +09:00
passfd_test.go syscall: Fix FD passing on OpenBSD 2013-02-27 15:19:23 +11:00
race0.go race: syscall changes 2012-10-09 20:51:58 +04:00
race.go race: syscall changes 2012-10-09 20:51:58 +04:00
route_bsd.go syscall: add network interface announce support on BSD variants 2013-02-24 12:36:44 +09:00
route_darwin.go syscall: add network interface announce support on BSD variants 2013-02-24 12:36:44 +09:00
route_freebsd.go syscall: add network interface announce support on BSD variants 2013-02-24 12:36:44 +09:00
route_netbsd.go syscall: add network interface announce support on BSD variants 2013-02-24 12:36:44 +09:00
route_openbsd.go syscall: add network interface announce support on BSD variants 2013-02-24 12:36:44 +09:00
security_windows.go windows: fix syscall.SidTypeUser so following consts have correct values. 2013-02-20 15:38:35 +11:00
sockcmsg_linux.go syscall: simplify socket control messages 2013-01-15 08:52:22 +09:00
sockcmsg_unix.go syscall: Fix FD passing on OpenBSD 2013-02-27 15:19:23 +11:00
str.go
syscall_bsd.go syscall: don't make //sys lines be doc comments 2013-02-14 11:23:58 -08:00
syscall_darwin_386.go
syscall_darwin_amd64.go
syscall_darwin.go syscalls: annotate Sendfile() for race detector 2012-10-29 23:15:06 +04:00
syscall_freebsd_386.go syscalls: annotate Sendfile() for race detector 2012-10-29 23:15:06 +04:00
syscall_freebsd_amd64.go syscalls: annotate Sendfile() for race detector 2012-10-29 23:15:06 +04:00
syscall_freebsd_arm.go syscalls: annotate Sendfile() for race detector 2012-10-29 23:15:06 +04:00
syscall_freebsd.go race: syscall changes 2012-10-09 20:51:58 +04:00
syscall_linux_386.go net, syscall: use accept4 and SOCK_CLOEXEC on Linux 2013-01-28 08:54:15 -08:00
syscall_linux_amd64.go net, syscall: use accept4 and SOCK_CLOEXEC on Linux 2013-01-28 08:54:15 -08:00
syscall_linux_arm.go net, syscall: use accept4 and SOCK_CLOEXEC on Linux 2013-01-28 08:54:15 -08:00
syscall_linux.go syscall: don't make //sys lines be doc comments 2013-02-14 11:23:58 -08:00
syscall_netbsd_386.go os/syscall: correct netbsd types/names 2012-05-15 12:00:13 +10:00
syscall_netbsd_amd64.go os/syscall: correct netbsd types/names 2012-05-15 12:00:13 +10:00
syscall_netbsd_arm.go syscall: NetBSD/ARM support 2013-02-13 01:03:25 +08:00
syscall_netbsd.go syscalls: annotate Sendfile() for race detector 2012-10-29 23:15:06 +04:00
syscall_openbsd_386.go
syscall_openbsd_amd64.go
syscall_openbsd.go syscalls: annotate Sendfile() for race detector 2012-10-29 23:15:06 +04:00
syscall_plan9_386.go syscall, runtime: Plan 9: use nanotime syscall on amd64 2013-02-26 01:56:08 +01:00
syscall_plan9_amd64.go syscall, runtime: Plan 9: use nanotime syscall on amd64 2013-02-26 01:56:08 +01:00
syscall_plan9.go net, os, syscall: Plan 9: adjust error handling 2013-02-28 06:43:21 +01:00
syscall_unix.go syscalls: annotate Sendfile() for race detector 2012-10-29 23:15:06 +04:00
syscall_windows_386.go
syscall_windows_amd64.go
syscall_windows_test.go syscall: extract an ExampleLoadLibrary from comment 2012-08-29 21:44:46 +08:00
syscall_windows.go os: use windows ReadConsole to read from console 2013-02-26 14:18:48 +11:00
syscall.go syscall: document that documentation is platform specific 2012-12-17 22:50:00 +08:00
types_darwin.go syscall: add ipv4 ancillary data for darwin 2012-09-29 12:43:05 +09:00
types_freebsd.go syscall: add if_announce support for freebsd 2013-02-24 12:04:48 +09:00
types_linux.go syscall: add netlink constants for linux 2013-02-23 08:42:04 +09:00
types_netbsd.go syscall: add if_announce support for netbsd 2013-02-24 12:06:24 +09:00
types_openbsd.go syscall: add if_announce support for openbsd 2013-02-24 12:07:20 +09:00
types_plan9.c
zerrors_darwin_386.go syscall: add Termios support on darwin 2012-05-03 17:33:19 -04:00
zerrors_darwin_amd64.go syscall: add Termios support on darwin 2012-05-03 17:33:19 -04:00
zerrors_freebsd_386.go syscall: add if_announce support for freebsd 2013-02-24 12:04:48 +09:00
zerrors_freebsd_amd64.go syscall: add if_announce support for freebsd 2013-02-24 12:04:48 +09:00
zerrors_freebsd_arm.go syscall: add if_announce support for freebsd 2013-02-24 12:04:48 +09:00
zerrors_linux_386.go syscall: add MSG_FASTOPEN to Linux 2013-02-27 15:51:51 -08:00
zerrors_linux_amd64.go syscall: add MSG_FASTOPEN to Linux 2013-02-27 15:51:51 -08:00
zerrors_linux_arm.go syscall: add MSG_FASTOPEN to Linux 2013-02-27 15:51:51 -08:00
zerrors_netbsd_386.go syscall: add if_announce support for netbsd 2013-02-24 12:06:24 +09:00
zerrors_netbsd_amd64.go syscall: add if_announce support for netbsd 2013-02-24 12:06:24 +09:00
zerrors_netbsd_arm.go syscall: add if_announce support for netbsd 2013-02-24 12:06:24 +09:00
zerrors_openbsd_386.go syscall: add if_announce support for openbsd 2013-02-24 12:07:20 +09:00
zerrors_openbsd_amd64.go syscall: add if_announce support for openbsd 2013-02-24 12:07:20 +09:00
zerrors_plan9_386.go net, os, syscall: Plan 9: adjust error handling 2013-02-28 06:43:21 +01:00
zerrors_plan9_amd64.go net, os, syscall: Plan 9: adjust error handling 2013-02-28 06:43:21 +01:00
zerrors_windows_386.go
zerrors_windows_amd64.go
zerrors_windows.go
zsyscall_darwin_386.go race: syscall changes 2012-10-09 20:51:58 +04:00
zsyscall_darwin_amd64.go race: syscall changes 2012-10-09 20:51:58 +04:00
zsyscall_freebsd_386.go race: syscall changes 2012-10-09 20:51:58 +04:00
zsyscall_freebsd_amd64.go race: syscall changes 2012-10-09 20:51:58 +04:00
zsyscall_freebsd_arm.go syscall: FreeBSD/ARM support 2012-10-12 16:26:42 +08:00
zsyscall_linux_386.go syscall: implement Pipe2 on Linux and use it in ForkExec 2013-01-10 17:04:55 -08:00
zsyscall_linux_amd64.go net, syscall: use accept4 and SOCK_CLOEXEC on Linux 2013-01-28 08:54:15 -08:00
zsyscall_linux_arm.go net, syscall: use accept4 and SOCK_CLOEXEC on Linux 2013-01-28 08:54:15 -08:00
zsyscall_netbsd_386.go race: syscall changes 2012-10-09 20:51:58 +04:00
zsyscall_netbsd_amd64.go race: syscall changes 2012-10-09 20:51:58 +04:00
zsyscall_netbsd_arm.go syscall: NetBSD/ARM support 2013-02-13 01:03:25 +08:00
zsyscall_openbsd_386.go race: syscall changes 2012-10-09 20:51:58 +04:00
zsyscall_openbsd_amd64.go race: syscall changes 2012-10-09 20:51:58 +04:00
zsyscall_plan9_386.go syscall: return EINVAL when string arguments have NUL characters 2012-08-05 17:24:32 -04:00
zsyscall_plan9_amd64.go pkg/syscall: Plan 9, 64-bit: Update error checks from sys calls. 2012-09-28 09:56:44 +10:00
zsyscall_windows_386.go os: use windows ReadConsole to read from console 2013-02-26 14:18:48 +11:00
zsyscall_windows_amd64.go os: use windows ReadConsole to read from console 2013-02-26 14:18:48 +11:00
zsysctl_openbsd.go syscall: regenerate z-files for openbsd/amd64 2012-11-14 03:19:34 +11:00
zsysnum_darwin_386.go
zsysnum_darwin_amd64.go
zsysnum_freebsd_386.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
zsysnum_freebsd_amd64.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
zsysnum_freebsd_arm.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
zsysnum_linux_386.go
zsysnum_linux_amd64.go
zsysnum_linux_arm.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
zsysnum_netbsd_386.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
zsysnum_netbsd_amd64.go gofmt: apply gofmt -w src misc 2012-10-30 13:38:01 -07:00
zsysnum_netbsd_arm.go syscall: NetBSD/ARM support 2013-02-13 01:03:25 +08:00
zsysnum_openbsd_386.go syscall: regenerate z-files for openbsd/386 2012-11-14 19:06:12 +11:00
zsysnum_openbsd_amd64.go syscall: regenerate z-files for openbsd/amd64 2012-11-14 03:19:34 +11:00
zsysnum_plan9_386.go
zsysnum_plan9_amd64.go syscall, runtime: Plan 9: use nanotime syscall on amd64 2013-02-26 01:56:08 +01:00
zsysnum_windows_386.go
zsysnum_windows_amd64.go
ztypes_darwin_386.go syscall: add ipv4 ancillary data for darwin 2012-09-29 12:43:05 +09:00
ztypes_darwin_amd64.go syscall: add ipv4 ancillary data for darwin 2012-09-29 12:43:05 +09:00
ztypes_freebsd_386.go syscall: add if_announce support for freebsd 2013-02-24 12:04:48 +09:00
ztypes_freebsd_amd64.go syscall: add if_announce support for freebsd 2013-02-24 12:04:48 +09:00
ztypes_freebsd_arm.go syscall: add if_announce support for freebsd 2013-02-24 12:04:48 +09:00
ztypes_linux_386.go syscall: add netlink constants for linux 2013-02-23 08:42:04 +09:00
ztypes_linux_amd64.go syscall: add netlink constants for linux 2013-02-23 08:42:04 +09:00
ztypes_linux_arm.go syscall: add netlink constants for linux 2013-02-23 08:42:04 +09:00
ztypes_netbsd_386.go syscall: add if_announce support for netbsd 2013-02-24 12:06:24 +09:00
ztypes_netbsd_amd64.go syscall: add if_announce support for netbsd 2013-02-24 12:06:24 +09:00
ztypes_netbsd_arm.go syscall: add if_announce support for netbsd 2013-02-24 12:06:24 +09:00
ztypes_openbsd_386.go syscall: add if_announce support for openbsd 2013-02-24 12:07:20 +09:00
ztypes_openbsd_amd64.go syscall: add if_announce support for openbsd 2013-02-24 12:07:20 +09:00
ztypes_plan9_386.go
ztypes_plan9_amd64.go src: Add support for 64-bit version of Plan 9 2012-08-31 13:21:13 -04:00
ztypes_windows_386.go
ztypes_windows_amd64.go
ztypes_windows.go net: use windows ConnectEx to dial (when possible) 2013-01-11 12:42:09 +11:00