all: basic support for the os package

The resulting binary is pretty big due to lacking optimizations
(probably because of interfaces), so that should be fixed.
This commit is contained in:
Ayke van Laethem
2018-09-15 18:54:36 +02:00
parent c237633d34
commit 1484bb5c2c
6 changed files with 141 additions and 3 deletions
+5
View File
@@ -49,6 +49,11 @@ func GOROOT() string {
return "/usr/local/go"
}
//go:linkname os_runtime_args os.runtime_args
func os_runtime_args() []string {
return nil
}
// Copy size bytes from src to dst. The memory areas must not overlap.
func memcpy(dst, src unsafe.Pointer, size uintptr) {
for i := uintptr(0); i < size; i++ {