Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
cabe0e6a
Commit
cabe0e6a
authored
Nov 08, 2011
by
Anthony Martin
Committed by
Russ Cox
Nov 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os, syscall: fix Plan 9 build
R=rsc CC=golang-dev
https://golang.org/cl/5330067
parent
f2b602ed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
src/pkg/os/env_plan9.go
src/pkg/os/env_plan9.go
+1
-1
src/pkg/os/error_plan9.go
src/pkg/os/error_plan9.go
+1
-1
src/pkg/os/exec_plan9.go
src/pkg/os/exec_plan9.go
+2
-1
src/pkg/syscall/syscall_plan9.go
src/pkg/syscall/syscall_plan9.go
+2
-2
No files found.
src/pkg/os/env_plan9.go
View file @
cabe0e6a
...
...
@@ -7,7 +7,7 @@
package
os
import
(
"error"
"error
s
"
"syscall"
)
...
...
src/pkg/os/error_plan9.go
View file @
cabe0e6a
...
...
@@ -28,7 +28,7 @@ func NewSyscallError(syscall string, err syscall.Error) error {
if
err
==
nil
{
return
nil
}
return
&
SyscallError
{
syscall
,
err
.
String
()}
return
&
SyscallError
{
syscall
,
err
.
Error
()}
}
var
(
...
...
src/pkg/os/exec_plan9.go
View file @
cabe0e6a
...
...
@@ -5,6 +5,7 @@
package
os
import
(
"errors"
"runtime"
"syscall"
)
...
...
@@ -47,7 +48,7 @@ func (note Plan9Note) String() string {
func
(
p
*
Process
)
Signal
(
sig
Signal
)
error
{
if
p
.
done
{
return
NewError
(
"os: process already finished"
)
return
errors
.
New
(
"os: process already finished"
)
}
f
,
e
:=
OpenFile
(
"/proc/"
+
itoa
(
p
.
Pid
)
+
"/note"
,
O_WRONLY
,
0
)
...
...
src/pkg/syscall/syscall_plan9.go
View file @
cabe0e6a
...
...
@@ -19,13 +19,13 @@ const ImplementsGetwd = true
// An Error can represent any printable error condition.
type
Error
interface
{
String
()
string
error
}
// ErrorString implements Error's String method by returning itself.
type
ErrorString
string
func
(
e
ErrorString
)
String
()
string
{
return
string
(
e
)
}
func
(
e
ErrorString
)
Error
()
string
{
return
string
(
e
)
}
// NewError converts s to an ErrorString, which satisfies the Error interface.
func
NewError
(
s
string
)
Error
{
return
ErrorString
(
s
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment