]> Cypherpunks.ru repositories - gostls13.git/commitdiff
mv src/lib to src/pkg
authorRob Pike <r@golang.org>
Tue, 9 Jun 2009 16:53:44 +0000 (09:53 -0700)
committerRob Pike <r@golang.org>
Tue, 9 Jun 2009 16:53:44 +0000 (09:53 -0700)
tests: all.bash passes, gobuild still works, godoc still works.

R=rsc
OCL=30096
CL=30102

391 files changed:
src/clean.bash
src/cmd/gobuild/gobuild.go
src/lib/syscall/types_darwin_386.c [deleted file]
src/lib/syscall/types_darwin_amd64.c [deleted file]
src/lib/syscall/types_linux_386.c [deleted file]
src/lib/syscall/types_linux_amd64.c [deleted file]
src/make.bash
src/pkg/Make.deps [moved from src/lib/Make.deps with 100% similarity]
src/pkg/Makefile [moved from src/lib/Makefile with 100% similarity]
src/pkg/archive/tar/Makefile [moved from src/lib/archive/tar/Makefile with 100% similarity]
src/pkg/archive/tar/testdata/small.txt [moved from src/lib/archive/tar/testdata/small.txt with 100% similarity]
src/pkg/archive/tar/testdata/small2.txt [moved from src/lib/archive/tar/testdata/small2.txt with 100% similarity]
src/pkg/archive/tar/testdata/test.tar [moved from src/lib/archive/tar/testdata/test.tar with 100% similarity]
src/pkg/archive/tar/untar.go [moved from src/lib/archive/tar/untar.go with 100% similarity]
src/pkg/archive/tar/untar_test.go [moved from src/lib/archive/tar/untar_test.go with 100% similarity]
src/pkg/bignum/Makefile [moved from src/lib/bignum/Makefile with 100% similarity]
src/pkg/bignum/bignum.go [moved from src/lib/bignum/bignum.go with 100% similarity]
src/pkg/bignum/bignum_test.go [moved from src/lib/bignum/bignum_test.go with 100% similarity]
src/pkg/bufio/Makefile [moved from src/lib/bufio/Makefile with 100% similarity]
src/pkg/bufio/bufio.go [moved from src/lib/bufio/bufio.go with 100% similarity]
src/pkg/bufio/bufio_test.go [moved from src/lib/bufio/bufio_test.go with 100% similarity]
src/pkg/bytes/Makefile [moved from src/lib/bytes/Makefile with 100% similarity]
src/pkg/bytes/bytes.go [moved from src/lib/bytes/bytes.go with 100% similarity]
src/pkg/bytes/bytes_test.go [moved from src/lib/bytes/bytes_test.go with 100% similarity]
src/pkg/compress/flate/Makefile [moved from src/lib/compress/flate/Makefile with 100% similarity]
src/pkg/compress/flate/flate_test.go [moved from src/lib/compress/flate/flate_test.go with 100% similarity]
src/pkg/compress/flate/inflate.go [moved from src/lib/compress/flate/inflate.go with 100% similarity]
src/pkg/compress/gzip/Makefile [moved from src/lib/compress/gzip/Makefile with 100% similarity]
src/pkg/compress/gzip/gunzip.go [moved from src/lib/compress/gzip/gunzip.go with 100% similarity]
src/pkg/compress/gzip/gunzip_test.go [moved from src/lib/compress/gzip/gunzip_test.go with 100% similarity]
src/pkg/container/list/Makefile [moved from src/lib/container/list/Makefile with 100% similarity]
src/pkg/container/list/list.go [moved from src/lib/container/list/list.go with 100% similarity]
src/pkg/container/list/list_test.go [moved from src/lib/container/list/list_test.go with 100% similarity]
src/pkg/container/vector/Makefile [moved from src/lib/container/vector/Makefile with 100% similarity]
src/pkg/container/vector/intvector.go [moved from src/lib/container/vector/intvector.go with 100% similarity]
src/pkg/container/vector/stringvector.go [moved from src/lib/container/vector/stringvector.go with 100% similarity]
src/pkg/container/vector/vector.go [moved from src/lib/container/vector/vector.go with 100% similarity]
src/pkg/container/vector/vector_test.go [moved from src/lib/container/vector/vector_test.go with 100% similarity]
src/pkg/crypto/aes/Makefile [moved from src/lib/crypto/aes/Makefile with 100% similarity]
src/pkg/crypto/aes/aes_test.go [moved from src/lib/crypto/aes/aes_test.go with 100% similarity]
src/pkg/crypto/aes/block.go [moved from src/lib/crypto/aes/block.go with 100% similarity]
src/pkg/crypto/aes/cipher.go [moved from src/lib/crypto/aes/cipher.go with 100% similarity]
src/pkg/crypto/aes/const.go [moved from src/lib/crypto/aes/const.go with 100% similarity]
src/pkg/crypto/block/Makefile [moved from src/lib/crypto/block/Makefile with 100% similarity]
src/pkg/crypto/block/cbc.go [moved from src/lib/crypto/block/cbc.go with 100% similarity]
src/pkg/crypto/block/cbc_aes_test.go [moved from src/lib/crypto/block/cbc_aes_test.go with 100% similarity]
src/pkg/crypto/block/cfb.go [moved from src/lib/crypto/block/cfb.go with 100% similarity]
src/pkg/crypto/block/cfb_aes_test.go [moved from src/lib/crypto/block/cfb_aes_test.go with 100% similarity]
src/pkg/crypto/block/cipher.go [moved from src/lib/crypto/block/cipher.go with 100% similarity]
src/pkg/crypto/block/cmac.go [moved from src/lib/crypto/block/cmac.go with 100% similarity]
src/pkg/crypto/block/cmac_aes_test.go [moved from src/lib/crypto/block/cmac_aes_test.go with 100% similarity]
src/pkg/crypto/block/ctr.go [moved from src/lib/crypto/block/ctr.go with 100% similarity]
src/pkg/crypto/block/ctr_aes_test.go [moved from src/lib/crypto/block/ctr_aes_test.go with 100% similarity]
src/pkg/crypto/block/eax.go [moved from src/lib/crypto/block/eax.go with 100% similarity]
src/pkg/crypto/block/eax_aes_test.go [moved from src/lib/crypto/block/eax_aes_test.go with 100% similarity]
src/pkg/crypto/block/ecb.go [moved from src/lib/crypto/block/ecb.go with 100% similarity]
src/pkg/crypto/block/ecb_aes_test.go [moved from src/lib/crypto/block/ecb_aes_test.go with 100% similarity]
src/pkg/crypto/block/ecb_test.go [moved from src/lib/crypto/block/ecb_test.go with 100% similarity]
src/pkg/crypto/block/ofb.go [moved from src/lib/crypto/block/ofb.go with 100% similarity]
src/pkg/crypto/block/ofb_aes_test.go [moved from src/lib/crypto/block/ofb_aes_test.go with 100% similarity]
src/pkg/crypto/block/xor.go [moved from src/lib/crypto/block/xor.go with 100% similarity]
src/pkg/crypto/block/xor_test.go [moved from src/lib/crypto/block/xor_test.go with 100% similarity]
src/pkg/crypto/hmac/Makefile [moved from src/lib/crypto/hmac/Makefile with 100% similarity]
src/pkg/crypto/hmac/hmac.go [moved from src/lib/crypto/hmac/hmac.go with 100% similarity]
src/pkg/crypto/hmac/hmac_test.go [moved from src/lib/crypto/hmac/hmac_test.go with 100% similarity]
src/pkg/crypto/md5/Makefile [moved from src/lib/crypto/md5/Makefile with 100% similarity]
src/pkg/crypto/md5/md5.go [moved from src/lib/crypto/md5/md5.go with 100% similarity]
src/pkg/crypto/md5/md5_test.go [moved from src/lib/crypto/md5/md5_test.go with 100% similarity]
src/pkg/crypto/md5/md5block.go [moved from src/lib/crypto/md5/md5block.go with 100% similarity]
src/pkg/crypto/sha1/Makefile [moved from src/lib/crypto/sha1/Makefile with 100% similarity]
src/pkg/crypto/sha1/sha1.go [moved from src/lib/crypto/sha1/sha1.go with 100% similarity]
src/pkg/crypto/sha1/sha1_test.go [moved from src/lib/crypto/sha1/sha1_test.go with 100% similarity]
src/pkg/crypto/sha1/sha1block.go [moved from src/lib/crypto/sha1/sha1block.go with 100% similarity]
src/pkg/datafmt/Makefile [moved from src/lib/datafmt/Makefile with 100% similarity]
src/pkg/datafmt/datafmt.go [moved from src/lib/datafmt/datafmt.go with 100% similarity]
src/pkg/datafmt/datafmt_test.go [moved from src/lib/datafmt/datafmt_test.go with 100% similarity]
src/pkg/datafmt/parser.go [moved from src/lib/datafmt/parser.go with 100% similarity]
src/pkg/exec/Makefile [moved from src/lib/exec/Makefile with 100% similarity]
src/pkg/exec/exec.go [moved from src/lib/exec/exec.go with 100% similarity]
src/pkg/exec/exec_test.go [moved from src/lib/exec/exec_test.go with 100% similarity]
src/pkg/exvar/Makefile [moved from src/lib/exvar/Makefile with 100% similarity]
src/pkg/exvar/exvar.go [moved from src/lib/exvar/exvar.go with 100% similarity]
src/pkg/exvar/exvar_test.go [moved from src/lib/exvar/exvar_test.go with 100% similarity]
src/pkg/flag/Makefile [moved from src/lib/flag/Makefile with 100% similarity]
src/pkg/flag/flag.go [moved from src/lib/flag/flag.go with 100% similarity]
src/pkg/flag/flag_test.go [moved from src/lib/flag/flag_test.go with 100% similarity]
src/pkg/fmt/Makefile [moved from src/lib/fmt/Makefile with 100% similarity]
src/pkg/fmt/fmt_test.go [moved from src/lib/fmt/fmt_test.go with 100% similarity]
src/pkg/fmt/format.go [moved from src/lib/fmt/format.go with 100% similarity]
src/pkg/fmt/print.go [moved from src/lib/fmt/print.go with 100% similarity]
src/pkg/go/ast/Makefile [moved from src/lib/go/ast/Makefile with 100% similarity]
src/pkg/go/ast/ast.go [moved from src/lib/go/ast/ast.go with 100% similarity]
src/pkg/go/ast/format.go [moved from src/lib/go/ast/format.go with 100% similarity]
src/pkg/go/doc/Makefile [moved from src/lib/go/doc/Makefile with 100% similarity]
src/pkg/go/doc/comment.go [moved from src/lib/go/doc/comment.go with 100% similarity]
src/pkg/go/doc/doc.go [moved from src/lib/go/doc/doc.go with 100% similarity]
src/pkg/go/parser/Makefile [moved from src/lib/go/parser/Makefile with 100% similarity]
src/pkg/go/parser/parser.go [moved from src/lib/go/parser/parser.go with 100% similarity]
src/pkg/go/parser/parser_test.go [moved from src/lib/go/parser/parser_test.go with 100% similarity]
src/pkg/go/scanner/Makefile [moved from src/lib/go/scanner/Makefile with 100% similarity]
src/pkg/go/scanner/scanner.go [moved from src/lib/go/scanner/scanner.go with 100% similarity]
src/pkg/go/scanner/scanner_test.go [moved from src/lib/go/scanner/scanner_test.go with 100% similarity]
src/pkg/go/token/Makefile [moved from src/lib/go/token/Makefile with 100% similarity]
src/pkg/go/token/token.go [moved from src/lib/go/token/token.go with 100% similarity]
src/pkg/hash/Makefile [moved from src/lib/hash/Makefile with 100% similarity]
src/pkg/hash/adler32/Makefile [moved from src/lib/hash/adler32/Makefile with 100% similarity]
src/pkg/hash/adler32/adler32.go [moved from src/lib/hash/adler32/adler32.go with 100% similarity]
src/pkg/hash/adler32/adler32_test.go [moved from src/lib/hash/adler32/adler32_test.go with 100% similarity]
src/pkg/hash/crc32/Makefile [moved from src/lib/hash/crc32/Makefile with 100% similarity]
src/pkg/hash/crc32/crc32.go [moved from src/lib/hash/crc32/crc32.go with 100% similarity]
src/pkg/hash/crc32/crc32_test.go [moved from src/lib/hash/crc32/crc32_test.go with 100% similarity]
src/pkg/hash/hash.go [moved from src/lib/hash/hash.go with 100% similarity]
src/pkg/hash/test_cases.txt [moved from src/lib/hash/test_cases.txt with 100% similarity]
src/pkg/hash/test_gen.awk [moved from src/lib/hash/test_gen.awk with 100% similarity]
src/pkg/http/Makefile [moved from src/lib/http/Makefile with 100% similarity]
src/pkg/http/fs.go [moved from src/lib/http/fs.go with 100% similarity]
src/pkg/http/request.go [moved from src/lib/http/request.go with 100% similarity]
src/pkg/http/server.go [moved from src/lib/http/server.go with 100% similarity]
src/pkg/http/status.go [moved from src/lib/http/status.go with 100% similarity]
src/pkg/http/triv.go [moved from src/lib/http/triv.go with 100% similarity]
src/pkg/http/url.go [moved from src/lib/http/url.go with 100% similarity]
src/pkg/http/url_test.go [moved from src/lib/http/url_test.go with 100% similarity]
src/pkg/io/Makefile [moved from src/lib/io/Makefile with 100% similarity]
src/pkg/io/bytebuffer.go [moved from src/lib/io/bytebuffer.go with 100% similarity]
src/pkg/io/bytebuffer_test.go [moved from src/lib/io/bytebuffer_test.go with 100% similarity]
src/pkg/io/io.go [moved from src/lib/io/io.go with 100% similarity]
src/pkg/io/pipe.go [moved from src/lib/io/pipe.go with 100% similarity]
src/pkg/io/pipe_test.go [moved from src/lib/io/pipe_test.go with 100% similarity]
src/pkg/io/utils.go [moved from src/lib/io/utils.go with 100% similarity]
src/pkg/io/utils_test.go [moved from src/lib/io/utils_test.go with 100% similarity]
src/pkg/json/Makefile [moved from src/lib/json/Makefile with 100% similarity]
src/pkg/json/generic.go [moved from src/lib/json/generic.go with 100% similarity]
src/pkg/json/generic_test.go [moved from src/lib/json/generic_test.go with 100% similarity]
src/pkg/json/parse.go [moved from src/lib/json/parse.go with 100% similarity]
src/pkg/json/struct.go [moved from src/lib/json/struct.go with 100% similarity]
src/pkg/json/struct_test.go [moved from src/lib/json/struct_test.go with 100% similarity]
src/pkg/log/Makefile [moved from src/lib/log/Makefile with 100% similarity]
src/pkg/log/log.go [moved from src/lib/log/log.go with 100% similarity]
src/pkg/log/log_test.go [moved from src/lib/log/log_test.go with 100% similarity]
src/pkg/malloc/Makefile [moved from src/lib/malloc/Makefile with 100% similarity]
src/pkg/malloc/malloc.go [moved from src/lib/malloc/malloc.go with 100% similarity]
src/pkg/math/Makefile [moved from src/lib/math/Makefile with 100% similarity]
src/pkg/math/all_test.go [moved from src/lib/math/all_test.go with 100% similarity]
src/pkg/math/asin.go [moved from src/lib/math/asin.go with 100% similarity]
src/pkg/math/atan.go [moved from src/lib/math/atan.go with 100% similarity]
src/pkg/math/atan2.go [moved from src/lib/math/atan2.go with 100% similarity]
src/pkg/math/const.go [moved from src/lib/math/const.go with 100% similarity]
src/pkg/math/exp.go [moved from src/lib/math/exp.go with 100% similarity]
src/pkg/math/fabs.go [moved from src/lib/math/fabs.go with 100% similarity]
src/pkg/math/floor.go [moved from src/lib/math/floor.go with 100% similarity]
src/pkg/math/fmod.go [moved from src/lib/math/fmod.go with 100% similarity]
src/pkg/math/hypot.go [moved from src/lib/math/hypot.go with 100% similarity]
src/pkg/math/log.go [moved from src/lib/math/log.go with 100% similarity]
src/pkg/math/pow.go [moved from src/lib/math/pow.go with 100% similarity]
src/pkg/math/pow10.go [moved from src/lib/math/pow10.go with 100% similarity]
src/pkg/math/runtime.go [moved from src/lib/math/runtime.go with 100% similarity]
src/pkg/math/sin.go [moved from src/lib/math/sin.go with 100% similarity]
src/pkg/math/sinh.go [moved from src/lib/math/sinh.go with 100% similarity]
src/pkg/math/sqrt.go [moved from src/lib/math/sqrt.go with 100% similarity]
src/pkg/math/tan.go [moved from src/lib/math/tan.go with 100% similarity]
src/pkg/math/tanh.go [moved from src/lib/math/tanh.go with 100% similarity]
src/pkg/net/Makefile [moved from src/lib/net/Makefile with 100% similarity]
src/pkg/net/dialgoogle_test.go [moved from src/lib/net/dialgoogle_test.go with 100% similarity]
src/pkg/net/dnsclient.go [moved from src/lib/net/dnsclient.go with 100% similarity]
src/pkg/net/dnsconfig.go [moved from src/lib/net/dnsconfig.go with 100% similarity]
src/pkg/net/dnsmsg.go [moved from src/lib/net/dnsmsg.go with 100% similarity]
src/pkg/net/fd.go [moved from src/lib/net/fd.go with 100% similarity]
src/pkg/net/fd_darwin.go [moved from src/lib/net/fd_darwin.go with 100% similarity]
src/pkg/net/fd_linux.go [moved from src/lib/net/fd_linux.go with 100% similarity]
src/pkg/net/ip.go [moved from src/lib/net/ip.go with 100% similarity]
src/pkg/net/ip_test.go [moved from src/lib/net/ip_test.go with 100% similarity]
src/pkg/net/net.go [moved from src/lib/net/net.go with 100% similarity]
src/pkg/net/parse.go [moved from src/lib/net/parse.go with 100% similarity]
src/pkg/net/parse_test.go [moved from src/lib/net/parse_test.go with 100% similarity]
src/pkg/net/port.go [moved from src/lib/net/port.go with 100% similarity]
src/pkg/net/port_test.go [moved from src/lib/net/port_test.go with 100% similarity]
src/pkg/net/server_test.go [moved from src/lib/net/server_test.go with 100% similarity]
src/pkg/net/timeout_test.go [moved from src/lib/net/timeout_test.go with 100% similarity]
src/pkg/once/Makefile [moved from src/lib/once/Makefile with 100% similarity]
src/pkg/once/once.go [moved from src/lib/once/once.go with 100% similarity]
src/pkg/once/once_test.go [moved from src/lib/once/once_test.go with 100% similarity]
src/pkg/os/Makefile [moved from src/lib/os/Makefile with 100% similarity]
src/pkg/os/dir_darwin_386.go [moved from src/lib/os/dir_darwin_386.go with 100% similarity]
src/pkg/os/dir_darwin_amd64.go [moved from src/lib/os/dir_darwin_amd64.go with 100% similarity]
src/pkg/os/dir_linux_386.go [moved from src/lib/os/dir_linux_386.go with 100% similarity]
src/pkg/os/dir_linux_amd64.go [moved from src/lib/os/dir_linux_amd64.go with 100% similarity]
src/pkg/os/env.go [moved from src/lib/os/env.go with 100% similarity]
src/pkg/os/error.go [moved from src/lib/os/error.go with 100% similarity]
src/pkg/os/exec.go [moved from src/lib/os/exec.go with 100% similarity]
src/pkg/os/file.go [moved from src/lib/os/file.go with 100% similarity]
src/pkg/os/getwd.go [moved from src/lib/os/getwd.go with 100% similarity]
src/pkg/os/os_test.go [moved from src/lib/os/os_test.go with 100% similarity]
src/pkg/os/path.go [moved from src/lib/os/path.go with 100% similarity]
src/pkg/os/path_test.go [moved from src/lib/os/path_test.go with 100% similarity]
src/pkg/os/proc.go [moved from src/lib/os/proc.go with 100% similarity]
src/pkg/os/proc_linux.go [moved from src/lib/os/proc_linux.go with 100% similarity]
src/pkg/os/stat_darwin_386.go [moved from src/lib/os/stat_darwin_386.go with 100% similarity]
src/pkg/os/stat_darwin_amd64.go [moved from src/lib/os/stat_darwin_amd64.go with 100% similarity]
src/pkg/os/stat_linux_386.go [moved from src/lib/os/stat_linux_386.go with 100% similarity]
src/pkg/os/stat_linux_amd64.go [moved from src/lib/os/stat_linux_amd64.go with 100% similarity]
src/pkg/os/time.go [moved from src/lib/os/time.go with 100% similarity]
src/pkg/os/types.go [moved from src/lib/os/types.go with 100% similarity]
src/pkg/path/Makefile [moved from src/lib/path/Makefile with 100% similarity]
src/pkg/path/path.go [moved from src/lib/path/path.go with 100% similarity]
src/pkg/path/path_test.go [moved from src/lib/path/path_test.go with 100% similarity]
src/pkg/rand/Makefile [moved from src/lib/rand/Makefile with 100% similarity]
src/pkg/rand/rand.go [moved from src/lib/rand/rand.go with 100% similarity]
src/pkg/reflect/Makefile [moved from src/lib/reflect/Makefile with 100% similarity]
src/pkg/reflect/all_test.go [moved from src/lib/reflect/all_test.go with 100% similarity]
src/pkg/reflect/deepequal.go [moved from src/lib/reflect/deepequal.go with 100% similarity]
src/pkg/reflect/tostring.go [moved from src/lib/reflect/tostring.go with 100% similarity]
src/pkg/reflect/type.go [moved from src/lib/reflect/type.go with 100% similarity]
src/pkg/reflect/typestring.c [moved from src/lib/reflect/typestring.c with 100% similarity]
src/pkg/reflect/value.go [moved from src/lib/reflect/value.go with 100% similarity]
src/pkg/regexp/Makefile [moved from src/lib/regexp/Makefile with 100% similarity]
src/pkg/regexp/all_test.go [moved from src/lib/regexp/all_test.go with 100% similarity]
src/pkg/regexp/regexp.go [moved from src/lib/regexp/regexp.go with 100% similarity]
src/pkg/runtime/386/asm.s [moved from src/lib/runtime/386/asm.s with 100% similarity]
src/pkg/runtime/386/closure.c [moved from src/lib/runtime/386/closure.c with 100% similarity]
src/pkg/runtime/386/traceback.c [moved from src/lib/runtime/386/traceback.c with 100% similarity]
src/pkg/runtime/386/vlop.s [moved from src/lib/runtime/386/vlop.s with 100% similarity]
src/pkg/runtime/386/vlrt.c [moved from src/lib/runtime/386/vlrt.c with 100% similarity]
src/pkg/runtime/Makefile [moved from src/lib/runtime/Makefile with 100% similarity]
src/pkg/runtime/amd64/asm.s [moved from src/lib/runtime/amd64/asm.s with 100% similarity]
src/pkg/runtime/amd64/closure.c [moved from src/lib/runtime/amd64/closure.c with 100% similarity]
src/pkg/runtime/amd64/traceback.c [moved from src/lib/runtime/amd64/traceback.c with 100% similarity]
src/pkg/runtime/arm/asm.s [moved from src/lib/runtime/arm/asm.s with 100% similarity]
src/pkg/runtime/arm/closure.c [moved from src/lib/runtime/arm/closure.c with 99% similarity]
src/pkg/runtime/arm/traceback.s [moved from src/lib/runtime/arm/traceback.s with 100% similarity]
src/pkg/runtime/array.c [moved from src/lib/runtime/array.c with 100% similarity]
src/pkg/runtime/cgo2c.c [moved from src/lib/runtime/cgo2c.c with 100% similarity]
src/pkg/runtime/chan.c [moved from src/lib/runtime/chan.c with 100% similarity]
src/pkg/runtime/darwin/386/defs.h [moved from src/lib/runtime/darwin/386/defs.h with 100% similarity]
src/pkg/runtime/darwin/386/rt0.s [moved from src/lib/runtime/darwin/386/rt0.s with 100% similarity]
src/pkg/runtime/darwin/386/signal.c [moved from src/lib/runtime/darwin/386/signal.c with 100% similarity]
src/pkg/runtime/darwin/386/sys.s [moved from src/lib/runtime/darwin/386/sys.s with 100% similarity]
src/pkg/runtime/darwin/amd64/defs.h [moved from src/lib/runtime/darwin/amd64/defs.h with 100% similarity]
src/pkg/runtime/darwin/amd64/rt0.s [moved from src/lib/runtime/darwin/amd64/rt0.s with 100% similarity]
src/pkg/runtime/darwin/amd64/signal.c [moved from src/lib/runtime/darwin/amd64/signal.c with 100% similarity]
src/pkg/runtime/darwin/amd64/sys.s [moved from src/lib/runtime/darwin/amd64/sys.s with 100% similarity]
src/pkg/runtime/darwin/defs.c [moved from src/lib/runtime/darwin/defs.c with 100% similarity]
src/pkg/runtime/darwin/os.h [moved from src/lib/runtime/darwin/os.h with 100% similarity]
src/pkg/runtime/darwin/signals.h [moved from src/lib/runtime/darwin/signals.h with 99% similarity]
src/pkg/runtime/darwin/thread.c [moved from src/lib/runtime/darwin/thread.c with 100% similarity]
src/pkg/runtime/extern.go [moved from src/lib/runtime/extern.go with 100% similarity]
src/pkg/runtime/float.c [moved from src/lib/runtime/float.c with 100% similarity]
src/pkg/runtime/float_go.cgo [moved from src/lib/runtime/float_go.cgo with 100% similarity]
src/pkg/runtime/hashmap.c [moved from src/lib/runtime/hashmap.c with 100% similarity]
src/pkg/runtime/hashmap.h [moved from src/lib/runtime/hashmap.h with 99% similarity]
src/pkg/runtime/iface.c [moved from src/lib/runtime/iface.c with 100% similarity]
src/pkg/runtime/linux/386/defs.h [moved from src/lib/runtime/linux/386/defs.h with 100% similarity]
src/pkg/runtime/linux/386/rt0.s [moved from src/lib/runtime/linux/386/rt0.s with 100% similarity]
src/pkg/runtime/linux/386/signal.c [moved from src/lib/runtime/linux/386/signal.c with 100% similarity]
src/pkg/runtime/linux/386/sys.s [moved from src/lib/runtime/linux/386/sys.s with 100% similarity]
src/pkg/runtime/linux/amd64/defs.h [moved from src/lib/runtime/linux/amd64/defs.h with 100% similarity]
src/pkg/runtime/linux/amd64/rt0.s [moved from src/lib/runtime/linux/amd64/rt0.s with 100% similarity]
src/pkg/runtime/linux/amd64/signal.c [moved from src/lib/runtime/linux/amd64/signal.c with 100% similarity]
src/pkg/runtime/linux/amd64/sys.s [moved from src/lib/runtime/linux/amd64/sys.s with 100% similarity]
src/pkg/runtime/linux/arm/defs.h [moved from src/lib/runtime/linux/arm/defs.h with 100% similarity]
src/pkg/runtime/linux/arm/rt0.s [moved from src/lib/runtime/linux/arm/rt0.s with 100% similarity]
src/pkg/runtime/linux/arm/signal.c [moved from src/lib/runtime/linux/arm/signal.c with 100% similarity]
src/pkg/runtime/linux/arm/sys.s [moved from src/lib/runtime/linux/arm/sys.s with 100% similarity]
src/pkg/runtime/linux/defs.c [moved from src/lib/runtime/linux/defs.c with 100% similarity]
src/pkg/runtime/linux/defs1.c [moved from src/lib/runtime/linux/defs1.c with 100% similarity]
src/pkg/runtime/linux/defs2.c [moved from src/lib/runtime/linux/defs2.c with 100% similarity]
src/pkg/runtime/linux/defs_arm.c [moved from src/lib/runtime/linux/defs_arm.c with 100% similarity]
src/pkg/runtime/linux/os.h [moved from src/lib/runtime/linux/os.h with 100% similarity]
src/pkg/runtime/linux/signals.h [moved from src/lib/runtime/linux/signals.h with 99% similarity]
src/pkg/runtime/linux/thread.c [moved from src/lib/runtime/linux/thread.c with 100% similarity]
src/pkg/runtime/malloc.c [moved from src/lib/runtime/malloc.c with 100% similarity]
src/pkg/runtime/malloc.h [moved from src/lib/runtime/malloc.h with 99% similarity]
src/pkg/runtime/malloc_go.cgo [moved from src/lib/runtime/malloc_go.cgo with 100% similarity]
src/pkg/runtime/mcache.c [moved from src/lib/runtime/mcache.c with 100% similarity]
src/pkg/runtime/mcentral.c [moved from src/lib/runtime/mcentral.c with 100% similarity]
src/pkg/runtime/mem.c [moved from src/lib/runtime/mem.c with 100% similarity]
src/pkg/runtime/mfixalloc.c [moved from src/lib/runtime/mfixalloc.c with 100% similarity]
src/pkg/runtime/mgc0.c [moved from src/lib/runtime/mgc0.c with 100% similarity]
src/pkg/runtime/mheap.c [moved from src/lib/runtime/mheap.c with 100% similarity]
src/pkg/runtime/mheapmap32.c [moved from src/lib/runtime/mheapmap32.c with 100% similarity]
src/pkg/runtime/mheapmap32.h [moved from src/lib/runtime/mheapmap32.h with 100% similarity]
src/pkg/runtime/mheapmap64.c [moved from src/lib/runtime/mheapmap64.c with 100% similarity]
src/pkg/runtime/mheapmap64.h [moved from src/lib/runtime/mheapmap64.h with 100% similarity]
src/pkg/runtime/msize.c [moved from src/lib/runtime/msize.c with 100% similarity]
src/pkg/runtime/print.c [moved from src/lib/runtime/print.c with 100% similarity]
src/pkg/runtime/proc.c [moved from src/lib/runtime/proc.c with 100% similarity]
src/pkg/runtime/rune.c [moved from src/lib/runtime/rune.c with 87% similarity]
src/pkg/runtime/runtime.c [moved from src/lib/runtime/runtime.c with 100% similarity]
src/pkg/runtime/runtime.h [moved from src/lib/runtime/runtime.h with 100% similarity]
src/pkg/runtime/sema.c [moved from src/lib/runtime/sema.c with 100% similarity]
src/pkg/runtime/sema_go.cgo [moved from src/lib/runtime/sema_go.cgo with 100% similarity]
src/pkg/runtime/string.c [moved from src/lib/runtime/string.c with 100% similarity]
src/pkg/runtime/symtab.c [moved from src/lib/runtime/symtab.c with 100% similarity]
src/pkg/sort/Makefile [moved from src/lib/sort/Makefile with 100% similarity]
src/pkg/sort/sort.go [moved from src/lib/sort/sort.go with 100% similarity]
src/pkg/sort/sort_test.go [moved from src/lib/sort/sort_test.go with 100% similarity]
src/pkg/strconv/Makefile [moved from src/lib/strconv/Makefile with 100% similarity]
src/pkg/strconv/atof.go [moved from src/lib/strconv/atof.go with 100% similarity]
src/pkg/strconv/atof_test.go [moved from src/lib/strconv/atof_test.go with 100% similarity]
src/pkg/strconv/atoi.go [moved from src/lib/strconv/atoi.go with 100% similarity]
src/pkg/strconv/atoi_test.go [moved from src/lib/strconv/atoi_test.go with 100% similarity]
src/pkg/strconv/decimal.go [moved from src/lib/strconv/decimal.go with 100% similarity]
src/pkg/strconv/decimal_test.go [moved from src/lib/strconv/decimal_test.go with 100% similarity]
src/pkg/strconv/fp_test.go [moved from src/lib/strconv/fp_test.go with 100% similarity]
src/pkg/strconv/ftoa.go [moved from src/lib/strconv/ftoa.go with 100% similarity]
src/pkg/strconv/ftoa_test.go [moved from src/lib/strconv/ftoa_test.go with 100% similarity]
src/pkg/strconv/itoa.go [moved from src/lib/strconv/itoa.go with 100% similarity]
src/pkg/strconv/itoa_test.go [moved from src/lib/strconv/itoa_test.go with 100% similarity]
src/pkg/strconv/quote.go [moved from src/lib/strconv/quote.go with 100% similarity]
src/pkg/strconv/quote_test.go [moved from src/lib/strconv/quote_test.go with 100% similarity]
src/pkg/strconv/testfp.txt [moved from src/lib/strconv/testfp.txt with 100% similarity]
src/pkg/strings/Makefile [moved from src/lib/strings/Makefile with 100% similarity]
src/pkg/strings/strings.go [moved from src/lib/strings/strings.go with 100% similarity]
src/pkg/strings/strings_test.go [moved from src/lib/strings/strings_test.go with 100% similarity]
src/pkg/sync/Makefile [moved from src/lib/sync/Makefile with 100% similarity]
src/pkg/sync/asm_386.s [moved from src/lib/sync/asm_386.s with 100% similarity]
src/pkg/sync/asm_amd64.s [moved from src/lib/sync/asm_amd64.s with 100% similarity]
src/pkg/sync/mutex.go [moved from src/lib/sync/mutex.go with 100% similarity]
src/pkg/sync/mutex_test.go [moved from src/lib/sync/mutex_test.go with 100% similarity]
src/pkg/syscall/Makefile [moved from src/lib/syscall/Makefile with 100% similarity]
src/pkg/syscall/PORT [moved from src/lib/syscall/PORT with 100% similarity]
src/pkg/syscall/asm_darwin_386.s [moved from src/lib/syscall/asm_darwin_386.s with 100% similarity]
src/pkg/syscall/asm_darwin_amd64.s [moved from src/lib/syscall/asm_darwin_amd64.s with 100% similarity]
src/pkg/syscall/asm_linux_386.s [moved from src/lib/syscall/asm_linux_386.s with 100% similarity]
src/pkg/syscall/asm_linux_amd64.s [moved from src/lib/syscall/asm_linux_amd64.s with 100% similarity]
src/pkg/syscall/errstr.go [moved from src/lib/syscall/errstr.go with 100% similarity]
src/pkg/syscall/exec.go [moved from src/lib/syscall/exec.go with 100% similarity]
src/pkg/syscall/mkerrors [moved from src/lib/syscall/mkerrors with 100% similarity]
src/pkg/syscall/mksyscall [moved from src/lib/syscall/mksyscall with 100% similarity]
src/pkg/syscall/mksysnum_darwin [moved from src/lib/syscall/mksysnum_darwin with 100% similarity]
src/pkg/syscall/mksysnum_linux [moved from src/lib/syscall/mksysnum_linux with 100% similarity]
src/pkg/syscall/syscall.go [moved from src/lib/syscall/syscall.go with 100% similarity]
src/pkg/syscall/syscall_darwin.go [moved from src/lib/syscall/syscall_darwin.go with 100% similarity]
src/pkg/syscall/syscall_darwin_386.go [moved from src/lib/syscall/syscall_darwin_386.go with 100% similarity]
src/pkg/syscall/syscall_darwin_amd64.go [moved from src/lib/syscall/syscall_darwin_amd64.go with 100% similarity]
src/pkg/syscall/syscall_linux.go [moved from src/lib/syscall/syscall_linux.go with 100% similarity]
src/pkg/syscall/syscall_linux_386.go [moved from src/lib/syscall/syscall_linux_386.go with 100% similarity]
src/pkg/syscall/syscall_linux_amd64.go [moved from src/lib/syscall/syscall_linux_amd64.go with 100% similarity]
src/pkg/syscall/types_darwin.c [moved from src/lib/syscall/types_darwin.c with 100% similarity]
src/pkg/syscall/types_darwin_386.c [new file with mode: 0644]
src/pkg/syscall/types_darwin_amd64.c [new file with mode: 0644]
src/pkg/syscall/types_linux.c [moved from src/lib/syscall/types_linux.c with 100% similarity]
src/pkg/syscall/types_linux_386.c [new file with mode: 0644]
src/pkg/syscall/types_linux_amd64.c [new file with mode: 0644]
src/pkg/syscall/zerrors_darwin_386.go [moved from src/lib/syscall/zerrors_darwin_386.go with 100% similarity]
src/pkg/syscall/zerrors_darwin_amd64.go [moved from src/lib/syscall/zerrors_darwin_amd64.go with 100% similarity]
src/pkg/syscall/zerrors_linux_386.go [moved from src/lib/syscall/zerrors_linux_386.go with 100% similarity]
src/pkg/syscall/zerrors_linux_amd64.go [moved from src/lib/syscall/zerrors_linux_amd64.go with 100% similarity]
src/pkg/syscall/zsyscall_darwin_386.go [moved from src/lib/syscall/zsyscall_darwin_386.go with 100% similarity]
src/pkg/syscall/zsyscall_darwin_amd64.go [moved from src/lib/syscall/zsyscall_darwin_amd64.go with 100% similarity]
src/pkg/syscall/zsyscall_linux_386.go [moved from src/lib/syscall/zsyscall_linux_386.go with 100% similarity]
src/pkg/syscall/zsyscall_linux_amd64.go [moved from src/lib/syscall/zsyscall_linux_amd64.go with 100% similarity]
src/pkg/syscall/zsysnum_darwin_386.go [moved from src/lib/syscall/zsysnum_darwin_386.go with 100% similarity]
src/pkg/syscall/zsysnum_darwin_amd64.go [moved from src/lib/syscall/zsysnum_darwin_amd64.go with 100% similarity]
src/pkg/syscall/zsysnum_linux_386.go [moved from src/lib/syscall/zsysnum_linux_386.go with 100% similarity]
src/pkg/syscall/zsysnum_linux_amd64.go [moved from src/lib/syscall/zsysnum_linux_amd64.go with 100% similarity]
src/pkg/syscall/ztypes_darwin_386.go [moved from src/lib/syscall/ztypes_darwin_386.go with 100% similarity]
src/pkg/syscall/ztypes_darwin_amd64.go [moved from src/lib/syscall/ztypes_darwin_amd64.go with 100% similarity]
src/pkg/syscall/ztypes_linux_386.go [moved from src/lib/syscall/ztypes_linux_386.go with 100% similarity]
src/pkg/syscall/ztypes_linux_amd64.go [moved from src/lib/syscall/ztypes_linux_amd64.go with 100% similarity]
src/pkg/tabwriter/Makefile [moved from src/lib/tabwriter/Makefile with 100% similarity]
src/pkg/tabwriter/tabwriter.go [moved from src/lib/tabwriter/tabwriter.go with 100% similarity]
src/pkg/tabwriter/tabwriter_test.go [moved from src/lib/tabwriter/tabwriter_test.go with 100% similarity]
src/pkg/template/Makefile [moved from src/lib/template/Makefile with 100% similarity]
src/pkg/template/format.go [moved from src/lib/template/format.go with 100% similarity]
src/pkg/template/template.go [moved from src/lib/template/template.go with 100% similarity]
src/pkg/template/template_test.go [moved from src/lib/template/template_test.go with 100% similarity]
src/pkg/testing/Makefile [moved from src/lib/testing/Makefile with 100% similarity]
src/pkg/testing/iotest/Makefile [moved from src/lib/testing/iotest/Makefile with 100% similarity]
src/pkg/testing/iotest/logger.go [moved from src/lib/testing/iotest/logger.go with 100% similarity]
src/pkg/testing/iotest/reader.go [moved from src/lib/testing/iotest/reader.go with 100% similarity]
src/pkg/testing/testing.go [moved from src/lib/testing/testing.go with 100% similarity]
src/pkg/time/Makefile [moved from src/lib/time/Makefile with 100% similarity]
src/pkg/time/sleep.go [moved from src/lib/time/sleep.go with 100% similarity]
src/pkg/time/tick.go [moved from src/lib/time/tick.go with 100% similarity]
src/pkg/time/tick_test.go [moved from src/lib/time/tick_test.go with 100% similarity]
src/pkg/time/time.go [moved from src/lib/time/time.go with 100% similarity]
src/pkg/time/time_test.go [moved from src/lib/time/time_test.go with 100% similarity]
src/pkg/time/zoneinfo.go [moved from src/lib/time/zoneinfo.go with 100% similarity]
src/pkg/unicode/Makefile [moved from src/lib/unicode/Makefile with 100% similarity]
src/pkg/unicode/decimaldigit.go [moved from src/lib/unicode/decimaldigit.go with 100% similarity]
src/pkg/unicode/decimaldigit_test.go [moved from src/lib/unicode/decimaldigit_test.go with 100% similarity]
src/pkg/unicode/letter.go [moved from src/lib/unicode/letter.go with 100% similarity]
src/pkg/unicode/letter_test.go [moved from src/lib/unicode/letter_test.go with 100% similarity]
src/pkg/unsafe/unsafe.go [moved from src/lib/unsafe/unsafe.go with 100% similarity]
src/pkg/utf8/Makefile [moved from src/lib/utf8/Makefile with 100% similarity]
src/pkg/utf8/utf8.go [moved from src/lib/utf8/utf8.go with 100% similarity]
src/pkg/utf8/utf8_test.go [moved from src/lib/utf8/utf8_test.go with 100% similarity]
src/pkg/xml/xml.go [moved from src/lib/xml/xml.go with 100% similarity]
src/run.bash
usr/gri/pretty/astprinter.go
usr/gri/pretty/godoc.go

