diff options
author | Christopher Wedgwood <cw@f00f.org> | 2010-05-20 09:39:35 -0700 |
---|---|---|
committer | Christopher Wedgwood <cw@f00f.org> | 2010-05-20 09:39:35 -0700 |
commit | c3a72bf3766fb2b7b70af0c480a1b3a6de19c2a6 (patch) | |
tree | cb175cd70448efb027442af8c7eb761ca3ba9017 /src/pkg/syscall/syscall_bsd.go | |
parent | ef9b8a7bec35c6c2389333a23229686c5ad388c2 (diff) | |
download | golang-c3a72bf3766fb2b7b70af0c480a1b3a6de19c2a6.tar.gz |
syscall: bsd, stub BindToDevice
R=rsc
CC=adg, golang-dev, r
http://codereview.appspot.com/1257041
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/syscall/syscall_bsd.go')
-rw-r--r-- | src/pkg/syscall/syscall_bsd.go | 9 |
1 files changed, 9 insertions, 0 deletions
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) { |