]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: bsd, stub BindToDevice
authorChristopher Wedgwood <cw@f00f.org>
Thu, 20 May 2010 16:39:35 +0000 (09:39 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 20 May 2010 16:39:35 +0000 (09:39 -0700)
R=rsc
CC=adg, golang-dev, r
https://golang.org/cl/1257041

src/pkg/syscall/syscall_bsd.go

index 332afa4bfac11376d3c8c835b761d71d27a7ff0c..c773daa7cea9bf2c304bd0d285daf5bc46f62de6 100644 (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) {