index 15a46a76a179e7fb57df9d1b1cc1726c9c94da44..e67fe1403517edf154279425a4963699b9adde84 100755 (executable)
@@ -5,7 +5,7 @@
 
 rm -rf $GOROOT/pkg/[0-9a-zA-Z_]*
 rm -f $GOROOT/lib/*.[6a]
-for i in lib9 libbio libmach_amd64 libregexp cmd lib
+for i in lib9 libbio libmach_amd64 libregexp cmd pkg
 do
        cd $i
        case $i in
index c84c7e92774a89607008f83b6461543e9127a0df..d7e9de8ffaa748d493655573982e1147f63af983 100644 (file)
@@ -103,14 +103,14 @@ func (a FileArray) Swap(i, j int) {
        a[i], a[j] = a[j], a[i]
 }
 
-// If current directory is under $GOROOT/src/lib, return the
+// If current directory is under $GOROOT/src/pkg, return the
 // path relative to there.  Otherwise return "".
 func PkgDir() string {
        goroot, err := os.Getenv("GOROOT");
        if err != nil || goroot == "" {
                return ""
        }
-       srcroot := path.Clean(goroot + "/src/lib/");
+       srcroot := path.Clean(goroot + "/src/pkg/");
        pwd, err1 := os.Getenv("PWD");  // TODO(rsc): real pwd
        if err1 != nil || pwd == "" {
                return ""
diff --git a/src/lib/syscall/types_darwin_386.c b/src/lib/syscall/types_darwin_386.c
deleted file mode 100644 (file)
index 71f98e4..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// Copyright 2009 The Go Authors.  All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Nothing to see here.
diff --git a/src/lib/syscall/types_darwin_amd64.c b/src/lib/syscall/types_darwin_amd64.c
deleted file mode 100644 (file)
index 71f98e4..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// Copyright 2009 The Go Authors.  All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Nothing to see here.
diff --git a/src/lib/syscall/types_linux_386.c b/src/lib/syscall/types_linux_386.c
deleted file mode 100644 (file)
index 37ce7d7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// Copyright 2009 The Go Authors.  All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Nothing to see here
diff --git a/src/lib/syscall/types_linux_amd64.c b/src/lib/syscall/types_linux_amd64.c
deleted file mode 100644 (file)
index 37ce7d7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// Copyright 2009 The Go Authors.  All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-// Nothing to see here
index f6ee91ad077cc41802d1fcc24bbf189daa1ee0cb..841a136c7df610a51d22adf3f38d88229da4530d 100755 (executable)
@@ -18,7 +18,7 @@ rm -f $HOME/bin/quietgcc
 cp quietgcc.bash $HOME/bin/quietgcc
 chmod +x $HOME/bin/quietgcc
 
-for i in lib9 libbio libmach_amd64 libregexp cmd lib cmd/gobuild
+for i in lib9 libbio libmach_amd64 libregexp cmd pkg cmd/gobuild
 do
        echo; echo; echo %%%% making $i %%%%; echo
        cd $i
similarity index 100%
rename from src/lib/Make.deps
rename to src/pkg/Make.deps
similarity index 100%
rename from src/lib/Makefile
rename to src/pkg/Makefile
similarity index 100%
rename from src/lib/exec/Makefile
rename to src/pkg/exec/Makefile
similarity index 100%
rename from src/lib/exec/exec.go
rename to src/pkg/exec/exec.go
similarity index 100%
rename from src/lib/flag/Makefile
rename to src/pkg/flag/Makefile
similarity index 100%
rename from src/lib/flag/flag.go
rename to src/pkg/flag/flag.go
similarity index 100%
rename from src/lib/fmt/Makefile
rename to src/pkg/fmt/Makefile
similarity index 100%
rename from src/lib/fmt/format.go
rename to src/pkg/fmt/format.go
similarity index 100%
rename from src/lib/fmt/print.go
rename to src/pkg/fmt/print.go
similarity index 100%
rename from src/lib/go/ast/ast.go
rename to src/pkg/go/ast/ast.go
similarity index 100%
rename from src/lib/go/doc/doc.go
rename to src/pkg/go/doc/doc.go
similarity index 100%
rename from src/lib/hash/Makefile
rename to src/pkg/hash/Makefile
similarity index 100%
rename from src/lib/hash/hash.go
rename to src/pkg/hash/hash.go
similarity index 100%
rename from src/lib/http/Makefile
rename to src/pkg/http/Makefile
similarity index 100%
rename from src/lib/http/fs.go
rename to src/pkg/http/fs.go
similarity index 100%
rename from src/lib/http/triv.go
rename to src/pkg/http/triv.go
similarity index 100%
rename from src/lib/http/url.go
rename to src/pkg/http/url.go
similarity index 100%
rename from src/lib/io/Makefile
rename to src/pkg/io/Makefile
similarity index 100%
rename from src/lib/io/io.go
rename to src/pkg/io/io.go
similarity index 100%
rename from src/lib/io/pipe.go
rename to src/pkg/io/pipe.go
similarity index 100%
rename from src/lib/io/utils.go
rename to src/pkg/io/utils.go
similarity index 100%
rename from src/lib/json/Makefile
rename to src/pkg/json/Makefile
similarity index 100%
rename from src/lib/json/parse.go
rename to src/pkg/json/parse.go
similarity index 100%
rename from src/lib/log/Makefile
rename to src/pkg/log/Makefile
similarity index 100%
rename from src/lib/log/log.go
rename to src/pkg/log/log.go
similarity index 100%
rename from src/lib/math/Makefile
rename to src/pkg/math/Makefile
similarity index 100%
rename from src/lib/math/asin.go
rename to src/pkg/math/asin.go
similarity index 100%
rename from src/lib/math/atan.go
rename to src/pkg/math/atan.go
similarity index 100%
rename from src/lib/math/atan2.go
rename to src/pkg/math/atan2.go
similarity index 100%
rename from src/lib/math/const.go
rename to src/pkg/math/const.go
similarity index 100%
rename from src/lib/math/exp.go
rename to src/pkg/math/exp.go
similarity index 100%
rename from src/lib/math/fabs.go
rename to src/pkg/math/fabs.go
similarity index 100%
rename from src/lib/math/floor.go
rename to src/pkg/math/floor.go
similarity index 100%
rename from src/lib/math/fmod.go
rename to src/pkg/math/fmod.go
similarity index 100%
rename from src/lib/math/hypot.go
rename to src/pkg/math/hypot.go
similarity index 100%
rename from src/lib/math/log.go
rename to src/pkg/math/log.go
similarity index 100%
rename from src/lib/math/pow.go
rename to src/pkg/math/pow.go
similarity index 100%
rename from src/lib/math/pow10.go
rename to src/pkg/math/pow10.go
similarity index 100%
rename from src/lib/math/sin.go
rename to src/pkg/math/sin.go
similarity index 100%
rename from src/lib/math/sinh.go
rename to src/pkg/math/sinh.go
similarity index 100%
rename from src/lib/math/sqrt.go
rename to src/pkg/math/sqrt.go
similarity index 100%
rename from src/lib/math/tan.go
rename to src/pkg/math/tan.go
similarity index 100%
rename from src/lib/math/tanh.go
rename to src/pkg/math/tanh.go
similarity index 100%
rename from src/lib/net/Makefile
rename to src/pkg/net/Makefile
similarity index 100%
rename from src/lib/net/dnsmsg.go
rename to src/pkg/net/dnsmsg.go
similarity index 100%
rename from src/lib/net/fd.go
rename to src/pkg/net/fd.go
similarity index 100%
rename from src/lib/net/ip.go
rename to src/pkg/net/ip.go
similarity index 100%
rename from src/lib/net/net.go
rename to src/pkg/net/net.go
similarity index 100%
rename from src/lib/net/parse.go
rename to src/pkg/net/parse.go
similarity index 100%
rename from src/lib/net/port.go
rename to src/pkg/net/port.go
similarity index 100%
rename from src/lib/once/Makefile
rename to src/pkg/once/Makefile
similarity index 100%
rename from src/lib/once/once.go
rename to src/pkg/once/once.go
similarity index 100%
rename from src/lib/os/Makefile
rename to src/pkg/os/Makefile
similarity index 100%
rename from src/lib/os/env.go
rename to src/pkg/os/env.go
similarity index 100%
rename from src/lib/os/error.go
rename to src/pkg/os/error.go
similarity index 100%
rename from src/lib/os/exec.go
rename to src/pkg/os/exec.go
similarity index 100%
rename from src/lib/os/file.go
rename to src/pkg/os/file.go
similarity index 100%
rename from src/lib/os/getwd.go
rename to src/pkg/os/getwd.go
similarity index 100%
rename from src/lib/os/os_test.go
rename to src/pkg/os/os_test.go
similarity index 100%
rename from src/lib/os/path.go
rename to src/pkg/os/path.go
similarity index 100%
rename from src/lib/os/proc.go
rename to src/pkg/os/proc.go
similarity index 100%
rename from src/lib/os/time.go
rename to src/pkg/os/time.go
similarity index 100%
rename from src/lib/os/types.go
rename to src/pkg/os/types.go
similarity index 100%
rename from src/lib/path/Makefile
rename to src/pkg/path/Makefile
similarity index 100%
rename from src/lib/path/path.go
rename to src/pkg/path/path.go
similarity index 100%
rename from src/lib/rand/Makefile
rename to src/pkg/rand/Makefile
similarity index 100%
rename from src/lib/rand/rand.go
rename to src/pkg/rand/rand.go
similarity index 99%
rename from src/lib/runtime/arm/closure.c
rename to src/pkg/runtime/arm/closure.c
index 024018d5a4fcb07a7cad79ceb1cb5634c502a30e..bfa9df67f0530880c837dc5f1d0ab2514ca9c418 100644 (file)
@@ -1,4 +1,3 @@
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
-
similarity index 99%
rename from src/lib/runtime/darwin/signals.h
rename to src/pkg/runtime/darwin/signals.h
index 4051dc4dc4b4a1bc6198048232cd857e167edeab..8cca361f759fdb7126fbaa4dbcec078d2e890405 100644 (file)
@@ -2,7 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-
 #define C SigCatch
 #define I SigIgnore
 #define R SigRestart
similarity index 99%
rename from src/lib/runtime/hashmap.h
rename to src/pkg/runtime/hashmap.h
index ff93e9ee30ed53f5d045af2b052053f7a2714206..e8bcfab2935982f05eb248faed4e8270be78834c 100644 (file)
@@ -2,7 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-
 /* A hash table.
    Example, hashing nul-terminated char*s:
        hash_hash_t str_hash (void *v) {
similarity index 99%
rename from src/lib/runtime/linux/signals.h
rename to src/pkg/runtime/linux/signals.h
index 1fb49c513544e4834f1e63495f6ee5f401cd1795..8f1112b99192071c8d8129ac5d403ca06e4337e5 100644 (file)
@@ -2,7 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-
 #define C SigCatch
 #define I SigIgnore
 #define R SigRestart
similarity index 99%
rename from src/lib/runtime/malloc.h
rename to src/pkg/runtime/malloc.h
index 9b3d6b811c1a5c8511eb068cfc997ca1875db984..5b657a4953e368d1ac8814af9dbeb71a393735e6 100644 (file)
@@ -155,7 +155,7 @@ void        FixAlloc_Free(FixAlloc *f, void *p);
 
 
 // Statistics.
-// Shared with Go: if you edit this structure, also edit ../lib/malloc.go.
+// Shared with Go: if you edit this structure, also edit ../malloc/malloc.go.
 struct MStats
 {
        uint64  alloc;
similarity index 100%
rename from src/lib/runtime/mem.c
rename to src/pkg/runtime/mem.c
similarity index 87%
rename from src/lib/runtime/rune.c
rename to src/pkg/runtime/rune.c
index ca4f9ac6aad4e685cf86e8ba1069a03a5cf5446c..652ccdfa666e75b309d49d4e50307ccb5beeb7d9 100644 (file)
  * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
  */
 
