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
2ab17534
Commit
2ab17534
authored
Jan 14, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo/syscalls: Finish Solaris code.
Mostly from Rainer Orth. From-SVN: r168814
parent
cbabf03f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
libgo/syscalls/syscall_solaris_amd64.go
+1
-1
libgo/syscalls/syscall_solaris_sparc.go
+11
-1
libgo/syscalls/syscall_solaris_sparc64.go
+15
-1
No files found.
libgo/syscalls/syscall_solaris_amd64.go
View file @
2ab17534
...
@@ -13,7 +13,7 @@ import "unsafe"
...
@@ -13,7 +13,7 @@ import "unsafe"
// 64-bit ptrace(3C) doesn't exist
// 64-bit ptrace(3C) doesn't exist
func
libc_ptrace
(
request
int
,
pid
Pid_t
,
addr
uintptr
,
data
*
byte
)
int
{
func
libc_ptrace
(
request
int
,
pid
Pid_t
,
addr
uintptr
,
data
*
byte
)
int
{
errno
:=
ENOSYS
SetErrno
(
ENOSYS
)
return
-
1
return
-
1
}
}
...
...
libgo/syscalls/syscall_solaris_sparc.go
View file @
2ab17534
// syscall_solaris_sparc.go -- Solaris
SPARC specific support
// syscall_solaris_sparc.go -- Solaris
/
SPARC specific support
// Copyright 2011 The Go Authors. All rights reserved.
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
package
syscall
package
syscall
import
"unsafe"
// FIXME: ptrace(3C) has this, but exec.go expects the next.
//func libc_ptrace(request int, pid Pid_t, addr int, data int) int __asm__ ("ptrace")
func
libc_ptrace
(
request
int
,
pid
Pid_t
,
addr
uintptr
,
data
*
byte
)
int
__asm__
(
"ptrace"
)
var
dummy
*
byte
const
sizeofPtr
uintptr
=
uintptr
(
unsafe
.
Sizeof
(
dummy
))
libgo/syscalls/syscall_solaris_sparc64.go
View file @
2ab17534
// syscall_solaris_
v9.go -- Solaris sparc9v
specific support
// syscall_solaris_
sparc64.go -- Solaris/SPARCV9
specific support
// Copyright 2011 The Go Authors. All rights reserved.
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
package
syscall
package
syscall
import
"unsafe"
// FIXME: ptrace(3C) has this, but exec.go expects the next.
//func libc_ptrace(request int, pid Pid_t, addr int, data int) int __asm__ ("ptrace")
// 64-bit ptrace(3C) doesn't exist
func
libc_ptrace
(
request
int
,
pid
Pid_t
,
addr
uintptr
,
data
*
byte
)
int
{
SetErrno
(
ENOSYS
)
return
-
1
}
var
dummy
*
byte
const
sizeofPtr
uintptr
=
uintptr
(
unsafe
.
Sizeof
(
dummy
))
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