Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
37a6adf1
Commit
37a6adf1
authored
May 20, 2010
by
Christopher Wedgwood
Committed by
Russ Cox
May 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: linux, implement BindToDevice
R=rsc CC=adg, golang-dev, r
https://golang.org/cl/1253043
parent
5265857a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
syscall_linux.go
src/pkg/syscall/syscall_linux.go
+5
-0
No files found.
src/pkg/syscall/syscall_linux.go
View file @
37a6adf1
...
@@ -403,6 +403,11 @@ func Sendto(fd int, p []byte, flags int, to Sockaddr) (errno int) {
...
@@ -403,6 +403,11 @@ func Sendto(fd int, p []byte, flags int, to Sockaddr) (errno int) {
return
sendto
(
fd
,
p
,
flags
,
ptr
,
n
)
return
sendto
(
fd
,
p
,
flags
,
ptr
,
n
)
}
}
// BindToDevice binds the socket associated with fd to device.
func
BindToDevice
(
fd
int
,
device
string
)
(
errno
int
)
{
return
SetsockoptString
(
fd
,
SOL_SOCKET
,
SO_BINDTODEVICE
,
device
)
}
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (errno int)
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (errno int)
func
ptracePeek
(
req
int
,
pid
int
,
addr
uintptr
,
out
[]
byte
)
(
count
int
,
errno
int
)
{
func
ptracePeek
(
req
int
,
pid
int
,
addr
uintptr
,
out
[]
byte
)
(
count
int
,
errno
int
)
{
...
...
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