]> Cypherpunks repositories - gostls13.git/commit
runtime: translate env*.c to Go
authorRuss Cox <rsc@golang.org>
Sat, 30 Aug 2014 18:53:47 +0000 (14:53 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 30 Aug 2014 18:53:47 +0000 (14:53 -0400)
commit50199d7b35ef684aef2122b9327b3cf5036b011a
tree45ab751ec7d3d59e14db85aa85fd3e7eaf692421
parent2fd62a42b48ffc111aebdc4a191d705248888fc1
runtime: translate env*.c to Go

In an earlier CL I wrote a separate Go-only version, but that broke Plan 9,
because the Go-only version assumed a non-Plan 9 system.

Translate the real ones instead.

LGTM=r
R=golang-codereviews, r
CC=0intro, golang-codereviews, iant, khr
https://golang.org/cl/140050044
src/pkg/runtime/cgo/setenv.c
src/pkg/runtime/env_plan9.c [deleted file]
src/pkg/runtime/env_plan9.go [new file with mode: 0644]
src/pkg/runtime/env_posix.c [deleted file]
src/pkg/runtime/env_posix.go [new file with mode: 0644]
src/pkg/runtime/extern.go
src/pkg/runtime/stubs.go
src/pkg/runtime/sys_plan9_amd64.s
src/pkg/runtime/thunk.s