Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9dadf3bf
Commit
9dadf3bf
authored
Dec 13, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo: Solaris compatibility patches.
From Rainer Orth. From-SVN: r182296
parent
7b1c3dd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
libgo/go/net/fd_select.go
+3
-2
libgo/go/os/sys_uname.go
+1
-1
No files found.
libgo/go/net/fd_select.go
View file @
9dadf3bf
...
...
@@ -85,7 +85,8 @@ func (p *pollster) WaitFD(s *pollServer, nsec int64) (fd int, mode int, err erro
timeout
=
&
tv
}
var
n
,
e
int
var
n
int
var
e
error
var
tmpReadFds
,
tmpWriteFds
syscall
.
FdSet
for
{
// Temporary syscall.FdSet's into which the values are copied
...
...
@@ -101,7 +102,7 @@ func (p *pollster) WaitFD(s *pollServer, nsec int64) (fd int, mode int, err erro
break
}
}
if
e
!=
0
{
if
e
!=
nil
{
return
-
1
,
0
,
os
.
NewSyscallError
(
"select"
,
e
)
}
if
n
==
0
{
...
...
libgo/go/os/sys_uname.go
View file @
9dadf3bf
...
...
@@ -10,7 +10,7 @@ import "syscall"
func
Hostname
()
(
name
string
,
err
error
)
{
var
u
syscall
.
Utsname
if
errno
:=
syscall
.
Uname
(
&
u
);
errno
!=
0
{
if
errno
:=
syscall
.
Uname
(
&
u
);
errno
!=
nil
{
return
""
,
NewSyscallError
(
"uname"
,
errno
)
}
b
:=
make
([]
byte
,
len
(
u
.
Nodename
))
...
...
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