mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: bsd, stub BindToDevice
R=rsc CC=adg, golang-dev, r https://golang.org/cl/1257041
This commit is contained in:
parent
4843b130bb
commit
5265857ac4
1 changed files with 9 additions and 0 deletions
|
|
@ -362,6 +362,15 @@ func Sendto(fd int, p []byte, flags int, to Sockaddr) (errno int) {
|
|||
return sendto(fd, p, flags, ptr, n)
|
||||
}
|
||||
|
||||
// TODO:
|
||||
// FreeBSD has IP_SENDIF. Darwin probably needs BSDLLCTest, see:
|
||||
// http://developer.apple.com/mac/library/samplecode/BSDLLCTest/index.html
|
||||
|
||||
// BindToDevice binds the socket associated with fd to device.
|
||||
func BindToDevice(fd int, device string) (errno int) {
|
||||
return ENOSYS
|
||||
}
|
||||
|
||||
//sys kevent(kq int, change uintptr, nchange int, event uintptr, nevent int, timeout *Timespec) (n int, errno int)
|
||||
|
||||
func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, errno int) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue