| | all: merge NaCl branch (part 1) See golang.org/s/go13nacl for design overview. This CL is the mostly mechanical changes from rsc's Go 1.2 based NaCl branch, specifically 39cb35750369 to 500771b477cf from https://code.google.com/r/rsc-go13nacl. This CL does not include working NaCl support, there are probably two or three more large merges to come. CL 15750044 is not included as it involves more invasive changes to the linker which will need to be merged separately. The exact change lists included are 15050047: syscall: support for Native Client 15360044: syscall: unzip implementation for Native Client 15370044: syscall: Native Client SRPC implementation 15400047: cmd/dist, cmd/go, go/build, test: support for Native Client 15410048: runtime: support for Native Client 15410049: syscall: file descriptor table for Native Client 15410050: syscall: in-memory file system for Native Client 15440048: all: update +build lines for Native Client port 15540045: cmd/6g, cmd/8g, cmd/gc: support for Native Client 15570045: os: support for Native Client 15680044: crypto/..., hash/crc32, reflect, sync/atomic: support for amd64p32 15690044: net: support for Native Client 15690048: runtime: support for fake time like on Go Playground 15690051: build: disable various tests on Native Client Total comments: 48 | Unified diffs | Side-by-side diffs | Delta from patch set | Stats (+5775 lines, -174 lines) | Patch |  | M | src/cmd/5g/galign.c | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  | M | src/cmd/6g/cgen.c | View | 1 | 2 chunks | +9 lines, -9 lines | 0 comments | Download |  | M | src/cmd/6g/galign.c | View | 1 | 2 chunks | +20 lines, -0 lines | 0 comments | Download |  | M | src/cmd/6g/gg.h | View | 1 | 1 chunk | +6 lines, -0 lines | 0 comments | Download |  | M | src/cmd/6g/ggen.c | View | 1 | 6 chunks | +33 lines, -15 lines | 0 comments | Download |  | M | src/cmd/6g/gsubr.c | View | 1 | 6 chunks | +32 lines, -5 lines | 0 comments | Download |  | M | src/cmd/6g/prog.c | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  | M | src/cmd/6g/reg.c | View | 1 | 4 chunks | +3 lines, -4 lines | 0 comments | Download |  | M | src/cmd/8g/galign.c | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  | M | src/cmd/8g/gg.h | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  | M | src/cmd/8g/ggen.c | View | 1 | 1 chunk | +12 lines, -0 lines | 0 comments | Download |  | M | src/cmd/dist/build.c | View | 1 | 2 chunks | +3 lines, -1 line | 0 comments | Download |  | M | src/cmd/gc/align.c | View | 1 | 2 chunks | +5 lines, -5 lines | 0 comments | Download |  | M | src/cmd/gc/builtin.c | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  | M | src/cmd/gc/go.h | View | 1 | 2 chunks | +3 lines, -0 lines | 0 comments | Download |  | M | src/cmd/gc/lex.c | View | 1 | 2 chunks | +12 lines, -2 lines | 0 comments | Download |  | M | src/cmd/gc/obj.c | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/cmd/gc/pgen.c | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/cmd/gc/reflect.c | View | 1 | 1 chunk | +5 lines, -0 lines | 0 comments | Download |  | M | src/cmd/gc/runtime.go | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  | M | src/cmd/gc/walk.c | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/cmd/go/build.go | View | 1 | 1 chunk | +3 lines, -0 lines | 0 comments | Download |  | M | src/cmd/go/run.go | View | 1 | 3 chunks | +23 lines, -4 lines | 0 comments | Download |  | M | src/cmd/go/signal_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/cmd/go/test.go | View | 1 | 2 chunks | +3 lines, -1 line | 0 comments | Download |  | M | src/cmd/go/testflag.go | View | 1 | 2 chunks | +6 lines, -0 lines | 0 comments | Download |  | A | src/pkg/crypto/md5/md5block_amd64p32.s | View | 1 | 1 chunk | +184 lines, -0 lines | 0 comments | Download |  | M | src/pkg/crypto/md5/md5block_decl.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/crypto/rand/rand_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/crypto/rc4/rc4_amd64p32.s | View | 1 | 1 chunk | +192 lines, -0 lines | 0 comments | Download |  | M | src/pkg/crypto/rc4/rc4_asm.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/crypto/rc4/rc4_ref.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/crypto/sha1/sha1block_amd64p32.s | View | 1 | 1 chunk | +216 lines, -0 lines | 0 comments | Download |  | M | src/pkg/crypto/sha1/sha1block_decl.go | View | 1 | 1 chunk | +1 line, -1 line | 1 comment | Download |  | M | src/pkg/crypto/x509/root_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/go/build/build.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/go/build/deps_test.go | View | 1 | 4 chunks | +10 lines, -1 line | 2 comments | Download |  | | src/pkg/go/build/syslist.go | View | 1 | 1 chunk | +2 lines, -2 lines | 0 comments | Download |  | R | src/pkg/hash/crc32/crc32_amd64.go | View | 1 | 1 chunk | +0 lines, -25 lines | 0 comments | Download |  | | src/pkg/hash/crc32/crc32_amd64p32.s | View | 1 | 1 chunk | +64 lines, -0 lines | 0 comments | Download |  | A | src/pkg/hash/crc32/crc32_amd64x.go | View | 1 | 1 chunk | +27 lines, -0 lines | 2 comments | Download |  | M | src/pkg/log/syslog/syslog.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/log/syslog/syslog_test.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/log/syslog/syslog_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | | src/pkg/mime/type_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/conn_test.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | | src/pkg/net/dnsclient_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | | src/pkg/net/dnsconfig_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/net/fd_poll_nacl.go | View | 1 | 1 chunk | +94 lines, -0 lines | 2 comments | Download |  | M | src/pkg/net/fd_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/file_test.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/file_unix.go | View | 1 | 2 chunks | +2 lines, -1 line | 1 comment | Download |  | M | src/pkg/net/interface_stub.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/ipraw_test.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/iprawsock_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/ipsock_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/lookup_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/multicast_test.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | | src/pkg/net/net_test.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/port_unix.go | View | 1 | 2 chunks | +3 lines, -7 lines | 1 comment | Download |  | M | src/pkg/net/sendfile_stub.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/sock_bsd.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/sock_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/sockopt_bsd.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/sockopt_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | | src/pkg/net/sockopt_solaris.go | View | 1 2 | 1 chunk | +1 line, -1 line | 1 comment | Download |  | M | src/pkg/net/sockoptip_bsd.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/sockoptip_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/sys_cloexec.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/tcpsock_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/tcpsockopt_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/tcpsockopt_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/udpsock_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/net/unixsock_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/dir_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/error_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/exec/lp_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/exec_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/exec_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/file_posix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/file_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/path_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/pipe_bsd.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/signal/sig.s | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/os/signal/signal_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/os/stat_nacl.go | View | 1 | 1 chunk | +62 lines, -0 lines | 1 comment | Download |  | M | src/pkg/os/sys_bsd.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/path/filepath/path_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/reflect/asm_amd64p32.s | View | 1 | 1 chunk | +27 lines, -0 lines | 0 comments | Download |  | M | src/pkg/reflect/type.go | View | 1 | 2 chunks | +5 lines, -0 lines | 0 comments | Download |  | M | src/pkg/runtime/arch_386.h | View | 1 | 1 chunk | +5 lines, -0 lines | 0 comments | Download |  | M | src/pkg/runtime/arch_amd64.h | View | 1 | 1 chunk | +5 lines, -0 lines | 2 comments | Download |  | A | src/pkg/runtime/arch_amd64p32.h | View | 1 | 1 chunk | +20 lines, -0 lines | 4 comments | Download |  | M | src/pkg/runtime/arch_arm.h | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  | M | src/pkg/runtime/mem_linux.c | View | 1 | 1 chunk | +1 line, -0 lines | 2 comments | Download |  | A | src/pkg/runtime/mem_nacl.c | View | 1 | 1 chunk | +109 lines, -0 lines | 2 comments | Download |  | M | src/pkg/runtime/mgc0.c | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  | M | src/pkg/runtime/mheap.c | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/runtime/mknacl.sh | View | 1 | 1 chunk | +15 lines, -0 lines | 1 comment | Download |  | M | src/pkg/runtime/netpoll.goc | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/runtime/netpoll_nacl.c | View | 1 | 1 chunk | +37 lines, -0 lines | 1 comment | Download |  | A | src/pkg/runtime/os_nacl.h | View | 1 | 1 chunk | +162 lines, -0 lines | 0 comments | Download |  | A | src/pkg/runtime/os_nacl.c | View | 1 | 1 chunk | +275 lines, -0 lines | 6 comments | Download |  | M | src/pkg/runtime/runtime.h | View | 1 | 11 chunks | +27 lines, -13 lines | 5 comments | Download |  | M | src/pkg/runtime/signal_386.c | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/runtime/signal_nacl_386.h | View | 1 | 1 chunk | +23 lines, -0 lines | 0 comments | Download |  | | src/pkg/runtime/signal_nacl_amd64p32.h | View | 1 | 1 chunk | +31 lines, -0 lines | 0 comments | Download |  | A | src/pkg/runtime/signals_nacl.h | View | 1 | 1 chunk | +50 lines, -0 lines | 1 comment | Download |  | M | src/pkg/runtime/sys_x86.c | View | 1 | 2 chunks | +3 lines, -1 line | 0 comments | Download |  | A | src/pkg/runtime/syscall_nacl.h | View | 1 | 1 chunk | +71 lines, -0 lines | 1 comment | Download |  | M | src/pkg/runtime/traceback_x86.c | View | 1 | 4 chunks | +5 lines, -5 lines | 0 comments | Download |  | | src/pkg/runtime/vlrt_386.c | View | 1 | 6 chunks | +12 lines, -0 lines | 0 comments | Download |  | M | src/pkg/runtime/vlrt_arm.c | View | 1 | 1 chunk | +0 lines, -6 lines | 2 comments | Download |  | A | src/pkg/sync/atomic/asm_amd64p32.s | View | 1 | 1 chunk | +159 lines, -0 lines | 1 comment | Download |  | M | src/pkg/sync/atomic/atomic_test.go | View | 1 | 2 chunks | +2 lines, -2 lines | 0 comments | Download |  | A | src/pkg/syscall/asm_nacl_386.s | View | 1 | 1 chunk | +43 lines, -0 lines | 1 comment | Download |  | A | src/pkg/syscall/asm_nacl_amd64p32.s | View | 1 | 1 chunk | +41 lines, -0 lines | 1 comment | Download |  | M | src/pkg/syscall/env_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | A | src/pkg/syscall/fd_nacl.go | View | 1 | 1 chunk | +320 lines, -0 lines | 1 comment | Download |  | A | src/pkg/syscall/fs_nacl.go | View | 1 | 1 chunk | +815 lines, -0 lines | 1 comment | Download |  | M | src/pkg/syscall/mkall.sh | View | 1 | 1 chunk | +12 lines, -0 lines | 0 comments | Download |  | M | src/pkg/syscall/mksyscall.pl | View | 1 | 4 chunks | +9 lines, -1 line | 0 comments | Download |  | A | src/pkg/syscall/srpc_nacl.go | View | 1 | 1 chunk | +822 lines, -0 lines | 1 comment | Download |  | A | src/pkg/syscall/syscall_nacl.go | View | 1 | 1 chunk | +311 lines, -0 lines | 1 comment | Download |  | A | src/pkg/syscall/syscall_nacl_386.go | View | 1 | 1 chunk | +32 lines, -0 lines | 1 comment | Download |  | A | src/pkg/syscall/syscall_nacl_amd64p32.go | View | 1 | 1 chunk | +32 lines, -0 lines | 1 comment | Download |  | A | src/pkg/syscall/tables_nacl.go | View | 1 | 1 chunk | +324 lines, -0 lines | 0 comments | Download |  | A | src/pkg/syscall/time_nacl_386.s | View | 1 | 1 chunk | +11 lines, -0 lines | 1 comment | Download |  | A | src/pkg/syscall/time_nacl_amd64p32.s | View | 1 | 1 chunk | +11 lines, -0 lines | 0 comments | Download |  | A | src/pkg/syscall/unzip_nacl.go | View | 1 | 1 chunk | +685 lines, -0 lines | 0 comments | Download |  | A | src/pkg/syscall/zsyscall_nacl_386.go | View | 1 | 1 chunk | +63 lines, -0 lines | 0 comments | Download |  | A | src/pkg/syscall/zsyscall_nacl_amd64p32.go | View | 1 | 1 chunk | +63 lines, -0 lines | 0 comments | Download |  | M | src/pkg/time/sys_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | src/pkg/time/zoneinfo_unix.go | View | 1 | 1 chunk | +1 line, -1 line | 0 comments | Download |  | M | test/run.go | View | 1 | 6 chunks | +35 lines, -4 lines | 0 comments | Download | Total messages: 10 |