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
eb6a1fe0
Commit
eb6a1fe0
authored
Jan 27, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo: Fix merge errors shown on Solaris.
From Rainer Orth. From-SVN: r183651
parent
183dd130
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
9 deletions
+14
-9
libgo/go/os/sys_uname.go
+1
-1
libgo/go/syscall/exec_bsd.go
+4
-5
libgo/mksysinfo.sh
+1
-1
libgo/runtime/go-print.c
+1
-1
libgo/runtime/thread-sema.c
+7
-1
No files found.
libgo/go/os/sys_uname.go
View file @
eb6a1fe0
...
@@ -8,7 +8,7 @@ package os
...
@@ -8,7 +8,7 @@ package os
import
"syscall"
import
"syscall"
func
H
ostname
()
(
name
string
,
err
error
)
{
func
h
ostname
()
(
name
string
,
err
error
)
{
var
u
syscall
.
Utsname
var
u
syscall
.
Utsname
if
errno
:=
syscall
.
Uname
(
&
u
);
errno
!=
nil
{
if
errno
:=
syscall
.
Uname
(
&
u
);
errno
!=
nil
{
return
""
,
NewSyscallError
(
"uname"
,
errno
)
return
""
,
NewSyscallError
(
"uname"
,
errno
)
...
...
libgo/go/syscall/exec_bsd.go
View file @
eb6a1fe0
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
package
syscall
package
syscall
import
(
import
(
"runtime"
"unsafe"
"unsafe"
)
)
...
@@ -58,7 +57,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
...
@@ -58,7 +57,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
// Enable tracing if requested.
// Enable tracing if requested.
if
sys
.
Ptrace
{
if
sys
.
Ptrace
{
err1
=
raw_trace
(
_PTRACE_TRACEME
,
0
,
nil
,
nil
)
err1
=
raw_
p
trace
(
_PTRACE_TRACEME
,
0
,
nil
,
nil
)
if
err1
!=
0
{
if
err1
!=
0
{
goto
childerror
goto
childerror
}
}
...
@@ -153,7 +152,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
...
@@ -153,7 +152,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
err1
=
err2
.
(
Errno
)
err1
=
err2
.
(
Errno
)
goto
childerror
goto
childerror
}
}
raw_fcntl
(
nextfd
,
F_SETFD
,
F_CLOEXEC
)
raw_fcntl
(
nextfd
,
F_SETFD
,
F
D
_CLOEXEC
)
fd
[
i
]
=
nextfd
fd
[
i
]
=
nextfd
nextfd
++
nextfd
++
if
nextfd
==
pipe
{
// don't stomp on pipe
if
nextfd
==
pipe
{
// don't stomp on pipe
...
@@ -196,7 +195,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
...
@@ -196,7 +195,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
// Detach fd 0 from tty
// Detach fd 0 from tty
if
sys
.
Noctty
{
if
sys
.
Noctty
{
_
,
err1
=
raw_ioctl
(
0
,
IOT
CNOTTY
,
0
)
_
,
err1
=
raw_ioctl
(
0
,
TIO
CNOTTY
,
0
)
if
err1
!=
0
{
if
err1
!=
0
{
goto
childerror
goto
childerror
}
}
...
@@ -204,7 +203,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
...
@@ -204,7 +203,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
// Make fd 0 the tty
// Make fd 0 the tty
if
sys
.
Setctty
{
if
sys
.
Setctty
{
_
,
err1
=
raw_ioctl
(
TIOCSCTTY
,
0
)
_
,
err1
=
raw_ioctl
(
0
,
TIOCSCTTY
,
0
)
if
err1
!=
0
{
if
err1
!=
0
{
goto
childerror
goto
childerror
}
}
...
...
libgo/mksysinfo.sh
View file @
eb6a1fe0
...
@@ -192,7 +192,7 @@ grep '^const _SHUT_' gen-sysinfo.go |
...
@@ -192,7 +192,7 @@ grep '^const _SHUT_' gen-sysinfo.go |
sed
-e
's/^\(const \)_\(SHUT[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
sed
-e
's/^\(const \)_\(SHUT[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
# The net package requires some const definitions.
# The net package requires some const definitions.
for
m
in
IPV6_V6ONLY IPPROTO_IPV6 IPV6_JOIN_GROUP IPV6_LEAVE_GROUP IPV6_TCLASS
;
do
for
m
in
IP
_PKTINFO IP
V6_V6ONLY IPPROTO_IPV6 IPV6_JOIN_GROUP IPV6_LEAVE_GROUP IPV6_TCLASS
;
do
if
!
grep
"^const
$m
"
${
OUT
}
>
/dev/null 2>&1
;
then
if
!
grep
"^const
$m
"
${
OUT
}
>
/dev/null 2>&1
;
then
echo
"const
$m
= 0"
>>
${
OUT
}
echo
"const
$m
= 0"
>>
${
OUT
}
fi
fi
...
...
libgo/runtime/go-print.c
View file @
eb6a1fe0
...
@@ -58,7 +58,7 @@ __go_print_double (double v)
...
@@ -58,7 +58,7 @@ __go_print_double (double v)
fputs
(
"NaN"
,
stderr
);
fputs
(
"NaN"
,
stderr
);
return
;
return
;
}
}
if
(
isinf
(
v
))
if
(
__builtin_
isinf
(
v
))
{
{
putc
(
v
<
0
?
'-'
:
'+'
,
stderr
);
putc
(
v
<
0
?
'-'
:
'+'
,
stderr
);
fputs
(
"Inf"
,
stderr
);
fputs
(
"Inf"
,
stderr
);
...
...
libgo/runtime/thread-sema.c
View file @
eb6a1fe0
...
@@ -136,6 +136,12 @@ runtime_semawakeup (M *mp)
...
@@ -136,6 +136,12 @@ runtime_semawakeup (M *mp)
}
}
void
void
runtime_osinit
(
void
)
runtime_osinit
(
void
)
{
{
}
}
void
runtime_goenvs
(
void
)
{
runtime_goenvs_unix
();
}
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