From c3a72bf3766fb2b7b70af0c480a1b3a6de19c2a6 Mon Sep 17 00:00:00 2001 From: Christopher Wedgwood Date: Thu, 20 May 2010 09:39:35 -0700 Subject: syscall: bsd, stub BindToDevice R=rsc CC=adg, golang-dev, r http://codereview.appspot.com/1257041 Committer: Russ Cox --- src/pkg/syscall/syscall_bsd.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/pkg/syscall/syscall_bsd.go b/src/pkg/syscall/syscall_bsd.go index 332afa4bf..c773daa7c 100644 --- a/src/pkg/syscall/syscall_bsd.go +++ b/src/pkg/syscall/syscall_bsd.go @@ -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) { -- cgit v1.2.3