mirror of
https://github.com/golang/go
synced 2024-11-20 08:24:42 -07: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
@ -362,6 +362,15 @@ 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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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)
|
//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) {
|
func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, errno int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user