1
0
mirror of https://github.com/golang/go synced 2024-10-04 20:21:22 -06:00
go/src/pkg
Russ Cox e9d62a6d81 runtime: refactor os-specific code
thread_GOOS.c becomes os_GOOS.c.

signal_GOOS_GOARCH.c becomes os_GOOS_GOARCH.c,
but with non-GOARCH-specific code moved into os_GOOS.c.

The actual arch-specific signal handler moves into signal_GOARCH.c
to avoid per-GOOS duplication.

New files signal_GOOS_GOARCH.h provide macros for
accessing fields of the very system-specific signal info structs.

Lots moving, but nothing changing.
This is a preliminarly cleanup so I can work on the signal
handling code to fix some open issues without having to
make each change 13 times.

Tested on Linux and OS X, 386 and amd64.
Will fix Plan 9, Windows, and ARM after the fact if necessary.
(Plan 9 and Windows should be fine; ARM will probably have some typos.)

Net effect: -1081 lines of code.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7565048
2013-03-14 11:35:13 -07:00
..
archive archive/tar: remove execute bit from common.go 2013-03-03 08:56:08 +11:00
bufio all: remove now-unnecessary unreachable panics 2013-03-11 14:16:55 -07:00
builtin builtin: document appending a string to a byte slice 2013-02-27 16:11:17 -08:00
bytes bytes: annotate assembly functions with //go:noescape 2013-02-10 00:08:30 +08:00
compress all: remove now-unnecessary unreachable panics 2013-03-11 14:16:55 -07:00
container container/heap: fix int overflow bug 2013-03-04 10:25:21 -05:00
crypto all: remove now-unnecessary unreachable panics 2013-03-11 14:16:55 -07:00
database/sql database/sql: fix Conn leak 2013-03-08 10:04:17 -08:00
debug debug/macho: add doc comment for FormatError 2013-03-11 12:32:47 -07:00
encoding encoding/xml: rewrite invalid code points to U+FFFD in Marshal, Escape 2013-03-13 23:26:03 -04:00
errors
expvar all: make tests able to run multiple times. 2013-01-27 00:24:09 +01:00
flag all: make tests able to run multiple times. 2013-01-27 00:24:09 +01:00
fmt all: Skip AllocsPerRun tests if GOMAXPROCS>1. 2013-03-06 15:52:32 -08:00
go cmd/go: add go1.1 build tag, add -installsuffix flag 2013-03-13 17:37:49 -04:00
hash build: make int 64 bits on amd64 2012-09-24 20:57:01 -04:00
html html/template: Ensure release of namespace mutex in Template.Execute() 2013-03-12 14:35:14 -07:00
image image/jpeg: ignore extraneous data, the same as what libjpeg does. 2013-03-13 10:44:45 +11:00
index/suffixarray
io all: remove now-unnecessary unreachable panics 2013-03-11 14:16:55 -07:00
log log/syslog: fix race in test between channel close and accept. 2013-02-28 07:48:16 +01:00
math all: remove now-unnecessary unreachable panics 2013-03-11 14:16:55 -07:00
mime all: remove now-unnecessary unreachable panics 2013-03-11 14:16:55 -07:00
net net: deflake TestDialTimeout 2013-03-14 09:42:29 -07:00
os os/signal: windows is supported, update comment 2013-03-13 02:40:56 +08:00
path all: Skip AllocsPerRun tests if GOMAXPROCS>1. 2013-03-06 15:52:32 -08:00
reflect all: Skip AllocsPerRun tests if GOMAXPROCS>1. 2013-03-06 15:52:32 -08:00
regexp regexp: identify that submatch is also known as capturing group 2013-03-11 16:23:06 -07:00
runtime runtime: refactor os-specific code 2013-03-14 11:35:13 -07:00
sort all: Skip AllocsPerRun tests if GOMAXPROCS>1. 2013-03-06 15:52:32 -08:00
strconv all: Skip AllocsPerRun tests if GOMAXPROCS>1. 2013-03-06 15:52:32 -08:00
strings strings: remove allocations in Split(s, "") 2013-03-06 15:21:19 -05:00
sync sync/atomic: make unaligned 64-bit atomics crash on 386 2013-03-11 12:21:46 -04:00
syscall syscall: add PROT_* and MAP_* constants to freebsd 2013-03-09 16:25:30 +11:00
testing testing: move Skip into *common 2013-02-23 11:57:51 +11:00
text text/template: revert minor change to Name method 2013-03-08 16:39:54 -08:00
time all: Skip AllocsPerRun tests if GOMAXPROCS>1. 2013-03-06 15:52:32 -08:00
unicode unicode/utf8: fix insignificant typos in tests 2013-03-13 07:45:31 -07:00
unsafe unsafe: fix a typo 2012-10-19 16:35:15 +11:00