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
7d189538
Commit
7d189538
authored
Jan 31, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: Add Gettid on GNU/Linux systems.
From-SVN: r183775
parent
e15999a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
libgo/go/syscall/libcall_linux.go
+4
-3
No files found.
libgo/go/syscall/libcall_linux.go
View file @
7d189538
...
@@ -195,9 +195,10 @@ func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0)
...
@@ -195,9 +195,10 @@ func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0)
// //sys Fstatfs(fd int, buf *Statfs_t) (err error)
// //sys Fstatfs(fd int, buf *Statfs_t) (err error)
// //fstatfs(fd int, buf *Statfs_t) int
// //fstatfs(fd int, buf *Statfs_t) int
// FIXME: Only available as a syscall.
func
Gettid
()
(
tid
int
)
{
// //sysnb Gettid() (tid int)
r1
,
_
,
_
:=
Syscall
(
SYS_GETTID
,
0
,
0
,
0
)
// //gettid() Pid_t
return
int
(
r1
)
}
// FIXME: mksysinfo linux_dirent
// FIXME: mksysinfo linux_dirent
// Or just abandon this function.
// Or just abandon this function.
...
...
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