Side by Side Diff: src/pkg/os/executable_plan9.go
Issue 6736069:
code review 6736069: runtime, syscall, os: add os.ExecPath() (string, error)
Patch Set: diff -r 617db9efbdf1 https://code.google.com/p/go/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 The Go Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style |
| 3 // license that can be found in the LICENSE file. |
| 4 |
| 5 // +build plan9 |
| 6 |
| 7 package os |
| 8 |
| 9 func executable() (string, error) { |
| 10 return "/proc/" + itoa(Getpid()) + "/text", nil |
| 11 } |
OLD | NEW |