1
0
mirror of https://github.com/golang/go synced 2024-10-03 07:21:21 -06:00

syscall: bsd, stub BindToDevice

R=rsc
CC=adg, golang-dev, r
https://golang.org/cl/1257041
This commit is contained in:
Christopher Wedgwood 2010-05-20 09:39:35 -07:00 committed by Russ Cox
parent 4843b130bb
commit 5265857ac4

View File

@ -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) {