-/*
- * The authors of this software are Rob Pike and Ken Thompson.
- *              Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY.  IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY
- * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
-
 /*
  * This code is copied, with slight editing due to type differences,
  * from a subset of ../lib9/utf/rune.c
@@ -71,7 +57,7 @@ enum
  * Modified by Wei-Hwa Huang, Google Inc., on 2004-09-24
  * This is a slower but "safe" version of the old chartorune
  * that works on strings that are not necessarily null-terminated.
- * 
+ *
  * If you know for sure that your string is null-terminated,
  * chartorune will be a bit faster.
  *
similarity index 100%
rename from src/lib/sort/Makefile
rename to src/pkg/sort/Makefile
similarity index 100%
rename from src/lib/sort/sort.go
rename to src/pkg/sort/sort.go
similarity index 100%
rename from src/lib/sync/Makefile
rename to src/pkg/sync/Makefile
similarity index 100%
rename from src/lib/sync/mutex.go
rename to src/pkg/sync/mutex.go
similarity index 100%
rename from src/lib/syscall/PORT
rename to src/pkg/syscall/PORT
diff --git a/src/pkg/syscall/types_darwin_386.c b/src/pkg/syscall/types_darwin_386.c
new file mode 100644 (file)
index 0000000..dd53569
--- /dev/null
@@ -0,0 +1 @@
+// Nothing to see here.
diff --git a/src/pkg/syscall/types_darwin_amd64.c b/src/pkg/syscall/types_darwin_amd64.c
new file mode 100644 (file)
index 0000000..dd53569
--- /dev/null
@@ -0,0 +1 @@
+// Nothing to see here.
diff --git a/src/pkg/syscall/types_linux_386.c b/src/pkg/syscall/types_linux_386.c
new file mode 100644 (file)
index 0000000..3b5481a
--- /dev/null
@@ -0,0 +1 @@
+// Nothing to see here
diff --git a/src/pkg/syscall/types_linux_amd64.c b/src/pkg/syscall/types_linux_amd64.c
new file mode 100644 (file)
index 0000000..3b5481a
--- /dev/null
@@ -0,0 +1 @@
+// Nothing to see here
similarity index 100%
rename from src/lib/time/Makefile
rename to src/pkg/time/Makefile
similarity index 100%
rename from src/lib/time/sleep.go
rename to src/pkg/time/sleep.go
similarity index 100%
rename from src/lib/time/tick.go
rename to src/pkg/time/tick.go
similarity index 100%
rename from src/lib/time/time.go
rename to src/pkg/time/time.go
similarity index 100%
rename from src/lib/utf8/Makefile
rename to src/pkg/utf8/Makefile
similarity index 100%
rename from src/lib/utf8/utf8.go
rename to src/pkg/utf8/utf8.go
similarity index 100%
rename from src/lib/xml/xml.go
rename to src/pkg/xml/xml.go
index 85bd28655560f3cd4cad578a1025931dfe644971..1de6aafc2790707bd90ad9fbed74044ff6220fc5 100755 (executable)
@@ -24,13 +24,13 @@ maketest() {
 }
 
 maketest \
-       lib \
+       pkg \
 
 # all of these are subtly different
 # from what maketest does.
 
 
-(xcd lib/sync;
+(xcd pkg/sync;
 make clean;
 time make
 GOMAXPROCS=10 make test
index 9c1fe7439484aa4a0507562cbe9cf797c6b07d70..867a84034b8e4d1cb0fddbccde63ec2d82fcaf33 100644 (file)
@@ -475,7 +475,7 @@ func (P *Printer) HtmlPackageName(pos token.Position, name string) {
        if P.html {
                sname := name[1 : len(name)-1];  // strip quotes  TODO do this elsewhere eventually
                // TODO CAPITAL HACK BELOW FIX THIS
-               P.TaggedString(pos, `"<a href="/src/lib/` + sname + `.go">`, sname, `</a>"`);
+               P.TaggedString(pos, `"<a href="/src/pkg/` + sname + `.go">`, sname, `</a>"`);
        } else {
                P.String(pos, name);
        }
index 97e18952f119725e6bd6c7fb1c0384237f85b444..f2d66079a42088d9e41c5f48d1ec7eeb29d17ffb 100644 (file)
@@ -80,7 +80,7 @@ var (
 
        // file system roots
        goroot string;
-       pkgroot = flag.String("pkgroot", "src/lib", "root package source directory (if unrooted, relative to goroot)");
+       pkgroot = flag.String("pkgroot", "src/pkg", "root package source directory (if unrooted, relative to goroot)");
        tmplroot = flag.String("tmplroot", "usr/gri/pretty", "root template directory (if unrooted, relative to goroot)");
 
        // periodic sync