os: add Args and stub it with mock data

This commit is contained in:
cornelk
2020-05-12 00:05:11 +03:00
committed by Ayke
parent 6b8940421e
commit e907db1481
2 changed files with 13 additions and 1 deletions
+4 -1
View File
@@ -24,9 +24,12 @@ func GOROOT() string {
return "/usr/local/go"
}
// TODO: fill with real args.
var args = []string{"/proc/self/exe"}
//go:linkname os_runtime_args os.runtime_args
func os_runtime_args() []string {
return nil
return args
}
// Copy size bytes from src to dst. The memory areas must not overlap.