1
0
mirror of https://github.com/golang/go synced 2024-10-03 04:21:22 -06:00
go/src/syscall
Dmitry Vyukov 53a8ee5011 syscall: correct code for cover cmd
Fixes #10378

This is clumsy, but currently cover tool fails as:

$ go test -run=none -cover syscall
syscall_linux_amd64.go:15: can only use //go:noescape with external func implementations
FAIL	syscall [build failed]

This happens because cover tool mishandles //go: comments.
r and gri said that fixing cover is infeasible due to go/ast limitations.

So at least fix the offending code so that coverage works.
This come up in context of coverage-guided fuzzing which works best
with program-wide coverage.

Change-Id: I142e5774c9f326ed38cb202693bd4edae93879ba
Reviewed-on: https://go-review.googlesource.com/8723
Reviewed-by: Rob Pike <r@golang.org>
2015-04-10 16:59:06 +00:00
..
asm_darwin_386.s syscall: use name+(NN)FP for darwin 2015-01-14 14:14:29 +00:00
asm_darwin_amd64.s syscall: add missing Syscall9 for darwin/amd64 2015-03-14 00:21:11 +00:00
asm_darwin_arm.s [dev.cc] runtime,syscall: quiet some more vet errors 2015-02-20 00:20:54 +00:00
asm_dragonfly_amd64.s
asm_freebsd_386.s
asm_freebsd_amd64.s runtime, syscall: use SYSCALL instruction on FreeBSD. 2015-01-18 23:51:50 +00:00
asm_freebsd_arm.s [dev.cc] runtime, syscall: add names to FP offsets in freebsd, netbsd arm assembly 2015-02-23 16:52:33 +00:00
asm_linux_386.s syscall: use name+(NN)FP on linux/386 2015-01-21 18:54:27 +00:00
asm_linux_amd64.s syscall: use name+(NN)FP on linux/amd64 2015-01-21 19:04:38 +00:00
asm_linux_arm64.s syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
asm_linux_arm.s syscall: use name+(NN)FP on linux/arm 2015-01-16 16:12:41 +00:00
asm_linux_ppc64x.s all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
asm_nacl_386.s syscall: fix nacl builds 2015-01-12 21:45:58 +00:00
asm_nacl_amd64p32.s syscall: fix nacl builds 2015-01-12 21:45:58 +00:00
asm_nacl_arm.s syscall: fix nacl builds 2015-01-12 21:45:58 +00:00
asm_netbsd_386.s
asm_netbsd_amd64.s
asm_netbsd_arm.s [dev.cc] runtime, syscall: add names to FP offsets in freebsd, netbsd arm assembly 2015-02-23 16:52:33 +00:00
asm_openbsd_386.s
asm_openbsd_amd64.s
asm_openbsd_arm.s syscall: add support for openbsd/arm 2015-03-15 04:07:54 +00:00
asm_plan9_386.s
asm_plan9_amd64.s
asm_solaris_amd64.s syscall: Add Foreground and Pgid to SysProcAttr 2015-03-23 15:35:53 +00:00
asm.s all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
bpf_bsd.go
const_plan9.go syscall: reduce the set of architecture-dependent files on Plan 9 2015-04-09 13:55:13 +00:00
creds_test.go
dir_plan9.go
dll_windows.go
env_plan9.go syscall: make pwd process-wide on Plan 9 2015-02-28 18:17:35 +00:00
env_unix.go
env_windows.go all: fix race when allocating buffer for some windows syscalls 2015-04-08 02:06:31 +00:00
errors_plan9.go syscall: reduce the set of architecture-dependent files on Plan 9 2015-04-09 13:55:13 +00:00
exec_bsd.go syscall: Add Foreground and Pgid to SysProcAttr 2015-03-23 15:35:53 +00:00
exec_linux.go syscall: Add Foreground and Pgid to SysProcAttr 2015-03-23 15:35:53 +00:00
exec_plan9.go syscall: make pwd process-wide on Plan 9 2015-02-28 18:17:35 +00:00
exec_solaris_test.go runtime, syscall: fix Solaris exec tests 2015-03-24 19:51:21 +00:00
exec_solaris.go syscall: Add Foreground and Pgid to SysProcAttr 2015-03-23 15:35:53 +00:00
exec_unix_test.go runtime, syscall: fix Solaris exec tests 2015-03-24 19:51:21 +00:00
exec_unix.go
exec_windows.go all: fix race when allocating buffer for some windows syscalls 2015-04-08 02:06:31 +00:00
export_test.go
export_unix_test.go runtime, syscall: fix Solaris exec tests 2015-03-24 19:51:21 +00:00
fd_nacl.go
flock_linux_32bit.go
flock.go
fs_nacl.go runtime, syscall: use the new get_random_bytes syscall for NaCl 2015-03-25 02:07:09 +00:00
lsf_linux.go
mkall.sh syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
mkerrors.sh syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
mksyscall_solaris.pl syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
mksyscall_windows.go syscall: make mksyscall_windows.go to work even when output does not uses unsafe package 2015-02-17 08:31:38 +00:00
mksyscall.pl syscall: don't allocate when boxing common Errno values into errors 2015-03-27 06:47:27 +00:00
mksysctl_openbsd.pl
mksysnum_darwin.pl
mksysnum_dragonfly.pl
mksysnum_freebsd.pl
mksysnum_linux.pl syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
mksysnum_netbsd.pl
mksysnum_openbsd.pl
mksysnum_plan9.sh
mmap_unix_test.go
net_nacl.go
netlink_linux.go
pwd_plan9.go syscall: make pwd process-wide on Plan 9 2015-02-28 18:17:35 +00:00
race0.go
race.go
route_bsd_test.go syscall: fix parsing ipv6 address prefix on dragonfly 2015-03-03 03:27:14 +00:00
route_bsd.go syscall: fix parsing ipv6 address prefix on dragonfly 2015-03-03 03:27:14 +00:00
route_darwin.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
route_dragonfly.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
route_freebsd_32bit.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
route_freebsd_64bit.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
route_freebsd.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
route_ifma_test.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
route_netbsd.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
route_noifma_test.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
route_openbsd.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
security_windows.go all: fix race when allocating buffer for some windows syscalls 2015-04-08 02:06:31 +00:00
so_solaris.go
sockcmsg_linux.go
sockcmsg_unix.go
srpc_nacl.go
str.go
syscall_bsd_test.go
syscall_bsd.go os, syscall: revert Yosemite readdir workaround 2015-02-08 21:04:15 +00:00
syscall_darwin_386.go
syscall_darwin_amd64.go syscall: add missing Syscall9 for darwin/amd64 2015-03-14 00:21:11 +00:00
syscall_darwin_arm.go syscall: gofmt 2015-02-06 06:06:20 +00:00
syscall_darwin.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_dragonfly_amd64.go
syscall_dragonfly.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_freebsd_386.go
syscall_freebsd_amd64.go
syscall_freebsd_arm.go
syscall_freebsd.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_linux_386.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_linux_amd64.go syscall: correct code for cover cmd 2015-04-10 16:59:06 +00:00
syscall_linux_arm64.go syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
syscall_linux_arm.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_linux_ppc64x.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_linux.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_nacl_386.go
syscall_nacl_amd64p32.go
syscall_nacl_arm.go
syscall_nacl.go runtime, syscall: use the new get_random_bytes syscall for NaCl 2015-03-25 02:07:09 +00:00
syscall_netbsd_386.go
syscall_netbsd_amd64.go
syscall_netbsd_arm.go
syscall_netbsd.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_no_getwd.go
syscall_openbsd_386.go
syscall_openbsd_amd64.go
syscall_openbsd_arm.go syscall: add support for openbsd/arm 2015-03-15 04:07:54 +00:00
syscall_openbsd.go syscall: change Dup,Dup2,Dup3 to use Syscall, not RawSyscall 2015-03-26 17:29:08 +00:00
syscall_plan9.go syscall: reduce the set of architecture-dependent files on Plan 9 2015-04-09 13:55:13 +00:00
syscall_solaris_amd64.go
syscall_solaris.go
syscall_test.go
syscall_unix_test.go syscall: exclude Go tool test on darwin/arm 2015-02-26 23:10:18 +00:00
syscall_unix.go syscall: don't allocate when boxing common Errno values into errors 2015-03-27 06:47:27 +00:00
syscall_windows_386.go
syscall_windows_amd64.go
syscall_windows_test.go
syscall_windows.go syscall: Readlink doesn't handle junction on windows 2015-02-12 02:03:25 +00:00
syscall.go syscall: update go.sys doc reference to golang.org/x/sys 2014-12-22 22:41:17 +00:00
tables_nacl.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
time_nacl_386.s
time_nacl_amd64p32.s
time_nacl_arm.s
types_darwin.go
types_dragonfly.go
types_freebsd.go
types_linux.go syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
types_netbsd.go
types_openbsd.go
types_solaris.go
unzip_nacl.go
zerrors_darwin_386.go
zerrors_darwin_amd64.go
zerrors_darwin_arm.go syscall: darwin/arm support 2015-02-06 05:49:25 +00:00
zerrors_dragonfly_amd64.go
zerrors_freebsd_386.go
zerrors_freebsd_amd64.go
zerrors_freebsd_arm.go
zerrors_linux_386.go
zerrors_linux_amd64.go
zerrors_linux_arm64.go syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
zerrors_linux_arm.go
zerrors_linux_ppc64.go all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
zerrors_linux_ppc64le.go all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
zerrors_netbsd_386.go
zerrors_netbsd_amd64.go
zerrors_netbsd_arm.go
zerrors_openbsd_386.go
zerrors_openbsd_amd64.go
zerrors_openbsd_arm.go syscall: add support for openbsd/arm 2015-03-15 04:07:54 +00:00
zerrors_solaris_amd64.go
zerrors_windows_386.go
zerrors_windows_amd64.go
zerrors_windows.go
zsyscall_darwin_386.go syscall: don't allocate when boxing common Errno values into errors 2015-03-27 06:47:27 +00:00
zsyscall_darwin_amd64.go syscall: don't allocate when boxing common Errno values into errors 2015-03-27 06:47:27 +00:00
zsyscall_darwin_arm.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_dragonfly_amd64.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_freebsd_386.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_freebsd_amd64.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_freebsd_arm.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_linux_386.go syscall: don't allocate when boxing common Errno values into errors 2015-03-27 06:47:27 +00:00
zsyscall_linux_amd64.go syscall: don't allocate when boxing common Errno values into errors 2015-03-27 06:47:27 +00:00
zsyscall_linux_arm64.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_linux_arm.go syscall: don't allocate when boxing common Errno values into errors 2015-03-27 06:47:27 +00:00
zsyscall_linux_ppc64.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_linux_ppc64le.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_nacl_386.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_nacl_amd64p32.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_nacl_arm.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_netbsd_386.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_netbsd_amd64.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_netbsd_arm.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_openbsd_386.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_openbsd_amd64.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_openbsd_arm.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_plan9_386.go syscall: reduce the set of architecture-dependent files on Plan 9 2015-04-09 13:55:13 +00:00
zsyscall_plan9_amd64.go syscall: reduce the set of architecture-dependent files on Plan 9 2015-04-09 13:55:13 +00:00
zsyscall_solaris_amd64.go syscall: apply the errno allocation fix to other operating systems 2015-03-27 16:58:02 +00:00
zsyscall_windows.go syscall: make mksyscall_windows.go to work even when output does not uses unsafe package 2015-02-17 08:31:38 +00:00
zsysctl_openbsd.go
zsysnum_darwin_386.go
zsysnum_darwin_amd64.go
zsysnum_darwin_arm.go syscall: darwin/arm support 2015-02-06 05:49:25 +00:00
zsysnum_dragonfly_amd64.go
zsysnum_freebsd_386.go
zsysnum_freebsd_amd64.go
zsysnum_freebsd_arm.go
zsysnum_linux_386.go
zsysnum_linux_amd64.go
zsysnum_linux_arm64.go syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
zsysnum_linux_arm.go
zsysnum_linux_ppc64.go all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
zsysnum_linux_ppc64le.go all: power64 is now ppc64 2014-12-05 19:13:20 -05:00
zsysnum_netbsd_386.go
zsysnum_netbsd_amd64.go
zsysnum_netbsd_arm.go
zsysnum_openbsd_386.go
zsysnum_openbsd_amd64.go
zsysnum_openbsd_arm.go syscall: add support for openbsd/arm 2015-03-15 04:07:54 +00:00
zsysnum_plan9.go syscall: reduce the set of architecture-dependent files on Plan 9 2015-04-09 13:55:13 +00:00
zsysnum_solaris_amd64.go
zsysnum_windows_386.go
zsysnum_windows_amd64.go
ztypes_darwin_386.go
ztypes_darwin_amd64.go
ztypes_darwin_arm.go syscall: darwin/arm support 2015-02-06 05:49:25 +00:00
ztypes_dragonfly_amd64.go
ztypes_freebsd_386.go
ztypes_freebsd_amd64.go
ztypes_freebsd_arm.go
ztypes_linux_386.go syscall: generate AT_* constants and regenerate ztypes_linux_*.go 2015-02-25 02:45:02 +00:00
ztypes_linux_amd64.go syscall: generate AT_* constants and regenerate ztypes_linux_*.go 2015-02-25 02:45:02 +00:00
ztypes_linux_arm64.go syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
ztypes_linux_arm.go syscall: generate AT_* constants and regenerate ztypes_linux_*.go 2015-02-25 02:45:02 +00:00
ztypes_linux_ppc64.go syscall: generate AT_* constants and regenerate ztypes_linux_*.go 2015-02-25 02:45:02 +00:00
ztypes_linux_ppc64le.go syscall: generate AT_* constants and regenerate ztypes_linux_*.go 2015-02-25 02:45:02 +00:00
ztypes_netbsd_386.go
ztypes_netbsd_amd64.go
ztypes_netbsd_arm.go
ztypes_openbsd_386.go
ztypes_openbsd_amd64.go
ztypes_openbsd_arm.go syscall: add support for openbsd/arm 2015-03-15 04:07:54 +00:00
ztypes_solaris_amd64.go
ztypes_windows_386.go
ztypes_windows_amd64.go
ztypes_windows.go syscall: Readlink doesn't handle junction on windows 2015-02-12 02:03:25 +00:00